/* ================================================================
   SEARCH RESULTS PAGE — PAGE-SPECIFIC STYLES
   Location: /home/kitchenbrand/public_html/T-Belle/styles/search_results.css

   Requires global.css first.
   --panel-w (300px) is declared inline in the page <head> so it
   can be overridden per breakpoint via the responsive :root blocks.

   Variable map (old → new):
     --blue / --blue-lt  → var(--secondary) / var(--secondary-light) [global]
     --blue-dk           → page token (darkest secondary)
     --gold / --gold-lt  → var(--accent) / var(--accent-light)       [global]
     --char              → var(--charcoal)                            [global]
     --snow              → var(--warm-white)                          [global]
     --pine/snow-dk/
       stone/stone-dk    → page tokens
     --r-md/lg/xl        → page tokens (tighter than global)
     --shadow-card/lift  → var(--shadow-card/lift)                   [global]
     --trans             → var(--trans)                              [global]
     DM Sans             → var(--sans) = Jost                        [global]
================================================================ */


/* ================================================================
   PAGE-SPECIFIC TOKENS
================================================================ */
:root {
    /* ── Blue family ────────────────────────────────────────── */
    --blue-dk:  #123550;

    /* ── IDX neutrals ───────────────────────────────────────── */
    --pine:     #1D4032;
    --snow-dk:  #EEE9E1;
    --stone:    #D6D0C4;
    --stone-dk: #9A9488;

    /* ── Tighter radius for dense UI ────────────────────────── */
    --r-lg-idx: 14px;
    --r-xl-idx: 20px;
}


/* ================================================================
   BODY
================================================================ */
body {
    background:  var(--warm-white);
    color:       var(--charcoal);
    overflow-x:  hidden;
}


/* ================================================================
   RESULTS BAR  (breadcrumb + count strip below header)
================================================================ */
.results-bar        { background: var(--white); border-bottom: 1px solid var(--stone); padding: 14px 32px; }
.results-bar-inner  { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.breadcrumb         { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--stone-dk); }
.breadcrumb a       { color: var(--secondary); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--secondary-light); }
.breadcrumb .sep    { opacity: .5; }
.breadcrumb .current { color: var(--charcoal); font-weight: 500; }
.result-count        { font-size: 13px; color: var(--stone-dk); }
.result-count strong { color: var(--charcoal); font-weight: 500; }


/* ================================================================
   MAIN LAYOUT — sidebar + results panel
================================================================ */
.results-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: var(--panel-w) 1fr; gap: 0; align-items: start; }


/* ================================================================
   FILTER SIDEBAR
================================================================ */
.filter-sidebar {
    padding:    24px 20px 24px 32px;
    position:   sticky;
    top:        calc(var(--header-h) + 1px);
    max-height: calc(100vh - var(--header-h) - 1px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--stone) transparent;
    border-right: 1px solid var(--stone);
    background: var(--white);
}
.filter-sidebar::-webkit-scrollbar       { width: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }

.sidebar-title { font-family: var(--serif); font-size: 20px; font-weight: 300; color: var(--charcoal); margin-bottom: 18px; }

/* Filter cards */
.fcard           { background: var(--warm-white); border-radius: var(--r-lg-idx); border: 1px solid var(--stone); overflow: hidden; margin-bottom: 10px; }
.fcard-head      { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color var(--trans); user-select: none; }
.fcard.open .fcard-head { border-bottom-color: var(--stone); }
.fcard-title     { font-size: 11px; font-weight: 500; letter-spacing: .10em; text-transform: uppercase; color: var(--secondary); }
.fcard-chev      { color: var(--stone-dk); transition: transform var(--trans); }
.fcard.open .fcard-chev { transform: rotate(180deg); }
.fcard-body      { display: none; padding: 14px 16px; }
.fcard.open .fcard-body { display: block; }

/* Sidebar form elements */
.flbl  { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 6px; display: block; }
.fsel {
    width:        100%;
    padding:      9px 28px 9px 10px;
    border:       1px solid var(--stone);
    border-radius: var(--radius-md);
    font-size:    12px;
    color:        var(--charcoal);
    background:   var(--white);
    appearance:   none;
    -webkit-appearance: none;
    background-image:    url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239A9488'/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 10px center;
    font-family:  var(--sans);
    transition:   border-color var(--trans);
}
.fsel:focus    { outline: none; border-color: var(--secondary); }
.price-pair    { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: end; }
.price-sep     { font-size: 11px; color: var(--stone-dk); padding-bottom: 10px; text-align: center; }

/* Steppers */
.step-row             { display: flex; gap: 4px; margin-bottom: 12px; }
.step-row:last-child  { margin-bottom: 0; }
.sbtn {
    flex:          1;
    padding:       7px 4px;
    border:        1px solid var(--stone);
    border-radius: var(--radius-md);
    font-size:     11px;
    font-weight:   500;
    color:         var(--stone-dk);
    background:    var(--white);
    text-align:    center;
    font-family:   var(--sans);
    cursor:        pointer;
    transition:    all var(--trans);
}
.sbtn:hover  { border-color: var(--secondary); color: var(--secondary); }
.sbtn.active { background: var(--secondary); border-color: var(--secondary); color: var(--white); }

/* Filter action buttons */
.filter-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.btn-apply {
    width:         100%;
    padding:       13px;
    background:    var(--accent);
    color:         var(--white);
    border:        none;
    border-radius: var(--r-lg-idx);
    font-size:     13px;
    font-weight:   500;
    font-family:   var(--sans);
    display:       flex;
    align-items:   center;
    justify-content: center;
    gap:           7px;
    cursor:        pointer;
    transition:    background var(--trans), transform var(--trans);
}
.btn-apply:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-clear {
    width:         100%;
    padding:       10px;
    background:    transparent;
    color:         var(--stone-dk);
    border:        1px solid var(--stone);
    border-radius: var(--r-lg-idx);
    font-size:     12px;
    font-family:   var(--sans);
    cursor:        pointer;
    transition:    all var(--trans);
}
.btn-clear:hover { border-color: var(--stone-dk); color: var(--charcoal); }


/* ================================================================
   RESULTS PANEL
================================================================ */
.results-panel { padding: 24px 32px 60px; min-height: calc(100vh - var(--header-h)); }

/* Save search button */
.btn-save-search {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    padding:     7px 13px;
    background:  transparent;
    color:       var(--secondary);
    border:      1px solid var(--secondary);
    border-radius: var(--radius-md);
    font-size:   12px;
    font-weight: 500;
    font-family: var(--sans);
    cursor:      pointer;
    transition:  all var(--trans);
    white-space: nowrap;
}
.btn-save-search:hover  { background: rgba(30,77,122,.06); }
.btn-save-search.saved  { color: var(--pine); border-color: var(--pine); background: rgba(29,64,50,.06); }

/* Toolbar */
.toolbar       { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-summary          { font-size: 13px; color: var(--stone-dk); }
.result-summary strong   { color: var(--charcoal); font-weight: 500; }
.active-chips  { display: flex; flex-wrap: wrap; gap: 6px; }
.chip          { display: inline-flex; align-items: center; gap: 4px; background: rgba(30,77,122,.08); border: 1px solid rgba(30,77,122,.18); color: var(--secondary); font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.chip a        { font-size: 12px; color: var(--secondary); opacity: .65; text-decoration: none; line-height: 1; }
.chip a:hover  { opacity: 1; }

.toolbar-right { display: flex; align-items: center; gap: 8px; }
.sort-sel {
    padding:      8px 28px 8px 10px;
    border:       1px solid var(--stone);
    border-radius: var(--radius-md);
    font-size:    12px;
    color:        var(--charcoal);
    background:   var(--white);
    appearance:   none;
    -webkit-appearance: none;
    background-image:    url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239A9488'/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 8px center;
    font-family:  var(--sans);
    cursor:       pointer;
    transition:   border-color var(--trans);
}
.sort-sel:focus { outline: none; border-color: var(--secondary); }

/* View toggle buttons */
.view-btns      { display: flex; gap: 3px; }
.vbtn           { width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--stone); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--stone-dk); cursor: pointer; transition: all var(--trans); }
.vbtn:hover     { border-color: var(--secondary); color: var(--secondary); }
.vbtn.active    { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.vbtn-map       { width: auto; padding: 0 10px; gap: 5px; font-size: 11px; font-weight: 500; }


/* ================================================================
   LISTING GRID + CARDS
================================================================ */
.pgrid               { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pgrid.list-view     { grid-template-columns: 1fr; }

.pcard {
    background:    var(--white);
    border-radius: var(--r-xl-idx);
    border:        1px solid var(--stone);
    box-shadow:    var(--shadow-card);
    overflow:      hidden;
    display:       flex;
    flex-direction: column;
    transition:    transform var(--trans), box-shadow var(--trans);
}
.pcard:hover           { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cimg                  { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #2a3540; flex-shrink: 0; }
.cimg img              { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .cimg img { transform: scale(1.04); }
.cph                   { width: 100%; height: 100%; background: linear-gradient(148deg, #0d2d47, #1b4f72); }

/* Badges */
.cbadge         { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--white); }
.cbadge.new     { background: var(--accent); }
.cbadge.reduced { background: var(--pine); }

/* Save heart */
.csave {
    position:        absolute;
    top:             8px;
    right:           8px;
    width:           30px;
    height:          30px;
    border-radius:   50%;
    background:      rgba(255,255,255,.88);
    border:          none;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       13px;
    cursor:          pointer;
    transition:      all var(--trans);
}
.csave:hover  { background: var(--white); transform: scale(1.1); }
.csave.saved  { color: var(--accent); }

/* Card body */
.cbody   { padding: 15px 16px 17px; flex: 1; display: flex; flex-direction: column; }
.cprice  { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--secondary); line-height: 1; margin-bottom: 2px; }
.carea   { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 6px; }
.caddr   { font-size: 13px; font-weight: 500; color: var(--charcoal); margin-bottom: 4px; }
.cdesc   { font-size: 11px; color: var(--stone-dk); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; flex: 1; }
.cmeta   { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--warm-white); border-bottom: 1px solid var(--warm-white); margin-bottom: 11px; flex-wrap: wrap; }
.cm      { display: flex; align-items: center; gap: 3px; }
.cm-ic   { color: var(--stone-dk); flex-shrink: 0; }
.cm-v    { font-size: 12px; font-weight: 500; color: var(--charcoal); }
.cm-l    { font-size: 10px; color: var(--stone-dk); }
.cact    { display: flex; gap: 7px; }
.cbtn    { flex: 1; padding: 8px; border-radius: var(--radius-md); font-size: 11px; font-weight: 500; text-align: center; border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans); font-family: var(--sans); }
.cbtn-p  { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.cbtn-p:hover { background: var(--secondary-light); }
.cbtn-s  { background: var(--white); color: var(--secondary); border-color: var(--stone); }
.cbtn-s:hover { border-color: var(--secondary); }

/* List view overrides */
.pgrid.list-view .pcard         { flex-direction: row; }
.pgrid.list-view .cimg          { aspect-ratio: unset; width: 220px; min-height: 160px; flex-shrink: 0; }
.pgrid.list-view .cbody         { padding: 14px 16px; }
.pgrid.list-view .cdesc         { -webkit-line-clamp: 3; }

/* No results state */
.no-results          { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
.no-results h3       { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--charcoal); margin-bottom: 8px; }
.no-results p        { font-size: 14px; color: var(--stone-dk); margin-bottom: 20px; }
.no-results a        { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; background: var(--secondary); color: var(--white); border-radius: var(--r-lg-idx); font-size: 13px; font-weight: 500; transition: background var(--trans); }
.no-results a:hover  { background: var(--secondary-light); }

/* ── New listings banner ─────────────── */
.new-listings-banner {
    display:        flex;
    align-items:    center;
    gap:            8px;
    background:     rgba(29,64,50,.08);
    border:         1px solid rgba(29,64,50,.20);
    border-radius:  8px;
    padding:        10px 16px;
    font-size:      13px;
    color:          #1d4032;
    margin-bottom:  16px;
    flex-wrap:      wrap;
}
.new-listings-banner svg { stroke: #1d4032; flex-shrink: 0; }
.new-listings-banner a   { color: #1d4032; font-weight: 600; }
.new-listings-banner a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .quick-actions { padding: 12px 16px 0; }
    .btn-quick     { font-size: 12px; padding: 8px 14px; }
}

/* ================================================================
   PAGINATION
================================================================ */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--stone); }
.per-page        { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--stone-dk); }
.per-page select {
    padding:      5px 22px 5px 8px;
    border:       1px solid var(--stone);
    border-radius: var(--radius-md);
    font-size:    12px;
    color:        var(--charcoal);
    background:   var(--white);
    appearance:   none;
    -webkit-appearance: none;
    background-image:    url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239A9488'/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 6px center;
    cursor:       pointer;
    font-family:  var(--sans);
}
.pagination    { display: flex; gap: 4px; }
.pgbtn         { width: 34px; height: 34px; border-radius: var(--radius-md); border: 1px solid var(--stone); background: var(--white); font-size: 12px; color: var(--charcoal); display: flex; align-items: center; justify-content: center; transition: all var(--trans); text-decoration: none; font-family: var(--sans); }
.pgbtn:hover   { border-color: var(--secondary); color: var(--secondary); }
.pgbtn.active  { background: var(--secondary); border-color: var(--secondary); color: var(--white); font-weight: 500; }
.pgbtn.disabled { opacity: .35; pointer-events: none; }
.pg-ellipsis   { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--stone-dk); font-size: 12px; }


/* ================================================================
   MAP VIEW
================================================================ */
body.map-active                    { overflow: hidden; }
body.map-active .results-layout    { display: none; }
body.map-active footer             { display: none; }
body.map-active .idx               { display: none; }
body.map-active #live-chat         { display: none; }
body.map-active #mob-filter-btn    { display: none !important; }

#map-view {
    display:        none;
    position:       fixed;
    top:            calc(var(--header-h) + 50px); /* 50px = results-bar height */
    left:           0;
    right:          0;
    bottom:         0;
    z-index:        20;
    flex-direction: row;
}
body.map-active #map-view { display: flex; }

#map-cards { width: 380px; flex-shrink: 0; height: 100%; overflow-y: auto; background: var(--warm-white); border-right: 1px solid var(--stone); display: flex; flex-direction: column; }
.map-toolbar { padding: 12px 14px; background: var(--white); border-bottom: 1px solid var(--stone); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; position: sticky; top: 0; z-index: 5; }
.map-toolbar-count         { font-size: 12px; color: var(--stone-dk); }
.map-toolbar-count strong  { color: var(--charcoal); }
.map-filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; background: var(--secondary); color: var(--white); border-radius: var(--radius-md); font-size: 11px; font-weight: 500; border: none; cursor: pointer; font-family: var(--sans); transition: background var(--trans); }
.map-filter-btn:hover { background: var(--secondary-light); }
.map-card-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

/* Map sidebar cards */
.mcard { background: var(--white); border-radius: var(--r-lg-idx); border: 1px solid var(--stone); display: flex; overflow: hidden; cursor: pointer; transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans); }
.mcard:hover, .mcard.active { border-color: var(--secondary); box-shadow: 0 2px 14px rgba(30,77,122,.16); transform: translateY(-1px); }
.mcard.active   { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mcard-img      { width: 100px; flex-shrink: 0; position: relative; overflow: hidden; background: #2a3540; }
.mcard-img img  { width: 100%; height: 100%; object-fit: cover; }
.mcard-ph       { width: 100%; min-height: 88px; background: linear-gradient(135deg, #0d2d47, #1b4f72); }
.mcard-body     { padding: 10px 12px; flex: 1; min-width: 0; }
.mcard-price    { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--secondary); line-height: 1; margin-bottom: 2px; }
.mcard-addr     { font-size: 11px; font-weight: 500; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.mcard-city     { font-size: 10px; color: var(--stone-dk); margin-bottom: 6px; }
.mcard-meta     { display: flex; gap: 8px; font-size: 10px; color: var(--stone-dk); }
.mcard-link     { display: block; margin-top: 6px; font-size: 10px; color: var(--secondary); font-weight: 500; }

#map-canvas { flex: 1; width: 0; height: 100%; }

/* Mapbox popup */
.mapboxgl-popup-content  { padding: 0; border-radius: 12px; box-shadow: var(--shadow-lift); border: none; overflow: hidden; font-family: var(--sans); max-width: 230px; }
.mpop           { padding: 13px 15px; }
.mpop-price     { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--secondary); margin-bottom: 2px; }
.mpop-addr      { font-size: 11px; font-weight: 500; color: var(--charcoal); margin-bottom: 1px; line-height: 1.35; }
.mpop-city      { font-size: 10px; color: var(--stone-dk); margin-bottom: 5px; }
.mpop-meta      { font-size: 10px; color: var(--stone-dk); margin-bottom: 10px; }
.mpop-btn       { display: block; width: 100%; padding: 8px; background: var(--secondary); color: var(--white); border: none; border-radius: 8px; font-size: 11px; font-weight: 500; text-align: center; text-decoration: none; transition: background var(--trans); }
.mpop-btn:hover { background: var(--secondary-light); }
.mapboxgl-popup-close-button { font-size: 16px; padding: 5px 8px; color: var(--stone-dk); }

/* Mobile map bottom sheet */
#mob-map-sheet          { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--white); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.18); max-height: 60vh; overflow-y: auto; }
#mob-map-sheet.open     { display: block; }
.sheet-handle           { width: 36px; height: 3px; background: var(--stone); border-radius: 2px; margin: 10px auto 14px; }
.sheet-head             { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 12px; }
.sheet-head h4          { font-family: var(--serif); font-size: 18px; font-weight: 300; }

/* Mobile map back button */
#mob-map-back {
    display:       none;
    position:      fixed;
    top:           calc(var(--header-h) + 62px);
    left:          50%;
    transform:     translateX(-50%);
    z-index:       30;
    background:    var(--white);
    border:        1px solid var(--stone);
    border-radius: 999px;
    padding:       9px 20px;
    font-size:     13px;
    font-weight:   500;
    font-family:   var(--sans);
    color:         var(--charcoal);
    box-shadow:    0 2px 16px rgba(0,0,0,.20);
    white-space:   nowrap;
    cursor:        pointer;
    align-items:   center;
    gap:           7px;
    transition:    box-shadow var(--trans), border-color var(--trans);
}
#mob-map-back:hover { border-color: var(--secondary); color: var(--secondary); }


/* ================================================================
   MOBILE FILTER DRAWER
================================================================ */
#mob-filter-btn {
    display:       none;
    position:      fixed;
    bottom:        24px;
    left:          50%;
    transform:     translateX(-50%);
    z-index:       800;
    background:    var(--secondary);
    color:         var(--white);
    border:        none;
    border-radius: 999px;
    padding:       12px 24px;
    font-size:     13px;
    font-weight:   500;
    font-family:   var(--sans);
    box-shadow:    0 4px 20px rgba(30,77,122,.40);
    align-items:   center;
    gap:           7px;
    white-space:   nowrap;
    cursor:        pointer;
    transition:    background var(--trans);
}
#mob-filter-btn:hover       { background: var(--secondary-light); }
#mob-filter-drawer          { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(10,18,26,.65); }
#mob-filter-drawer .di      { position: absolute; bottom: 0; left: 0; right: 0; background: var(--white); border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; padding: 18px 22px 36px; transform: translateY(100%); transition: transform 0.35s cubic-bezier(.4,0,.2,1); }
#mob-filter-drawer.open     { display: flex; align-items: flex-end; }
#mob-filter-drawer.open .di { transform: translateY(0); }
.dhandle   { width: 36px; height: 3px; background: var(--stone); border-radius: 2px; margin: 0 auto 18px; }
.mob-flbl  { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 7px; display: block; }


/* ================================================================
   LIVE CHAT
================================================================ */
#live-chat {
    position:        fixed;
    bottom:          28px;
    right:           28px;
    z-index:         900;
    width:           50px;
    height:          50px;
    border-radius:   50%;
    background:      var(--accent);
    color:           var(--white);
    border:          none;
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 4px 20px rgba(200,146,58,.45);
    cursor:          pointer;
    transition:      transform var(--trans), box-shadow var(--trans);
}
#live-chat:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(200,146,58,.55); }
.chat-tip {
    position:       absolute;
    right:          62px;
    top:            50%;
    transform:      translateY(-50%);
    background:     var(--charcoal);
    color:          var(--white);
    font-size:      11px;
    white-space:    nowrap;
    padding:        5px 10px;
    border-radius:  4px;
    pointer-events: none;
    opacity:        0;
    transition:     opacity var(--trans);
}
#live-chat:hover .chat-tip { opacity: 1; }


/* ================================================================
   IDX COMPLIANCE NOTICE
================================================================ */
.idx          { background: var(--warm-white); border-top: 1px solid var(--stone); padding: 16px 32px; font-size: 11px; color: var(--stone-dk); line-height: 1.7; }
.idx strong   { color: var(--charcoal); }


/* ================================================================
   FOOTER
================================================================ */
footer    { background: var(--charcoal); padding: 48px 32px 24px; }
.fi       { max-width: 1400px; margin: 0 auto; }
.ft       { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.10); }
.fb .logo-main { color: var(--white); font-size: 24px; margin-bottom: 4px; font-family: var(--serif); }
.fb .logo-sub  { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.fb p          { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.42); line-height: 1.7; max-width: 240px; }
.fc h4         { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 14px; }
.fc ul         { list-style: none; }
.fc li         { margin-bottom: 10px; }
.fc a          { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--trans); }
.fc a:hover    { color: var(--white); }
.fb2           { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.fb2 p         { font-size: 11px; color: rgba(255,255,255,.24); }


/* ── Section wrapper ─────────────────────────────────────────── */
.lifestyle-section {
    padding:       20px 0 4px;
    border-top:    1px solid var(--border);
    margin-top:    8px;
}
.lifestyle-section .col-lbl {
    font-size:      10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color:          var(--muted);
    font-weight:    500;
    margin-bottom:  14px;
}

/* ── Grid of feature groups ──────────────────────────────────── */
.lifestyle-grid {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
    gap:                   20px 32px;
}

/* ── Individual group ────────────────────────────────────────── */
.ls-group { }
.ls-group-label {
    font-size:      11px;
    font-weight:    500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color:          var(--charcoal);
    margin-bottom:  8px;
}

/* ── Toggle pill checkboxes ──────────────────────────────────── */
.ls-pills {
    display:   flex;
    flex-wrap: wrap;
    gap:       6px;
}
.ls-pill {
    display: inline-flex;
    cursor:  pointer;
}
.ls-pill input[type="checkbox"] {
    /* Visually hidden — the <span> shows the state */
    position: absolute;
    opacity:  0;
    width:    0;
    height:   0;
    margin:   0;
}
.ls-pill span {
    display:        inline-flex;
    align-items:    center;
    gap:            5px;
    padding:        6px 12px;
    border:         1.5px solid var(--border);
    border-radius:  999px;
    font-size:      12px;
    font-family:    var(--sans);
    color:          var(--charcoal);
    background:     var(--white);
    transition:     border-color 0.15s, background 0.15s, color 0.15s;
    user-select:    none;
    white-space:    nowrap;
}
.ls-pill:hover span {
    border-color: var(--main);
    color:        var(--main-dark);
}
.ls-pill input:checked + span {
    background:   var(--main);
    color:        var(--white);
    border-color: var(--main);
}

/* ── Quick action lifestyle shortcuts ────────────────────────── */
.btn-quick {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    white-space: nowrap;
}
.btn-quick svg { flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
    .lifestyle-grid { grid-template-columns: 1fr; gap: 16px; }
    .ls-pills       { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .lifestyle-grid { grid-template-columns: 1fr; }
    .ls-pill span   { font-size: 11px; padding: 5px 10px; }
}

/*  Lifestyle filter cards in sidebar  */
.ls-check-list {
    display:        flex;
    flex-direction: column;
    gap:            4px;
}
.ls-check-list .ck-item {
    font-size: 13px;
    padding:   3px 0;
}


/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) { :root { --panel-w: 260px; } }

@media (max-width: 760px) {
    .results-layout             { grid-template-columns: 1fr; }
    .filter-sidebar             { display: none; }
    #mob-filter-btn             { display: inline-flex; }
    .pgrid                      { grid-template-columns: repeat(2,1fr); }
    .pgrid.list-view .pcard     { flex-direction: column; }
    .pgrid.list-view .cimg      { width: 100%; min-height: unset; aspect-ratio: 16/10; }
    #map-cards                  { display: none; }
    #mob-map-sheet              { display: none; }
    .ft                         { grid-template-columns: 1fr; gap: 28px; }
    .fb2                        { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    body.map-active #mob-map-back { display: inline-flex; }
}

@media (max-width: 640px) {
    .results-bar                { padding: 12px 18px; }
    .results-panel              { padding: 18px 18px 60px; }
    .pgrid                      { grid-template-columns: 1fr; }
    footer                      { padding: 40px 18px 20px; }
}
