/* ===== Base & Typography ===== */
html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-x: hidden;
}

.page-wrapper {
    flex: 1 0 auto;
}

/* ===== Navbar ===== */
.btp-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

/* ===== Property Status Badge ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-under-contract {
    background: #fef3c7;
    color: #92400e;
}

.status-sold {
    background: #fee2e2;
    color: #991b1b;
}

.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* ===== Countdown Badge ===== */
.countdown-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    background: linear-gradient(135deg, #c2410c, #ea580c);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .countdown-badge.expired {
        background: rgba(220, 53, 69, 0.85);
        color: #fff;
    }

/* Large countdown badge (1-column layout — matches property page) */
.countdown-badge-lg {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    background: linear-gradient(135deg, #c2410c, #ea580c);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    min-width: 200px;
}

    .countdown-badge-lg .cd-timer {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .countdown-badge-lg .cd-segment {
        text-align: center;
        min-width: 36px;
    }

    .countdown-badge-lg .cd-value {
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        display: inline-block;
        min-width: 24px;
    }

    .countdown-badge-lg .cd-label {
        font-size: 9px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        margin-top: 2px;
    }

    .countdown-badge-lg .cd-separator {
        font-size: 18px;
        font-weight: 800;
        opacity: 0.5;
    }

    .countdown-badge-lg .cd-expired {
        display: none;
        font-size: 14px;
        font-weight: 700;
    }

    .countdown-badge-lg.expired {
        background: linear-gradient(135deg, #991b1b, #dc2626);
    }

        .countdown-badge-lg.expired .cd-timer {
            display: none;
        }

        .countdown-badge-lg.expired .cd-expired {
            display: block;
        }

/* ===== One Column Layout ===== */
.one-col-row {
    overflow: hidden;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.one-col-image-col {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

    .one-col-image-col img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

.one-col-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .one-col-image-placeholder i {
        font-size: 64px;
        color: #9ca3af;
    }

/* Even row: white background */
.one-col-text-even {
    background: #fff;
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

/* Odd row: dark background */
.one-col-text-odd {
    background: #1a1a2e;
    color: #fff;
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

.one-col-text-even .one-col-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.one-col-text-odd .one-col-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.one-col-text-even .one-col-summary {
    font-size: 15px;
    color: #525252;
    margin-bottom: 24px;
}

.one-col-text-odd .one-col-summary {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.one-col-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.one-col-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .one-col-detail-item i {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }

.one-col-text-even .one-col-detail-item {
    color: #525252;
}

    .one-col-text-even .one-col-detail-item i {
        color: #6b7280;
    }

    .one-col-text-even .one-col-detail-item span {
        font-weight: 600;
        color: #111827;
    }

.one-col-text-odd .one-col-detail-item {
    color: #cbd5e1;
}

    .one-col-text-odd .one-col-detail-item i {
        color: #94a3b8;
    }

    .one-col-text-odd .one-col-detail-item span {
        font-weight: 600;
        color: #fff;
    }

.one-col-text-even .one-col-description {
    font-size: 14px;
    line-height: 1.8;
    color: #525252;
    margin-bottom: 28px;
    text-align: justify;
}

.one-col-text-odd .one-col-description {
    font-size: 14px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 28px;
    text-align: justify;
}

.btn-view-property-outline {
    display: inline-block;
    border: 2px solid #111827;
    color: #111827;
    background: transparent;
    border-radius: 0;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

    .btn-view-property-outline:hover {
        background: #111827;
        color: #fff;
    }

.btn-view-property-outline-light {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    border-radius: 0;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

    .btn-view-property-outline-light:hover {
        background: #fff;
        color: #111827;
    }

/* ===== One Column Photo Strip ===== */
.one-col-photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

    .one-col-photo-strip img {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 10px;
        border: 2px solid #e5e7eb;
        transition: transform 0.2s, border-color 0.2s;
    }

        .one-col-photo-strip img:hover {
            transform: scale(1.08);
            border-color: #2563eb;
        }

.one-col-text-odd .one-col-photo-strip img {
    border-color: #334155;
}

    .one-col-text-odd .one-col-photo-strip img:hover {
        border-color: #60a5fa;
    }

/* ===== Card Layouts (2, 3, 4 columns) ===== */
.property-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .property-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

.property-card-img {
    position: relative;
    overflow: hidden;
}

    .property-card-img img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

.property-card-body {
    padding: 20px;
}

    .property-card-body h4 {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 12px;
    }

    .property-card-body .card-info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 3px 0;
        font-size: 13px;
        color: #525252;
    }

        .property-card-body .card-info-item i {
            width: 16px;
            color: #6b7280;
            text-align: center;
            font-size: 12px;
        }

        .property-card-body .card-info-item span {
            font-weight: 600;
            color: #111827;
        }

.btn-view-property {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    margin-top: 12px;
}

    .btn-view-property:hover {
        background: #1d4ed8;
        color: #fff;
    }

/* 2-col card body consistent height */
.two-col-card .property-card-body {
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

    .two-col-card .property-card-body .btn-view-property {
        margin-top: auto;
    }

/* 2-col gallery in card */
.card-gallery .row {
    --bs-gutter-x: 4px;
    --bs-gutter-y: 4px;
}

.card-gallery img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.card-gallery .main-img-col img {
    height: 100%;
    min-height: 280px;
}

.card-gallery .small-img-col img {
    height: 100%;
    object-fit: cover;
}

.card-gallery .small-img-wrapper img {
    height: 100%;
    object-fit: cover;
}

.card-gallery .small-img-wrapper {
    height: 50%;
}

.card-gallery .main-img-col {
    min-height: 280px;
}

/* 4-col compact */
.compact-card .property-card-body {
    padding: 14px;
}

    .compact-card .property-card-body h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .compact-card .property-card-body .card-info-item {
        font-size: 12px;
        padding: 2px 0;
    }

        .compact-card .property-card-body .card-info-item i {
            font-size: 11px;
            width: 14px;
        }

.compact-card .btn-view-property {
    padding: 8px 14px;
    font-size: 13px;
    margin-top: 8px;
}

.compact-card .property-card-img img {
    height: 180px;
}

/* No image placeholder */
.no-image-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

    .no-image-placeholder i {
        font-size: 48px;
        color: #9ca3af;
    }

.no-image-placeholder-sm {
    min-height: 180px;
}

    .no-image-placeholder-sm i {
        font-size: 36px;
    }

/* ===== Footer ===== */
.btp-footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0 24px;
    margin-top: 48px;
    font-size: 14px;
    flex-shrink: 0;
}

    .btp-footer a {
        color: #9ca3af;
        text-decoration: none;
    }

        .btp-footer a:hover {
            color: #fff;
        }

    .btp-footer h5 {
        color: #fff;
    }

/* ===== Mobile: sm and below (< 768px) ===== */
@media (max-width: 767.98px) {

    /* Navbar stacking on mobile */
    .btp-navbar .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

        .btp-navbar .container p {
            font-size: 20px !important;
        }

    /* Upgrade banner */
    .upgrade-banner {
        padding: 24px 0 !important;
    }

        .upgrade-banner h2 {
            font-size: 24px !important;
        }

        .upgrade-banner .fa-arrow-circle-up {
            font-size: 48px !important;
        }

    /* One Column Layout */
    .one-col-image-col {
        min-height: 250px;
    }

        .one-col-image-col img {
            position: relative;
        }

    .one-col-image-placeholder {
        min-height: 250px;
    }

    .one-col-text-even,
    .one-col-text-odd {
        min-height: auto;
        padding: 24px 16px;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .one-col-title {
        font-size: 22px !important;
    }

    .one-col-details-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        direction: ltr !important;
    }

    .one-col-detail-item {
        justify-content: flex-start !important;
    }

    .one-col-photo-strip {
        justify-content: flex-start !important;
    }

        .one-col-photo-strip img {
            width: 48px;
            height: 48px;
        }

    /* One-col odd row price border reset for mobile */
    .one-col-text-even p[style*="border-right"],
    .one-col-text-odd p[style*="border-right"] {
        border-right: none !important;
        border-left: 4px solid #1d4ed8 !important;
        padding-right: 0 !important;
        padding-left: 14px !important;
    }

    /* Card gallery */
    .card-gallery .main-img-col {
        min-height: 200px;
    }

        .card-gallery .main-img-col img {
            min-height: 200px;
        }

    .card-gallery .small-img-wrapper {
        height: auto;
    }

        .card-gallery .small-img-wrapper img {
            height: 80px;
        }

    /* No-image placeholder reduced height */
    .no-image-placeholder {
        min-height: 200px !important;
    }

    /* Property card body tighter padding */
    .property-card-body {
        padding: 16px;
    }

    /* Two-col card address + price stack on mobile */
    .two-col-card .property-card-body .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

        .two-col-card .property-card-body .d-flex.align-items-center.justify-content-between span {
            margin-left: 0 !important;
        }

    /* Footer no-wrap fix */
    .btp-footer p {
        white-space: normal !important;
    }

    /* Countdown badge-lg on mobile */
    .countdown-badge-lg {
        min-width: 160px;
        padding: 8px 12px;
    }

        .countdown-badge-lg .cd-value {
            font-size: 14px;
        }

        .countdown-badge-lg .cd-separator {
            font-size: 14px;
        }

    /* Heading section */
    .portfolio-heading {
        font-size: 24px !important;
    }
}
