/* ============================================================
   OPEN HOUSES PAGE — open_houses.css
   Location: /graphics/css/open_houses.css
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:      #0d2d47;
    --secondary: #1E4D7A;
    --gold:      #b8934a;
    --charcoal:  #2c2c2c;
    --stone:     #d1cdc7;
    --stone-dk:  #888;
    --warm-wh:   #f7f5f2;
    --white:     #fff;
    --sans:      'Jost', sans-serif;
    --serif:     'Cormorant Garamond', Georgia, serif;
    --radius:    12px;
    --shadow:    0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
    --trans:     .18s ease;
}

body { font-family: var(--sans); background: var(--warm-wh); color: var(--charcoal); }

/* ── Hero ─────────────────────────────────────────────────── */
.oh-hero {
    background: linear-gradient(160deg, var(--navy) 0%, #1b4f72 100%);
    padding: 72px 24px 56px;
    text-align: center;
}
.oh-hero-inner  { max-width: 640px; margin: 0 auto; }
.oh-eyebrow     { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.oh-title       { font-family: var(--serif); font-size: clamp(34px, 5.5vw, 52px); font-weight: 300; color: #fff; line-height: 1.1; margin-bottom: 12px; }
.oh-title em    { color: var(--gold); font-style: italic; }
.oh-sub         { font-size: 14px; color: rgba(255,255,255,.65); }

/* ── Filter bar ──────────────────────────────────────────── */
.oh-filter-bar {
    background:   var(--white);
    border-bottom: 1px solid var(--stone);
    position:     sticky;
    top:          0;
    z-index:      100;
    box-shadow:   0 2px 12px rgba(0,0,0,.06);
}
.oh-filter-inner {
    max-width:    1200px;
    margin:       0 auto;
    padding:      12px 24px;
    display:      flex;
    align-items:  center;
    gap:          20px;
    flex-wrap:    wrap;
}
.oh-filter-group        { display: flex; flex-direction: column; gap: 4px; }
.oh-filter-label        { font-size: 9px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--stone-dk); }
.oh-filter-sel {
    padding:       6px 10px;
    border:        1px solid var(--stone);
    border-radius: 6px;
    font-size:     13px;
    font-family:   var(--sans);
    color:         var(--charcoal);
    background:    var(--warm-wh);
    cursor:        pointer;
    min-width:     130px;
    transition:    border-color var(--trans);
}
.oh-filter-sel:focus    { outline: none; border-color: var(--secondary); }

/* Pill row */
.oh-pill-row            { display: flex; gap: 5px; }
.oh-pill {
    padding:       5px 12px;
    border:        1px solid var(--stone);
    border-radius: 99px;
    font-size:     12px;
    font-family:   var(--sans);
    background:    var(--white);
    color:         var(--stone-dk);
    cursor:        pointer;
    transition:    all var(--trans);
}
.oh-pill:hover          { border-color: var(--secondary); color: var(--secondary); }
.oh-pill.active         { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* Actions */
.oh-filter-actions      { flex-direction: row; align-items: center; gap: 10px; margin-left: auto; }
.oh-filter-count        { font-size: 12px; color: var(--stone-dk); white-space: nowrap; }
.oh-clear-btn {
    padding:       6px 14px;
    border:        1px solid var(--stone);
    border-radius: 6px;
    font-size:     12px;
    font-family:   var(--sans);
    background:    var(--white);
    color:         var(--stone-dk);
    cursor:        pointer;
    transition:    all var(--trans);
}
.oh-clear-btn:hover     { border-color: var(--charcoal); color: var(--charcoal); }
.oh-clear-big           { padding: 10px 24px; font-size: 13px; margin-top: 16px; }

/* ── View toggle ─────────────────────────────────────────── */
.oh-view-toggle {
    display:        flex;
    justify-content:flex-end;
    gap:            6px;
    max-width:      1200px;
    margin:         16px auto 0;
    padding:        0 24px;
}
.oh-view-btn {
    display:        inline-flex;
    align-items:    center;
    gap:            6px;
    padding:        8px 16px;
    border:         1px solid var(--stone);
    border-radius:  6px;
    font-size:      12px;
    font-weight:    500;
    font-family:    var(--sans);
    background:     var(--white);
    color:          var(--stone-dk);
    cursor:         pointer;
    transition:     all var(--trans);
}
.oh-view-btn:hover      { border-color: var(--secondary); color: var(--secondary); }
.oh-view-btn.active     { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.oh-view-btn.active svg { stroke: #fff; }

/* ── Map canvas ──────────────────────────────────────────── */
#oh-map-canvas {
    width:          100%;
    height:         520px;
    margin-top:     12px;
}

/* ── Page wrap / grid ────────────────────────────────────── */
.oh-page-wrap   { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; }

.oh-day-block   { margin-bottom: 44px; }
.oh-day-label {
    display:        flex;
    align-items:    center;
    gap:            10px;
    font-family:    var(--serif);
    font-size:      26px;
    font-weight:    400;
    color:          var(--navy);
    padding-bottom: 14px;
    border-bottom:  2px solid var(--secondary);
    margin-bottom:  20px;
}
.oh-day-count {
    font-family:    var(--sans);
    font-size:      11px;
    font-weight:    600;
    background:     var(--secondary);
    color:          #fff;
    padding:        2px 9px;
    border-radius:  99px;
}

.oh-grid {
    display:        grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap:            22px;
}

/* ── Card ────────────────────────────────────────────────── */
.oh-card {
    background:     var(--white);
    border-radius:  var(--radius);
    overflow:       hidden;
    border:         1px solid var(--stone);
    box-shadow:     var(--shadow);
    display:        flex;
    flex-direction: column;
    transition:     box-shadow var(--trans), transform var(--trans);
}
.oh-card:hover          { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.oh-photo-link          { display: block; position: relative; text-decoration: none; }
.oh-photo {
    width: 100%; height: 196px;
    background: var(--navy) center/cover no-repeat;
}
.oh-photo-ph {
    display:        flex;
    align-items:    center;
    justify-content:center;
    color:          rgba(255,255,255,.25);
}
.oh-type-badge {
    position:       absolute;
    top:            12px; left: 12px;
    font-size:      9px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
    background:     var(--secondary); color: #fff;
    padding:        4px 10px; border-radius: 99px;
}

.oh-card-body           { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.oh-time-row            { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--secondary); margin-bottom: 5px; }
.oh-price               { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--navy); line-height: 1; }
.oh-addr                { font-size: 13px; font-weight: 500; color: var(--charcoal); margin-top: 3px; }
.oh-city                { font-size: 11px; color: var(--stone-dk); }
.oh-meta                { display: flex; gap: 10px; font-size: 11px; color: var(--charcoal); margin-top: 6px; padding-top: 8px; border-top: 1px solid #f0ede9; flex-wrap: wrap; }
.oh-meta span + span::before { content: '·'; margin-right: 10px; color: var(--stone); }
.oh-remarks             { font-size: 11px; color: var(--stone-dk); line-height: 1.5; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.oh-view-btn {
    display:        inline-flex;
    align-items:    center;
    gap:            5px;
    margin-top:     auto;
    padding-top:    12px;
    font-size:      11px;
    font-weight:    600;
    color:          var(--secondary);
    text-decoration:none;
    letter-spacing: .04em;
    transition:     gap var(--trans);
    border:         none;
    background:     none;
    cursor:         pointer;
    font-family:    var(--sans);
}
.oh-view-btn:hover      { gap: 8px; }

/* ── No results ──────────────────────────────────────────── */
.oh-no-results {
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    padding:        60px 24px;
    gap:            12px;
    color:          var(--stone-dk);
}
.oh-no-results svg      { opacity: .25; }
.oh-no-results h3       { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--charcoal); }
.oh-no-results p        { font-size: 13px; max-width: 320px; line-height: 1.6; }

/* ── Empty state ─────────────────────────────────────────── */
.oh-empty               { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 24px; gap: 16px; color: var(--stone-dk); }
.oh-empty svg           { opacity: .25; }
.oh-empty h2            { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--charcoal); }
.oh-empty p             { font-size: 13px; max-width: 360px; line-height: 1.6; }
.oh-empty a             { color: var(--secondary); text-decoration: none; font-weight: 500; }

/* ── Mapbox popup ────────────────────────────────────────── */
.mpop                   { font-family: var(--sans); }
.mpop-price             { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--navy); margin-bottom: 3px; }
.mpop-addr              { font-size: 12px; font-weight: 500; color: var(--charcoal); margin-bottom: 1px; }
.mpop-city              { font-size: 11px; color: var(--stone-dk); margin-bottom: 4px; }
.mpop-meta              { font-size: 11px; color: var(--stone-dk); margin-bottom: 8px; }
.mpop-btn               { display: inline-block; background: var(--secondary); color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; transition: background var(--trans); }
.mpop-btn:hover         { background: #163a5c; }

/* ── Card actions row ────────────────────────────────────────── */
.oh-card-actions {
    display:        flex;
    align-items:    center;
    justify-content:space-between;
    gap:            8px;
    margin-top:     auto;
    padding-top:    12px;
    flex-wrap:      wrap;
}

.oh-tour-btn {
    display:        inline-flex;
    align-items:    center;
    padding:        7px 14px;
    background:     var(--navy);
    color:          #fff;
    border-radius:  99px;
    font-size:      11px;
    font-weight:    600;
    font-family:    var(--sans);
    text-decoration:none;
    letter-spacing: .04em;
    transition:     background var(--trans), transform var(--trans);
    white-space:    nowrap;
}
.oh-tour-btn:hover {
    background:     var(--secondary);
    transform:      translateY(-1px);
}

/* ── CTA strip ───────────────────────────────────────────── */
.oh-cta-strip           { background: var(--navy); padding: 40px 24px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.oh-cta-strip p         { font-size: 15px; color: rgba(255,255,255,.75); }
.oh-cta-btn             { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 99px; font-size: 13px; font-weight: 500; font-family: var(--sans); background: var(--gold); color: #fff; text-decoration: none; transition: background var(--trans); }
.oh-cta-btn:hover       { background: #a07a38; }
.oh-cta-secondary       { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.oh-cta-secondary:hover { background: rgba(255,255,255,.22); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .oh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .oh-grid { grid-template-columns: 1fr; }
    .oh-filter-inner { gap: 12px; }
    .oh-filter-actions { margin-left: 0; width: 100%; justify-content: space-between; }
    .oh-view-toggle { justify-content: flex-start; }
    #oh-map-canvas { height: 380px; }
}
