@charset "UTF-8";

/* ==========================================================================
   나의 진행현황 (my progress)
========================================================================== */

/* ==========================================================================
   Page Wrapper
========================================================================== */

.page-progress {
    min-height: calc(100vh - 68px);
    background: #F9FAFB;
    padding: 40px 0 80px;
}

/* ==========================================================================
   Page Header
========================================================================== */

.progress-page-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.progress-page-hd h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.btn-new-cond {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    background: var(--text-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-new-cond:hover {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   Alert Bar
========================================================================== */

.alert-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #FFF0E6;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #FFDBCC;
}

.alert-bar .alert-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    animation: alertPulse 1.4s ease-in-out infinite;
}

@keyframes alertPulse {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

/* ==========================================================================
   Tab
========================================================================== */

.progress-tab-wrap {
    margin-bottom: 24px;
}

.progress-tab-wrap .tab-links {
    display: flex;
    border-bottom: 2px solid #E5E7EB;
    gap: 0;
    margin-bottom: 16px;
}

.progress-tab-wrap .tab-links li {
    position: relative;
}

.progress-tab-wrap .tab-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}

.progress-tab-wrap .tab-links li a:hover {
    color: var(--primary-color);
}

.progress-tab-wrap .tab-links li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-cnt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #eee;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

.progress-tab-wrap .tab-links li.active .tab-cnt {
    background: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Condition Card
========================================================================== */

.cond-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 0px 5px rgba(0, 0, 0, .03);
    margin-bottom: 20px;
}

.cond-card-hd {
    padding: 24px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cond-card-hd .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cond-card-hd .bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cond-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cond-type-icon {
    font-size: 20px;
    line-height: 1;
}

.cond-type h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.cond-card-hd .right {
    display: flex;
    justify-content: space-between;
    flex-flow: column wrap;
    align-items: end;
    gap: 30px;
}

.cond-card-ct {
    display: flex;
    flex-flow: column wrap;
    gap: 12px;
    padding: 24px;
    background-color: #FAFBFC;
}

/* ==========================================================================
   Status badges
========================================================================== */

.sta-arrived {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff3eb;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
}

.sta-arrived::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.sta-reviewing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #EFF6FF;
    color: #3B82F6;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
}

.sta-reviewing::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3B82F6;
    border-radius: 50%;
}

/* ==========================================================================
   Condition Summary
========================================================================== */

.cond-summary {
    margin-top: 8px;
}

.cond-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 10px;
}

.cond-meta dl {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    color: #444;
}

.cond-meta dl.location {
    color: #4B5563;
    font-weight: 400;
}

.cond-meta .meta-tag.deal {
    background: #e8f0fc;
    color: #3273e4;
    padding: 3px 10px;
    border-radius: 4px;
}

.cond-meta .meta-tag.location::before {
    content: '📍';
    font-size: 13px;
}

.cond-note {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.cond-date {
    font-size: 12px;
    color: #bbb;
}

/* ==========================================================================
   Agent Proposal
========================================================================== */

.agent-proposal {
    width: 100%;
    padding: 20px 24px;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.agent-proposal:last-of-type {
    border-bottom: none;
}

.agent-proposal-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.agent-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-new {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: .02em;
}

.agent-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.agent-cert {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-gray);
    flex-shrink: 0;
}

.agent-cert::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: url(../images/icon/ico-check-g.svg)no-repeat center;
}

.cert-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #22C55E;
    border-radius: 50%;
}

/* ==========================================================================
   Listing Toggle
========================================================================== */

.listing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    margin-bottom: 14px;
    transition: color .2s;
}

.listing-toggle-btn:hover {
    color: var(--primary-color);
}

.listing-toggle-btn .toggle-arrow {
    display: inline-block;
    font-size: 12px;
    color: var(--text-gray);
    transition: transform .25s;
}

.listing-toggle-btn.is-open .toggle-arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   Listing Scroll
========================================================================== */

.listing-scroll-wrap {
    display: none;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.listing-scroll-wrap.is-open {
    display: flex;
}

.listing-card {
    display: flex;
    flex-shrink: 0;
    min-width: 260px;
    width: calc(33% - 4px);
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}

.listing-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.listing-card .img-box {
    max-width: 200px;
}

.listing-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #e0e0e0;
}

.listing-info {
    padding: 10px 12px;
}

.listing-type {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.listing-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.listing-mgmt {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.listing-addr {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.listing-tags span {
    font-size: 11px;
    color: var(--text-gray);
    background: #f4f5f7;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Contact Button
========================================================================== */

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: var(--text-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.btn-contact:hover {
    background: #333;
    color: #fff;
}

.btn-contact::before {
    content: '📞';
    font-size: 15px;
}

/* ==========================================================================
   More Agents Notice
========================================================================== */

.more-agents-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #FFF0E6;
    border: 1px solid #FFEDD5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #E65C00;
}

/* ==========================================================================
   Reviewing Notice (inside card, no agents yet)
========================================================================== */

.reviewing-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: #fafafa;
    font-size: 14px;
    color: var(--text-gray);
}

.reviewing-notice .ri-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
========================================================================== */

@media (max-width: 768px) {

    .page-progress {
        padding: 24px 0 60px;
    }

    .progress-page-hd h2 {
        font-size: 22px;
    }

    .progress-tab-wrap .tab-links li a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .listing-card {
        width: 100%;
    }

    .cond-card-hd {
        padding: 16px;
    }
    .cond-card-hd .bottom {
        flex-flow: row wrap;
        gap: 8px;
    }

    .cond-card-ct {
        padding: 12px;
    }

    .agent-proposal {
        padding: 16px;
    }

    .listing-scroll-wrap.is-open {
        flex-flow: column wrap;
        margin-bottom: 8px;
    }
}
