:root{
  --bg:#F3F5FA; --surface:#FFFFFF; --surface-glass:rgba(255,255,255,.82);
  --ink:#0B1027; --ink-2:#2A3150; --muted:#5A6283; --line:#D9DEEB;
  --royal:#2340E6; --royal-strong:#1A31C2; --royal-soft:#E6EAFF; --on-royal:#FFFFFF;
  --muni-stroke:#FFFFFF; --neigh-stroke:rgba(11,16,39,.14);
  --veil:#F3F5FA; --veil-op:.58; --halo:rgba(255,255,255,.92);
  --r1:#F2F4F9; --r2:#E6EAF3; --r3:#D6DCEB; --r4:#C1C9E0; --r5:#A9B3D2; --r6:#98A3C8;
  --shade-k0:.66; --shade-k1:.48; --contour:rgba(11,16,39,.09); --tile-side:#1A31C2;
  --bld-wall:#FBF7F0; --bld-roof:#C98E70; --bld-lm:#2340E6; --bld-lm-roof:#1A31C2;
  --peak:#2A3150;
  --ad-bg:#EDF0F7; --ad-line:#C9D0E2;
  --shadow:0 18px 50px -24px rgba(11,16,39,.45);
  --display:'Bricolage Grotesque','Onest',system-ui,sans-serif;
  --sans:'Onest',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#070B1A; --surface:#0F152B; --surface-glass:rgba(15,21,43,.84);
    --ink:#EEF1FF; --ink-2:#C9CFEA; --muted:#98A1C6; --line:#222A48;
    --royal:#5570FF; --royal-strong:#7A90FF; --royal-soft:#18214A; --on-royal:#FFFFFF;
    --muni-stroke:rgba(238,241,255,.55); --neigh-stroke:rgba(238,241,255,.10);
    --veil:#070B1A; --veil-op:.62; --halo:rgba(7,11,26,.9);
    --r1:#10162C; --r2:#141B36; --r3:#1B2444; --r4:#243056; --r5:#33406E; --r6:#45538A;
    --shade-k0:.48; --shade-k1:.78; --contour:rgba(238,241,255,.09); --tile-side:#2B40C8;
    --bld-wall:#D9DCE8; --bld-roof:#9A6A57; --bld-lm:#5570FF; --bld-lm-roof:#7A90FF;
    --peak:#C9CFEA;
    --ad-bg:#111833; --ad-line:#2A3358;
    --shadow:0 18px 50px -20px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#070B1A; --surface:#0F152B; --surface-glass:rgba(15,21,43,.84);
  --ink:#EEF1FF; --ink-2:#C9CFEA; --muted:#98A1C6; --line:#222A48;
  --royal:#5570FF; --royal-strong:#7A90FF; --royal-soft:#18214A; --on-royal:#FFFFFF;
  --muni-stroke:rgba(238,241,255,.55); --neigh-stroke:rgba(238,241,255,.10);
  --veil:#070B1A; --veil-op:.62; --halo:rgba(7,11,26,.9);
  --r1:#10162C; --r2:#141B36; --r3:#1B2444; --r4:#243056; --r5:#33406E; --r6:#45538A;
  --shade-k0:.48; --shade-k1:.78; --contour:rgba(238,241,255,.09); --tile-side:#2B40C8;
  --bld-wall:#D9DCE8; --bld-roof:#9A6A57; --bld-lm:#5570FF; --bld-lm-roof:#7A90FF;
  --peak:#C9CFEA;
  --ad-bg:#111833; --ad-line:#2A3358;
  --shadow:0 18px 50px -20px rgba(0,0,0,.7);
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%}
[hidden]{display:none!important}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--royal);outline-offset:2px}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }

/* ============ TOP BAR ============ */
.topbar{position:absolute;z-index:40;top:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:14px clamp(12px,2.4vw,28px);padding-top:calc(env(safe-area-inset-top,0px) + 14px);pointer-events:none}
.topbar>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--display);font-weight:700;font-size:21px;letter-spacing:-.02em;padding:6px 12px 6px 7px;border-radius:999px;background:var(--surface-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 0 0 1px var(--line)}
.cta-top{margin-left:auto;appearance:none;border:0;cursor:pointer;height:42px;padding:0 18px;border-radius:999px;background:var(--royal);color:var(--on-royal);font-weight:600;font-size:14.5px;text-decoration:none;display:inline-flex;align-items:center}
.cta-top:hover{background:var(--royal-strong)}

/* ============ HERO MAP ============ */
.hero{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;isolation:isolate;background:var(--bg)}
#map{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;-webkit-user-select:none}
.veil{fill:var(--veil);opacity:var(--veil-op)}
.neigh path{fill:none;stroke:var(--neigh-stroke);stroke-width:1}
.muni{fill:var(--royal);fill-opacity:0;stroke:var(--muni-stroke);stroke-width:1.3;cursor:pointer;transition:fill-opacity .18s ease,opacity .35s ease}
.muni:hover,.muni.hot{fill-opacity:.40}
.muni:focus-visible{outline:none;fill-opacity:.40;stroke:var(--royal);stroke-width:2.5}
.muni.sel{fill-opacity:.55}
.zooming .muni:not(.sel){opacity:.18}
.h0{fill:none;stroke:var(--royal);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.h1{fill:none;stroke:var(--royal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.95}
.h2{fill:none;stroke:var(--royal);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;opacity:.55}
.hydro-out{opacity:.35}
.charco{fill:var(--royal);stroke:var(--surface);stroke-width:1.6}
.vdot{fill:var(--ink);stroke:var(--surface);stroke-width:1.6}
.peak{fill:var(--peak);stroke:var(--surface);stroke-width:1.1;stroke-linejoin:round}
.peak.ref{fill:none;stroke:var(--peak);stroke-width:1.4}
.vlabel,.plabel{font-family:var(--sans);font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--halo);stroke-linejoin:round;pointer-events:none}
.plabel{font-weight:500;fill:var(--ink-2)}
.plabel tspan.e{font-family:var(--mono);font-weight:400;fill:var(--muted)}
.labels,.pts{transition:opacity .3s ease}
.pts{pointer-events:none}
.pts .peakhit{pointer-events:all;cursor:default}
.labels{pointer-events:none}
.zooming .labels,.zooming .pts{opacity:0}
.muni,.h0,.h1,.h2,.neigh path,.charco,.vdot,.peak{vector-effect:non-scaling-stroke}
.hero.in3d #map{visibility:hidden}
.intro{transition:opacity .3s ease}
.hero.zooming .intro{opacity:0;pointer-events:none}
.hero.in3d .intro,.hero.in3d .legend,.hero.in3d .rail,.hero.in3d .cue{opacity:0;pointer-events:none}
.intro,.legend,.rail,.cue{transition:opacity .3s ease}

.intro{position:absolute;z-index:10;left:clamp(16px,3vw,40px);top:calc(env(safe-area-inset-top,0px) + 86px);max-width:470px;pointer-events:none}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--royal);font-weight:500}
.intro h1{margin:8px 0 10px;font-family:var(--display);font-weight:800;font-size:clamp(60px,min(9vw,13vh),128px);line-height:.86;letter-spacing:-.045em}
.intro h1 span{color:var(--royal)}
.intro p{margin:0;font-size:clamp(16px,1.3vw,19px);line-height:1.45;color:var(--ink-2);max-width:31ch;text-wrap:pretty}
.intro .stats{display:flex;gap:18px;margin-top:14px;font-family:var(--mono);font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.intro .stats b{font-weight:500;color:var(--ink)}

.legend{position:absolute;z-index:10;right:clamp(16px,3vw,32px);bottom:30px;display:flex;flex-direction:column;gap:8px;padding:13px 15px;border-radius:16px;background:var(--surface-glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 0 0 1px var(--line);font-size:12.5px;color:var(--ink-2);min-width:230px}
.lg-body{display:flex;flex-direction:column;gap:8px}
.lg-btn{display:none;appearance:none;border:0;background:none;cursor:pointer;align-items:center;gap:8px;height:36px;padding:0 14px;font-size:13px;font-weight:600;color:var(--ink-2)}
.legend.mini{padding:0;min-width:0;gap:0}
.legend.mini .lg-btn{display:flex}
.legend.mini .lg-body{display:none}
.legend.mini.open{padding:0 0 13px}
.legend.mini.open .lg-body{display:flex;padding:0 15px;min-width:230px}
.legend .row{display:flex;align-items:center;gap:10px}
.legend .sw{width:22px;height:12px;flex:none;position:relative}
.sw.muni-sw{border:1.5px solid var(--muni-stroke);background:rgba(35,64,230,.12);border-radius:2px;box-shadow:0 0 0 1px var(--line)}
.sw.garg-sw::after{content:"";position:absolute;left:0;right:0;top:5px;height:2px;background:var(--royal);border-radius:2px}
.sw.ch-sw::after{content:"";position:absolute;left:6px;top:1px;width:10px;height:10px;background:var(--royal);border-radius:50%;box-shadow:0 0 0 1.5px var(--surface)}
.sw.pk-sw::after{content:"";position:absolute;left:5px;top:0;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:11px solid var(--peak)}
.legend .scale{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11.5px;color:var(--muted);border-top:1px solid var(--line);margin-top:2px;padding-top:8px}
.legend .bar{height:5px;border:1.5px solid var(--ink);border-top:0}
.legend .src{font-family:var(--mono);font-size:10.5px;color:var(--muted);max-width:230px}

.cue{position:absolute;z-index:11;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);transform:translateX(-50%);display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:var(--surface-glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 0 0 1px var(--line);font-size:13.5px;font-weight:600;color:var(--ink-2);text-decoration:none}
.cue:hover{color:var(--royal);box-shadow:0 0 0 2px var(--royal)}
.cue svg{animation:bob 2.2s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(3px)}}
@media (prefers-reduced-motion: reduce){.cue svg{animation:none}}

.tip{position:absolute;z-index:30;pointer-events:none;padding:10px 12px;border-radius:12px;background:var(--ink);color:var(--bg);box-shadow:var(--shadow);transform:translate(-50%,calc(-100% - 14px));opacity:0;transition:opacity .12s ease;min-width:150px;max-width:260px}
.tip.on{opacity:1}
.tip b{display:block;font-family:var(--display);font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.15}
.tip span{display:block;font-family:var(--mono);font-size:11.5px;opacity:.75;margin-top:2px}
.tip em{display:block;font-style:normal;font-size:12px;margin-top:6px;color:var(--royal-soft)}
.rail{display:none}

/* ============ 3D STAGE ============ */
.stage{position:absolute;inset:0;z-index:15;opacity:0;pointer-events:none;transition:opacity .35s ease;background:radial-gradient(120% 90% at 40% 30%,var(--bg) 0%,var(--bg) 55%,color-mix(in oklab,var(--bg),var(--royal) 8%) 100%)}
.stage.on{opacity:1;pointer-events:auto}
#gl{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.pins{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.pin{position:absolute;left:0;top:0;display:flex;align-items:center;gap:6px;white-space:nowrap;opacity:0;transition:opacity .35s ease}
.pin.show{opacity:1}
.pin.show.muted{opacity:0;pointer-events:none}
.pin[data-cid]{pointer-events:auto;cursor:pointer}
.pin .n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--royal);color:var(--on-royal);font-family:var(--mono);font-size:12px;font-weight:500;box-shadow:0 0 0 2px var(--surface),0 6px 16px -6px rgba(11,16,39,.6);transition:transform .2s ease}
.pin .t{font-size:12.5px;font-weight:600;padding:4px 8px;border-radius:8px;background:var(--surface-glass);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 0 0 1px var(--line);color:var(--ink)}
.pin.other .n{width:14px;height:14px;font-size:0;background:var(--surface);box-shadow:0 0 0 3px var(--royal)}
.pin.other .t{font-weight:500;color:var(--ink-2);font-size:11.5px}
.pin.hl .n{transform:scale(1.3)}
.pin.hl .t{background:var(--royal);color:var(--on-royal);box-shadow:none}
.pin.village .t{background:var(--ink);color:var(--bg);font-family:var(--display);font-size:15px;font-weight:700;letter-spacing:-.01em;padding:5px 10px;box-shadow:none}
.pin.village .n,.pin.vsmall .n,.pin.glabel .n{display:none}
.pin.vsmall .t{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-size:12px;font-weight:600;color:var(--ink-2);text-shadow:0 0 3px var(--halo),0 0 2px var(--halo)}
.pin.glabel .t{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-family:var(--display);font-style:italic;font-weight:600;color:var(--royal);font-size:13px;text-shadow:0 0 3px var(--halo),0 0 2px var(--halo),0 0 1px var(--halo)}
.pin.peakpin .n{width:0;height:0;border-radius:0;background:none;box-shadow:none;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--peak);filter:drop-shadow(0 0 1.5px var(--halo))}
.pin.peakpin .t{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;font-size:12px;font-weight:600;color:var(--ink-2);text-shadow:0 0 3px var(--halo),0 0 2px var(--halo)}
.pin.peakpin .t small{font-family:var(--mono);font-weight:400;font-size:10.5px;color:var(--muted);margin-left:4px}
.pin.lm .n{width:auto;height:22px;padding:0 6px;border-radius:6px;font-size:10px;letter-spacing:.04em;text-transform:uppercase;background:var(--ink);color:var(--bg);box-shadow:0 0 0 2px var(--surface)}
.pin.lm .t{font-size:12px}
.pin.lm.minor .t{display:none}
.pin.lm.minor:hover .t,.pin.lm.minor.hl .t{display:inline}
.back{position:absolute;z-index:6;left:clamp(16px,3vw,32px);top:calc(env(safe-area-inset-top,0px) + 76px);display:flex;align-items:center;gap:8px;height:44px;padding:0 16px 0 12px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font-weight:600;font-size:14px;cursor:pointer;box-shadow:var(--shadow)}
.back:hover{background:var(--royal);color:var(--on-royal)}
.tcard{position:absolute;z-index:6;left:clamp(16px,3vw,32px);top:calc(env(safe-area-inset-top,0px) + 132px);width:min(330px,calc(100% - 32px));padding:14px 16px 12px;border-radius:18px;background:var(--surface-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 0 0 1px var(--line);display:flex;flex-direction:column;gap:6px;opacity:0;transform:translateY(-6px);transition:opacity .35s ease,transform .35s ease}
.stage.ready .tcard{opacity:1;transform:none}
.tcard h2{margin:0;font-family:var(--display);font-weight:800;font-size:30px;line-height:.95;letter-spacing:-.035em;text-wrap:balance}
.meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.meta b{color:var(--ink);font-weight:500}
.tcard p{margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--royal-soft);color:var(--royal)}
.tag.hist{background:var(--ink);color:var(--bg)}
.tnav{display:flex;gap:6px;margin-top:4px}
.tnav button{flex:1;height:34px;border-radius:10px;border:0;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);font-size:12.5px;font-weight:500;cursor:pointer;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.tnav button:hover{box-shadow:inset 0 0 0 1.5px var(--royal);color:var(--royal)}
.compass{position:absolute;z-index:5;left:clamp(16px,3vw,32px);bottom:24px;width:44px;height:44px;border-radius:50%;background:var(--surface-glass);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 0 0 1px var(--line);display:grid;place-items:center}
.glnote{position:absolute;z-index:5;left:calc(clamp(16px,3vw,32px) + 56px);bottom:24px;font-family:var(--mono);font-size:11px;color:var(--muted);max-width:380px;line-height:1.4;padding:7px 10px;border-radius:10px;background:var(--surface-glass);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 0 0 1px var(--line)}
.gesture{position:absolute;z-index:5;left:50%;top:calc(env(safe-area-inset-top,0px) + 80px);transform:translateX(-50%);font-size:12.5px;color:var(--ink-2);padding:7px 12px;border-radius:999px;background:var(--surface-glass);box-shadow:0 0 0 1px var(--line);opacity:0;transition:opacity .4s ease;pointer-events:none;white-space:nowrap}
.gesture.on{opacity:1}
.optbtn{position:absolute;z-index:6;right:clamp(16px,3vw,32px);bottom:24px;display:none;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;border:0;background:var(--royal);color:var(--on-royal);font-weight:600;font-size:14px;cursor:pointer;box-shadow:var(--shadow)}
.optbtn.on{display:flex}

/* radial menu */
.radial{position:absolute;z-index:7;left:0;top:0;width:340px;height:340px;margin:-170px 0 0 -170px;pointer-events:none;opacity:0;transform:scale(.6);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.9,.25,1.15)}
.radial.on{opacity:1;transform:scale(1)}
.radial.drag{opacity:.18}
.radial svg{width:100%;height:100%;overflow:visible}
.seg{pointer-events:all;cursor:pointer;transform-box:view-box;transform-origin:0 0;transition:transform .28s cubic-bezier(.2,.9,.25,1.2),opacity .2s ease}
.seg path{fill:var(--surface);fill-opacity:.95;stroke:var(--line);stroke-width:1}
.seg text{font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:-.01em;fill:var(--ink);text-anchor:middle;dominant-baseline:middle;pointer-events:none;transition:font-size .2s ease}
.seg .ic{fill:none;stroke:var(--royal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.seg:hover,.seg:focus-visible,.seg.active{transform:scale(1.14)}
.seg:hover path,.seg:focus-visible path,.seg.active path{fill:var(--royal);fill-opacity:1;stroke:var(--royal)}
.seg:hover text,.seg:focus-visible text,.seg.active text{fill:var(--on-royal)}
.seg:hover .ic,.seg:focus-visible .ic,.seg.active .ic{stroke:var(--on-royal)}
.seg:focus-visible{outline:none}
.radial svg:hover .seg:not(:hover):not(.active){opacity:.72;transform:scale(.97)}
.rclose{pointer-events:all;cursor:pointer}
.radial:not(.on) .seg,.radial:not(.on) .rclose,.radial.hide-m .seg,.radial.hide-m .rclose{pointer-events:none}
.rclose circle{fill:var(--ink)}
.rclose path{stroke:var(--bg);stroke-width:1.8;stroke-linecap:round}
.rclose:hover circle{fill:var(--royal)}

/* content sheet */
.sheet{position:absolute;z-index:8;top:calc(env(safe-area-inset-top,0px) + 76px);right:clamp(12px,2vw,24px);bottom:20px;width:400px;display:flex;flex-direction:column;border-radius:22px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);transform:translateX(calc(100% + 40px));transition:transform .45s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.sheet.on{transform:none}
.sh-head{display:flex;flex-direction:column;gap:10px;padding:18px 18px 12px;border-bottom:1px solid var(--line)}
.sh-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sh-top h3{margin:2px 0 0;font-family:var(--display);font-weight:800;font-size:28px;line-height:1;letter-spacing:-.03em}
.xbtn{appearance:none;border:0;cursor:pointer;width:38px;height:38px;border-radius:50%;background:var(--bg);display:grid;place-items:center;flex:none}
.xbtn:hover{color:var(--royal)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{appearance:none;border:0;cursor:pointer;height:34px;padding:0 12px;border-radius:999px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);font-size:13px;font-weight:600;color:var(--ink-2)}
.chip:hover{box-shadow:inset 0 0 0 1.5px var(--royal);color:var(--royal)}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);box-shadow:none}
.sh-body{overflow-y:auto;overscroll-behavior:contain;padding:14px 18px 20px;display:flex;flex-direction:column;gap:16px}
.sect{display:flex;flex-direction:column;gap:8px}
.sect h4{margin:0;font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.item{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:9px 10px;border-radius:14px;cursor:pointer;transition:background .15s ease}
.item:hover,.item.hl{background:var(--royal-soft)}
.item .n{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--royal);color:var(--on-royal);font-family:var(--mono);font-size:12px}
.item.other .n{background:var(--surface);color:var(--royal);box-shadow:inset 0 0 0 2px var(--royal)}
.item.pk .n{border-radius:0;background:none;box-shadow:none;width:0;height:0;margin:5px 0 0 6px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:14px solid var(--peak)}
.item.gg .n{border-radius:8px;background:var(--royal-soft);color:var(--royal);font-size:0}
.item.gg .n::after{content:"";width:14px;height:2px;border-radius:2px;background:var(--royal);transform:rotate(-30deg)}
.item b{display:block;font-size:14.5px;font-weight:600;line-height:1.25}
.item i{display:block;font-style:normal;font-size:12px;color:var(--royal);font-weight:500;margin-top:1px}
.item p{margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}
.empty{margin:0;font-size:13.5px;color:var(--muted)}
.frow{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:center;padding:10px;border-radius:14px;background:var(--bg)}
.frow .d{display:flex;flex-direction:column;align-items:center;justify-content:center;height:50px;border-radius:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.frow .d b{font-family:var(--display);font-size:19px;font-weight:800;line-height:1}
.frow .d span{font-family:var(--mono);font-size:10px;color:var(--muted);text-transform:uppercase}
.frow.it .d{background:var(--royal);box-shadow:none;color:var(--on-royal)}
.frow.it .d span{color:var(--on-royal);opacity:.8}
.frow h5{margin:0;font-size:15px;font-weight:600;line-height:1.25}
.frow .fp{font-size:12px;color:var(--royal);font-weight:600;margin-top:2px}
.frow p{margin:3px 0 0;font-size:13px;color:var(--ink-2);line-height:1.45}
.frow.past{opacity:.5}
.soon{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:16px;background:var(--royal-soft)}
.soon b{font-family:var(--display);font-size:20px;line-height:1.1;letter-spacing:-.02em}
.soon p{margin:0;font-size:14px;color:var(--ink-2)}
.soon a{align-self:flex-start;display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:12px;background:var(--royal);color:var(--on-royal);font-weight:600;font-size:14px;text-decoration:none}
.soon a:hover{background:var(--royal-strong)}
.note{font-family:var(--mono);font-size:10.5px;color:var(--muted);line-height:1.5;margin:0}

/* ads */
.ad{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.ads-off .ad{display:none!important}
.ad>span{align-self:flex-start;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.ad>div{width:100%;display:grid;place-items:center;text-align:center;padding:8px 12px;border-radius:12px;border:1.5px dashed var(--ad-line);background:var(--ad-bg);color:var(--muted);font-size:12.5px;line-height:1.4}
.ad>ins{display:block;width:100%}
.ad.lb>div{max-width:728px;height:90px}
.ad.lb>span{align-self:center;width:100%;max-width:728px}
.ad.rect>div{height:250px}

/* ============ CONTACT (below the map) ============ */
.contact{padding-inline:clamp(16px,4vw,48px);padding-block:48px 64px;background:var(--bg)}
.cwrap{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.chead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:48px;align-items:start}
.chead h2{margin:8px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(44px,6vw,86px);line-height:.9;letter-spacing:-.045em;text-wrap:balance}
.chead h2 span{color:var(--royal)}
.chead p{margin:14px 0 0;max-width:52ch;font-size:17px;color:var(--ink-2);text-wrap:pretty}
.tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.tier{padding:16px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:flex;flex-direction:column;gap:6px}
.tier.hi{box-shadow:0 0 0 2px var(--royal)}
.tier h4{margin:0;font-family:var(--display);font-size:19px;font-weight:700;letter-spacing:-.02em}
.tier .price{font-family:var(--mono);font-size:12px;color:var(--royal)}
.tier ul{margin:0;padding-left:18px;font-size:13.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:3px}
.cform{padding:22px;border-radius:24px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);display:flex;flex-direction:column;gap:14px}
.cform h3{margin:0;font-family:var(--display);font-size:26px;font-weight:800;letter-spacing:-.03em;line-height:1}
.fld{display:flex;flex-direction:column;gap:6px}
.fld label{font-size:13px;font-weight:600;color:var(--ink-2)}
.fld input,.fld select,.fld textarea{width:100%;min-width:0;height:44px;padding:0 12px;border-radius:12px;border:0;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);font-size:15px;color:var(--ink)}
.fld textarea{height:96px;padding:10px 12px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;box-shadow:inset 0 0 0 2px var(--royal)}
.err{font-size:12.5px;color:#C2352B}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.chk{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--ink-2)}
.chk input{width:18px;height:18px;margin-top:2px;accent-color:var(--royal)}
.submit{height:48px;border-radius:14px;border:0;cursor:pointer;background:var(--royal);color:var(--on-royal);font-weight:600;font-size:15px}
.submit:hover{background:var(--royal-strong)}
.submit:disabled{opacity:.6;cursor:default}
.ok{display:none;flex-direction:column;gap:8px;padding:18px;border-radius:16px;background:var(--royal-soft)}
.ok.on{display:flex}
.ok b{font-family:var(--display);font-size:22px}
.ok p{margin:0;font-size:14px;color:var(--ink-2)}
.foot{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;align-items:flex-start;border-top:1px solid var(--line);padding-top:22px;font-size:13px;color:var(--muted)}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.foot a{color:inherit;text-decoration:none}
.foot a:hover{color:var(--royal);text-decoration:underline}
.foot .src{font-family:var(--mono);font-size:11px;max-width:70ch;line-height:1.5}
.nosupport{position:absolute;z-index:20;left:50%;bottom:40px;transform:translateX(-50%);max-width:min(460px,calc(100% - 32px));padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);font-size:14px;color:var(--ink-2)}

/* ============ NARROW ============ */
@media (max-width:1000px){
  .chead{grid-template-columns:minmax(0,1fr)}
  .tiers{grid-template-columns:1fr}
}
@media (max-width:760px){
  .brand{font-size:19px}
  .cta-top{height:38px;padding:0 14px;font-size:13.5px}
  .intro{top:calc(env(safe-area-inset-top,0px) + 70px);right:16px;max-width:none}
  .intro h1{font-size:58px}
  .intro p{font-size:15px;max-width:36ch}
  .intro .stats{margin-top:8px;gap:12px;font-size:11.5px}
  .labels{display:none}
  .legend{display:none}
  .cue{bottom:calc(env(safe-area-inset-bottom,0px) + 80px);height:36px;font-size:12.5px}
  .rail{display:flex;position:absolute;z-index:12;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);gap:8px;overflow-x:auto;padding:4px 16px;scrollbar-width:none}
  .rail::-webkit-scrollbar{display:none}
  .rail button{flex:none;height:44px;padding:0 16px;border-radius:999px;border:0;background:var(--surface-glass);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 0 0 1px var(--line);font-weight:600;font-size:14px;cursor:pointer}
  .back{top:calc(env(safe-area-inset-top,0px) + 66px)}
  .tcard{top:calc(env(safe-area-inset-top,0px) + 118px);padding:10px 12px}
  .tcard h2{font-size:24px}
  .tcard p,.tcard .tags{display:none}
  .gesture,.glnote{display:none}
  .compass{top:calc(env(safe-area-inset-top,0px) + 66px);bottom:auto;left:auto;right:16px}
  .radial{width:280px;height:280px;margin:-140px 0 0 -140px}
  .sheet{top:auto;left:8px;right:8px;bottom:8px;width:auto;height:62%;transform:translateY(calc(100% + 20px))}
  .sheet.on{transform:none}
  .radial.hide-m{opacity:0!important;pointer-events:none}
  .two{grid-template-columns:1fr}
  .ad.lb>div{height:250px;max-width:300px}
  .ad.lb>span{max-width:300px}
}
@media (prefers-reduced-motion: reduce){
  .muni,.stage,.sheet,.pin,.radial,.seg,.tcard{transition:none}
}


/* ---------- páginas del blog (todo lo que no es la portada) ---------- */
body.vt-blog{min-height:100vh;display:flex;flex-direction:column}
body.vt-home .vt-main,body.vt-home .vt-foot,html:has(.hero) .vt-main{display:none}
.vt-cf,#cfwidget,.vt-extra,#sidebar{display:none!important}
.vt-bar .cta-top{margin-left:0}
.vt-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:12px clamp(16px,3vw,28px);padding-top:calc(env(safe-area-inset-top,0px) + 12px);background:var(--surface-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.vt-nav{display:flex;flex-wrap:wrap;gap:2px;margin:0 auto}
.vt-nav a{padding:8px 13px;border-radius:999px;text-decoration:none;font-weight:600;font-size:14.5px;color:var(--ink-2)}
.vt-nav a:hover{color:var(--royal);background:var(--royal-soft)}
a.cta-top{display:inline-flex;align-items:center;text-decoration:none}
.vt-main{flex:1;width:100%;max-width:780px;margin:0 auto;padding:48px 16px 64px;display:flex;flex-direction:column;gap:32px}
.vt-main .widget{display:flex;flex-direction:column;gap:28px}
.vt-post{display:flex;flex-direction:column;gap:22px}
.vt-title{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(38px,6vw,68px);line-height:.95;letter-spacing:-.04em;text-wrap:balance}
.vt-body{font-size:17.5px;line-height:1.7;color:var(--ink-2);overflow-wrap:break-word}
.vt-body h2,.vt-body h3{font-family:var(--display);color:var(--ink);letter-spacing:-.02em;line-height:1.1;margin:1.6em 0 .5em}
.vt-body h2{font-size:30px}.vt-body h3{font-size:22px}
.vt-body a{color:var(--royal)}
.vt-body img{height:auto;border-radius:14px}
.vt-body table{border-collapse:collapse;display:block;overflow-x:auto}
.vt-body td,.vt-body th{border:1px solid var(--line);padding:6px 10px}
.vt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.vt-list a{display:block;padding:16px 18px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-family:var(--display);font-weight:700;font-size:21px;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.vt-list a:hover{box-shadow:0 0 0 2px var(--royal);color:var(--royal)}
.vt-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;padding:24px 16px calc(env(safe-area-inset-bottom,0px) + 24px);border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.vt-foot a{color:inherit;text-decoration:none}
.vt-foot a:hover{color:var(--royal);text-decoration:underline}
@media (max-width:760px){
  .vt-bar{flex-wrap:wrap}
  .vt-nav{order:3;width:100%;justify-content:space-between}
  .vt-nav a{padding:8px 6px;font-size:13.5px}
  .vt-bar .cta-top{margin-left:auto}
  .vt-main{padding-top:32px}
}
.soon a.alt{height:auto;padding:0;background:none;color:var(--royal);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.soon a.alt:hover{background:none;color:var(--royal-strong)}

/* =====================================================================
   PÁGINAS INTERIORES: fichas de pueblo, índice y páginas de texto
   Mismos tokens que el mapa (manual de identidad v1.0)
   ===================================================================== */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.dot{color:var(--royal)}
.vt-nav a[aria-current="page"]{color:var(--royal);background:var(--royal-soft)}

.pg{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:24px clamp(16px,4vw,48px) 72px;display:flex;flex-direction:column;gap:56px}
.crumbs{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;list-style:none;font-family:var(--mono);font-size:12px;color:var(--muted)}
.crumbs a{color:inherit;text-decoration:none}
.crumbs a:hover{color:var(--royal);text-decoration:underline}
.crumbs li+li::before{content:"/";margin-right:8px;opacity:.5}

/* ---------- cabecera de ficha ---------- */
.fi-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,540px);gap:clamp(28px,4vw,56px);align-items:start}
.fi-hero h1{margin:12px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(48px,7.2vw,96px);line-height:.86;letter-spacing:-.045em;text-wrap:balance}
.lead{margin:22px 0 0;max-width:44ch;font-size:clamp(18px,1.7vw,21px);line-height:1.45;color:var(--ink-2);text-wrap:pretty}
.facts{margin:26px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;max-width:520px}
.facts div{border-top:1px solid var(--line);padding-top:8px}
.facts dt{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.facts dd{margin:3px 0 0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.facts dd.mono{font-family:var(--mono);font-weight:400;font-size:13px}
.fi-hero .tags{margin-top:20px}
.fi-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.btn{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:14px;font-weight:600;font-size:15px;text-decoration:none;background:var(--royal);color:var(--on-royal)}
.btn:hover{background:var(--royal-strong)}
.btn.ghost{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn.ghost:hover{box-shadow:inset 0 0 0 2px var(--royal);color:var(--royal)}

/* ---------- mapa estático de la ficha ---------- */
.fi-map{margin:0;border-radius:24px;overflow:hidden;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow)}
.fi-map figcaption{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;font-family:var(--mono);font-size:10.5px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line)}
.fm{display:block;width:100%;height:auto;background:var(--r1)}
.fm .m{fill:var(--surface);stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.fm .mc{fill:var(--royal-soft);stroke:var(--royal);stroke-width:2.2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.fm .g1,.fm .g2{fill:none;stroke:var(--royal);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.fm .g1{stroke-width:1.5;opacity:.9}
.fm .g2{stroke-width:.8;opacity:.45}
.fm .ch circle{fill:var(--royal);stroke:var(--surface);stroke-width:1.5;vector-effect:non-scaling-stroke}
.fm .ch text{fill:var(--on-royal);font-family:var(--mono);font-weight:500;text-anchor:middle;dominant-baseline:central;stroke:none}
.fm .pk{fill:var(--peak);stroke:var(--surface);stroke-width:1;vector-effect:non-scaling-stroke}
.fm .vd{fill:var(--ink);stroke:var(--surface);stroke-width:1.5;vector-effect:non-scaling-stroke}
.fm .lb{font-family:var(--sans);font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--halo);stroke-linejoin:round}
.fm a .m{cursor:pointer;transition:fill .15s ease}
.fm a:hover .m,.fm a:focus-visible .m{fill:var(--royal-soft);stroke:var(--royal)}
.fm a:focus-visible{outline:none}

/* ---------- secciones ---------- */
.fi-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:56px clamp(32px,5vw,72px);align-items:start}
.fi-col{display:flex;flex-direction:column;gap:56px;min-width:0}
.sec{display:flex;flex-direction:column;gap:14px;min-width:0}
.sec h2{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(30px,3.2vw,40px);line-height:1;letter-spacing:-.03em}
.sec h3{margin:10px 0 0;font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:-.02em}
.sec>p{margin:0;max-width:62ch;color:var(--ink-2)}
.sec .note{max-width:62ch}
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.rows>li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.rows>li:last-child{border-bottom:1px solid var(--line)}
.rows.plain>li{grid-template-columns:minmax(0,1fr)}
.rows .n{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--royal);color:var(--on-royal);font-family:var(--mono);font-size:12px;margin-top:1px}
.rows .n.o{background:var(--surface);color:var(--royal);box-shadow:inset 0 0 0 2px var(--royal)}
.rows .n.pk{border-radius:0;background:none;width:0;height:0;margin:6px 0 0 5px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:14px solid var(--peak)}
.rows .n.gg{border-radius:8px;background:var(--royal-soft);font-size:0}
.rows .n.gg::after{content:"";width:14px;height:2px;border-radius:2px;background:var(--royal);transform:rotate(-30deg)}
.rows b{display:block;font-size:16px;font-weight:600;line-height:1.3}
.rows .k{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--royal)}
.rows p{margin:5px 0 0;font-size:14.5px;line-height:1.5;color:var(--ink-2);max-width:60ch}
.rows .xy{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-family:var(--mono);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.rows .xy a{color:var(--royal);text-decoration:none}
.rows .xy a:hover{text-decoration:underline}
.kinds{display:flex;flex-wrap:wrap;gap:8px}
.kinds li{list-style:none;padding:8px 12px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);font-size:14.5px;font-weight:600;line-height:1.3}
.kinds li span{display:block;font-size:12px;font-weight:500;color:var(--muted)}
.kinds{margin:0;padding:0}
.frows{display:flex;flex-direction:column;gap:8px}
.frow[data-fin].past{opacity:.5}
.empty{margin:0;font-size:14.5px;color:var(--muted)}

/* ---------- anterior / siguiente ---------- */
.pn{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pn a{display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none}
.pn a:hover{box-shadow:0 0 0 2px var(--royal)}
.pn a span{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.pn a b{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.02em}
.pn a.nx{text-align:right}

/* ---------- índice de pueblos ---------- */
.ix-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,640px);gap:clamp(28px,4vw,56px);align-items:end}
.ix-head h1{margin:12px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(48px,7.2vw,96px);line-height:.86;letter-spacing:-.045em}
.ix{list-style:none;margin:0;padding:0;counter-reset:none}
.ix li{border-top:1px solid var(--line)}
.ix li:last-child{border-bottom:1px solid var(--line)}
.ix a{display:grid;grid-template-columns:44px minmax(0,15rem) minmax(0,1fr) auto;gap:6px 20px;align-items:baseline;padding:18px 6px;text-decoration:none;border-radius:12px}
.ix a:hover{background:var(--royal-soft)}
.ix .o{font-family:var(--mono);font-size:12px;color:var(--muted)}
.ix b{font-family:var(--display);font-weight:700;font-size:23px;letter-spacing:-.02em;line-height:1.1}
.ix p{margin:0;font-size:14.5px;color:var(--ink-2);line-height:1.45}
.ix .d{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap;text-align:right}

/* ---------- portada: los 19 pueblos bajo el mapa ---------- */
.towns{padding:56px clamp(16px,4vw,48px) 8px;background:var(--bg)}
.towns .cwrap{gap:22px}
.towns h2{margin:8px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(40px,5vw,64px);line-height:.92;letter-spacing:-.04em}
.towns h2 span{color:var(--royal)}
.towns .intro-t{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 32px}
.towns .intro-t p{margin:0;max-width:52ch;color:var(--ink-2)}
.tlist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 24px}
.tlist a{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:12px 2px;border-top:1px solid var(--line);text-decoration:none;font-weight:600}
.tlist a:hover{color:var(--royal)}
.tlist a span{font-family:var(--mono);font-size:12px;font-weight:400;color:var(--muted)}

/* ---------- páginas de texto ---------- */
.prose{max-width:720px;display:flex;flex-direction:column;gap:18px}
.prose h1{margin:8px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(40px,6vw,68px);line-height:.95;letter-spacing:-.04em}
.prose p{margin:0;font-size:17px;line-height:1.65;color:var(--ink-2)}
.draft{padding:16px 18px;border-radius:16px;background:var(--royal-soft);color:var(--ink);font-size:15px}

@media (max-width:1000px){
  .fi-hero,.ix-head{grid-template-columns:minmax(0,1fr)}
  .fi-grid{grid-template-columns:minmax(0,1fr)}
  .tlist{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .pg{gap:44px;padding-top:18px}
  .facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ix a{grid-template-columns:34px minmax(0,1fr);}
  .ix p{grid-column:2}
  .ix .d{grid-column:2;text-align:left}
  .tlist{grid-template-columns:minmax(0,1fr)}
  .pn{grid-template-columns:minmax(0,1fr)}
  .pn a.nx{text-align:left}
}

/* ---------- textos legales ---------- */
.prose.legal{max-width:760px;gap:14px}
.prose .upd{font-family:var(--mono);font-size:12px;color:var(--muted)}
.prose h2{margin:22px 0 0;font-family:var(--display);font-weight:700;font-size:24px;line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
.prose ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.prose li{font-size:16px;line-height:1.6;color:var(--ink-2)}
.prose a{color:var(--royal)}
.prose code{font-family:var(--mono);font-size:.9em;background:var(--royal-soft);padding:1px 5px;border-radius:5px}
.legal-dl{margin:4px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.legal-dl div{border-top:1px solid var(--line);padding-top:8px}
.legal-dl dt{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.legal-dl dd{margin:3px 0 0;font-size:16px;font-weight:600}
#cf .rgpd,.rgpd{margin:2px 0 0;font-size:11.5px;line-height:1.5;color:var(--muted);max-width:none}
#cf .rgpd a,.rgpd a{color:inherit}
@media (max-width:640px){.legal-dl{grid-template-columns:minmax(0,1fr)}}

/* ---------- contacto: accesos directos al formulario ---------- */
.asks{margin-top:28px}
.asks-h{margin:0 0 12px;font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.02em}
.asks-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.asks button{display:flex;flex-direction:column;gap:3px;text-align:left;padding:14px 16px;border:0;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font:inherit;color:var(--ink);cursor:pointer;transition:box-shadow .15s ease,background .15s ease}
.asks button:hover{box-shadow:0 0 0 2px var(--royal)}
.asks button[aria-pressed="true"]{background:var(--royal-soft);box-shadow:0 0 0 2px var(--royal)}
.asks button:focus-visible{outline:2px solid var(--royal);outline-offset:3px}
.asks button b{font-size:15.5px;font-weight:600;line-height:1.3}
.asks button span{font-size:13.5px;line-height:1.4;color:var(--ink-2)}
@media (max-width:640px){.asks-g{grid-template-columns:minmax(0,1fr)}}

/* ---------- fichas: alojamientos y restaurantes en Google Maps ---------- */
.gm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gm-c{display:flex;flex-direction:column;gap:4px;padding:18px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:var(--ink);transition:box-shadow .15s ease}
.gm-c:hover{box-shadow:0 0 0 2px var(--royal)}
.gm-c .gm-i{width:28px;height:28px;color:var(--royal);margin-bottom:6px}
.gm-c b{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.gm-c span{font-size:14px;color:var(--ink-2)}
.gm-c .gm-go{margin-top:10px;font-family:var(--mono);font-size:12px;color:var(--royal)}
.gm-c .gm-go::after{content:" ↗"}
@media (max-width:640px){.gm{grid-template-columns:minmax(0,1fr)}}

/* ---------- calendario de fiestas y gargantas ---------- */
.fq{margin-top:2px;font-size:13px;font-weight:600}
.fq a{color:var(--royal);text-decoration:none}
.fq a:hover{text-decoration:underline}
.mes h2 .yr{font-family:var(--mono);font-size:.42em;font-weight:500;letter-spacing:0;color:var(--muted);vertical-align:middle;margin-left:6px}
.mes .frows{max-width:820px}
.fx-note{padding:18px 20px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.fx-note b{display:block;font-family:var(--display);font-size:18px;color:var(--ink);margin-bottom:6px}
.fx-note p{margin:0 0 8px}
.fx-note a{color:var(--royal)}
.frow:target{box-shadow:0 0 0 2px var(--royal)}
.fm .gx{fill:none;stroke:var(--royal);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.fm .mt{fill:var(--royal-soft);stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.rows b a{color:inherit;text-decoration:none}
.rows b a:hover{color:var(--royal);text-decoration:underline}
.pasadas .frow{opacity:.55}

/* ---------- galería de fotos de la ficha ---------- */
.gal{display:grid;gap:10px;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:minmax(0,1fr);height:clamp(320px,38vw,470px)}
.gal1{grid-template-columns:1fr;height:clamp(240px,34vw,420px)}
.gal2{grid-template-columns:2fr 1fr}
.gal3{grid-template-columns:2fr 1fr}
.gf{position:relative;margin:0;border-radius:18px;overflow:hidden;background:var(--r2);box-shadow:0 0 0 1px var(--line)}
.gf img{display:block;width:100%;height:100%;object-fit:cover}
.gal .g0{grid-row:span 2}
.gal4 .g0{grid-row:span 2}
.gal4 .gf:nth-child(4){grid-column:2 / span 2}
.gal1 .g0{grid-row:auto}
.gf figcaption{position:absolute;inset:auto 0 0 0;display:flex;flex-direction:column;gap:1px;padding:28px 12px 9px;
  background:linear-gradient(to top,rgba(7,11,26,.78),rgba(7,11,26,0));color:#fff;font-size:13px;font-weight:600;line-height:1.3}
.gf figcaption small{font-family:var(--mono);font-size:10px;font-weight:400;opacity:.85}
.gf figcaption a{color:inherit}
@media (max-width:640px){
  .gal,.gal1,.gal2,.gal3{display:flex;height:auto;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;margin:0 calc(-1 * clamp(16px,4vw,48px));padding:0 clamp(16px,4vw,48px)}
  .gf{flex:0 0 86%;aspect-ratio:4/3;scroll-snap-align:center}
}

/* ---------- distintivo ---------- */
.asks-badge{margin:14px 0 0;font-size:14px;color:var(--ink-2)}
.asks-badge a{color:var(--royal);font-weight:600}
.bd-prev{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:center;padding:28px;border-radius:24px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.bd-prev img{max-width:100%;height:auto}
.bd-opts{display:flex;flex-wrap:wrap;gap:12px}
.bd-opts label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.bd-opts select{height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:500;min-width:240px}
.bd textarea{width:100%;max-width:820px;box-sizing:border-box;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-family:var(--mono);font-size:12.5px;line-height:1.5;resize:vertical}
.bd-row{display:flex;align-items:center;gap:12px}
.bd-row button{border:0;cursor:pointer;font:inherit;font-weight:600}
#bd-ok{font-size:14px;color:var(--royal);font-weight:600}

/* móvil: sin anillo de foco ni resalte azul al tocar el mapa */
#map,#map *{-webkit-tap-highlight-color:transparent}
#map :focus:not(:focus-visible),.muni:focus{outline:none}
@media (pointer:coarse){.muni:focus-visible{stroke:var(--muni-stroke);stroke-width:1.3}}
/* en 3D el mapa cambia en cada fotograma: sin desenfoque de cristal (muy caro), fondo casi opaco */
.v3d{--surface-glass:color-mix(in srgb,var(--surface) 94%,transparent)}
.v3d *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.pin{will-change:transform,opacity}
