
             /* START CSS */

/* Hide Mapbox Controls */
.mapboxgl-control-container {
    display: none !important;
}

/* Hide desktop clear button on mobile */
@media (max-width: 768px) {
    #clear-everything-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
  .sc-map-search-input,
  #f-zip,
  #f-city,
  #f-county,
  .filter-input,
  .stv-select,
  #filter-modal input,
  #filter-modal select {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .sc-map-search-input {
    min-height: 32px !important;
  }
}

/* Round Clear Everything / Reset Button on mobile drawer header */
.sc-drawer-clear-btn {
    display: none;
}
@media (max-width: 768px) {
    .sc-drawer-clear-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 16px;
        top: 10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #374151; /* matches deep grey theme */
        border: 1px solid rgba(255, 255, 255, 0.15);
        /* color: #fff; */
        font-size: 1.1rem;
        cursor: pointer;
        z-index: 1001;
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
        transition: background-color 0.2s, transform 0.2s;
    }
    .sc-drawer-clear-btn:active {
        background: #4b5563;
        transform: scale(0.95);
    }
}

/* Round Mode Toggle CTA Button on mobile drawer header */
.sc-drawer-mode-btn {
    display: none;
}
@media (max-width: 768px) {
    .sc-drawer-mode-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 16px;
        top: 10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #374151;
        border: 1px solid rgba(255, 255, 255, 0.15);
        /* color: #ffffff; */
        font-size: 1.05rem;
        cursor: pointer;
        z-index: 1001;
        transition: background-color 0.2s, transform 0.2s;
    }
    .sc-drawer-mode-btn:active {
        background: #4b5563;
        transform: scale(0.95);
    }
}



/* ==========================================================
   [REVIEW CSS PATCH] - Mobile/Desktop cleanup safety pass
   2026-05-16
========================================================== */
@media (min-width: 1101px) {
  .tour-card:not(.is-selected-card) .tour-grab-handle,
  .tour-card:not(.is-selected-card) .open-id {
    display: none !important;
  }

  .tour-card:not(.is-selected-card) .tour-open-controls {
    display: flex !important;
    justify-content: flex-start !important;
  }

  .tour-card:not(.is-selected-card) .open-top-btn {
    display: inline-flex !important;
  }

  .tour-card.is-selected-card .tour-grab-handle {
    display: flex !important;
  }

  .tour-card.is-selected-card .open-id {
    display: block !important;
  }
}

#steavy-tour-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 450px;
  border-radius: 10px;
  margin-bottom: 40px;
  border: 2px solid #004a75;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.1);
  background: #E5F0F4;
  position: relative;
  overflow: hidden;
}

/* DESKTOP LAYOUT WRAPPERS (Default > 768px) */
.sc-mobile-map-stage {
    display: block;
    position: relative;
    width: auto;
    height: auto;
}
.sc-mobile-results-drawer {
    display: block;
    position: static;
    transform: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}
.sc-drawer-header {
    display: none !important; /* Hide header completely on desktop */
}
.sc-drawer-body {
    display: block;
    padding: 0;
    overflow: visible;
    height: auto;
}

@media (max-width: 768px) {
  /* Scroll Lock Background Archive */
  .comingsoon-archive {
    overflow: hidden !important;
    height: 100dvh !important;
    position: fixed !important;
    inset: 0 !important;
  }

  /* Full-Screen Map Stage Layer */
  .sc-mobile-map-stage {
    width: 100% !important;
    height: 100dvh !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1 !important;
    overflow: hidden !important;
  }

  #steavy-tour-map {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    aspect-ratio: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0px !important;
    border: 0px solid #004a75 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  /* Fixed Overlay Drawer Layer */
  @media (max-width: 768px) {
    .sc-mobile-results-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;

        height: 100vh;
        height: 100svh;
        max-height: 100svh;

        z-index: 1000;
        background: #111827;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        color: #fff;
        padding-bottom: env(safe-area-inset-bottom);
        box-sizing: border-box;
        overflow: hidden;
    }
}

  .sc-mobile-results-drawer.drawer-is-collapsed {
    transform: translateY(calc(100% - 58px - env(safe-area-inset-bottom)));
  }

  .sc-mobile-results-drawer.drawer-is-expanded {
    transform: translateY(0);
  }

  .sc-drawer-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #001524;
    border: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 10px 16px 14px 16px;
    cursor: pointer;
    outline: none;
    color: #fff;
    height: 68px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
  }

  .sc-drawer-handle {
    width: 44px;
    height: 4.5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 8px;
    transition: background 0.2s;
  }

  .sc-drawer-header:hover .sc-drawer-handle {
    background: rgba(255, 255, 255, 0.45);
  }

  .sc-drawer-summary {
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    letter-spacing: 0.02em;
    width: 100%;
  }

  .sc-drawer-summary-main {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .sc-drawer-map-count {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
    line-height: 1;
    color: #94a3b8;
  }

  .sc-drawer-separator {
    color: #10b981; /* high contrast premium green dot separator */
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
  }

  .sc-drawer-body {
    flex: 1;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0px 0px 0px 0px;
    box-sizing: border-box;
  }
}

#floating-filter-btn {
    display: flex !important;
    position: absolute !important;
    left: 15px !important;
    bottom: 15px !important;
    margin: 0 !important;
    z-index: 20 !important;
    background: #fff;
    color: #004a75;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1.5px solid #004a75;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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;
    width: auto !important;
}
/* ==========================================================
   [END REVIEW CSS PATCH]
========================================================== */

/* ==========================================================
   [VIEWPORT RESET PATCH] - Remove browser default body margin
   2026-05-17
========================================================== */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
/* ==========================================================
   [END VIEWPORT RESET PATCH]
========================================================== */

/* ==========================================================
   [ACCESSIBILITY LOCK] - STOP SYSTEM FONT SCALING
========================================================== */
body,
html {
    -webkit-text-size-adjust: 85%;
    text-size-adjust: 85%;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
}

@media (max-width: 768px) {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  html {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body {
    width: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
    overscroll-behavior: none !important;
    -webkit-text-size-adjust: 85% !important;
    text-size-adjust: 85% !important;
  }

  .comingsoon-archive {
    width: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: contain !important;
    box-sizing: border-box !important;
  }

  .comingsoon-grid-wrap,
  #comingsoon-grid,
  .tour-card,
  .tour-itinerary-box,
  .tour-dashboard-header,
  .tour-left-col,
  .tour-visual-part,
  .mobile-time-rail {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }
}

/* GHOST PLACEHOLDER ANIMATION */
.tour-card-ghost-placeholder {
    width: 100%;
    height: var(--ghost-height, 180px);
    border: 2px dashed rgba(0, 91, 130, 0.25);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    margin: 18px 0;
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
    transition:
        height 0.55s ease,
        margin 0.55s ease,
        opacity 0.35s ease,
        transform 0.55s ease;
    pointer-events: none;
}

.tour-card-ghost-placeholder.is-shrinking {
    height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0;
    transform: scaleY(0.92);
}

/* ==========================================================
   [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 12px !important;
        line-height: 1.2 !important;
    }

    body .title-bar-subtitle {
        display: none !important;
    }
    
    .h-main-info {
        padding: 0 12px !important;
        height: 40px !important;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .comingsoon-grid-wrap {
        padding: 0 0px !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 0px;
    position: relative;
}

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

/* 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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.h-listing-btn {
    display: none;
    background: #fff;
    color: #004a75;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    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: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

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

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

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

.h-trash {
    background: #fff;
    color: #e11d48;
    border: 1px solid #fb7185;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.h-trash:hover {
    background: #fff1f2;
    transform: scale(1.05);
}

/* ==========================================================
   [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;
    background: #f8fafc !important;
    border-color: #e2e8f0 !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;
    filter: saturate(1.12) contrast(1.06) brightness(1.02);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Main card scrim: soft top, stronger bottom for mobile action buttons */
.tour-overlay-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.00) 38%,
            rgba(0, 0, 0, 0.58) 100%
        ) !important;
}

.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: 'CompassSans', 'Montserrat', sans-serif;
}

.tour-photo-addr {
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: auto;
    max-height: 300px;
    opacity: 1;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition:
        max-height 0.45s ease,
        opacity 0.32s ease,
        padding 0.35s ease,
        margin 0.35s ease;
}

.is-collapsed .tour-details-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}

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

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

.tour-instruction {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 900 !important;
    color: #1e4d74;
    font-size: 1.05rem;
    transition: 0.2s ease;
}

.time-btn.is-selected {
    background: #10b981;
    border-color: #10b981;
    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: 400;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 23px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s ease;
}

/* Grid Card Specific - Desktop */
.action-buttons-wrap .app-btn {
    padding: 20px 20px;
}




.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: 0;
    }

    .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 10px;
        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.0rem;
        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: 'CompassSans', 'Montserrat', sans-serif;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        margin-top: 1px;
    }

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

    .h-header-specs {
        font-weight: 600;
        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: #10b981;
        color: #fff;
        border-color: #10b981;
    }

    /* 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: 'CompassSans', 'Montserrat', sans-serif;
        font-size: 0.55rem;
        font-weight: 600;
        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(255, 255, 255, 0.95) !important;
        color: #e11d48 !important;
        border: 1px solid #fb7185 !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: 'CompassSans', 'Montserrat', sans-serif;
    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: 600;
    color: #1e4d74;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.drawer-mls {
    font-size: 0.7rem;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 600;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    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
========================================================== */
/* DISABLED/MOVED:
#steavy-tour-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    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 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}
*/

@media (max-width: 768px) {

  .mapboxgl-map,
  .mapboxgl-canvas-container,
  .mapboxgl-canvas {
    max-width: 100% !important;
  }

  #sc-map-preview-wrap {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom) + 10px);
    z-index: 1002;
    display: none;
    pointer-events: auto;
  }

  #sc-map-preview-wrap.is-active {
    display: block;
  }

  body.is-drawer-expanded #sc-map-preview-wrap {
    display: none !important;
  }

  #sc-map-preview-wrap .mobile-oh-chevron {
    display: none !important;
  }

  #sc-map-preview-wrap .map-preview-card {
    margin-bottom: 0 !important;
  }

  .map-address-only-popup {
    font-family: var(--sc-font-body, 'CompassSans', sans-serif);
    font-weight: 900;
    font-size: 0.68rem;
    color: #ffffff;
    background: #001524;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 11px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    white-space: nowrap;
    letter-spacing: 0.02em;
    width: fit-content;
    margin: 0 auto;
  }

  .mapboxgl-popup-content {
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .mapboxgl-popup-tip {
    display: none !important;
  }

  .mapboxgl-popup-close-button {
    display: none !important;
  }
}

/* Bulletproof aspect ratio and stretch override to keep vector map layers from rendering as ovals */
.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================
   [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: 'CompassSans', '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: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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 */
/* REQ: Soft Hidden Pins (20% Visibility) */
.tour-map-pill.is-hidden-pill {
    opacity: 0.20 !important;
    animation: none !important;
    color: transparent !important;
    background-color: #64748b !important; /* Neutral Gray */
    border-color: #cbd5e1 !important;
    filter: grayscale(100%);
}

.tour-map-pill.is-hidden-pill::after {
    content: "\f070"; /* Eyeball Slash */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-sat { background-color: #218ccc !important; } /* Saturday - Light Blue */
.pill-sun { background-color: #003366 !important; } /* Sunday - Dark Blue */
.pill-wk  { background-color: #64748b !important; } /* Weekday - Gray */

@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);
    }
}
/* ==========================================================
   [MAP POPUP] - THE PREFERRED TIGHT LUX DESIGN
========================================================== */
/* DISABLED/MOVED:
#steavy-tour-map {
    min-height: 450px;
    background: #E5F0F4;
    content-visibility: auto;
}
*/



.mapboxgl-popup {
    z-index: 3000;
}

.map-popup-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.map-popup-times .map-popup-time-btn,
.map-popup-times .map-popup-btn.btn-full {
    flex: 1 1 calc(50% - 3px) !important;
    min-width: calc(50% - 3px) !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 9px 6px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    font-weight: 900 !important;
    letter-spacing: 0.01em !important;
}

.map-popup-times .map-popup-time-btn:nth-child(3):last-child {
    flex-basis: 100% !important;
    min-width: 100% !important;
}

@media (max-width: 768px) {
    .map-popup-times .map-popup-time-btn,
    .map-popup-times .map-popup-btn.btn-full {
        flex: 1 1 calc(50% - 3px) !important;
        min-width: calc(50% - 3px) !important;
    }
}

@media (max-width: 768px) {
  .mapboxgl-popup,
  .mapboxgl-popup-content,
  .map-popup-card {
    max-width: 90vw !important;
    box-sizing: border-box !important;
  }
}

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

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

.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;
    filter: saturate(1.12) contrast(1.06) brightness(1.02);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Map popup scrim: keeps popup price readable without making photo muddy */
.map-popup-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.00) 42%,
            rgba(0, 0, 0, 0.72) 100%
        ) !important;
}

.map-popup-price {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: #fff;
    font-weight: 600;
    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: 600;
    color: #1e4d74;
    line-height: 1.2;
    margin-bottom: 2px;
    text-decoration: none;
}

.map-popup-specs {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 600;
    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: 10px 4px;
    font-size: 1.4rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

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

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

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

.map-popup-btn i {
    font-size: 1.1rem;
}

.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 32px;
    height: 32px;
}

#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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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
========================================================== */

/* DISABLED/MOVED:
.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;
}

#floating-filter-btn {
    display: flex !important;
    position: relative !important;
    background: #fff;
    color: #004a75;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1.5px solid #004a75;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    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,
    #floating-tour-btn {
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box !important;
    }
}

.user-location-marker {
    width: 24px;
    height: 24px;
    position: relative;
    pointer-events: none;
}

.user-location-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.user-location-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    animation: userLocationPulse 1.8s ease-out infinite;
    z-index: 1;
}

@keyframes userLocationPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* 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 */
/* DISABLED/MOVED:
#floating-filter-btn {
    margin-left: 15px !important;
    margin-bottom: 15px !important;
    position: absolute !important;
    bottom: 0;
    left: 0;
}

.mapboxgl-ctrl-bottom-left {
    display: block !important;
}
*/

/* END PATCH */

/* MAP LEGEND STYLES */
.map-legend-wrap {
    position: absolute;
    top: 75px;
    left: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-size: 11px;
    pointer-events: none;
}

.sc-map-key-toggle {
    display: none;
}

/* MAPBOX UI OVERRIDES */
.mapboxgl-ctrl-top-left .mapboxgl-ctrl {
    margin: 10px 0 0 25px !important;
}

.legend-title {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    flex-shrink: 0;
}
.cluster-dot {
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px #004a75;
}


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

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

.tour-map-pill-container {
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pill-inner {
    flex-shrink: 0;
}

/* SPIDER CLUSTER STYLES */
.tour-map-hub {
    z-index: 10;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.hub-content {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.hub-content:hover {
    transform: scale(1.1);
}
.spider-leg-line {
    pointer-events: none;
}
.tour-map-pill {
    will-change: transform;
}

#selection-toast {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #15803d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'CompassSans', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#selection-toast.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.toast-undo-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 800;
    transition: 0.2s;
    letter-spacing: 0.5px;
}
.toast-undo-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 92px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

.h-mid-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  max-width: 520px;
}

.h-mid-chips::-webkit-scrollbar {
  display: none;
}

.is-pending-tour-removal {
  opacity: 0.72 !important;
  transform: translateY(6px) !important;
  transition: opacity 260ms ease, transform 260ms ease !important;
  pointer-events: none;
}
.is-tour-removing {
  opacity: 0 !important;
  transform: translateY(18px) !important;
  transition: opacity 260ms ease, transform 260ms ease !important;
  pointer-events: none;
}



/* ==========================================================
   [MOBILE PATCH v2.6.5] - SELECTED HEADER + TIME RAIL
   - Selected cards: hamburger + stop # inside h-main-info
   - Selected time chip on same row as address
   - Price and specs stay on same second row
   - Arrow spans both rows at far right
========================================================== */
.mobile-selected-controls,
.mobile-selected-time-chip,
.mobile-time-rail {
    display: none;
}

@media (max-width: 1100px) {
    .tour-card {
        display: block !important;
        width: 100% !important;
    }

    .tour-margin-strip {
        display: none !important;
    }

    .tour-itinerary-box {
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
    }

    .is-collapsed .mobile-time-rail {
        display: none !important;
    }

    /* Keep unselected mobile header simple and clean. */
    .tour-card:not(.is-selected-card) .mobile-selected-controls,
    .tour-card:not(.is-selected-card) .mobile-selected-time-chip {
        display: none !important;
    }
    #comingsoon-grid {
        display: flex !important;
        flex-direction: column;
        gap: 0px !important;
    }

    .mobile-selected-controls,
    .mobile-drag-handle {
        cursor: grab !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
    }

    .mobile-selected-controls:active,
    .mobile-drag-handle:active {
        cursor: grabbing !important;
    }

    body.is-sorting-tour {
        overflow: hidden;
        overscroll-behavior: contain;
    }

    /* DISABLED/MOVED:
    @media (min-width: 1101px) {
        .tour-card:not(.is-selected-card) .tour-grab-handle,
        .tour-card:not(.is-selected-card) .open-id {
            display: none !important;
        }

        .tour-card:not(.is-selected-card) .tour-open-controls {
            display: flex !important;
            justify-content: flex-start !important;
        }

        .tour-card:not(.is-selected-card) .open-top-btn {
            display: inline-flex !important;
        }

        .tour-card.is-selected-card .tour-grab-handle {
            display: flex !important;
        }

        .tour-card.is-selected-card .open-id {
            display: block !important;
        }
    }
    */

    .sortable-floating-card {
        transform: scale(1.02) rotate(-0.35deg) !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35) !important;
    }

    .sortable-drop-placeholder {
        opacity: 0.35 !important;
        background: rgba(33, 140, 204, 0.14) !important;
        border: 2px dashed rgba(0, 84, 133, 0.45) !important;
        border-radius: 10px !important;
    }

    .sortable-card-chosen {
        cursor: grabbing !important;
    }

    .sortable-card-dragging {
        opacity: 0.92 !important;
    }

    .sortable-floating-card {
        opacity: 1 !important;
        transform: scale(1.03) rotate(-0.5deg) !important;
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35) !important;
        z-index: 999999 !important;
        pointer-events: none !important;
        border-radius: 12px !important;
    }

    .mobile-selected-time-chip {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .mobile-selected-time-chip:active {
        transform: scale(0.97);
    }
    /* Selected-card header grid:
       | HAM | # | Address | Time | Arrow |
       | HAM | # | Price   | Stats| Arrow |
    */
    .tour-card.is-selected-card .h-main-info {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) !important;
        column-gap: 1px !important;
        align-items: center !important;
        padding: 0 !important;
        width: 100% !important;
        height: 40px !important;
        min-width: 0 !important;
    }

    .tour-card.is-selected-card .mobile-selected-controls {
        display: grid !important;
        grid-template-columns: 20px 30px !important;
        align-items: center !important;
        justify-items: center !important;
        width: 54px !important;
        height: 38px !important;
        min-width: 54px !important;
        flex-shrink: 0 !important;
        color: #fff !important;
    }

    .tour-card.is-selected-card .mobile-tour-grab-handle {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        width: 20px !important;
        height: 38px !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: grab !important;
    }

    .tour-card.is-selected-card .mobile-tour-grab-handle span {
        display: block !important;
        width: 18px !important;
        height: 3px !important;
        background: #fff !important;
        border-radius: 3px !important;
        opacity: 0.95 !important;
    }

    .tour-card.is-selected-card .mobile-stop-number {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: 'CompassSans', 'Montserrat', sans-serif !important;
        font-weight: 900 !important;
        font-size: 0.9rem !important;
        line-height: 1 !important;
        color: #fff !important;
        white-space: nowrap !important;
    }

    .tour-card.is-selected-card .h-addr-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto 36px !important;
        grid-template-rows: auto auto !important;
        column-gap: 8px !important;
        row-gap: 0 !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

    .tour-card.is-selected-card .h-addr-link {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.05 !important;
    }

    .tour-card.is-selected-card .mobile-selected-time-chip:not(.is-empty) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        background: #15803d !important;
        color: #fff !important;
        border-radius: 999px !important;
        padding: 4px 9px !important;
        font-family: 'CompassSans', 'Montserrat', sans-serif !important;
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        letter-spacing: 0.04em !important;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset !important;
    }

    .tour-card.is-selected-card .h-cons-stats-line {
        display: contents !important;
    }

    .tour-card.is-selected-card .h-header-price {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        line-height: 1.05 !important;
    }

    .tour-card.is-selected-card .h-header-specs {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        max-width: 42vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.05 !important;
    }

    .tour-card.is-selected-card .mob-collapse-btn {
        grid-column: 3 !important;
        grid-row: 1 / 3 !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        align-self: center !important;
        justify-self: end !important;
        width: 32px !important;
        height: 32px !important;
    }

    /* Move mobile open-house choices below the photo instead of over it. */
    .tour-button-grid {
        display: none !important;
    }

    .mobile-time-rail {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 8px !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding: 10px 12px 12px !important;
        background: #fff !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-time-rail::-webkit-scrollbar {
        display: none;
    }

    .mobile-time-rail.mobile-time-count-1 .time-btn {
        flex: 0 1 68% !important;
        max-width: 340px !important;
    }

    .mobile-time-rail.mobile-time-count-2 .time-btn,
    .mobile-time-rail.mobile-time-count-3 .time-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .mobile-time-rail.mobile-time-count-many {
        justify-content: flex-start !important;
    }

    .mobile-time-rail.mobile-time-count-many .time-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
    }

    .mobile-time-rail .time-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
        width: auto !important;
        height: 44px !important;
        white-space: nowrap !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        font-size: 0.72rem !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        letter-spacing: 0.02em !important;
        text-align: center !important;
        background: #004a75 !important;
        border: 2px solid #004a75 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 74, 117, 0.18) !important;
    }

    .mobile-time-rail .time-btn:hover,
    .mobile-time-rail .time-btn:focus {
        background: #005485 !important;
        border-color: #005485 !important;
        color: #ffffff !important;
    }

    .mobile-time-rail .time-btn:active {
        transform: scale(0.98);
    }

    .mobile-time-rail .time-btn.is-selected {
        background: #15803d !important;
        border-color: #15803d !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(21, 128, 61, 0.28) !important;
    }
}

/* ==========================================================
   [MAP TOP CONTROLS PATCH] - Search Input & Round Filter
   2026-05-18
========================================================== */
.sc-map-top-controls {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: 15px !important;
    max-width: 380px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 30 !important;
    pointer-events: none !important;
}

/* Shift draw controls down on desktop */
.mapboxgl-ctrl-top-left {
    top: 80px !important;
}

@media (max-width: 768px) {
    .sc-map-top-controls {
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        top: 16px !important;
        max-width: none !important;
    }
    
    /* Shift mapbox controls down on mobile */
    .mapboxgl-ctrl-top-left,
    .mapboxgl-ctrl-top-right {
        top: 80px !important;
    }

    /* Hide old filter button on mobile */
    #floating-filter-btn {
        display: none !important;
    }

    /* Hide legend by default on mobile (collapsible) */
    .map-legend-wrap {
        display: none !important;
    }

    /* Shown when expanded */
    .map-legend-wrap.is-open {
        display: block !important;
        position: absolute !important;
        top: 66px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto !important;
        z-index: 16 !important;
        max-width: 122px !important;
        padding: 10px 11px !important;
        border-radius: 13px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        pointer-events: auto !important;
        font-size: 0.65rem !important;
    }

    /* Small round key toggle button inside top row */
    .sc-map-top-controls .sc-map-key-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        transform: none !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,0.94) !important;
        color: #001524 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border: 1px solid rgba(0,21,36,0.12) !important;
        cursor: pointer;
        outline: none;
        pointer-events: auto !important;
        transition: transform 0.1s ease;
    }

    .sc-map-top-controls .sc-map-key-toggle .key-label {
        display: none !important;
    }

    .sc-map-top-controls .sc-map-key-toggle:active {
        transform: scale(0.95) !important;
    }

    /* Hide legend and key toggle when drawer is expanded to prevent map clutter */
    body.is-drawer-expanded .map-legend-wrap,
    body.is-drawer-expanded .sc-map-key-toggle {
        display: none !important;
    }

    /* Shift Build Tour Floating Button above the collapsed/expanded mobile results drawer */
    #floating-tour-btn {
        bottom: 86px !important;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 999 !important;
    }

    body.is-drawer-expanded #floating-tour-btn {
        bottom: calc(42vh + 16px) !important;
    }

    .sc-map-top-controls .sc-map-search-location-pill {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sc-map-top-controls .sc-map-location-btn {
        width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        flex: 0 0 24px !important;
    }

    .sc-map-top-controls .sc-map-location-icon {
        font-size: 13px !important;
    }

    .sc-map-top-controls input.sc-map-search-input {
        font-size: 16px !important;
        line-height: 18px !important;
        height: 24px !important;
        min-height: 24px !important;
        padding: 0 !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        transform: none !important;
        zoom: 1 !important;
    }

    .sc-map-top-controls .sc-map-search-input::placeholder {
        font-size: 16px !important;
        font-weight: 700 !important;
        opacity: 0.72 !important;
    }

    .sc-map-top-controls .sc-map-filter-round-btn {
        position: relative !important;
        width: auto !important;
        min-width: 86px !important;
        height: 42px !important;
        border-radius: 21px !important; /* Perfect oval/pill shape */
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-weight: 800 !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 74, 117, 0.1) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        color: #004a75 !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .sc-map-top-controls .sc-map-filter-round-btn::after {
        content: "Filters";
        font-size: 0.72rem;
        font-weight: 900;
    }

    .sc-map-top-controls .sc-map-filter-round-btn .sc-filter-badge {
        top: 5px !important;
        right: 8px !important;
    }
}


.sc-map-search-location-pill,
.sc-map-filter-round-btn {
    pointer-events: auto !important;
}

.sc-map-search-location-pill {
    flex-grow: 1;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border-radius: 30px !important;
    padding: 6px 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(0, 74, 117, 0.1) !important;
}

.sc-map-location-btn {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s ease;
    margin: 0 !important;
    outline: none !important;
}

.sc-map-location-btn:active {
    background: rgba(0, 74, 117, 0.1) !important;
}

.sc-map-location-icon {
    color: #004a75 !important;
    font-size: 14px !important;
    pointer-events: none !important;
}

.sc-map-search-input {
    flex-grow: 1 !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    font-family: 'CompassSans', 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    font-weight: 600 !important;
    color: #333333 !important;
    width: 100% !important;
    box-shadow: none !important;
}

.sc-map-search-input::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

.sc-map-filter-round-btn {
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 74, 117, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    color: #004a75 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-map-filter-round-btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}

.sc-filter-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 8px !important;
    height: 8px !important;
    background: #e21c1c !important;
    border-radius: 50% !important;
    border: 1.5px solid #ffffff !important;
}
/* ==========================================================
   [END MAP TOP CONTROLS PATCH]
========================================================= */

/* ==========================================================
   [MOBILE CARD REDESIGN STYLE SYSTEM]
========================================================== */
.tour-card-mobile-inner {
  display: none !important;
}

.tour-card-legacy-inner {
  display: block !important;
}

:root {
    --sc-elite-navy: #001524;
    --sc-elite-white: #ffffff;
    --sc-elite-ice: #e5f0f4;
    --sc-elite-black: #000000;
    --sc-blue-deep: #004a75;
    --sc-blue-main: #005485;
    --sc-blue-mid: #0b6ea3;
    --sc-blue-bright: #218ccc;
    --sc-card-blue: #00658a;
    --sc-tour-green: #10b981;
    --sc-tour-green-dark: #0fa778;
    --sc-tour-blue: #005b82;
    --sc-glass-blue: rgba(14, 165, 233, 0.25);
    --sc-glass-border: rgba(14, 165, 233, 0.74);
    --sc-glass-soft: rgba(229, 240, 244, 0.12);
    --sc-elite-gradient: linear-gradient(180deg, #005485 0%, #0b6ea3 55%, #218ccc 100%);
    --sc-card-gradient: linear-gradient(180deg, #005485 0%, #00658a 55%, #007fae 100%);
    --sc-photo-top-gradient: linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0) 70%);
    --sc-photo-bottom-gradient: linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0) 70%);
    --sc-photo-center-scrim: radial-gradient(circle at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.14) 48%, rgba(0,0,0,0.04) 100%);
    --sc-card-shadow: 0 12px 30px rgba(0,0,0,0.32);
    --sc-glass-shadow: 0 4px 30px rgba(0,0,0,0.16);
    --sc-soft-shadow: 0 4px 12px rgba(0,0,0,0.25);
    --sc-radius-card: 18px;
    --sc-radius-pill: 999px;
    --sc-radius-button: 999px;
    --sc-font-display: 'ZacbelX', sans-serif;
    --sc-font-body: 'CompassSans', sans-serif;
}

@media (max-width: 768px) {
    .tour-card-legacy-inner {
        display: none !important;
    }
    .tour-card-mobile-inner {
        display: block !important;
        width: 100% !important;
    }
    
    .tour-card {
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        display: block !important;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .tour-margin-strip {
        display: none !important;
    }
}
    
    /* Main mobile card card box */
    .mobile-oh-card {
        background: var(--sc-elite-navy) !important;
        border-radius: var(--sc-radius-card) !important;
        overflow: hidden !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: var(--sc-card-shadow) !important;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        font-family: var(--sc-font-body) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }
    
    /* Highlight/selected state on the mobile card */
    .tour-card.is-selected-card .mobile-oh-card {
        border-color: var(--sc-tour-green) !important;
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), var(--sc-card-shadow) !important;
    }
    
    /* PHOTO CONTAINER AREA */
    .mobile-oh-photo {
        height: 200px;
        position: relative !important;
        overflow: hidden !important;
        width: 100%;
        background: #0f172a url('https://www.steavycarter.com/wp-content/uploads/2025/12/Image-Coming-Soon.png') center/cover no-repeat;
        transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: var(--sc-radius-card) var(--sc-radius-card) 0 0 !important;
    }

    .mobile-oh-photo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--sc-photo-top-gradient), var(--sc-photo-bottom-gradient), var(--sc-photo-center-scrim) !important;
        pointer-events: none;
        z-index: 2;
    }
    
    /* Image element */
    .mobile-oh-photo-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1 !important;
        filter: saturate(1.12) contrast(1.06) brightness(1.08) !important;
        transition: opacity 0.35s ease, transform 0.35s ease !important;
    }
    
    /* Individual Selectable Time Chips */
    .mobile-oh-time-chips-wrap {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 80%;
        pointer-events: auto;
    }
    
    .mobile-oh-time-chip {
        border-radius: var(--sc-radius-pill) !important;
        padding: 8px 16px !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-family: var(--sc-font-body) !important;
        font-weight: 900 !important;
        letter-spacing: 0.04em !important;
        line-height: 1 !important;
        color: var(--sc-elite-white) !important;
        background: rgba(0, 84, 133, 0.92) !important;
        border: 1px solid rgba(229, 240, 244, 0.42) !important;
        box-shadow: var(--sc-soft-shadow) !important;
        font-size: 0.68rem !important;
        transition: all 0.2s ease !important;
        text-transform: uppercase !important;
    }

    .mobile-oh-time-chip:active {
        transform: scale(0.95) !important;
    }
    
    .mobile-oh-time-chip.is-selected,
    .mobile-oh-time-chip.selected {
        background: var(--sc-tour-green) !important;
        border-color: rgba(255, 255, 255, 0.55) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    }
    
    /* Selected Card Top-Left Drag & Stop elements */
    .mobile-oh-selected-top-left {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 9 !important;
        pointer-events: auto !important;
        display: none !important;
        align-items: center;
        gap: 6px;
    }
    
    .tour-card.is-selected-card .mobile-oh-selected-top-left {
        display: flex !important;
    }
    
    .tour-card.is-selected-card .mobile-oh-time-chips-wrap {
        display: none !important;
    }
    
    .mobile-tour-grab-handle {
        display: flex;
        flex-direction: column;
        gap: 3px;
        cursor: grab;
        padding: 8px 10px 8px 6px;
    }
    
    .mobile-tour-grab-handle span {
        width: 16px;
        height: 2px;
        background: rgba(255, 255, 255, 0.75);
        display: block;
        border-radius: 1px;
        transition: background-color 0.2s;
    }
    
    .mobile-tour-grab-handle:active span {
        background: #ffffff;
    }
    
    .mobile-stop-number-pill {
        background: var(--sc-tour-green) !important;
        color: #ffffff !important;
        border: 2px solid var(--sc-tour-blue) !important;
        border-radius: var(--sc-radius-pill) !important;
        box-shadow: var(--sc-soft-shadow) !important;
        font-family: var(--sc-font-body) !important;
        font-weight: 900;
        font-size: 0.72rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* Bottom Bar Selected Times Wrap */
    .mobile-oh-selected-times-bar {
        display: none !important;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .tour-card.is-selected-card .mobile-oh-selected-times-bar {
        display: flex !important;
    }
    
    .tour-card.is-selected-card .mobile-oh-btn-directions {
        display: flex !important;
    }

    .tour-card.is-selected-card .mobile-oh-btn-hide {
        display: none !important;
    }

    .tour-card:not(.is-selected-card) .mobile-oh-btn-directions {
        display: none !important;
    }

    .tour-card:not(.is-selected-card) .mobile-oh-btn-hide {
        display: flex !important;
    }
    
    .tour-card.is-selected-card .mobile-oh-collapsed-times {
        display: none !important;
    }
    
    .mobile-oh-selected-times-bar .mobile-oh-time-chip {
        box-shadow: none !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
        border-radius: var(--sc-radius-pill) !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        background: rgba(0, 84, 133, 0.92) !important;
    }
    
    /* Chevron collapse toggler */
    .mobile-oh-chevron {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        z-index: 10 !important;
        flex: none !important;
        pointer-events: auto !important;
        width: 36px;
        height: 36px;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.45) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
        box-shadow: var(--sc-soft-shadow) !important;
    }
    
    .mobile-oh-chevron:active {
        background: rgba(0, 0, 0, 0.75) !important;
        transform: scale(0.95);
    }
    
    .tour-card.is-collapsed .mobile-oh-chevron i {
        transform: rotate(-180deg);
    }
    
    /* Address & Price Center info overlay */
    .mobile-oh-photo-info-center {
        position: absolute !important;
        top: 52% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 6 !important;
        width: 90% !important;
        text-align: center !important;
        color: var(--sc-elite-white) !important;
        font-family: var(--sc-font-body) !important;
        pointer-events: none !important;
    }
    
    .mobile-oh-photo-title {
        font-family: var(--sc-font-display) !important;
        font-weight: 800 !important;
        font-size: 1.25rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
        line-height: 1.2;
        pointer-events: none !important;
    }
    
    .mobile-oh-photo-price {
        font-family: var(--sc-font-display) !important;
        font-weight: 800 !important;
        font-size: 1.15rem !important;
        margin-top: 4px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
        color: var(--sc-elite-white) !important;
        pointer-events: none !important;
    }
    
    /* BLUE INFO/ACTION BAR UNDER PHOTO */
    .mobile-oh-info-bar {
        background: var(--sc-card-gradient) !important;
        color: var(--sc-elite-white) !important;
        padding: 12px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 58px;
        width: 100%;
        transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        font-family: var(--sc-font-body) !important;
    }
    
    .mobile-oh-info-left {
        display: flex;
        flex-direction: column;
        gap: 3px;
        max-width: 62%;
    }
    
    .mobile-oh-location {
        font-family: var(--sc-font-body) !important;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    
    .mobile-oh-facts {
        display: flex;
        align-items: center;
        gap: 5px;
        font-family: var(--sc-font-body) !important;
        font-weight: 600;
        font-size: 0.72rem;
        color: #e2e8f0;
    }
    
    .mobile-oh-fact-icon {
        width: 13px;
        height: 13px;
        object-fit: contain;
        display: inline-block;
        filter: brightness(0) invert(1);
    }
    
    .mobile-oh-fact-sep {
        color: rgba(255, 255, 255, 0.4);
        margin: 0 2px;
    }
    
    .mobile-oh-info-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        max-width: 38%;
    }
    
    /* 4 ROUND ACTION BUTTONS */
    .mobile-oh-actions {
        display: flex;
        gap: 18px;
        align-items: center;
    }
    
    .mobile-oh-action-btn {
        width: 32px;
        height: 32px;
        border-radius: var(--sc-radius-button) !important;
        background: var(--sc-glass-blue) !important;
        border: 1px solid var(--sc-glass-border) !important;
        color: #fff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        font-size: 0.82rem;
        box-sizing: border-box;
        box-shadow: var(--sc-glass-shadow) !important;
        font-family: var(--sc-font-body) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease !important;
        will-change: auto !important;
    }
    
    .mobile-oh-action-btn:active {
        background: rgba(255, 255, 255, 0.35) !important;
        transform: none !important;
    }
    
    .mobile-oh-btn-info {
        background: var(--sc-glass-blue) !important;
        border-color: var(--sc-glass-border) !important;
    }
    .mobile-oh-btn-sms {
        background: rgba(16, 185, 129, 0.72) !important;
        border-color: rgba(16, 185, 129, 0.95) !important;
    }
    .mobile-oh-btn-directions {
        background: rgba(14, 165, 233, 0.4) !important;
        border-color: rgba(14, 165, 233, 0.8) !important;
    }
    .mobile-oh-btn-hide {
        background: rgba(239, 68, 68, 0.35) !important;
        border-color: rgba(239, 68, 68, 0.85) !important;
    }
    
    /* COLLAPSED STATE UX */
    .tour-card.is-collapsed .mobile-oh-photo {
        height: 100px !important;
    }
    
    .tour-card.is-collapsed .mobile-oh-photo-info-center {
        top: 50% !important;
    }
    
    .tour-card.is-collapsed .mobile-oh-photo-title {
        font-size: 1.05rem !important;
    }
    
    .tour-card.is-collapsed .mobile-oh-photo-price {
        font-size: 0.95rem !important;
        margin-top: 3px !important;
    }
    
    /* Hero Time Chips placement, spacing, and pointer-events rules */
    .mobile-oh-photo-times-wrap {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin-top: 14px !important; /* 14px for premium breathing room under price */
        max-width: 100% !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 7 !important;
    }

    .mobile-oh-photo-times-wrap .mobile-oh-time-chip {
        pointer-events: auto !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    .mobile-oh-photo {
        position: relative !important;
    }

    .mobile-oh-time-row {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        z-index: 8 !important;
    }

    .mobile-oh-selected-top-left {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 9 !important;
        pointer-events: auto !important;
    }

    .grid-heading {
        font-family: var(--sc-font-body) !important;
        font-weight: 900 !important;
        font-size: 1.05rem !important;
        color: var(--sc-elite-white) !important;
        letter-spacing: -0.01em !important;
        margin: 16px 0 8px !important;
        text-align: left !important;
    }

    .stv-toast {
        background: var(--sc-tour-green) !important;
        font-family: var(--sc-font-body) !important;
    }

@media (max-width: 768px) {
  input.sc-map-search-input,
  .sc-map-search-location-pill input.sc-map-search-input,
  #filter-modal input,
  #filter-modal select,
  #filter-modal textarea,
  .filter-input,
  .stv-select {
    font-size: 16px !important;
    line-height: 20px !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  input.sc-map-search-input {
    min-height: 32px !important;
    transform: none !important;
    zoom: 1 !important;
  }
}

@media (min-width: 769px) {
  .tour-card > .tour-card-legacy-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .tour-card > .tour-card-legacy-inner > .tour-margin-strip {
    flex: 0 0 70px !important;
    width: 70px !important;
    display: flex !important;
  }

  .tour-card > .tour-card-legacy-inner > .tour-itinerary-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .tour-card > .tour-card-mobile-inner {
    display: none !important;
  }

  .open-top-btn {
    margin-top: -4px !important;
    margin-right: 4px !important;
  }
}

@media (min-width: 769px) {
  #steavy-tour-map {
    position: relative !important;
  }

  .grid-heading {
    color: var(--sc-elite-navy) !important;
  }

  #sc-map-preview-wrap.is-desktop-preview {
    position: absolute !important;
    width: 410px !important;
    max-width: 410px !important;
    z-index: 1002 !important;
    display: none !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  #sc-map-preview-wrap.is-desktop-preview.is-active {
    display: block !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .map-preview-card {
    display: block !important;
    width: 100% !important;
    max-width: 410px !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .tour-card-mobile-inner {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .tour-card-legacy-inner {
    display: none !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .mobile-oh-card {
    width: 100% !important;
    max-width: 410px !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .mobile-oh-photo {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .mobile-oh-info-bar {
    min-height: 64px !important;
    padding: 13px 15px !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .mobile-oh-chevron {
    display: none !important;
  }

  #sc-map-preview-wrap.is-desktop-preview .mobile-oh-actions {
    gap: 14px !important;
  }
}


            /* END CSS */
            