:root {
  --bg:#0a0908;
  --soft:#11100f;
  --paper:#e7e0d4;
  --muted:#9c958b;
  --line:rgba(231,224,212,.16);
  --accent:#cf5f44;
  --accent-soft:#e39a7a;
  --mono:"DM Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:"Playfair Display",Georgia,serif;
  --pad:clamp(20px,4vw,64px);
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--paper);font-family:var(--sans);overflow-x:hidden}
body.sheet-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit}
img{display:block;max-width:100%}
::selection{background:var(--paper);color:var(--bg)}

.grain{position:fixed;inset:0;z-index:100;pointer-events:none;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");mix-blend-mode:soft-light}

.map-header{position:sticky;top:0;z-index:90;min-height:76px;padding:0 var(--pad);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid rgba(255,255,255,.055);background:rgba(10,9,8,.8);backdrop-filter:blur(18px)}
.brand,.map-header__label,.map-header__nav{font:500 9px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase}
.brand{font-size:12px}
.map-header__label{color:var(--muted)}
.map-header__nav{justify-self:end;display:flex;gap:18px;color:var(--muted)}
.map-header__nav a:hover{color:var(--paper)}

main{position:relative;z-index:1}
.map-hero{padding:clamp(96px,10vw,150px) var(--pad) clamp(68px,8vw,110px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:clamp(42px,7vw,110px);align-items:end}
.eyebrow{margin:0 0 22px;color:var(--muted);font:400 9px/1.4 var(--mono);letter-spacing:.17em;text-transform:uppercase}
.map-hero h1{margin:0;font-size:clamp(64px,9vw,136px);font-weight:300;letter-spacing:-.06em;line-height:.87}
.map-hero h1 em{color:var(--accent-soft);font-family:var(--serif);font-weight:500}
.map-hero__copy>p:last-child{max-width:700px;margin:38px 0 0;color:#b7b0a7;font-size:clamp(15px,1.2vw,18px);line-height:1.85}
.map-stats{display:grid;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.map-stats div{min-height:88px;padding:18px 0;display:grid;grid-template-columns:84px 1fr;align-items:center;border-bottom:1px solid var(--line)}
.map-stats div:last-child{border-bottom:0}
.map-stats strong{font:300 34px/1 var(--mono);letter-spacing:-.06em}
.map-stats span{color:var(--muted);font:400 9px/1 var(--mono);letter-spacing:.13em;text-transform:uppercase}

.map-stage{position:relative;margin:0 var(--pad) clamp(72px,8vw,120px);border:1px solid var(--line);background:#0d0d0c}
#journeyMap{height:min(72svh,760px);min-height:520px;background:#0b0b0a}
.map-legend{position:absolute;z-index:500;top:18px;left:18px;display:flex;gap:12px;padding:11px 13px;border:1px solid rgba(255,255,255,.13);background:rgba(8,7,6,.76);backdrop-filter:blur(12px);font:500 8px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.map-legend span{display:flex;align-items:center;gap:7px}
.legend-dot{width:10px;height:10px;border-radius:50%;border:1px solid var(--paper)}
.legend-dot--visited{background:var(--paper)}
.legend-dot--planned{background:transparent}
.map-error{position:absolute;inset:0;display:grid;place-items:center;margin:0;background:#0c0b0a;color:var(--muted);font:400 11px/1.6 var(--mono)}

.place-sheet{position:fixed;z-index:1200;top:0;right:0;width:min(560px,92vw);height:100svh;background:#0b0a09;border-left:1px solid rgba(255,255,255,.13);transform:translateX(102%);transition:transform .34s cubic-bezier(.2,.78,.2,1);pointer-events:none}
.place-sheet[aria-hidden="false"]{transform:none;pointer-events:auto}
.place-sheet__scroll{height:100%;overflow-y:auto;overscroll-behavior:contain}
.place-sheet__close{position:absolute;z-index:4;top:max(16px,env(safe-area-inset-top));right:16px;width:46px;height:46px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(8,7,6,.58);color:white;font-size:27px;cursor:pointer;backdrop-filter:blur(10px)}
.place-sheet__cover{position:relative;min-height:52svh;margin:0;display:flex;align-items:flex-end;overflow:hidden;background:#151311}
.place-sheet__cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.place-sheet__cover-veil{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,7,6,.96),rgba(8,7,6,.08) 68%)}
.place-sheet__cover figcaption{position:relative;z-index:2;padding:32px;width:100%}
.sheet-status{display:inline-flex;padding:8px 10px;border:1px solid rgba(255,255,255,.24);font:500 8px/1 var(--mono);letter-spacing:.13em;text-transform:uppercase}
.sheet-status[data-status="visited"]{background:var(--paper);color:var(--bg);border-color:var(--paper)}
.place-sheet__cover figcaption p{margin:16px 0 7px;color:rgba(255,255,255,.68);font:400 9px/1 var(--mono);letter-spacing:.13em;text-transform:uppercase}
.place-sheet__cover h2{margin:0;font-size:clamp(48px,8vw,78px);line-height:.92;letter-spacing:-.055em;font-weight:300}
.place-sheet__content{padding:30px 32px 60px}
.sheet-meta{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sheet-meta div{min-height:82px;padding:17px 0;display:grid;align-content:center}
.sheet-meta div:first-child{border-right:1px solid var(--line)}
.sheet-meta div:last-child{padding-left:20px}
.sheet-meta span{margin-bottom:7px;color:var(--muted);font:400 8px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.sheet-meta strong{font-size:15px;font-weight:500}
.sheet-summary,.sheet-notes{margin:28px 0 0;color:#b8b1a8;font-size:15px;line-height:1.8}
.sheet-notes{margin-top:14px;color:var(--paper)}
.sheet-gallery{margin-top:54px}
.sheet-gallery__heading{margin-bottom:22px}
.sheet-gallery__heading h3{margin:0;font-size:34px;line-height:1;letter-spacing:-.04em;font-weight:300}
.sheet-gallery__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sheet-photo{margin:0;background:#151311}
.sheet-photo img{width:100%;aspect-ratio:4/5;object-fit:cover}
.sheet-photo figcaption{padding:8px 1px 14px;color:var(--muted);font:400 8px/1.5 var(--mono)}
.sheet-gallery__empty{margin:0;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.7}
.sheet-open-place{display:inline-flex;margin-top:38px;padding-bottom:7px;border-bottom:1px solid rgba(231,224,212,.4);font:500 9px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.sheet-backdrop{position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.52);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s}
body.sheet-open .sheet-backdrop{opacity:1;visibility:visible}

.map-footer{min-height:88px;margin:0 var(--pad);padding:22px 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;border-top:1px solid var(--line);color:var(--muted);font:500 8px/1.4 var(--mono);letter-spacing:.13em;text-transform:uppercase}
.map-footer span:nth-child(2){color:rgba(231,224,212,.76)}
.map-footer a{justify-self:end}

@media(max-width:900px){
  .map-header{grid-template-columns:1fr auto}
  .map-header__label{display:none}
  .map-header__nav{gap:12px}
  .map-hero{grid-template-columns:1fr}
  .map-stats{grid-template-columns:repeat(3,1fr)}
  .map-stats div{grid-template-columns:1fr;justify-items:start;border-bottom:0;border-right:1px solid var(--line)}
  .map-stats div:last-child{border-right:0}
}
@media(max-width:640px){
  :root{--pad:18px}
  .map-header{min-height:calc(62px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .map-header__nav{font-size:7px;gap:10px}
  .map-hero{padding-top:88px}
  .map-hero h1{font-size:clamp(58px,18vw,82px)}
  .map-stats strong{font-size:28px}
  #journeyMap{height:68svh;min-height:460px}
  .map-stage{margin-left:0;margin-right:0;border-left:0;border-right:0}
  .map-legend{top:12px;left:12px;gap:9px;font-size:7px}
  .place-sheet{top:auto;bottom:0;width:100vw;height:min(88svh,820px);border-left:0;border-top:1px solid rgba(255,255,255,.13);transform:translateY(102%)}
  .place-sheet[aria-hidden="false"]{transform:none}
  .place-sheet__cover{min-height:42svh}
  .place-sheet__cover figcaption{padding:28px 20px}
  .place-sheet__content{padding:26px 20px 58px}
  .sheet-gallery__grid{grid-template-columns:1fr}
  .map-footer{grid-template-columns:1fr auto}
  .map-footer span:nth-child(2){display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}



/* Current map interaction helpers */
#journeyMap {
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

#journeyMap:focus-visible {
  outline: 2px solid rgba(231,224,212,.82);
  outline-offset: 3px;
}

.map-touch-hint {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,7,6,.78);
  color: rgba(231,224,212,.78);
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  font: 500 7px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

@media (min-width: 801px) {
  .map-touch-hint { display: none; }
}

/* OpenLayers map engine v27 */
#journeyMap.ol-map,
#journeyMap .ol-viewport {
  touch-action: none !important;
  -ms-touch-action: none !important;
  overscroll-behavior: contain;
}

#journeyMap .ol-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#journeyMap .osm-dark-layer canvas {
  filter: invert(1) hue-rotate(180deg) brightness(.62) contrast(.92) saturate(.52);
}

#journeyMap .journey-vector-layer canvas {
  filter: none;
}

#journeyMap .ol-control {
  position: absolute;
  border-radius: 0;
  padding: 2px;
  background: rgba(8,7,6,.72);
  backdrop-filter: blur(10px);
}

#journeyMap .ol-zoom {
  top: 18px;
  right: 18px;
  left: auto;
}

#journeyMap .ol-control button {
  display: block;
  width: 36px;
  height: 36px;
  margin: 1px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: #0d0c0b;
  color: var(--paper);
  font: 400 20px/1 var(--sans);
  cursor: pointer;
}

#journeyMap .ol-attribution {
  right: 6px;
  bottom: 5px;
  max-width: calc(100% - 12px);
}

#journeyMap .ol-attribution ul {
  margin: 0;
  padding: 5px 7px;
  list-style: none;
  background: rgba(8,7,6,.72);
  color: #777;
  font: 400 9px/1.3 var(--sans);
}

#journeyMap .ol-attribution a {
  color: #aaa;
}

.map-point-tooltip {
  position: fixed;
  z-index: 1500;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0d0c0b;
  color: var(--paper);
  pointer-events: none;
  font: 500 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  #journeyMap .ol-zoom {
    top: 64px;
    right: 12px;
  }

  #journeyMap .ol-control button {
    width: 40px;
    height: 40px;
  }
}


/* Guaranteed mobile gesture capture v28 */
#journeyMap {
  position: relative;
}

.map-gesture-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  touch-action: none !important;
  -ms-touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: transparent;
}

#journeyMap .ol-overlaycontainer-stopevent {
  z-index: 8;
}

#journeyMap .ol-zoom,
#journeyMap .ol-attribution {
  z-index: 10;
}

@media (pointer: coarse) {
  .map-gesture-layer {
    pointer-events: auto;
  }
}


/* Runtime state v29 */
.map-error[hidden] {
  display: none !important;
}


/* Keyboard skip navigation */
.skip-link{
  position:fixed;z-index:100000;
  top:max(10px,env(safe-area-inset-top));left:12px;
  transform:translateY(-160%);
  padding:11px 14px;border:1px solid currentColor;border-radius:999px;
  background:#e7e0d4;color:#0a0908;
  font:600 12px/1 system-ui,-apple-system,sans-serif;text-decoration:none;
  transition:transform .16s ease;
}
.skip-link:focus{transform:translateY(0);outline:2px solid #cf5f44;outline-offset:3px}
