/* St. Louis Price Map — page-specific styles, scoped under .pricemap so they
   never leak into the shared review.css chrome (masthead/newsletter/footer).
   Palette matches the June-2026 redesign: brick / teal / gold on cream. */
.pricemap{
  --brick:#941800; --brick-deep:#6f1200; --teal:#1e526b; --teal-soft:#e7eef1;
  --gold:#f0b429; --cream:#f9f6f0; --paper:#fffdfa; --ink:#241c18;
  --ink-soft:#5c5048; --ink-faint:#8c8178; --line:#e7ded4;
  --cheap:#1a9850; --mid:#fee08b; --pricey:#d73027; --nodata:#cfc7bd;
  color:var(--ink); background:var(--cream); overflow-x:clip;   /* contain the full-bleed map stage */
}
.pricemap .wrap{max-width:1100px;margin:0 auto;padding:0 22px;}

/* hero — compact red band, white h1 (blurb + stat chips removed; stats live in the cards + side panel) */
.pricemap .pm-hero{background:var(--brick,#941800);
  color:#fff;padding:14px 0;border-bottom:5px solid var(--gold);}
/* !important: beats the global `h1{color:#941800}` in style.css — otherwise the
   title renders brick-on-brick (invisible). Hero bg is brick, so force white. */
.pricemap .pm-hero h1{color:#fff !important;font-family:"Lobster Two",cursive;font-size:2.2rem;margin:0;line-height:1.05;}

/* mode toggle — overlaid on the map (top-left). The old toolbar row + the ZIP
   search / near-me / reviewed-only / max-price controls were removed so the map
   sits higher and uses the full width. */
.pricemap .pm-seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;}
.pricemap .pm-seg button{border:0;background:#fff;padding:9px 16px;font-weight:700;
  font-size:14px;color:var(--ink-soft);cursor:pointer;}
.pricemap .pm-seg button.on{background:var(--brick);color:#fff;}
.pricemap .pm-mapcol .pm-seg{position:absolute;top:12px;left:12px;z-index:1001;
  box-shadow:0 2px 10px rgba(70,45,30,.22);}
/* The sticky masthead (review.css gives it z-index:60) must outrank the map
   overlays above (mode toggle 1001, legend / "as of" badge 1000) — otherwise the
   open mobile hamburger drawer renders BEHIND them. Bumped only here in maps.css
   (the map-page-only stylesheet, loaded after review.css), so review pages — whose
   full-screen lightbox legitimately sits over the header — are untouched. */
.masthead{z-index:1100;}
/* map + results split — real-estate style: map left, results right. Full-bleed:
   the stage spans the whole viewport width even though it lives inside .wrap
   (the article/standouts below stay readable-width). */
.pricemap .pm-stage{display:flex;gap:16px;align-items:stretch;height:min(80vh,820px);margin-top:6px;
  width:100vw;margin-left:calc(50% - 50vw);padding:0 clamp(12px,2.5vw,44px);box-sizing:border-box;}
.pricemap .pm-mapcol{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;position:relative;}
.pricemap #pm-map{flex:1 1 auto;min-height:0;border-radius:16px;border:1px solid var(--line);
  box-shadow:0 8px 28px rgba(70,45,30,.10);overflow:hidden;position:relative;z-index:1;}
@media(max-width:900px){
  .pricemap .pm-stage{flex-direction:column;height:auto;}
  .pricemap #pm-map{flex:none;height:58vh;}
}
@media(max-width:680px){
  .pricemap .pm-hero h1{font-size:1.9rem;}
  .pricemap .pm-seg button{padding:7px 10px;font-size:12px;}   /* keep the overlay toggle inside a narrow map */
}

/* legend — overlaid on the map, stacked just below the mode toggle (top-left) */
.pricemap .pm-legend{position:absolute;top:58px;left:12px;z-index:1000;max-width:min(320px,70%);
  display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;
  background:rgba(255,253,250,.95);border:1px solid var(--line);border-radius:10px;
  padding:8px 11px;font-size:12px;color:var(--ink-soft);box-shadow:0 2px 12px rgba(70,45,30,.18);}
.pricemap .pm-legend .sw{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-3px;margin-right:5px;border:1px solid rgba(0,0,0,.12);}
.pricemap .pm-legend .ramp{display:inline-flex;align-items:center;gap:0;}
.pricemap .pm-legend .ramp i{width:18px;height:12px;display:inline-block;}
/* small "as of" badge overlaid bottom-left of the map */
.pricemap .pm-mapnote{position:absolute;bottom:12px;left:12px;z-index:1000;
  background:rgba(36,28,24,.80);color:#fff;border-radius:8px;padding:4px 9px;
  font-size:11px;font-weight:600;letter-spacing:.02em;box-shadow:0 2px 8px rgba(0,0,0,.25);}

/* detail panel (zip + venue) */
.pricemap .pm-panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;
  padding:16px 20px;margin:14px 0;min-height:54px;}
.pricemap .pm-stage .pm-panel{flex:0 0 360px;max-width:38%;margin:0;overflow:auto;min-height:0;}
@media(max-width:900px){.pricemap .pm-stage .pm-panel{flex:none;max-width:none;width:auto;margin:14px 0 0;overflow:visible;}}
.pricemap .pm-panel h3{font-family:"Lobster Two",cursive;color:var(--brick);margin:0 0 6px;font-size:1.5rem;}
.pricemap .pm-panel .big{font-size:2rem;font-weight:800;color:var(--brick-deep);}
.pricemap .pm-panel .muted{color:var(--ink-faint);font-size:13px;}
.pricemap .pm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:8px;}
.pricemap .pm-grid div{background:var(--cream);border-radius:9px;padding:8px 12px;}
.pricemap .pm-grid b{display:block;font-size:1.15rem;}
.pricemap .pm-panel .pm-back{background:none;border:0;color:var(--teal);font-weight:700;cursor:pointer;padding:0;margin:0 0 8px;font-size:13px;}
.pricemap .pm-panel .pm-back:hover{text-decoration:underline;}

/* superlative banners */
.pricemap .pm-bigstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:26px 0;}
.pricemap .pm-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px 18px;border-left:5px solid var(--gold);}
.pricemap .pm-card .lbl{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-faint);}
.pricemap .pm-card .val{font-family:"Lobster Two",cursive;color:var(--brick);font-size:1.7rem;line-height:1.1;margin:2px 0;}
.pricemap .pm-card .sub{font-size:13px;color:var(--ink-soft);}

/* methodology / honesty note */
.pricemap .pm-note{background:#fff8e8;border-left:5px solid var(--gold);border-radius:0 12px 12px 0;
  padding:14px 18px;margin:22px 0;font-size:14px;color:var(--ink-soft);}
.pricemap .pm-note b{color:var(--brick);}
.pricemap .pm-section-h{font-family:"Lobster Two",cursive;color:var(--brick);font-size:2rem;margin:30px 0 4px;}

/* leaflet popups themed */
.pricemap .leaflet-popup-content-wrapper{border-radius:12px;}
.pm-pop b{color:var(--brick-deep);} .pm-pop .price{font-size:1.3rem;font-weight:800;color:var(--brick);}
.pm-pop .stars{color:#b8860b;font-weight:800;}
.pm-pop .src{display:inline-block;font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:.04em;background:var(--teal-soft);color:var(--teal);border-radius:5px;padding:1px 6px;margin-top:4px;}
.pm-pop a{color:var(--teal);font-weight:700;}

/* price-bubble pins (Zillow move) — divIcon centered on its point */
.pricemap .pm-pinx{background:none;border:0;}
.pricemap .pm-pinx .pm-bubble{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;
  font:800 12px/1 "Roboto",sans-serif;padding:3px 7px;border-radius:11px;border:2px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.32);cursor:pointer;transition:transform .08s ease;}
.pricemap .pm-pinx .pm-bubble.rev{box-shadow:0 0 0 2px var(--gold),0 1px 5px rgba(0,0,0,.4);}
.pricemap .pm-pinx .pm-bubble.hl,.pricemap .pm-pinx .pm-dot.hl{transform:translate(-50%,-50%) scale(1.22);z-index:1000;}
.pricemap .pm-pinx .pm-dot{position:absolute;transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%;
  background:#b9b1a6;border:1.5px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.3);cursor:pointer;}

/* filter bar */
.pricemap .pm-filters{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin:0 0 8px;font-size:13.5px;color:var(--ink-soft);}
.pricemap .pm-filters .pm-rng{display:flex;align-items:center;gap:8px;font-weight:600;}
.pricemap .pm-filters .pm-rng output{font-weight:800;color:var(--brick);min-width:52px;}
.pricemap .pm-filters input[type=range]{accent-color:var(--brick);width:150px;cursor:pointer;}
.pricemap .pm-filters .pm-chk{display:flex;align-items:center;gap:6px;font-weight:600;cursor:pointer;}
.pricemap .pm-filters input[type=checkbox]{accent-color:var(--brick);width:16px;height:16px;cursor:pointer;}

/* viewport-synced results list (Redfin loop) */
.pricemap .pm-listwrap{margin-top:12px;}
.pricemap .pm-listhead{font-size:13px;color:var(--ink-soft);margin:0 0 4px;border-top:1px solid var(--line);padding-top:9px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;}
.pricemap .pm-listhead b{color:var(--brick);font-size:15px;}
.pricemap .pm-sort{display:inline-flex;gap:4px;}
.pricemap .pm-sort button{border:1px solid var(--line);background:#fff;color:var(--ink-soft);font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;cursor:pointer;}
.pricemap .pm-sort button.on{background:var(--brick);color:#fff;border-color:var(--brick);}
.pricemap ul.pm-list{list-style:none;margin:0;padding:0;}
.pricemap ul.pm-list li{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;}
.pricemap ul.pm-list li:hover,.pricemap ul.pm-list li.rowhl{background:var(--teal-soft);}
.pricemap ul.pm-list li .nm{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;color:var(--ink);}
.pricemap ul.pm-list li .nm .rev{color:var(--gold);}
.pricemap ul.pm-list li .rt{flex:0 0 auto;font-size:12px;font-weight:700;color:#b8860b;font-variant-numeric:tabular-nums;}
.pricemap ul.pm-list li .rt.muted{color:var(--ink-faint);font-weight:600;}
.pricemap ul.pm-list li .pr{font-weight:800;color:var(--brick);font-variant-numeric:tabular-nums;}
.pricemap ul.pm-list li .zp{font-size:11px;color:var(--ink-faint);}
.pricemap ul.pm-list li a.zp{color:var(--teal);font-weight:700;}

/* ZIP report card — percentile + price-spread strip */
.pricemap .pm-rank{margin:2px 0 8px;font-size:13.5px;color:var(--ink-soft);}
.pricemap .pm-rank b{color:var(--brick);}
.pricemap .pm-spread{position:relative;height:12px;margin:12px 6px 2px;}
.pricemap .pm-spread .bar{position:absolute;top:5px;left:0;right:0;height:2px;background:var(--line);border-radius:2px;}
.pricemap .pm-spread .iqr{position:absolute;top:3px;height:6px;background:var(--teal-soft);border:1px solid var(--teal);border-radius:4px;}
.pricemap .pm-spread .dot.med{position:absolute;top:1px;width:10px;height:10px;border-radius:50%;background:var(--brick);border:2px solid #fff;transform:translateX(-50%);box-shadow:0 1px 3px rgba(0,0,0,.3);}
.pricemap .pm-spread-lab{display:flex;justify-content:space-between;font-size:11px;color:var(--ink-faint);font-variant-numeric:tabular-nums;margin-top:3px;}

/* ranked list rows (Yelp-style numbered "top list") + obvious cards on mobile */
.pricemap ul.pm-list li .rank{flex:0 0 auto;width:22px;height:22px;border-radius:50%;
  background:var(--teal-soft);color:var(--teal);font-weight:800;font-size:12px;
  display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;}
@media(max-width:900px){
  .pricemap ul.pm-list li{background:#fff;border:1px solid var(--line);border-radius:12px;
    box-shadow:0 1px 5px rgba(70,45,30,.07);padding:12px 14px;margin-bottom:10px;gap:12px;}
  .pricemap ul.pm-list li:hover,.pricemap ul.pm-list li.rowhl{background:#fff;border-color:var(--teal);}
  .pricemap ul.pm-list li .rank{width:28px;height:28px;font-size:14px;}
  .pricemap ul.pm-list li .nm{font-size:16px;white-space:normal;}
  .pricemap ul.pm-list li .pr{font-size:18px;}
  .pricemap .pm-listhead{font-size:14px;}
  .pricemap .pm-legend{font-size:11px;max-width:80%;}
}

/* ----- below-map analysis article ----- */
.pricemap .pm-article{max-width:820px;margin:34px auto 0;}
.pricemap .pm-article h3{color:var(--teal);font-family:"Newsreader",Georgia,serif;font-size:1.4rem;margin:28px 0 6px;}
.pricemap .pm-article p{font-size:1.02rem;line-height:1.66;color:var(--ink);margin:.6em 0;}
.pricemap .pm-article .pm-lead{font-size:1.12rem;line-height:1.6;}
.pricemap .pm-article a{color:var(--teal);font-weight:600;}
.pricemap .pm-fig{margin:20px 0;text-align:center;}
.pricemap .pm-fig img{max-width:100%;height:auto;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 22px rgba(70,45,30,.10);}
.pricemap .pm-fig figcaption{font-size:.85rem;color:var(--ink-faint);margin-top:8px;}
.pricemap .pm-bullets{margin:.6em 0;padding-left:1.2em;}
.pricemap .pm-bullets li{margin:.45em 0;line-height:1.56;color:var(--ink);}

/* Buy-me-a-taco + pricing-reports CTAs (monetization, added 2026-06-25) */
.pricemap .pm-tip{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:var(--paper);border:1px solid var(--line);border-left:6px solid var(--gold);
  border-radius:14px;padding:18px 22px;margin:22px auto;max-width:820px;
  box-shadow:0 6px 22px rgba(70,45,30,.08);}
.pricemap .pm-tip-reports{border-left-color:var(--teal);}
.pricemap .pm-tip-emoji{font-size:2.4rem;line-height:1;}
.pricemap .pm-tip-body{flex:1 1 320px;}
.pricemap .pm-tip-body h3{font-family:"Lobster Two",cursive;color:var(--brick);margin:0 0 4px;font-size:1.4rem;}
.pricemap .pm-tip-body em{font-style:italic;}
.pricemap .pm-tip-body p{margin:0;color:var(--ink-soft);font-size:.97rem;line-height:1.5;}
.pricemap .pm-tip-body a{color:var(--teal);font-weight:700;}
.pricemap .pm-tip-btn{white-space:nowrap;background:var(--gold);color:#3a2a00;font-weight:800;
  text-decoration:none;border-radius:11px;padding:13px 20px;transition:transform .06s ease,box-shadow .15s ease;
  box-shadow:0 4px 14px rgba(240,180,41,.4);}
.pricemap .pm-tip-btn:hover{transform:translateY(-1px);text-decoration:none;color:#3a2a00;box-shadow:0 6px 20px rgba(240,180,41,.55);}
.pricemap .pm-tip-btn-teal{background:var(--teal);color:#fff;box-shadow:0 4px 14px rgba(30,82,107,.32);}
.pricemap .pm-tip-btn-teal:hover{color:#fff;}
@media (max-width:560px){.pricemap .pm-tip-btn{width:100%;text-align:center;}}
