/* ==========================================================
   [ACCESSIBILITY LOCK] - STOP SYSTEM FONT SCALING
========================================================== */
body,
html {
    -webkit-text-size-adjust: 85%;
    text-size-adjust: 85%;

    box-sizing: border-box;
}

/* ==========================================================
   [THEME OVERRIDES] - SHRINK TITLE BAR ON MOBILE
========================================================== */
@media (max-width: 768px) {

    body .other-pages-header-title-bar,
    body .other-pages-header-title-bar-1200px {
        padding: 4px 4px 4px 10px !important;
        min-height: auto !important;
    }

    body .cs-titlebar-inner {
        padding: 0 !important;
        margin: 0 !important;
    }

    body .title-bar-title {
        font-size: 1.2rem !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    body .title-bar-subtitle {
        display: none !important;
    }
}

#scestimate-note {
    display: none !important;
}


/* ==========================================================
   [CSS DESIGN] - MASTER GRID ARCHITECTURE
========================================================== */
.comingsoon-archive {
    background: #E5F0F4;
    padding: 0px 0 80px;
    overflow-x: hidden;
}

.comingsoon-grid-wrap {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}

#comingsoon-grid {
    display: flex !important;
    flex-direction: column;
    gap: 40px;
}

/* MASTER WRAPPER */
.tour-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

/* 1. LEFT MARGIN */
.tour-margin-strip {
    width: 70px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}

.tour-grab-handle {
    cursor: grab;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    height: 60px;
    align-items: center;
    justify-content: center;
}

.tour-grab-handle span {
    display: block;
    width: 30px;
    height: 4px;
    background: #004a75;
    border-radius: 4px;
    transition: 0.3s ease;
}

.tour-open-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.is-collapsed .tour-open-controls {
    display: none;
}

.open-id {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 1.4rem;
    color: #1e4d74;
    line-height: 1;
    transition: 0.3s ease;
}

/* REFINED TOP BUTTON */
.open-top-btn {
    background: #004a75;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    transition: 0.3s ease;
}

/* SORTABLE DRAG UX */
.sortable-ghost {
    opacity: 0.4;
    background: #cbd5e1;
    border-radius: 10px;
}

.sortable-drag {
    opacity: 1 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.02);
    cursor: grabbing !important;
}

.sortable-fallback {
    opacity: 1 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.02);
    z-index: 9999;
}

/* 2. THE BOX (400px Grid Architecture) */
.tour-itinerary-box {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: 60px 1fr;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #004a75;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.is-collapsed .tour-itinerary-box {
    height: 60px;
    border: none;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- SHARED DASHBOARD HEADER --- */
.tour-dashboard-header {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: 60px;
    color: #fff;
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, #005485 0%, #004a75 100%);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.h-puzzle-piece {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    background: transparent;
    z-index: 10;
    position: relative;
}

.is-collapsed .h-puzzle-piece {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.collapse-square {
    background: #004a75;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 1.1rem;
}

.is-collapsed .collapse-square {
    transform: rotate(-90deg);
}

.h-id {
    display: none;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    transition: 0.3s ease;
}

.h-top-arrow {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Montserrat';
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

.h-listing-btn {
    display: none;
    background: #fff;
    color: #004a75;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.65rem;
    text-decoration: none;
    text-transform: uppercase;
}

.is-collapsed .h-id,
.is-collapsed .h-top-arrow,
.is-collapsed .h-listing-btn {
    display: inline-block;
}

/* PUZZLE PART 2 (Main Info - Right) */
.h-main-info {
    flex-grow: 1;
    height: 60px;
    color: #fff;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: 0.3s ease;
}

.h-addr-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
}

.h-addr-link {
    font-family: 'Montserrat';
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    cursor: pointer;
}

.h-mls-no {
    font-family: 'Montserrat';
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 2px;
    transition: 0.3s ease;
}

/* REQ: Mobile collapse button (hidden on desktop) */
.mob-collapse-btn {
    display: none;
}

/* REQ 2 & 3: Mobile consolidated header line */
.h-cons-stats-line {
    display: none;
}

.h-right-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.h-mid-chips {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 10px;
}

.mini-chip {
    font-family: 'Montserrat';
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mini-chip.is-active {
    background: #15803d;
    border-color: #15803d;
    box-shadow: 0 0 10px rgba(21, 128, 61, 0.4);
}

.h-price-group {
    text-align: right;
}

.h-price-label {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    transition: 0.3s ease;
}

.h-price-val {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
    transition: 0.3s ease;
}

.h-trash {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

/* ==========================================================
   [GHOST MODE] - THE "WHITEISH" HIDDEN STATE
========================================================== */
.tour-card.is-hidden {
    opacity: 0.65;
}

.tour-card.is-hidden .tour-itinerary-box {
    border-color: #e2e8f0;
    box-shadow: none;
}

.tour-card.is-hidden .tour-dashboard-header {
    background: #f8fafc !important;
    border-color: #e2e8f0;
}

.tour-card.is-hidden .h-puzzle-piece {
    border-color: #e2e8f0;
}

.tour-card.is-hidden .h-addr-link,
.tour-card.is-hidden .h-mls-no {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

.tour-card.is-hidden .h-id {
    color: #94a3b8 !important;
}

.tour-card.is-hidden .collapse-square,
.tour-card.is-hidden .mob-collapse-btn {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
}

.tour-card.is-hidden .h-price-label,
.tour-card.is-hidden .h-price-val,
.tour-card.is-hidden .h-trash {
    color: #94a3b8 !important;
}

.tour-card.is-hidden .mini-chip {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none;
}

.tour-card.is-hidden .h-top-arrow,
.tour-card.is-hidden .h-listing-btn {
    display: none !important;
}

.tour-card.is-hidden .tour-grab-handle span {
    background: #cbd5e1;
}

.tour-card.is-hidden .open-id {
    color: #cbd5e1;
}

.tour-card.is-hidden .open-top-btn {
    border-color: #cbd5e1;
    color: #cbd5e1;
    background: #e2e8f0;
}

/* 3. THE 400x360 LEFT COLUMN */
.tour-left-col {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 360px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    border-right: 1px solid #004a75;
    background: #ffffff;
}

.is-collapsed .tour-left-col {
    display: none;
}

/* CSS Image Placeholder Background applied behind the real image */
.tour-visual-part {
    height: 300px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: url('https://www.steavycarter.com/wp-content/uploads/2025/12/Image-Coming-Soon.png') center/cover no-repeat;
}

.tour-visual-part img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform 0.22s ease;
    color: transparent;
}

.tour-overlay-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 2;
}

.tour-overlay-scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 25%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.35));
    z-index: 3;
}

.tour-photo-info {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 90%;
    text-align: center;
    color: #fff;
    font-family: 'Montserrat';
}

.tour-photo-addr {
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.tour-photo-price {
    font-weight: 500;
    font-size: 1.2rem;
    margin-top: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.tour-listing-bar {
    height: 60px;
    flex-shrink: 0;
    background: #005485;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-listing-off-photo {
    color: #fff;
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 10px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. DETAILS SIDE */
.tour-details-body {
    grid-column: 2;
    grid-row: 2;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    height: 300px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.is-collapsed .tour-details-body {
    display: none;
}

.tour-hood-line {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.tour-desc-snippet {
    font-family: 'Montserrat';
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 15px;
}

.tour-instruction {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e4d74;
    display: block;
    margin: 0 auto 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tour-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.time-btn {
    flex: 1;
    min-width: 190px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    font-family: 'Montserrat';
    font-weight: 900 !important;
    color: #1e4d74;
    font-size: 1.05rem;
    transition: 0.2s ease;
}

.time-btn.is-selected {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.tour-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.tour-specs-inline {
    display: flex;
    gap: 15px;
}

.tour-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
}

.tour-icon-item img {
    width: 18px;
}

/* Desktop-Only Pipes */
.pipe-sep {
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 4px;
    display: inline-block;
}

.action-buttons-wrap {
    display: flex;
    gap: 10px;
}

.app-btn {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 10px;
    padding: 12px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-info {
    background: #f1f5f9;
    color: #1e4d74;
    border: 1px solid #e2e8f0;
}

.btn-sms {
    background: #0ea5e9;
    color: #fff;
}

.btn-directions {
    background: #005485;
    color: #fff;
}

.btn-hide {
    background: #fff;
    color: #e11d48;
    border: 1px solid #fb7185;
}

.mobile-info-btn {
    display: none;
}



/* ==========================================================
   [MOBILE LUX DESIGN] - OPTION B OVERLAYS (Max 1100px)
========================================================== */
@media (max-width: 1100px) {
    .tour-card {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .tour-margin-strip {
        width: 45px;
        padding-right: 4px;
        margin-left: -5px;
    }

    .tour-grab-handle span {
        width: 22px;
    }

    .open-id {
        font-size: 1.1rem;
    }

    .open-top-btn {
        padding: 4px 6px;
        font-size: 0.5rem;
        margin-top: 10px;
    }

    /* Fix potential card width stretching & Anchor points */
    .tour-itinerary-box {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        width: 100%;
        overflow: hidden;
        position: relative;
        box-sizing: border-box !important;
    }

    /* REQ: Expand Header Height for Mobile Toggle */
    .tour-dashboard-header {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        min-height: 40px;
        padding: 6px 15px;
        border-radius: 0px 0px 0 0;
    }

    .h-puzzle-piece,
    .h-right-tools,
    .h-price-label {
        display: none !important;
    }

    .h-main-info {
        padding: 0;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .h-addr-wrapper {
        gap: 1px;
        padding-right: 45px;
    }

    /* Space for chevron */
    .h-addr-link {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 65vw;
    }

    .h-mls-no {
        display: none !important;
    }

    /* REQ: Mobile collapse button right-aligned on address line */
    .mob-collapse-btn {
        display: flex;
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 32px;
        height: 32px;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .is-collapsed .mob-collapse-btn i {
        transform: rotate(-90deg);
    }

    /* REQ 2, 3, 4: Consolidated Header Line (Price L, Stats R, Font Sizing) */
    .h-cons-stats-line {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-family: 'Montserrat';
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        margin-top: 1px;
    }

    .h-header-price {
        font-weight: 800;
        font-size: 0.95rem;
        line-height: 1;
        text-align: left;
    }

    .h-header-specs {
        font-weight: 800;
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        text-align: right;
    }

    /* GRID STACK SLOT 1: Image */
    .tour-left-col {
        grid-area: 2 / 1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-right: none;
        margin-top: 0;
        position: relative;
    }

    .tour-visual-part {
        height: 100%;
    }

    .tour-photo-info,
    .tour-listing-bar {
        display: none;
    }

    .tour-overlay-scrim {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    }

    .tour-overlay-scrim::after {
        display: none;
    }

    /* REQ: Removed black background from MLS */
    .mobile-spec-row {
        display: none !important;
    }

    /* ABSOLUTE OVERLAY: Locks the icons to the image area boundaries */
    .tour-details-body {
        grid-area: 2 / 1;
        z-index: 10;
        background: transparent;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        pointer-events: none;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        margin: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }

    .tour-hood-line,
    .tour-desc-snippet,
    .tour-instruction {
        display: none !important;
    }

    .tour-button-grid {
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }

    .time-btn {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        color: #1e4d74;
        font-size: 0.65rem;
        padding: 6px 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        width: auto;
        min-width: 0;
        text-align: left;
        max-width: 100%;
        white-space: normal;
    }

    .time-btn.is-selected {
        background: #15803d;
        color: #fff;
        border-color: #15803d;
    }

    /* Master Action Row Alignment */
    .tour-card-actions {
        pointer-events: auto;
        padding-top: 0;
        border-top: none;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-top: auto;
        width: 100%;
        position: relative;
    }

    .tour-specs-inline {
        display: none !important;
    }

    .pipe-sep {
        display: none !important;
    }

    /* MLS Number - Bottom Left */
    .mobile-mls-overlay {
        display: block !important;
        position: static !important;
        background: transparent;
        padding: 0;
        border-radius: 0;
        color: #fff;
        font-family: 'Montserrat';
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        pointer-events: none;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        margin-bottom: 6px;
    }

    /* Circle Buttons - Bottom Right */
    .action-buttons-wrap {
        flex-direction: row;
        gap: 15px;
        width: auto;
        margin-bottom: 0px;
        margin-right: 0px;
    }

    .action-buttons-wrap .app-btn span {
        display: none;
    }

    .action-buttons-wrap .app-btn i {
        font-size: 1.15rem;
        margin: 0;
    }

    /* PATCH: Force Circle Shapes ONLY on main card, leaving map popup buttons normal */
    .action-buttons-wrap .app-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .btn-info {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #004a75 !important;
    }

    .btn-sms {
        background: rgba(14, 165, 233, 0.95) !important;
    }

    .btn-directions {
        background: rgba(0, 84, 133, 0.95) !important;
    }

    .btn-hide {
        background: rgba(225, 29, 72, 0.95) !important;
        color: #fff !important;
        border: none !important;
    }
}

/* ==========================================================
   [MODAL] - THE FLOATING INFO BUBBLE
========================================================== */
.mobile-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-drawer-scrim.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 25px;
    font-family: 'Montserrat';
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    -webkit-text-size-adjust: 85%;
}

.mobile-drawer-scrim.is-active .mobile-drawer-content {
    transform: scale(1);
}

.drawer-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e4d74;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.drawer-mls {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.drawer-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* DRAWER CTA BUTTONS (Balanced Widths) */
.drawer-tour-btn,
.drawer-listing-btn {
    display: flex;
    width: 100%;
    padding: 14px;
    font-size: 0.85rem;
    border-radius: 8px;
    font-family: 'Montserrat';
    font-weight: 800;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.drawer-tour-btn {
    background: #218ccc;
    color: #fff;
    margin-bottom: 10px;
}

.drawer-tour-btn.is-selected {
    background: #15803d;
}

.drawer-listing-btn {
    background: #005485;
    color: #fff;
    margin-bottom: 25px;
    text-decoration: none;
}

.drawer-close {
    width: 100%;
    background: #e2e8f0;
    color: #1e4d74;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-family: 'Montserrat';
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.2s;
}

.drawer-close:active {
    background: #cbd5e1;
}


/* ==========================================================
   [MAP DESIGN] - SQUARE / EDGE-TO-EDGE ON MOBILE
========================================================== */
#steavy-tour-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Cinematic on Desktop */
    border-radius: 10px;
    margin-bottom: 40px;
    border: 2px solid #004a75;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1);
    background: #E5F0F4;
}

@media (max-width: 768px) {
    #steavy-tour-map {
        aspect-ratio: 1 / 1;
        width: calc(100% + 40px);
        margin-left: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 25px;
    }
}

/* ==========================================================
   [ONBOARDING & TOUR BUILDER] - Styles
========================================================== */

#floating-tour-btn:hover {
    background: #15803d;
    transform: translateX(-50%) scale(1.05);
}

/* Intro.js Customizations to match luxury theme */
.introjs-tooltip {
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    min-width: 280px;
}

.introjs-button {
    text-transform: uppercase;
    font-weight: 800;
    border-radius: 6px !important;
    text-shadow: none !important;
    background: #f1f5f9 !important;
    color: #1e4d74 !important;
    border: 1px solid #cbd5e1 !important;
}

.introjs-nextbutton {
    background: #218ccc !important;
    color: #fff !important;
    border: none !important;
}

.introjs-progressbar {
    background-color: #218ccc !important;
}

/* Smaller Map Pills & Colors */
.tour-map-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.65rem;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    animation: mapPillPulse 2.5s infinite;
}

.pill-sat {
    background-color: #218ccc;
}

.pill-sun {
    background-color: #003366;
}

.pill-wk {
    background-color: #64748b;
}

/* REQ: Soft Trash Pins Logic */
.tour-map-pill.is-hidden-pill {
    opacity: 0.15;

    animation: none !important;
    color: transparent !important;
    background-color: #64748b !important;
    border-radius: 50%;
    border-color: #cbd5e1 !important;
}

.tour-map-pill.is-hidden-pill::after {
    content: "\f2ed";
    /* Trashcan icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    position: absolute;
}

@keyframes mapPillPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Tighter Map Popup Card */
.mapboxgl-popup {
    z-index: 1000;
}

.mapboxgl-popup-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 260px;
    max-width: 85vw;
    border: 1.5px solid #004a75;
    font-family: 'Montserrat';
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}

/* Map CSS Image Fallback */
.map-popup-img {
    position: relative;
    height: 120px;
    width: 100%;
    border-bottom: 1.5px solid #004a75;
    background: url('https://www.steavycarter.com/wp-content/uploads/2025/12/Image-Coming-Soon.png') center/cover no-repeat;
}

.map-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: transparent;
}

.map-popup-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.map-popup-price {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.map-popup-body {
    padding: 12px;
    background: #fff;
}

.map-popup-addr {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e4d74;
    line-height: 1.2;
    margin-bottom: 2px;
    text-decoration: none;
}

.map-popup-specs {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.map-popup-btn {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    font-size: 0.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.map-popup-btn.btn-full {
    flex: 1 1 100%;
    padding: 8px;
    font-size: 0.65rem;
    background: #218ccc;
    color: #fff;
    margin-bottom: 4px;
}

.map-popup-btn.btn-full.is-selected {
    background: #15803d !important;
}

.btn-map-hide {
    background: #fff;
    color: #e11d48;
    border: 1px solid #fb7185;
    flex: 0 0 28px;
}


#floating-tour-btn {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 140, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(33, 140, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 140, 204, 0);
    }
}

/* ==========================================================
   [NOTIFICATIONS] - HOMES STYLE POPUP
========================================================== */
#stv-toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stv-toast {
    background: #1e4d74;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stv-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   [FILTERS] - LUXURY SLIDE-OUT DRAWER
========================================================== */


.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.filter-input-row {
    display: flex;
    gap: 10px;
}

.filter-input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e4d74;
}

.pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-opt {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    color: #64748b;
}

.pill-opt.is-active {
    background: #004a75;
    color: #fff;
    border-color: #004a75;
}



/* START PATCH: HOMES UI FILTER STYLES */
#filter-modal .mobile-drawer-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
}

.filter-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-title {
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e4d74;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.filter-pill.is-active {
    background: #004a75;
    color: #fff;
    border-color: #004a75;
}

.price-slider-wrap {
    padding: 10px 10px 40px;
}

.noUi-connect {
    background: #004a75 !important;
}

.noUi-handle {
    border-radius: 50% !important;
    background: #004a75 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.stv-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e4d74;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 15px center;
}

/* END PATCH: HOMES UI FILTER STYLES */


/* ==========================================================
   [MAP & BUTTON INTEGRATION] - UNIFIED FIX
========================================================== */

/* 1. Stacks Filter ABOVE Logo inside Mapbox container */
.mapboxgl-ctrl-bottom-left {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    pointer-events: none;
    z-index: 100;
}

.mapboxgl-ctrl-bottom-left>* {
    pointer-events: auto;
}

/* 2. The Filter Capsule (Nested in the Map) */
#floating-filter-btn {
    display: flex !important;
    position: relative !important;
    /* Forces it to stay inside map container */
    background: #fff;
    color: #004a75;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1.5px solid #004a75;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.65rem;
    cursor: pointer;
    text-transform: uppercase;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-left: 10px !important;
    margin-bottom: 8px !important;
    width: auto !important;
}

/* 3. True Center for Build Tour Button (No interference) */
#floating-tour-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Perfect mathematical centering */
    background: #218ccc;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    #floating-filter-btn {
        font-size: 0.6rem;
        padding: 5px 12px;
        margin-left: 8px !important;
    }

    #floating-tour-btn {
        bottom: 20px !important;
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* START PATCH: HIDE LOGO & SNAP FILTER TO CORNER */

/* 1. Hide the Mapbox Logo and Attribution */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
    display: none !important;
}

/* 2. Snap the button snug into the bottom-left corner */
#floating-filter-btn {
    margin-left: 15px !important;
    /* Snug to left */
    margin-bottom: 15px !important;
    /* Snug to bottom */
    position: absolute !important;
    /* Snap to map bounds */
    bottom: 0;
    left: 0;
}

/* 3. Cleanup the container logic since the logo is gone */
.mapboxgl-ctrl-bottom-left {
    display: block !important;
    /* No longer need flex-stacking */
}

/* END PATCH */


.introjs-tooltiptext img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.introjs-tooltip {
    min-width: 300px !important;
    border-radius: 15px !important;
}