/* ════════════════════════════════════════════════════════════════════════════
   My Places — redesign preview · shared design system
   Preserves the existing editorial identity: cream paper, deep forest green,
   burnt-orange accents, elegant serif typography. No blue, no dashboard chrome.
   Mobile-first; desktop is the same system with room to breathe.
   ════════════════════════════════════════════════════════════════════════════ */

:root{
  --paper:#f5f0e7;
  --paper-2:#efe8dc;
  --card:#fffdf8;
  --ink:#17322d;
  --forest:#1d4a3f;
  --forest-soft:#2c6b5b;
  --orange:#c2551f;
  --orange-soft:#e8a06a;
  --gold:#9c741d;
  --muted:#6b7a74;
  --line:#ddd6c8;
  --line-strong:#c9c0ae;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(23,50,45,.06), 0 8px 24px -18px rgba(23,50,45,.35);
  --header-h:56px;
  --nav-h:60px;
  --maxw:1120px;
  --serif:Georgia,"Iowan Old Style","Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--paper); color:var(--ink); font:15px/1.5 var(--sans);
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 16px}

/* ── header ─────────────────────────────────────────────────────────────── */
.hdr{
  position:sticky;top:0;z-index:40;background:rgba(245,240,231,.94);
  backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--line);
}
.hdr-in{display:flex;align-items:center;gap:10px;height:var(--header-h);max-width:var(--maxw);margin:0 auto;padding:0 14px}
.brand{display:flex;align-items:baseline;gap:8px;flex:0 0 auto;text-decoration:none}
.brand b{font:500 19px/1 var(--serif);letter-spacing:.01em}
.brand span{font:italic 400 12px/1 var(--serif);color:var(--muted);display:none}
@media(min-width:560px){.brand span{display:inline}}
.search{flex:1 1 auto;position:relative;min-width:0}
.search input{
  width:100%;height:36px;padding:0 12px 0 32px;border:1px solid var(--line);
  border-radius:999px;background:var(--card);color:var(--ink);font:14px var(--sans);
}
.search input:focus{outline:2px solid var(--forest-soft);outline-offset:1px}
.search::before{content:"⌕";position:absolute;left:11px;top:50%;transform:translateY(-52%);color:var(--muted);font-size:16px}
.hdr-actions{display:flex;gap:6px;flex:0 0 auto}
.icon-btn{
  width:36px;height:36px;border:1px solid var(--line);background:var(--card);border-radius:999px;
  display:grid;place-items:center;font-size:15px;cursor:pointer;color:var(--ink);text-decoration:none;
}
.icon-btn:hover{border-color:var(--line-strong)}
.hdr-nav{display:none}
@media(min-width:820px){
  .hdr-nav{display:flex;gap:2px;margin-left:6px}
  .hdr-nav a{
    padding:8px 12px;border-radius:999px;text-decoration:none;font:600 13px var(--sans);
    color:var(--muted);letter-spacing:.01em
  }
  .hdr-nav a[aria-current="page"]{background:var(--forest);color:#fff}
}

/* ── bottom nav (mobile-first primary navigation) ───────────────────────── */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background:rgba(255,253,248,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(4,1fr);
}
@media(min-width:820px){.tabbar{display:none}}
.tabbar a{
  display:grid;place-items:center;gap:2px;text-decoration:none;color:var(--muted);
  font:600 10.5px var(--sans);letter-spacing:.02em;padding-top:7px
}
.tabbar a i{font-style:normal;font-size:18px;line-height:1}
.tabbar a[aria-current="page"]{color:var(--forest)}
.tabbar a[aria-current="page"] i{filter:none}

/* ── shared bits ────────────────────────────────────────────────────────── */
.eyebrow{font:700 10.5px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.section{margin:26px 0}
.section-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.section-hd h2{font-size:20px}
.section-hd a{font:600 12.5px var(--sans);color:var(--forest-soft);text-decoration:none}
.muted{color:var(--muted)}
.chip{
  display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;
  background:var(--paper-2);border:1px solid var(--line);font:600 11.5px var(--sans);color:var(--ink)
}
.chip.on{background:var(--forest);border-color:var(--forest);color:#fff}
.chip.gold{background:#f6ecd2;border-color:#e0cd9c;color:#6b5310}
.chip.orange{background:#fbe6d8;border-color:#e9bfa2;color:#8a3a12}
.chip.love{background:#f7e3e0;border-color:#e6bdb6;color:#8d3a30}
.chip.want{background:#e6efe9;border-color:#bcd4c6;color:#2b5a49}
.btn{
  display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;
  border:1px solid var(--line);background:var(--card);color:var(--ink);font:600 12.5px var(--sans);
  cursor:pointer;text-decoration:none
}
.btn.primary{background:var(--forest);border-color:var(--forest);color:#fff}
.btn.ghost{background:transparent}
.btn.sm{padding:6px 10px;font-size:11.5px}
.badge-local{
  display:inline-block;padding:3px 8px;border-radius:999px;background:#fdf3e3;border:1px solid #ecd6b4;
  color:#7a5410;font:600 10.5px var(--sans);letter-spacing:.02em
}
.empty{padding:22px;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--muted);background:var(--card)}

/* ── home: hero (compact, not oversized) ────────────────────────────────── */
.hero{padding:20px 0 4px}
.hero h1{font:italic 500 clamp(26px,6vw,38px)/1.1 var(--serif);margin-bottom:4px}
.hero p{margin:0;color:var(--muted);font:italic 400 15px/1.4 var(--serif)}
.stats{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:12px
}
.stat{
  display:flex;align-items:baseline;gap:5px;padding:6px 10px;border-radius:999px;
  background:var(--card);border:1px solid var(--line)
}
.stat b{font:600 14px var(--serif)}
.stat span{font:600 10.5px var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}

/* ── destination cards ─────────────────────────────────────────────────── */
.dest-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}
.dest{
  display:block;text-decoration:none;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .12s ease
}
.dest:hover{transform:translateY(-1px)}
.dest .plate{
  height:64px;display:grid;place-items:center;color:#fff;
  font:500 26px/1 var(--serif);letter-spacing:.02em
}
.dest .body{padding:9px 11px 11px;min-height:74px}
.dest .country{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dest .kinds{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dest .meta > *{min-width:0}
.dest h3{font-size:16px;line-height:1.2}
.dest .meta{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:5px}
.dest .count{font:600 12px var(--sans);color:var(--muted)}
.dest .hearts{font:600 11.5px var(--sans);color:#8d3a30}
.p1{background:linear-gradient(135deg,#1d4a3f,#2c6b5b)}
.p2{background:linear-gradient(135deg,#8a3a12,#c2551f)}
.p3{background:linear-gradient(135deg,#6b5310,#9c741d)}
.p4{background:linear-gradient(135deg,#3b4a63,#5b6d8c)}
.p5{background:linear-gradient(135deg,#5a3a4a,#8a5a70)}
.p6{background:linear-gradient(135deg,#2f4f4a,#4a7367)}

.row-scroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.row-scroll .dest{min-width:158px;flex:0 0 auto}

/* ── breadcrumb + filters ──────────────────────────────────────────────── */
.crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font:600 12px var(--sans);color:var(--muted);padding:12px 0 2px}
.crumbs a{text-decoration:none;color:var(--forest-soft)}
.filters{position:sticky;top:var(--header-h);z-index:30;background:rgba(245,240,231,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:8px 0}
.filters-in{display:flex;gap:6px;overflow-x:auto;padding:0 16px;max-width:var(--maxw);margin:0 auto;scrollbar-width:none}
.filters-in::-webkit-scrollbar{display:none}
.filters-in select{
  flex:0 0 auto;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);
  color:var(--ink);font:600 12px var(--sans)
}
.filters .chips{display:flex;gap:6px;overflow-x:auto;padding:8px 16px 2px;max-width:var(--maxw);margin:0 auto}
.filters .chips::-webkit-scrollbar{display:none}
.filters .chip{flex:0 0 auto;cursor:pointer}
.viewswitch{display:flex;gap:0;border:1px solid var(--line);border-radius:999px;overflow:hidden;flex:0 0 auto}
.viewswitch button{border:0;background:var(--card);padding:7px 12px;font:600 12px var(--sans);cursor:pointer;color:var(--muted)}
.viewswitch button[aria-pressed="true"]{background:var(--forest);color:#fff}

/* ── place cards (compact) ─────────────────────────────────────────────── */
.places{display:grid;gap:8px;margin:12px 0 0}
/* Cards view: fill the available width with a responsive grid (2-3 columns on a laptop) rather
   than a fixed pair of columns that left a half-screen gap once a group wrapper sat inside it. */
@media(min-width:700px){.places:not(.grp-outer){grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}
.place{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:10px 11px;display:grid;grid-template-columns:26px 1fr auto;gap:9px;align-items:start
}
.place .ic{font-size:17px;line-height:1.2;padding-top:1px}
.place h3{font:500 15px/1.25 var(--serif);margin:0 0 2px}
.place .meta{font:12px var(--sans);color:var(--muted);display:flex;flex-wrap:wrap;gap:5px;align-items:center;min-height:18px}
@media(max-width:560px){.place{padding:9px 10px;gap:8px}.place .st{gap:1px}.place .st button{font-size:13px;padding:1px 2px}}
.place .st{display:flex;gap:3px;align-items:center;padding-top:2px}
.place .st button{border:0;background:transparent;cursor:pointer;font-size:14px;padding:2px 3px;opacity:.32;line-height:1}
.place .st button.on{opacity:1}
.place .detail{
  grid-column:1/-1;border-top:1px solid var(--line);margin-top:8px;padding-top:9px;
  display:none
}
.place.open .detail{display:block}
.detail .editorial{border-left:3px solid var(--orange-soft);padding-left:10px;margin-bottom:8px}
.detail .editorial .k{font:600 14px/1.35 var(--serif)}
.detail .editorial .why{font:14px/1.45 var(--sans);color:#2b4a44;margin-top:3px}
.detail dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0 0 8px}
.detail dt{font:600 10.5px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-top:2px}
.detail dd{margin:0;font:13px/1.45 var(--sans)}
.detail .note{background:#fdf8ee;border:1px solid #ecdfc4;border-radius:8px;padding:7px 9px;font:13px/1.45 var(--serif)}
.detail textarea{
  width:100%;min-height:52px;border:1px solid var(--line);border-radius:8px;padding:8px;font:13px var(--sans);
  background:#fff;color:var(--ink);resize:vertical
}
.detail .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}

/* ── map view ──────────────────────────────────────────────────────────── */
.mapwrap{position:relative;margin-top:12px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper-2)}
#map{height:min(62vh,520px);width:100%}
.pin{
  display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:var(--card);
  border:1.5px solid var(--forest);font-size:15px;cursor:pointer;box-shadow:0 1px 4px rgba(23,50,45,.25)
}
.pin.sel{background:var(--orange);border-color:#8a3a12;color:#fff;transform:scale(1.12)}
.maplibregl-ctrl-attrib{font-size:10px !important}
.mapcard{
  position:absolute;left:10px;right:10px;bottom:10px;z-index:5;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius-sm);box-shadow:var(--shadow);padding:10px 11px;max-width:520px
}
@media(min-width:760px){.mapcard{left:auto;right:12px;bottom:12px;width:360px}}
.mapcard h3{font:500 16px/1.2 var(--serif);margin-bottom:2px}
.mapcard .meta{font:12px var(--sans);color:var(--muted);margin-bottom:6px}
.mapcard .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}

/* ── destination hero ─────────────────────────────────────────────────── */
.dhero{
  border-radius:var(--radius);padding:16px;color:#fff;background:linear-gradient(135deg,#1d4a3f,#2c6b5b);
  margin-top:10px
}
.dhero h1{font:italic 500 clamp(24px,5.4vw,34px)/1.1 var(--serif)}
.dhero .sub{opacity:.86;font:13px var(--sans);margin-top:5px}
.dhero .stats{margin-top:10px}
.dhero .stat{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.28);color:#fff}
.dhero .stat span{color:rgba(255,255,255,.8)}
.arrgrid{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding-bottom:2px}
.arrgrid .chip{flex:0 0 auto;white-space:nowrap}
.arrgrid::-webkit-scrollbar{display:none}
.arrgrid .chip{flex:0 0 auto}
.arrgrid .chip{cursor:pointer}


/* ══════════════════════════════════════════════════════════════════════════
   PHASES 2–4 — additions
   ══════════════════════════════════════════════════════════════════════════ */

/* THE MAP BUG: `.places{display:grid}` outranked the user-agent [hidden] rule, so
   clicking Map left all 384 cards rendered and pushed the map below them. */
[hidden]{display:none !important}

/* ── home: tabs, TOPS strip, no stray scrollbars ────────────────────────── */
.tabs{display:flex;gap:4px;background:var(--paper-2);border:1px solid var(--line);border-radius:999px;padding:3px}
.tabs button{
  flex:1;border:0;background:transparent;padding:7px 12px;border-radius:999px;cursor:pointer;
  font:600 12.5px var(--sans);color:var(--muted)
}
.tabs button[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
@media(max-width:560px){.tabs button{padding:7px 6px;font-size:12px}}
.dest-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.dest .body{min-height:78px}
.dest .kinds .kind{display:inline-flex;align-items:center;gap:3px;margin-left:6px;color:var(--muted)}
.dest .kinds .kind b{font-weight:600}
.plate-img{position:relative;height:84px;overflow:hidden;background:var(--paper-2)}
.plate-img img{width:100%;height:100%;object-fit:cover;display:block}
.plate-img .credit{position:absolute;right:4px;bottom:3px;font:500 8.5px var(--sans);color:#fff;
  background:rgba(23,50,45,.55);padding:1px 5px;border-radius:99px}
.tops-strip{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.tops-strip .mini{
  display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:9px 10px;text-decoration:none
}
.tops-strip .mini h4{font:500 14px/1.25 var(--serif)}
.tops-strip .mini .m{font:11.5px var(--sans);color:var(--muted)}
.near-row{display:grid;gap:8px}

/* ── destination: view switch, editorial cards, split screen ─────────────*/
.viewswitch button{white-space:nowrap}
.place{position:relative}
.place.sel{border-color:var(--forest-soft);box-shadow:0 0 0 2px rgba(44,107,91,.18)}
.place.editorial-mode{background:linear-gradient(180deg,var(--card),#fffefb)}
.place.editorial-mode .peek{margin-top:7px;border-top:1px dashed var(--line);padding-top:7px}
.place.editorial-mode .peek .editorial{margin-bottom:6px}
.place .mid{min-width:0}
.place h3{overflow-wrap:anywhere}
.chip.tiny{padding:2px 7px;font-size:11px}
.credit{font-size:11px;margin-top:3px}
.editorial .tags{margin-top:5px;display:flex;gap:4px;flex-wrap:wrap}
.mapctl{position:absolute;right:10px;bottom:12px;z-index:6;display:flex;flex-direction:column;gap:6px}
.mapctl button{
  width:34px;height:34px;border-radius:99px;border:1px solid var(--line);background:var(--card);
  cursor:pointer;font-size:15px;color:var(--ink);box-shadow:var(--shadow)
}
.cluster{
  display:grid;place-items:center;border-radius:999px;cursor:pointer;color:#fff;border:2px solid #fff;
  background:var(--forest);font:700 12px var(--sans);box-shadow:0 1px 6px rgba(23,50,45,.35);
  min-width:32px;height:32px;padding:0 6px
}
.pin.me{border-color:var(--orange);background:var(--orange)}
.pin.me span{width:10px;height:10px;border-radius:99px;background:#fff;display:block}
.pin svg{color:var(--forest)}
.pin.sel svg{color:#fff}
.pin.sel{border-color:#8a3a12;background:var(--orange)}
.sheet-x{position:absolute;top:6px;right:8px;border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--muted)}
.mapcard .k{font:500 15px/1.3 var(--serif);margin-top:4px}
.mapcard .why{font:13px/1.4 var(--sans);color:#2b4a44;margin-top:2px}
.mapcard .note{margin-top:6px}
.maplibregl-map{font:inherit}

/* desktop: split screen — scrollable places left, large sticky map right */
#list.cols{grid-template-columns:1fr}
@media(min-width:900px){
  body.split .listmap{display:grid;grid-template-columns:minmax(320px,40%) 1fr;gap:16px;align-items:start}
  body.split #mapwrap{position:sticky;top:calc(var(--header-h) + 58px);margin-top:0}
  body.split #map{height:calc(100vh - var(--header-h) - 96px)}
  body.split #list{max-height:calc(100vh - var(--header-h) - 96px);overflow:auto;padding-right:4px}
  body.split .places{grid-template-columns:1fr}
  .mapwrap{border-radius:var(--radius)}
  .mapcard{width:340px;left:auto;right:12px;bottom:12px}
}
/* mobile: map nearly full screen with a bottom sheet */
@media(max-width:899px){
  body.split #map{height:76vh}
  .mapcard{position:fixed;left:8px;right:8px;bottom:calc(var(--nav-h) + 8px + env(safe-area-inset-bottom));
    z-index:60;max-height:56vh;overflow:auto}
  .mapctl{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px)}
}

/* OSM/OpenFreeMap attribution must remain visible: keep it above the place sheet */
.mapwrap .maplibregl-ctrl-bottom-left, .mapwrap .maplibregl-ctrl-bottom-right{z-index:8}
.mapwrap .maplibregl-ctrl-attrib{background:rgba(255,253,248,.86) !important}
@media(min-width:900px){.mapcard{bottom:30px}}


/* ── guide builder + public guide ──────────────────────────────────────── */
.guide-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.gcard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:11px 12px;box-shadow:var(--shadow)}
.gcard.link{text-decoration:none;display:block;overflow:hidden;padding:0}
.gcard.link h3{padding:9px 12px 0}
.gcard.link .muted{padding:0 12px 11px;display:block}
.gcard .gtop{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.gcard h3{font:500 16px/1.25 var(--serif);margin:0 0 7px}
.gcard .acts{display:flex;gap:6px;flex-wrap:wrap}
.builder-new{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:10px}
.builder-new select,.builder-new input{flex:1 1 200px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink);font:13px var(--sans)}
.builder{display:grid;gap:14px}
@media(min-width:900px){.builder{grid-template-columns:minmax(300px,38%) 1fr;align-items:start}}
.bpick input{padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:13px var(--sans);background:#fff}
.cand{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:7px 8px;border:1px solid var(--line);
  border-radius:8px;background:var(--card);margin-bottom:6px}
.cand .cn{min-width:0}.cand .cn b{font:500 14px var(--serif)}.cand .cn .muted{font-size:11.5px;display:block}
#bcand{max-height:52vh;overflow:auto}
.gitem{border:1px solid var(--line);border-radius:8px;background:var(--card);padding:9px 10px;margin-bottom:8px}
.gitem .ghead{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.gitem .ghead b{font:500 14.5px var(--serif)}
.gmeta{font-size:11.5px}
.gctrl{margin-left:auto;display:flex;gap:2px}
.gitem textarea{width:100%;margin-top:7px;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:7px 8px;
  font:12.5px var(--sans);background:#fff;color:var(--ink);resize:vertical}
.grouphead{font:700 10.5px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
  margin:12px 0 6px;display:flex;align-items:center;gap:6px}
.idx{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:99px;background:var(--paper-2);
  border:1px solid var(--line);font:600 11px var(--sans);color:var(--muted)}
.gplaces{display:grid;gap:9px}
.gplace{display:grid;grid-template-columns:26px 22px 1fr;gap:9px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:10px 11px}
.gplace h3{font:500 15px/1.25 var(--serif);margin:0 0 3px}
.gplace .k{font:500 14px/1.35 var(--serif);margin-top:5px}
.gplace .why{font:13px/1.45 var(--sans);color:#2b4a44}
.gplace .note{background:#fdf8ee;border:1px solid #ecdfc4;border-radius:8px;padding:7px 9px;font:13px/1.45 var(--serif);margin-top:6px}
.gplace .acts{margin-top:7px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mapnote{position:absolute;left:12px;bottom:12px;right:12px;z-index:5;background:rgba(255,253,248,.94);
  border:1px solid var(--line);border-radius:8px;padding:9px 11px;font:12.5px/1.45 var(--sans);max-width:420px}
@media(max-width:899px){#gview .listmap{grid-template-columns:1fr}#map{height:56vh}}


/* ── destination cards: larger, five per row, country names never truncated ── */
.dest-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media(max-width:1180px){.dest-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){ .dest-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){ .dest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:390px){ .dest-grid{grid-template-columns:1fr}}
.dest .plate{height:86px}
.dest h3{font-size:17.5px;letter-spacing:.005em}
.dest .body{min-height:96px;padding:11px 12px 13px}
.dest .count{font-size:12.5px}
.dest .country{white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.35}
.dest .kinds{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dest .meta{align-items:flex-start}
.hero .dest-grid{margin-top:2px}

/* ── photo credits: never overlaid on the image ─────────────────────────── */
.photoinfo{
  position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(255,255,255,.5);background:rgba(23,50,45,.5);color:#fff;font-size:12px;
  display:grid;place-items:center;line-height:1;padding:0;backdrop-filter:blur(2px)
}
.photoinfo:hover,.photoinfo:focus-visible{background:rgba(23,50,45,.8);outline:2px solid #fff;outline-offset:1px}
.photoinfo.hero{position:absolute;top:10px;right:10px;width:28px;height:28px;font-size:13px}
.dhero{position:relative}
.plate-img{position:relative}
.credits{position:fixed;inset:0;z-index:200;background:rgba(23,50,45,.55);display:grid;place-items:center;padding:18px}
.credits-in{background:var(--card);border-radius:var(--radius);max-width:560px;width:100%;max-height:82vh;overflow:auto;
  padding:16px 18px;box-shadow:0 20px 50px -20px rgba(23,50,45,.5);position:relative}
.credits-in h2{font-size:19px;margin-bottom:10px;padding-right:26px}
.credits-x{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:22px;cursor:pointer;color:var(--muted)}
.creditrow{border-top:1px solid var(--line);padding:9px 0;font:12.5px/1.5 var(--sans);color:var(--muted)}
.creditrow:first-child{border-top:0}
.creditrow b{color:var(--ink);font:500 14.5px var(--serif)}
.creditrow a{color:var(--forest-soft)}
.credits-section .creditrow{font-size:12px}


/* ── final refinements ──────────────────────────────────────────────────── */
/* 2b: wider map, list scrolls independently of the page */
body.split .listmap{grid-template-columns:minmax(290px,31%) 1fr}
body.split #list{max-height:calc(100vh - var(--header-h) - 92px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-gutter:stable;padding-right:6px}
@media(min-width:1400px){body.split .listmap{grid-template-columns:minmax(320px,28%) 1fr}}
/* 2a: compact sidebar cards; the selected one shows everything */
.place.compact{grid-template-columns:20px 1fr auto;padding:7px 9px;gap:8px;background:var(--card)}
.place.compact h3{font-size:13.5px;line-height:1.25}
.place.compact .meta{display:none}
.place.compact .ic svg{width:15px;height:15px}
.place.compact .st button{font-size:12.5px}
.place.compact .detail{display:none}
.place:not(.compact) .detail{display:block}
/* 2d: clickable statistics */
.stat.clickable{cursor:pointer;transition:border-color .12s ease,background .12s ease}
.stat.clickable:hover{border-color:var(--line-strong)}
.stat.clickable.on{background:var(--forest);border-color:var(--forest);color:#fff}
.stat.clickable.on span{color:rgba(255,255,255,.82)}
/* 2c: area + view controls in the filter bar */
.area-btn{white-space:nowrap}
.area-btn.on{background:var(--forest);border-color:var(--forest);color:#fff}
.arr-all{background:rgba(255,255,255,.34) !important}
/* 2e: the arrondissement row always shows an explicit All */
/* 2g: create-guide action on a destination */
.dhero .hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.dhero .hero-actions .btn{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4);color:#fff}
.dhero .hero-actions .btn:hover{background:rgba(255,255,255,.28)}
/* 2h: compact but prominent TOPS band */
.tops-band{background:linear-gradient(135deg,#fdf3e3,#fbe6d8);border:1px solid #ecd6b4;border-radius:var(--radius);padding:12px 14px}
.tops-band .band-hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.tops-band .band-hd h2{font-size:17px}
.tops-band .band-hd span{font:600 11px var(--sans);letter-spacing:.1em;text-transform:uppercase;color:#8a5a12}
.tops-band .tops-strip .mini{background:rgba(255,253,248,.85);border-color:#e6d3ac}
/* 2i: compact, attractive Explore Nearby action */
.nearcard{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:12px 14px;box-shadow:var(--shadow)}
.nearcard .glyph{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;
  background:linear-gradient(135deg,#1d4a3f,#2c6b5b);color:#fff;flex:0 0 auto}
.nearcard .txt{flex:1 1 auto;min-width:0}
.nearcard .txt b{font:500 15px var(--serif);display:block}
.nearcard .txt span{font:12.5px var(--sans);color:var(--muted)}
.nearcard .btn{flex:0 0 auto}
@media(max-width:520px){.nearcard{flex-wrap:wrap}.nearcard .btn{width:100%;justify-content:center}}

/* ── the candidate filters in the guide builder: a compact row, same design ── */
.cfilters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfilters select { font: 12px/1.2 inherit; padding: 6px 8px; max-width: 148px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: inherit; }
.cfilters .btn.sm { padding: 6px 9px; font-size: 12px; }
.cfilters .btn.on { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ── final refinements ─────────────────────────────────────────────────────── */

/* every arrondissement filter must be reachable (the row used to clip around the 16th) */
#arrgrid, .arrgrid { flex-wrap: wrap; row-gap: 6px; overflow-x: visible; padding-bottom: 0; }

/* a destination card gives the country its own line so neither it nor the category
   icons are truncated */
.dest .meta { flex-wrap: wrap; align-items: flex-start; }
.dest .meta .country { flex: 0 0 100%; }
.dest .kinds { white-space: normal; overflow: visible; text-overflow: clip; }

/* the collapsed note / recommendation affordances on destination cards */
.detail .addfield { border-style: dashed; color: var(--muted); background: transparent; }
.detail .edrow[hidden] { display: none; }
.detail .edrow { display: flex; gap: 8px; align-items: center; margin-top: 6px; }

/* the two builder panels scroll independently; the search box and filters stay fixed */
.bpick { display: flex; flex-direction: column; }
#bcand { overflow-y: auto; max-height: 58vh; }
.bitems { overflow-y: auto; max-height: 74vh; }


/* ═══════════════════════════════════════════════════════════════════════════
   READABILITY FIXES (production review 2026-11-14)
   ═══════════════════════════════════════════════════════════════════════════ */

/* §5 The arrondissement chips sit on the destination photograph. Translucent chips
   with dark text were unreadable there: solid cream, dark green text, clear selected. */
.dhero .arrgrid .chip,
.dhero .arrgrid .arr-all,
.hero .arrgrid .chip,
.dhero .chip,
.dhero .area-btn,
.hero .chip,
.hero .area-btn {
  background: var(--paper-2, #f4efe3) !important;
  border-color: rgba(31, 61, 48, .22) !important;
  color: var(--ink, #23342c) !important;
  box-shadow: 0 1px 2px rgba(31, 61, 48, .10);
}
.dhero .arrgrid .chip.on,
.dhero .chip.on,
.dhero .area-btn.on,
.hero .chip.on {
  background: var(--forest, #1f3d30) !important;
  border-color: var(--forest, #1f3d30) !important;
  color: #fff !important;
}
/* the "All" chip keeps the same legibility as its neighbours */
.arr-all { background: var(--paper-2, #f4efe3) !important; color: var(--ink, #23342c) !important; }
.arr-all.on { background: var(--forest, #1f3d30) !important; color: #fff !important; }

/* §10 Photo credits: attribution stays complete and accessible, but collapsed by default */
.credits-section details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.credits-section summary {
  cursor: pointer; list-style: none; padding: 14px 16px; display: flex; align-items: center;
  gap: 8px; font: 600 14px var(--serif, Georgia, serif); color: var(--forest, #1f3d30);
}
.credits-section summary::-webkit-details-marker { display: none; }
.credits-section summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.credits-section details[open] summary::after { transform: rotate(180deg); }
.credits-section summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.credits-section .credits-body { padding: 0 16px 16px; }
#allcredits { max-height: 320px; overflow: auto; }

/* §8 Home stays a curated entry point; Explore is the full directory */
.dest-more { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }


/* ═══════════════════════════════════════════════════════════════════════════
   §5 STATUS CONTROLS — active and inactive must be unmistakable, and the state is
   carried by the glyph and the treatment, not by colour alone.
   ═══════════════════════════════════════════════════════════════════════════ */
.status-btn { color: var(--muted); background: transparent; border-style: dashed; border-color: rgba(31,61,48,.28); }
.status-btn:hover { color: var(--ink); border-color: rgba(31,61,48,.5); background: var(--paper-2); }
.status-btn.on { border-style: solid; font-weight: 700; }
.status-btn.been.on { background: #2f6b4f; border-color: #245741; color: #fff; box-shadow: 0 1px 6px rgba(47,107,79,.28); }
.status-btn.love.on { background: #8d2f36; border-color: #8d2f36; color: #fff; box-shadow: 0 1px 6px rgba(141,47,54,.28); }
.status-btn.top.on  { background: #f0c75e; border-color: #c9a13c; color: #4a3808; box-shadow: 0 1px 6px rgba(201,161,60,.3); }
.status-btn.want.on { background: #2b5a49; border-color: #2b5a49; color: #fff; box-shadow: 0 1px 6px rgba(43,90,73,.25); }
.status-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .status-btn { transition: background .12s, color .12s, border-color .12s; } }

/* §4 the compact status controls in list rows — the ones that were still tiny and grey */
.st { display: flex; gap: 4px; align-items: center; }
.st-btn {
  width: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; cursor: pointer;
  background: transparent; border: 1.5px dashed rgba(31,61,48,.30); color: #8a8f8b;
}
.st-btn:hover { background: var(--paper-2); color: var(--ink); border-color: rgba(31,61,48,.55); }
.st-btn.on { border-style: solid; font-weight: 700; }
.st-btn.been.on { background: #2f6b4f; border-color: #245741; color: #fff; }
.st-btn.love.on { background: #8d2f36; border-color: #7a262c; color: #fff; }
.st-btn.gold.on { background: #f0c75e; border-color: #c9a13c; color: #4a3808; }
.st-btn.want.on { background: #2b5a49; border-color: #22483a; color: #fff; }
.st-btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
@media (max-width: 640px) { .st-btn { width: 34px; height: 34px; min-width: 34px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   §2 GUIDE BUILDER — no horizontal scrollbar.
   A 1fr grid column can overflow its track when its content is wider than the
   available space, which is what produced the sideways scroll. minmax(0,1fr) plus
   min-width:0 on the panels lets the content wrap instead.
   ═══════════════════════════════════════════════════════════════════════════ */
.builder { min-width: 0; }
.builder > * { min-width: 0; }
@media (min-width: 900px) { .builder { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); } }
@media (max-width: 899px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.cand, .cand > *, .bpick, .bpick > * { min-width: 0; }
.cand h4, .cand .m, .gplace h3 { overflow-wrap: anywhere; }
.builder input, .builder select, .builder textarea { max-width: 100%; box-sizing: border-box; }
.builder .acts, .builder .row { flex-wrap: wrap; }

/* §1 all four controls share one treatment: solid fill + white glyph when active,
   outlined and muted when not. Been was the odd one out (pale green, dark text). */
.status-btn.on, .st-btn.on { color: #fff; }
.status-btn.top.on, .st-btn.gold.on { color: #4a3808; }   /* gold needs dark text for contrast */
.status-btn.been.on, .st-btn.been.on { background: #2f6b4f; border-color: #245741; color: #fff; }
.status-btn.love.on, .st-btn.love.on { background: #8d2f36; border-color: #7a262c; color: #fff; }
.status-btn.want.on, .st-btn.want.on { background: #2b5a49; border-color: #22483a; color: #fff; }
.status-btn, .st-btn { min-height: 30px; }
@media (max-width: 640px) { .status-btn { min-height: 36px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   BATCH B — the place menu, the edit panel and the toast
   ═══════════════════════════════════════════════════════════════════════════ */
.dots { padding: 6px 10px; font-size: 15px; line-height: 1; }
.pmenu { position: fixed; z-index: 1000; min-width: 220px; background: #fffdf8; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(23,50,45,.18); padding: 6px; display: flex; flex-direction: column; }
.pmenu button, .pmenu a { text-align: left; background: none; border: 0; padding: 9px 11px; border-radius: 8px;
  font: 500 13px var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.pmenu button:hover, .pmenu a:hover { background: var(--paper-2); }
.editpanel { position: fixed; inset: 0; z-index: 1100; background: rgba(23,50,45,.42); display: flex;
  align-items: center; justify-content: center; padding: 18px; overflow: auto; }
.ep-in { background: #fffdf8; border-radius: 16px; max-width: 560px; width: 100%; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(23,50,45,.28); max-height: 92vh; overflow: auto; }
.ep-hd { display: flex; align-items: center; justify-content: space-between; }
.ep-hd h2 { font: 600 20px/1.2 var(--serif); margin: 0; color: var(--forest); }
.ep-x { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.ep-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.ep-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 10px; }
.ep-row > span { grid-column: 1 / -1; font: 600 11.5px var(--sans); color: var(--muted); letter-spacing: .02em; }
.ep-row > span em { color: #8a3b1f; font-style: normal; }
.ep-row input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: 13.5px var(--sans);
  background: #fff; color: var(--ink); min-width: 0; }
.ep-reset { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px;
  font: 600 11.5px var(--sans); color: #8a3b1f; cursor: pointer; }
.ep-ft { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.ep-msg { font-size: 12.5px; color: #8a3b1f; margin-top: 8px; min-height: 16px; }
#mptoast { position: fixed; left: 50%; transform: translate(-50%, 20px); bottom: 24px; z-index: 1200;
  background: var(--forest); color: #f6f1e7; padding: 10px 16px; border-radius: 999px;
  font: 600 12.5px var(--sans); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
#mptoast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .ep-in { padding: 18px 16px; } .ep-row input { font-size: 16px; } }


/* ══════════════════════════════════════════════════════════════════════════
   B6 — an expanded card must not stretch its neighbours
   The grid defaults to align-items:stretch, so opening one card in a row grew
   every other card in that row to the same height.
   ══════════════════════════════════════════════════════════════════════════ */
.places{align-items:start}
.places > .place{align-self:start}

/* B8 — Delete list must not be offered for a derived list (Want to Go / TOPS) */
#ddelete[hidden], #ddeletewrap[hidden]{display:none !important}

/* B9 — the automatic lists get a card of their own: the count is the point */
.autolist{display:block;text-decoration:none;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .12s ease}
.autolist:hover{transform:translateY(-1px)}
.autolist .plate{height:88px;display:grid;place-items:center;color:#fff;position:relative}
.autolist .plate .glyph{font:400 34px/1 var(--serif)}
.autolist .plate .n{position:absolute;right:12px;bottom:10px;font:600 26px/1 var(--serif);color:#fff;opacity:.95}
.autolist .body{padding:11px 13px 13px}
.autolist .body h3{font:500 16px/1.2 var(--serif);color:var(--ink);margin:0 0 3px}
.autolist .body .sub{font-size:12px;color:var(--muted);margin:0 0 8px}
.autolist .body .eg{font-size:12.5px;color:var(--ink);opacity:.8;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.autolist .body .auto{margin-top:9px;font:600 10.5px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.autolist.want .plate{background:#8a4a22}
.autolist.tops .plate{background:#1f3d30}


/* ══════════════════════════════════════════════════════════════════════════
   C7–C10 — worldwide grouping, list filters, the bulk picker, trip details
   ══════════════════════════════════════════════════════════════════════════ */
.grp{margin:0 0 6px}
.grp-h{margin:20px 0 2px;padding-bottom:6px;border-bottom:1px solid var(--line);
  font:500 17px/1.2 var(--serif);color:var(--ink)}
.grp-h .muted,.grp-c .muted{font-weight:400;font-size:12px}
.grp-c{margin:14px 0 6px;font:600 12.5px var(--sans);letter-spacing:.05em;
  text-transform:uppercase;color:var(--muted)}
.grp-grid{align-items:start;margin-top:6px}
.ord{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.ord .btn{padding:5px 9px;font-size:11.5px}
.tripbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px;
  padding:12px;margin:0 0 12px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--card);box-shadow:var(--shadow)}
.tripbar label{display:flex;flex-direction:column;gap:4px;font:600 11px var(--sans);
  letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.tripbar input{padding:8px 10px;border:1px solid var(--line);border-radius:9px;
  font:400 13px var(--sans);color:var(--ink);background:#fff}
.tripbar button{align-self:end}
.pickrow{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;
  padding:9px 11px;margin:0 0 6px;border:1px solid var(--line);border-radius:11px;
  background:var(--card);cursor:pointer}
.pickrow:hover{border-color:#c9bda7}
.pickrow input{width:18px;height:18px}
.pickmain{display:flex;flex-direction:column;gap:1px;min-width:0}
.pickmain b{font:600 13.5px var(--sans);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pickmain em{font:400 12px var(--sans);color:var(--muted);font-style:normal;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mapwrap{height:min(62vh,560px);margin:12px 0 0;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;background:#eae4d8}


/* ── E: the Published confirmation ───────────────────────────────────────── */
.pubbox{padding:13px 15px;margin:0 0 12px;border:1px solid #2f6b4f;border-radius:var(--radius);
  background:#f2f8f4;box-shadow:var(--shadow)}
.pubbox-hd{display:flex;align-items:center;gap:8px}
.pubbox-hd h3{margin:0;font:500 16px/1.2 var(--serif);color:#1f3d30}
.pubbox-dot{width:9px;height:9px;border-radius:999px;background:#2f6b4f;display:inline-block}
.pubbox-url{display:flex;flex-direction:column;gap:4px;font:600 10.5px var(--sans);
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.pubbox-url input{padding:8px 10px;border:1px solid var(--line);border-radius:9px;
  font:400 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);background:#fff;width:100%}
.pubbox-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}


/* ── F: the import centre ─────────────────────────────────────────────────── */
.impbar{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.impfile{display:flex;flex-direction:column;gap:4px;font:600 11px var(--sans);
  letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.impfile input{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;
  font:400 12.5px var(--sans);color:var(--ink)}
.srccard{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;
  padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);
  box-shadow:var(--shadow)}
.srccard h3{margin:2px 0 0;font:500 15px/1.25 var(--serif);color:var(--ink)}
.imptable{width:100%;border-collapse:collapse;margin-top:12px;font:400 12.5px var(--sans)}
.imptable th{text-align:left;font:600 10.5px var(--sans);letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);padding:0 10px 7px 0;border-bottom:1px solid var(--line)}
.imptable td{padding:7px 10px 7px 0;border-bottom:1px solid var(--line);vertical-align:top}
.imptable tr:last-child td{border-bottom:0}
.applybox{padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--card);box-shadow:var(--shadow)}
.applycheck{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:var(--ink);cursor:pointer}
.applycheck input{width:18px;height:18px;margin-top:1px}
.applyacts{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.imptable + .muted{margin-top:8px}


/* ── G: a city with no licensed photograph gets a designed monogram ───────── */
.plate.mono{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.plate.mono .mono-i{font:400 30px/1 var(--serif);letter-spacing:.04em;color:#fff;opacity:.96}
.plate.mono .mono-c{font:600 9px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#fff;opacity:.72}

/* ── the Add-to-List picker (master brief §5) ────────────────────────────────────────────────────
   A visible button on every card, a compact picker, immediate application with a confirmation, and
   on a phone a bottom sheet with large touch targets rather than a cramped centred dialog. */
.listbtn { display:inline-flex; gap:4px; align-items:center; }
.listbtn .lb-t { font-size:11px; opacity:.75; }
@media (max-width:640px) { .listbtn .lb-t { display:none; } }
.lp-quick { display:flex; width:100%; gap:8px; align-items:center; justify-content:center;
  padding:14px 12px; margin:4px 0 10px; border:1px dashed var(--border); border-radius:12px;
  background:var(--card); font:500 14px var(--sans); color:var(--ink); cursor:pointer; }
.lp-quick strong { font-weight:700; }
.lp-quick em { font-style:normal; font-size:11px; color:var(--muted); }
.lp-search { width:100%; padding:11px 12px; margin-bottom:8px; border:1px solid var(--border);
  border-radius:10px; font:14px var(--sans); }
.lp-row { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center;
  padding:11px 4px; border-bottom:1px solid var(--border); cursor:pointer; min-height:46px; }
.lp-row input { width:20px; height:20px; }
.lp-row .lp-name { font:500 14px var(--sans); color:var(--ink); }
.lp-row .lp-name em { display:block; font-style:normal; font-size:11.5px; color:var(--muted); }
.lp-row .lp-state { color:var(--green,#2f6b4f); font-weight:700; }
.lp-row.in .lp-name { color:var(--green,#2f6b4f); }
@media (max-width:640px) {
  .listpicker { align-items:flex-end; padding:0; }
  .listpicker .ep-in { width:100%; max-width:100%; border-radius:16px 16px 0 0; max-height:86vh; overflow:auto; }
  .listpicker .ep-hd h2 { font-size:18px; }
  .lp-quick { padding:16px 12px; font-size:15px; }
  .lp-row { padding:14px 4px; min-height:54px; }
  .lp-row input { width:24px; height:24px; }
}

/* ── #5 · My Lists card balance ──────────────────────────────────────────────────────────────────
   The name column was losing a width fight with the status controls, so long names wrapped
   mid-word. The name now takes the flexible width with a sensible floor, the controls shrink rather
   than dominate, and long names break at word boundaries. No new clutter. */
.destwrap { position: relative; }
.destwrap .destmenu { position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%;
  border:1px solid var(--border); background:var(--card); color:var(--muted); font-size:15px; line-height:1;
  cursor:pointer; z-index:2; }
.destwrap .destmenu:hover { color:var(--ink); border-color:var(--ink); }
#mylists .dest .body { min-width:0; padding-right:34px; }
#mylists .dest h3 { overflow-wrap:normal; word-break:keep-all; hyphens:none; }
#dplaces .place .hd, .place .hd { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; }
#dplaces .place .hd h3, .place .hd h3, .place h3 { flex:1 1 60%; min-width:12ch; word-break:keep-all;
  overflow-wrap:break-word; }
#dplaces .place .hd .st, .place .hd [data-st] { flex:0 0 auto; }
@media (max-width:640px) {
  #mylists .dest h3 { font-size:15px; }
  #dplaces .place .hd h3, .place .hd h3 { flex-basis:100%; min-width:0; }
}

/* the per-list management menu — self-contained, so it never depends on another menu's visibility rules */
.lpmanage { position:fixed; z-index:4200; min-width:210px; padding:6px; border-radius:12px;
  border:1px solid var(--border); background:var(--card); box-shadow:0 12px 32px rgba(0,0,0,.14);
  display:flex; flex-direction:column; }
.lpmanage button { text-align:left; padding:11px 12px; border:0; border-radius:8px; background:transparent;
  font:500 14px var(--sans); color:var(--ink); cursor:pointer; }
.lpmanage button:hover { background:var(--accent,#f2efe9); }
@media (max-width:640px) { .lpmanage { min-width:60vw; } .lpmanage button { padding:14px 12px; font-size:15px; } }

/* the in-card management menu: positioned relative to its own card, nothing global */
.destwrap { position:relative; }
.destwrap .lpmanage { position:absolute; top:44px; right:8px; z-index:20; min-width:200px; padding:6px;
  border-radius:12px; border:1px solid var(--border); background:var(--card);
  box-shadow:0 12px 32px rgba(0,0,0,.14); display:flex; flex-direction:column; }
.destwrap .lpmanage[hidden] { display:none; }
.destwrap .lpmanage button { text-align:left; padding:11px 12px; border:0; border-radius:8px;
  background:transparent; font:500 14px var(--sans); color:var(--ink); cursor:pointer; }
.destwrap .lpmanage button:hover { background:var(--accent,#f2efe9); }
@media (max-width:640px) { .destwrap .lpmanage { min-width:56vw; } .destwrap .lpmanage button { padding:14px 12px; font-size:15px; } }

/* The menu button is a SIBLING that precedes the card's <a>, so the anchor painted over it and ate
   every click — the handler never ran and the menu never opened. Explicit stacking fixes it. */
.destwrap { position:relative; }
.destwrap .dest { position:relative; z-index:1; }
.destwrap .destmenu { z-index:6; }
.destwrap .lpmanage { z-index:7; }

/* ── compact list view ────────────────────────────────────────────────────────────────────────
   Dense, full-width, saved-list density. The row header is the ONLY header: the panel underneath
   reveals the details and never repeats the name, category, arrondissement or status controls. */
.rowlist { display:block; width:100%; }
.prow { border-bottom:1px solid var(--border,#e6ded0); }
.prow-h { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; cursor:pointer;
  background:none; border:0; text-align:left; font:inherit; color:inherit; }
.prow-h:hover { background:rgba(0,0,0,.028); }
.prow-h:focus-visible { outline:2px solid var(--accent,#b8622a); outline-offset:-2px; }

/* a real chevron: two borders rotated, so it is clearly visible and rotates when the row opens */
.prow-caret { flex:0 0 14px; width:14px; height:14px; position:relative; }
.prow-caret::before { content:''; position:absolute; left:2px; top:1px; width:7px; height:7px;
  border-right:2px solid var(--muted-foreground,#8a8072); border-bottom:2px solid var(--muted-foreground,#8a8072);
  transform:rotate(-45deg); transition:transform .16s ease; }
.prow.open .prow-caret::before { transform:rotate(45deg); }
.prow-h:hover .prow-caret::before { border-color:var(--accent,#b8622a); }

.prow-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:0; }
.prow-n { font-weight:600; font-size:15px; line-height:1.22; }
.prow-m { font-size:12px; color:var(--muted-foreground,#8a8072); line-height:1.3; }
.prow-sub { font-size:12.5px; color:var(--muted-foreground,#8a8072); overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; line-height:1.3; }

/* inactive controls stay legible (a visible ring and glyph) without competing with the name */
.prow-st { flex:0 0 auto; display:flex; gap:3px; }
.prow-st .st-btn { width:26px; height:26px; font-size:12px; opacity:1;
  color:var(--muted-foreground,#8a8072); border-color:var(--border,#e6ded0); background:transparent; }
.prow-st .st-btn:hover { color:var(--ink,#17322d); border-color:var(--muted-foreground,#8a8072); }
.prow-st .st-btn.on { color:#fff; border-color:transparent; }
.prow-act { flex:0 0 auto; }
.prow-act .listbtn { font-size:12px; padding:5px 9px; white-space:nowrap; }
.prow-b { padding:2px 12px 12px 34px; }

/* ── the inline detail panel ─────────────────────────────────────────────────────────────────
   Rules and spacing, not a second bordered card. */
.pdetail { font-size:13px; }
.pdetail .d-blk { padding:8px 0; border-top:1px solid var(--border,#e6ded0); }
.pdetail .d-blk:first-child { border-top:0; }
.pdetail .d-lbl { display:block; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted-foreground,#8a8072); margin-bottom:3px; }
.pdetail .d-note { font-size:13px; line-height:1.45; }
.pdetail .d-credit { display:block; font-size:11px; color:var(--muted-foreground,#8a8072); margin-top:1px; }
.pdetail .d-ed b { display:block; font-weight:600; }
.pdetail .d-why { display:block; color:var(--muted-foreground,#8a8072); line-height:1.45; margin-top:1px; }
.pdetail .d-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.pdetail .d-facts { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; margin:0;
  padding:8px 0; border-top:1px solid var(--border,#e6ded0); }
.pdetail .d-facts dt { font-size:11.5px; color:var(--muted-foreground,#8a8072); }
.pdetail .d-facts dd { margin:0; font-size:12.5px; }
.pdetail textarea { width:100%; min-height:52px; font:inherit; font-size:13px; padding:7px 9px;
  border:1px solid var(--border,#e6ded0); border-radius:8px; background:#fff; }
.pdetail .d-acts { display:flex; flex-wrap:wrap; gap:6px; padding-top:9px;
  border-top:1px solid var(--border,#e6ded0); align-items:center; }
.pdetail .d-acts .ord { display:flex; gap:6px; flex-wrap:wrap; }

.viewtoggle { display:inline-flex; border:1px solid var(--border,#e6ded0); border-radius:8px; overflow:hidden; }
.viewtoggle button { padding:6px 12px; font:inherit; font-size:12.5px; background:none; border:0; cursor:pointer;
  color:var(--muted-foreground,#8a8072); }
.viewtoggle button.on { background:var(--accent,#b8622a); color:#fff; }

/* ── My Lists overview cards ──────────────────────────────────────────────────────────────── */
.destwrap .dest.compact, .autolist.compact { min-height:0; padding:11px 14px; align-items:flex-start; }
.destwrap .dest.compact .body, .autolist.compact .body { gap:1px; }
/* one shared shape for custom and automatic cards, so they read as the same kind of thing */
.destwrap .dest.compact, .autolist.compact { min-height:104px; }
.autolist.compact h3 { font-size:15px; font-weight:500; line-height:1.2; margin:0 0 2px; }
.autolist.compact .auto-chip { font-size:9.5px; letter-spacing:.05em; text-transform:uppercase;
  opacity:.9; flex:0 0 auto; padding:1px 6px; }
.autolist.compact .auto { display:flex; align-items:center; gap:5px; font-size:11px;
  color:var(--muted-foreground,#8a8072); margin-top:4px; white-space:nowrap; overflow:hidden; }
.autolist.compact .eg { font-size:11.5px; margin-top:2px; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; }
.autolist.compact .plate { display:none; }

/* ── the toolbar ──────────────────────────────────────────────────────────────────────────── */
.filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.filters > select, .filters > input[type="search"] { min-width:0; }
.filters .viewtoggle { margin-left:auto; }

@media (max-width:899px) {
  /* name/meta/note take the first line, the controls wrap to their own line: larger targets,
     and nothing pushed past the right edge */
  .prow-h { padding:11px 12px; flex-wrap:wrap; row-gap:8px; gap:8px; position:relative; padding-left:28px; }
  .prow-main { flex:1 1 100%; }
  .prow-caret { position:absolute; left:10px; top:13px; }
  .prow-st { order:3; }
  .prow-act { order:4; margin-left:auto; }
  .prow-n { font-size:16px; }
  .prow-st .st-btn { width:32px; height:32px; }
  .prow-b { padding:2px 12px 14px 12px; }
  .pdetail .d-facts { grid-template-columns:1fr; gap:1px; }
  .pdetail .d-facts dt { margin-top:5px; }
  .filters { gap:6px; }
  .filters > select, .filters > input[type="search"] { flex:1 1 46%; }
  .filters .viewtoggle { margin-left:0; flex:1 1 100%; }
  .viewtoggle { display:none; }   /* the destination page's own List/Editorial/Map switcher covers it */
}

/* the card button is now label-only, so the label must never be hidden */
@media (max-width:640px) { .listbtn .lb-t { display:inline; } }

/* ── toolbar coherence ──────────────────────────────────────────────────────────────────────
   The filter strip used to scroll sideways (overflow-x:auto), which clipped controls on a laptop
   and hid them entirely on a phone. One aligned row on desktop; deliberate wrapping on mobile. */
.filters-in { flex-wrap:nowrap; align-items:center; overflow-x:auto; gap:8px; scrollbar-width:none; }
/* the filter row is a single line at every width; when it does not fit it scrolls rather than
   spilling past the viewport, which produced horizontal page overflow around 1024px */
.filters-in::-webkit-scrollbar { display:none; }
.filters-in .viewswitch { margin-left:auto; }
.filters-in .area-btn { margin-left:0; }
@media (max-width:899px) {
  .filters-in { flex-wrap:wrap; overflow-x:visible; gap:6px; padding:0 12px; }
  .filters-in select, .filters-in input[type="search"] { flex:1 1 46%; min-width:0; }
  .filters-in .viewswitch { margin-left:0; flex:1 1 100%; }
  .filters-in .viewswitch button { flex:1 1 auto; }
  .filters-in label { flex:1 1 100%; }
  .filters-in .area-btn { flex:1 1 100%; }
  .filters .chips { flex-wrap:wrap; overflow-x:visible; }
}

/* Every count must stay visible — truncating "892 cities · 96 countries" would hide real data.
   The counts wrap instead; the card is then a few pixels taller than a custom list card, which is
   the right trade for not hiding information. */
.autolist.compact .meta { line-height:1.35; }

/* ── Cards view width ───────────────────────────────────────────────────────────────────────
   THE BUG: in grouped Cards mode #dplaces.places was itself a 2-column grid, but its only children
   are country/city group SECTIONS. Each section therefore took a single column — the left half of
   a 1088px container — and the cards inside were squeezed to ~266px in that half, leaving the
   right half empty. The group container must be a block; the INNER grid does the columns. */
.places.grp-outer { display:block; }
.places.grp-grid { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
@media(max-width:699px){
  /* one full-width card per row on a phone, never a horizontal scrollbar */
  .places, .places.grp-grid { grid-template-columns:1fr; }
}
/* headings must line up with the grid they introduce */
.grp, .grp-h, .grp-c { width:100%; }

/* ── sticky toolbar vs content ──────────────────────────────────────────────────────────────
   Content passing UNDER a sticky bar is normal. What is not: a programmatic or anchor scroll
   (scrollIntoView, #list-<id>, "Show on map") landing an element's top edge behind the bar, so the
   first line of a card or row is hidden. scroll-margin-top leaves room for the header + toolbar. */
.place, .prow, .grp-h, .grp-c, .autolist, .destwrap { scroll-margin-top:112px; }


/* ── Owner Review ────────────────────────────────────────────────────────────────────────────────
   A decision surface, not a browser: one card per flagged record, the evidence on the card, and the
   three actions always visible. Layout is a definition grid that collapses to one column on a phone,
   so the current value, the proposal and the reason stay readable without horizontal scrolling. */
/* The card is its OWN block, deliberately not `.place`: that class is a compact list-row grid
   (26px | 1fr | auto), so a full-width review card wearing it had its entire body squeezed into the
   26px first column — wrapping word by word, filling the page with empty cells and forcing a
   horizontal scrollbar. Styling the card directly keeps every list row in the app untouched. */
.orev { display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 0 0 14px; overflow-wrap: anywhere; }
.orev .peek { display: block; min-width: 0; }
.orev strong { font: 600 16px/1.3 var(--serif); }
.orev a { overflow-wrap: anywhere; word-break: break-word; }
.orev input, .orev select { max-width: 100%; box-sizing: border-box; }
.orev-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.orev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px; margin: 12px 0; }
.orev-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted-foreground); margin-bottom: 2px; }
.orev-grid dd { margin: 0; font-size: 14px; }
.orev-ev { border-left: 2px solid var(--border); padding-left: 10px; margin: 10px 0; }
.orev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.orev-correct { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.orev-history { margin-top: 6px; }
.orev-hrow { font-size: 12px; padding: 4px 0; border-top: 1px dotted var(--border); }
.btn.tiny { font-size: 12px; padding: 3px 9px; }
.navcount { display: inline-block; min-width: 18px; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: var(--orange, #b8622a); color: #fff; font-size: 11px;
  line-height: 16px; text-align: center; font-weight: 600; }
@media (max-width: 640px) {
  .orev-actions .btn { flex: 1 1 auto; }        /* comfortable touch targets on a phone */
  .orev-grid { grid-template-columns: 1fr; }
}


/* ── Import Center ───────────────────────────────────────────────────────────────────────────────
   A five-step flow: choose, review the summary, resolve what is uncertain, confirm, read the report.
   The conflict card puts the existing place and the incoming row side by side, because that decision
   is the one thing a person must make with both in front of them. */
.impwarn { border-left: 3px solid var(--orange, #b8622a); background: rgba(184,98,42,.06);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.impwarn ul { margin: 6px 0 0; padding-left: 18px; }
.impnote { border-left: 3px solid var(--forest-soft, #2c6b5b); background: rgba(44,107,91,.06);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.impc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  padding: 12px 14px; margin: 0 0 12px; overflow-wrap: anywhere; }
.impc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.impc-side { min-width: 0; }
.impc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 640px) {
  .impc-two { grid-template-columns: 1fr; }        /* one column on a phone */
  .impc-actions .btn { flex: 1 1 auto; }
}

/* The five-per-row destination grid is a desktop layout; applied unchanged on a phone it forces
   horizontal overflow. Narrow screens get an auto-fill grid instead. */
@media(max-width:899px){.dest-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}


/* ── mobile navigation: three primaries + a More control ───────────────────────────────────
   The fourth grid cell is a <button>, not an <a>, so it needs the same treatment explicitly.
   Before this, all nine destinations were rendered into a repeat(4,1fr) grid, so items wrapped
   inside a fixed-height box and the middle ones were clipped at every narrow width. */
.tabbar .navmore{display:grid;place-items:center;gap:2px;background:none;border:0;cursor:pointer;
  color:var(--muted);font:600 10.5px var(--sans);letter-spacing:.02em;padding-top:7px;min-height:44px}
.tabbar .navmore i{font-style:normal;font-size:18px;line-height:1}
.tabbar .navmore.on{color:var(--forest)}
.tabbar a{min-height:44px}
/* the sheet is the accessible home for everything the bar cannot hold */
.moresheet{position:fixed;inset:0;z-index:80;background:rgba(24,22,18,.42);display:flex;align-items:flex-end}
.moresheet[hidden]{display:none}
.msheet-in{width:100%;background:var(--card,#fffdf8);border-radius:18px 18px 0 0;
  padding:14px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(0,0,0,.18)}
.msheet-h{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 10px}
.msheet-x{background:none;border:0;font-size:16px;cursor:pointer;color:var(--muted);padding:8px 12px;
  border-radius:10px;min-height:44px;min-width:44px}
.msheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.msheet-grid a{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:12px;
  text-decoration:none;color:inherit;font:600 14px var(--sans);min-height:44px}
.msheet-grid a i{font-style:normal;font-size:17px;width:22px;text-align:center;color:var(--muted)}
.msheet-grid a[aria-current="page"]{background:var(--forest);color:#fff}
.msheet-grid a[aria-current="page"] i{color:#fff}
@media(min-width:820px){.moresheet{display:none}}      /* desktop already shows the full nav */
/* a fixed bar sits UNDER the iOS keyboard, which is outside the layout viewport */
body.kb-open .tabbar{display:none}

/* while the sign-in gate is up, nothing else renders — the overlay alone covered the owner nav
   and page content, leaving them in the DOM and in the accessibility tree */
body.gated > *:not(#mpgate){display:none!important}


/* ── desktop navigation hierarchy ──────────────────────────────────────────────────────────
   Five browsing links plus one clearly labelled menu, instead of nine flat links crowding the
   header. The menu carries the administrative tools. Same keyboard contract as the mobile sheet. */
.hdr-more{position:relative;display:inline-block}
.hdr-more > button{
  display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border-radius:999px;border:0;
  background:none;cursor:pointer;color:var(--muted);font:600 13px var(--sans);letter-spacing:.01em;
}
.hdr-more > button:hover{background:rgba(31,61,48,.06)}
.hdr-more > button.on{color:var(--forest)}
.hdr-more > button[aria-expanded="true"]{background:var(--forest);color:#fff}
.deskmore{
  position:absolute;top:calc(100% + 8px);right:0;min-width:216px;z-index:70;padding:6px;
  background:var(--card,#fffdf8);border:1px solid var(--line,rgba(31,61,48,.16));border-radius:14px;
  box-shadow:0 14px 34px rgba(24,22,18,.16);
}
.deskmore[hidden]{display:none}
.deskmore a{
  display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;text-decoration:none;
  color:inherit;font:600 13.5px var(--sans);min-height:44px;
}
.deskmore a:hover{background:rgba(31,61,48,.07)}
.deskmore a[aria-current="page"]{background:var(--forest);color:#fff}
.deskmore a i{font-style:normal;width:20px;text-align:center;color:var(--muted)}
.deskmore a[aria-current="page"] i{color:#fff}
@media(max-width:819px){.hdr-more{display:none}}   /* the bottom bar + sheet own mobile */

.rowmore{height:1px}


/* ── touch targets ─────────────────────────────────────────────────────────────────────────
   The filter <select>s measured 19px tall with padding:0 inside a 37px wrapper, so the visible box
   was mostly non-interactive and the real target was a third of the 44px guideline. The status
   filter chips measured 25px. Both are primary controls on a phone, so they now carry their own
   height rather than inheriting it from a decorative wrapper. */
.filters select{min-height:44px;padding:10px 12px}
#statuschips{display:flex;flex-wrap:wrap;gap:6px}
#statuschips .chip{min-height:40px;display:inline-flex;align-items:center;padding:8px 14px}
@media(max-width:640px){
  .filters select{min-height:46px;font-size:14px}
  #statuschips .chip{min-height:42px}
}
/* the photo-credit and breadcrumb affordances are secondary but still tappable */
.photoinfo{min-width:32px;min-height:32px}
.crumbs a,.crumbs span{display:inline-block;min-height:32px;line-height:32px}

/* row actions and the "Show All" control are real buttons, not decoration — give them a target a
   thumb can hit. Inline text links inside prose (licence / source citations) deliberately stay
   inline; they are citation anchors, not navigation, and padding them would break the sentence. */
@media(max-width:640px){
  .prow .btn, .rowlist .btn{min-height:40px;padding-top:9px;padding-bottom:9px}
  .stat.more{min-height:40px;padding-top:9px;padding-bottom:9px}
  .hdr a.brand{min-height:44px;display:inline-flex;align-items:center}
}


/* ══ Explore: the editorial hero ═════════════════════════════════════════════════════════════
   Explore reads as a travel page, not a dashboard. A kicker, a serif heading and one line of
   orientation, a large search, then two rows of controls that stay out of the way. No chip wall,
   no account banner interrupting the content, and the destination cards begin immediately below. */
.exhero{padding:26px 0 14px;max-width:760px}
.exkick{font:600 11px var(--sans);letter-spacing:.22em;text-transform:uppercase;color:#8a7a5c;margin:0 0 8px}
.exhero h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(34px,6vw,54px);
  line-height:1.04;letter-spacing:-.015em;color:var(--forest,#1f3d30);margin:0 0 10px}
.exlede{color:#5c5a52;font-size:15.5px;line-height:1.6;margin:0 0 18px;max-width:62ch}

/* the search is the primary control on this page, so it is a field, not a header ornament */
.exsearch{position:relative;display:flex;align-items:center;margin:0 0 14px;max-width:620px}
.exsearch-i{position:absolute;left:16px;font-size:17px;color:#8a7a5c;pointer-events:none}
.exsearch input{
  width:100%;padding:15px 18px 15px 42px;border-radius:14px;border:1px solid rgba(31,61,48,.20);
  background:#fffdf8;font:400 15.5px var(--sans);color:inherit;box-sizing:border-box;
  box-shadow:0 1px 2px rgba(31,61,48,.04);min-height:52px;
}
.exsearch input:focus{outline:2px solid var(--forest,#1f3d30);outline-offset:1px}
.exsearch input::placeholder{color:#9a958a}

.exprimary{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.seg{display:inline-flex;background:rgba(31,61,48,.06);border-radius:999px;padding:3px}
.seg-b{background:none;border:0;cursor:pointer;padding:9px 16px;border-radius:999px;
  font:600 13.5px var(--sans);color:#5c5a52;min-height:40px}
.seg-b.on{background:var(--forest,#1f3d30);color:#fff}
.fxbtn{display:inline-flex;align-items:center;gap:8px;background:#fffdf8;cursor:pointer;
  border:1px solid rgba(31,61,48,.22);border-radius:999px;padding:9px 16px;
  font:600 13.5px var(--sans);color:var(--forest,#1f3d30);min-height:40px}
.fxbtn[aria-expanded="true"]{background:var(--forest,#1f3d30);color:#fff;border-color:transparent}
.fxbadge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#b8622a;color:#fff;font-size:11.5px;font-weight:700}
.fxbtn[aria-expanded="true"] .fxbadge{background:rgba(255,255,255,.26)}

/* advanced filters: a panel that opens on request, never a wall on arrival */
.fxpanel{margin:14px 0 0;padding:16px;border-radius:16px;background:rgba(31,61,48,.045);
  border:1px solid rgba(31,61,48,.10)}
.fxgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.fx{display:block;min-width:0}
.fx>span{display:block;font:600 11.5px var(--sans);letter-spacing:.06em;text-transform:uppercase;
  color:#8a7a5c;margin:0 0 5px}
.fx select{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:10px;min-height:44px;
  border:1px solid rgba(31,61,48,.20);background:#fffdf8;font:400 14px var(--sans);color:inherit}
.fxfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.freset{background:none;border:1px solid rgba(31,61,48,.24);border-radius:999px;cursor:pointer;
  padding:9px 16px;font:600 13px var(--sans);color:var(--forest,#1f3d30);min-height:40px}

/* Browse countries — a disclosure line, not dozens of exposed chips */
.browse{margin:0 0 14px}
.browse-t{display:inline-flex;align-items:center;gap:8px;background:none;border:0;cursor:pointer;
  padding:8px 0;font:600 13.5px var(--sans);color:var(--forest,#1f3d30);min-height:40px}
.bcaret{font-size:11px;color:#8a7a5c}
.blist{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.bchip{display:inline-flex;align-items:center;gap:7px;background:#fffdf8;cursor:pointer;
  border:1px solid rgba(31,61,48,.16);border-radius:999px;padding:8px 14px;font:500 13px var(--sans);
  color:inherit;min-height:38px}
.bchip:hover{border-color:var(--forest,#1f3d30)}
.bchip .muted{opacity:.6;font-size:12px}
.bmore{cursor:pointer;padding:8px 6px;font-size:13px}

.section-hd{display:flex;align-items:baseline;gap:10px}
.capnote{padding:10px 2px;font-size:12.5px}
.badgewrap{margin-top:22px}
@media(max-width:640px){
  .exhero{padding:18px 0 10px}
  .exsearch input{min-height:50px;font-size:16px}   /* 16px avoids iOS zoom-on-focus */
  .seg-b,.fxbtn,.freset{min-height:44px}
  .fxgrid{grid-template-columns:1fr}
}


/* ── WS4 · one control language across Explore and the destination pages ──────────────────
   Same field look, same radius, same focus treatment. The LAYOUTS stay different on purpose — a
   city page keeps its neighbourhood and arrondissement rows, Explore keeps its editorial hero —
   but a person who learns the filters on one page already recognises them on the other. */
.filters select,.filters-in select{
  border:1px solid rgba(31,61,48,.20);border-radius:10px;background:#fffdf8;
  font:400 14px var(--sans);color:inherit;padding:10px 12px;min-height:44px;box-sizing:border-box;
}
.filters select:focus,.filters-in select:focus{outline:2px solid var(--forest,#1f3d30);outline-offset:1px}
.filters .viewswitch button{min-height:44px;border-radius:10px}

/* ── Keep the sticky filter bar to ONE row on small screens ────────────────────────────────
   It used to wrap into several rows on a phone, which made the sticky bar tall enough to sit
   ON TOP of the list beneath it: the first row's own controls stopped receiving clicks because
   the bar was covering them. One horizontally-scrollable row stays thin, so it never covers
   the content it filters, and every control remains reachable by swiping the row. */
@media (max-width:899px){
  .filters-in{flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
  .filters-in::-webkit-scrollbar{display:none}
  .filters-in select,
  .filters-in input[type="search"],
  .filters-in label,
  .filters-in .viewswitch,
  .filters-in .viewswitch button,
  .filters-in .area-btn{flex:0 0 auto;min-width:0}
  .filters-in .viewswitch{margin-left:0}
  /* the chips row is #statuschips — an ID selector outranks a class selector, so it has to be
     named here or its flex-wrap:wrap keeps the bar multi-row on a phone */
  .filters .chips,
  #statuschips{display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  #statuschips::-webkit-scrollbar{display:none}
  .filters .chips>*,
  #statuschips>*{flex:0 0 auto}
}
