/* Udha: "Black silk".
   The Albanian flag is the page's lining: red satin at the top of every page, black silk behind the
   content, red again at the footer (drawn by fabric.js). Content sits on light frosted sheets; black
   glass and red accents carry the rest. Warm mid-tones, never a fully dark page. */
:root {
  --flag: #CF1820;
  --flag-deep: #7E0E13;
  --black: #141011;
  --red: #D21D25;
  --red-bright: #FF5A60;
  --accent: #B81D24;             /* links and accents on light sheets */
  --ink: #1B1415;
  --muted: #6E5D59;
  --line: rgba(20, 16, 17, .12);
  --sheet: rgba(247, 244, 240, .88);
  --card: rgba(255, 255, 255, .64);
  --best: #C8232A;
  --good: #E7A99D;
  --peak: #DDA640;
  --quiet: #E3D9D2;
  --glass: rgba(14, 9, 10, .46); /* black glass */
  --shadow: 0 2px 4px rgba(20, 10, 10, .08), 0 26px 50px -26px rgba(20, 10, 10, .55);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.35, .45, 1);
  --header-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: clip;
  /* Shown until the cloth is drawn, and if JavaScript is off */
  background: linear-gradient(180deg, var(--flag) 0, var(--flag-deep) 520px, #1E1517 1100px, #1E1517 calc(100% - 600px), var(--flag-deep) 100%);
}
html.cloth-on body { background: var(--flag-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- The cloth (built by fabric.js) ---------- */
.lining { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: var(--flag); pointer-events: none; }
.lining .drift { position: absolute; inset: -6%; will-change: transform; }
.lining .breathe { position: absolute; inset: 0; animation: breathe 22s ease-in-out infinite alternate; will-change: transform; }
.lining svg { width: 100%; height: 100%; display: block; }
.lining .eagle { transform-box: view-box; }
@keyframes breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.045) rotate(.6deg); } }
/* The black silk: the same cloth, without colour and darkened; fades in behind the content */
.lining.mono { z-index: -3; opacity: 0; background: #1A1415; filter: grayscale(1) brightness(.42) contrast(1.25); }
.sheen { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; mix-blend-mode: soft-light; }
.sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 220%;
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.5) 47%, rgba(255,255,255,.14) 52%, transparent 60%);
  animation: sheen 16s ease-in-out infinite alternate; will-change: transform;
}
@keyframes sheen { from { transform: translateX(-28%); } to { transform: translateX(28%); } }
.glow {
  position: fixed; left: 0; top: 0; z-index: -2; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,.1) 38%, transparent 62%); will-change: transform;
}
.glow.on { opacity: 1; }

/* ---------- Liquid glass: a bright rim, and a light that follows the pointer ---------- */
.lg { position: relative; isolation: isolate; }
.lg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,.6), rgba(255,255,255,.08) 32%, rgba(255,255,255,.03) 62%, rgba(255,255,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -60%), rgba(255,255,255,.2), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease); mix-blend-mode: screen;
}
.lg:hover::after, .lg:focus-within::after { opacity: 1; }

/* ---------- Header: clear over the flag, black glass once you scroll ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; color: #fff;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), backdrop-filter .45s;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header.scrolled {
  background: rgba(16, 11, 12, .8); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.09), 0 14px 34px -20px rgba(0,0,0,.7);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand b { font-family: var(--font-display); font-size: 27px; font-weight: 650; letter-spacing: -.02em; }
.brand b i { font-style: normal; color: #fff; transition: color .45s; }
.brand b small { font: inherit; }
.site-header.scrolled .brand b i { color: var(--red); }
.brand span { font-size: 12.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: inherit; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background-color .25s; }
.site-nav a:hover { background: rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

/* ---------- Hero: on the red flag ---------- */
.hero { position: relative; color: #fff; padding-top: calc(var(--header-h) + 40px); padding-bottom: 70px; }
.hero::before { /* keeps text readable over the satin */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 4, 5, .6) 0%, rgba(10, 4, 5, .28) 45%, transparent 72%);
}
.hero a { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .kicker { color: #fff; opacity: .92; }
.lede { font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; opacity: .94; }
.crumbs { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-title { font-size: clamp(40px, 6vw, 76px); margin: 14px 0 16px; text-shadow: 0 2px 30px rgba(40, 0, 5, .3); }

/* Home hero */
.home-hero { min-height: max(640px, 100svh); display: flex; align-items: center; padding-bottom: 120px; }
.home-hero .wrap { width: 100%; }
.hero-copy { max-width: 640px; }
.home-hero h1 { font-size: clamp(46px, 7.4vw, 96px); margin: 18px 0 20px; text-shadow: 0 2px 30px rgba(40, 0, 5, .35); }
.search { position: relative; z-index: 5; margin-top: 30px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 20px 44px -20px rgba(0,0,0,.6); transition: background-color .3s; }
.search:focus-within { background: rgba(14, 9, 10, .62); }
.search svg { flex: none; width: 17px; height: 17px; opacity: .85; }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; padding: 11px 0; outline: none; }
.search input::placeholder { color: rgba(255,255,255,.72); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 15; list-style: none; margin: 0; padding: 6px; border-radius: 18px;
  background: rgba(18, 12, 13, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 50px -16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.results button { width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: none; color: #fff; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.results button:hover, .results button.on { background: rgba(255,255,255,.09); }
.results small { color: rgba(255,255,255,.6); font-size: 12px; }
.doors { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.door {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: 18px; text-align: left; border: 0; cursor: pointer; color: #fff;
  background: rgba(14, 9, 10, .36); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 44px -22px rgba(0,0,0,.6);
  transition: transform .45s var(--ease), background-color .35s, box-shadow .45s var(--ease);
}
.door svg { width: 22px; height: 22px; color: var(--red-bright); transition: transform .45s var(--ease); }
.door b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.door small { font-size: 12px; opacity: .8; }
.door:hover, .door[aria-pressed="true"] { transform: translateY(-5px); background: rgba(14, 9, 10, .55); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 22px 40px -16px rgba(0,0,0,.65), 0 0 0 1px rgba(232,37,44,.6); }
.door:hover svg { transform: scale(1.12) rotate(-4deg); }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .08em; display: grid; justify-items: center; gap: 6px; opacity: .85; }
.cue span { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 12px; position: relative; }
.cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Entrance on load, and sections fading up as they come into view (only with JavaScript) */
.js .enter { opacity: 0; transform: translateY(22px); animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.in { opacity: 1; translate: none; } /* "none", so the phone's slide-up panel inside stays pinned to the screen */

/* ---------- Buttons: black pill with a red bead; on hover the bead floods the button ---------- */
.btn {
  --bg: var(--black); --bead: var(--red); --flood: var(--red);
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px; align-self: start; justify-self: start;
  min-height: 48px; padding: 7px 7px 7px 22px; border-radius: 999px; border: 0;
  background: var(--bg); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 28px -14px rgba(0,0,0,.65);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; right: 7px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 50%; background: var(--flood); transform: scale(0); transition: transform .65s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 34px -14px rgba(210,29,37,.7); }
.btn:hover::before { transform: scale(14); }
.btn .arr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bead); color: #fff; flex: none; transition: transform .45s var(--ease), background-color .3s; }
.btn:hover .arr { transform: translateX(2px) rotate(-12deg); background: rgba(255,255,255,.18); }
.btn.red { --bg: var(--red); --bead: rgba(0,0,0,.28); --flood: var(--black); }
.btn.ghost { --bg: transparent; --bead: var(--black); --flood: var(--black); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20,16,17,.8); }
.btn.ghost:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Sheets: light frosted glass over the black silk ---------- */
.sheets .wrap { display: grid; gap: 28px; padding-block: 0 140px; }
.sheet {
  position: relative; padding: 44px 40px 46px; border-radius: 38px; min-width: 0;
  background: var(--sheet); backdrop-filter: blur(30px) saturate(0) brightness(1.75); -webkit-backdrop-filter: blur(30px) saturate(0) brightness(1.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.25), 0 34px 70px -34px rgba(0,0,0,.55);
}
.sheet.dark {
  color: #F6EEEA; background: rgba(16, 11, 12, .72); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06), 0 34px 70px -34px rgba(0,0,0,.7);
}
.sheet.dark h2 { color: #fff; }
.sheet.dark .kicker { color: var(--red-bright); }
.sheet.dark a { color: #fff; }
.sheet.small { padding: 30px 34px 32px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head .kicker { margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.sec-head h2 em { color: var(--accent); }
.sec-head > p { color: var(--muted); max-width: 460px; }
.sheet.dark .sec-head > p, .sheet.dark .sub { color: rgba(255,255,255,.74); }
.sheet h2.small { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }
.note { color: var(--muted); font-size: 14px; max-width: 72ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }

/* ---------- Home: the map card, rising out of the hero ---------- */
.explore { margin-top: -70px; position: relative; z-index: 2; scroll-margin-top: calc(var(--header-h) + 16px); }
.explore .wrap { padding-bottom: 28px; }
.map-card {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); border-radius: 32px; overflow: hidden;
  background: #EFE8E0; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 40px 80px -36px rgba(0,0,0,.7);
}
.map-frame { min-width: 0; position: relative; }
.map-box { position: relative; height: min(76vh, 720px); min-height: 460px; overflow: hidden; background: #EFE8E0; }
.map-box.svg-mode { height: auto; min-height: 0; overflow: visible; background: none; padding: 18px; }
.map-box .maplibregl-canvas:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.map-credit { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 10px; }
#map-credits { margin-top: 2px; font-size: 11.5px; }
#map-credits a { color: inherit; }

/* The place panel: black glass beside the map */
.panel { position: relative; max-height: min(76vh, 720px); min-height: 460px; overflow: auto; background: rgba(18, 12, 13, .94); color: #F6EEEA; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.sheet-close { display: none; }
.card-photo { display: block; width: calc(100% - 40px); margin: 20px 20px 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #2A2223; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.panel .card-band { height: 8px; margin: 20px 20px 0; border-radius: 8px; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: .8; }
.card { display: grid; gap: 14px; padding: 18px 22px 24px; }
.card-head { display: grid; gap: 4px; }
.panel .eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-bright); font-weight: 600; }
.card-head h2 { font-size: 36px; color: #fff; }
.coords, .checked { font-family: var(--font-mono); font-size: 12px; opacity: .7; }
.panel .summary { color: rgba(255,255,255,.82); font-size: 15px; }
.panel .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.panel .facts div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 9px 11px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); min-width: 0; }
.panel .facts dt { font-size: 11px; color: rgba(255,255,255,.55); }
.panel .facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.when { display: grid; gap: 6px; }
.months.mini { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.months.mini div { display: grid; gap: 3px; text-align: center; }
.months.mini span { height: 10px; border-radius: 3px; }
.months.mini small { font-size: 9.5px; color: rgba(255,255,255,.5); }
.panel .m-quiet { background: #3A3032; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
.tab { border: 0; background: none; padding: 8px 10px; font-size: 14px; color: rgba(255,255,255,.62); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--red); font-weight: 600; }
.tabpanel { min-height: 150px; padding-top: 14px; font-size: 14px; }
.panel .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel .list li { display: grid; gap: 2px; }
.panel .list b { font-size: 14.5px; }
.panel .list p, .panel .bullets { color: rgba(255,255,255,.75); }
.panel .tagline { font-family: var(--font-mono); font-size: 11px; color: var(--red-bright); }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }

/* Map dots and sight pins (on the light map) */
.gl-place { position: relative; display: block; width: 13px; height: 13px; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
.gl-place::before { content: ""; position: absolute; inset: -7px; }
.gl-place[hidden] { display: none !important; }
.gl-place .dot { position: absolute; inset: 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2.5px #fff, 0 1px 4px rgba(20,10,10,.3); transition: transform .2s var(--spring); }
.gl-place .name {
  position: absolute; left: 16.5px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 650; font-size: 13.5px; line-height: 1.2; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.gl-place[data-label="w"] .name { left: auto; right: 16.5px; }
.gl-place[data-label="ne"] .name { left: 11.5px; top: auto; bottom: 11.5px; transform: none; }
.gl-place[data-label="se"] .name { left: 11.5px; top: 11.5px; transform: none; }
.gl-place[data-label="nw"] .name { left: auto; right: 11.5px; top: auto; bottom: 11.5px; transform: none; }
.gl-place[data-label="sw"] .name { left: auto; right: 11.5px; top: 11.5px; transform: none; }
.gl-place[data-label="n"] .name { left: 50%; top: auto; bottom: 15.5px; transform: translateX(-50%); }
.gl-place[data-label="s"] .name { left: 50%; top: 15.5px; transform: translateX(-50%); }
.gl-place[data-label="none"] .name { visibility: hidden; }
.gl-place[data-label="none"]:hover .name, .gl-place[data-label="none"]:focus-visible .name { visibility: visible; z-index: 2; }
.gl-place:hover .dot, .gl-place:focus-visible .dot { transform: scale(1.35); }
.gl-place:hover .name, .gl-place.selected .name { color: var(--accent); }
.gl-place:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.gl-place.selected .dot { background: var(--black); animation: glpulse 1.8s ease-out infinite; }
@keyframes glpulse { 0% { box-shadow: 0 0 0 2.5px #fff, 0 0 0 2.5px rgba(210,29,37,.6); } 100% { box-shadow: 0 0 0 2.5px #fff, 0 0 0 16px rgba(210,29,37,0); } }
.gl-pin { display: none; align-items: center; gap: 5px; border: 0; background: none; padding: 3px; margin: -3px; cursor: pointer; }
.map-box.show-pins .gl-pin { display: flex; }
.map-box .gl-pin.off { display: none; }
.gl-pin .pin { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--black); box-shadow: 0 1px 3px rgba(20,10,10,.3); }
.gl-pin .name { display: none; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.map-box.show-pin-names .gl-pin .name, .gl-pin:hover .name, .gl-pin:focus-visible .name { display: inline; }
.gl-pin:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: 0 6px 18px -8px rgba(20,10,10,.45) !important; }
.map-reset button { width: auto !important; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.maplibregl-popup-content { border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 40px -16px rgba(20,10,10,.5); font-family: var(--font-body); }
.maplibregl-popup-close-button { font-size: 18px; width: 28px; height: 28px; }
.pin-pop { display: grid; gap: 4px; padding-right: 12px; }
.pin-pop .tagline { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.pin-pop b { font-family: var(--font-display); font-size: 17px; }
.pin-pop p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pin-pop a { font-size: 13px; font-weight: 600; }

/* The drawn map (used if the street map can't load) */
.map-frame svg { display: block; width: 100%; height: auto; max-height: min(76vh, 720px); margin: 0 auto; }
.land { filter: drop-shadow(0 2px 6px rgba(20,10,10,.12)); }
.county { fill: #E6DDD3; stroke: #FFFFFF; stroke-width: 1.4; stroke-linejoin: round; }
.grat { stroke: rgba(20,16,17,.12); stroke-width: .8; stroke-dasharray: 2 4; fill: none; }
.grat-label { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.neighbour { font-family: var(--font-body); font-size: 9.5px; letter-spacing: .18em; fill: var(--muted); opacity: .75; }
.sea { font-family: var(--font-display); font-style: italic; font-size: 13px; fill: #4F8796; letter-spacing: .04em; }
.scale line { stroke: var(--ink); stroke-width: 1.5; }
.scale text { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.place { cursor: pointer; }
.place .hit { fill: transparent; }
.place .dot { fill: var(--red); stroke: #fff; stroke-width: 2.5; transition: r .15s; }
.place .name { font-family: var(--font-display); font-weight: 650; font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.place:hover .dot, .place:focus-visible .dot { r: 8; }
.place:hover .name, .place.selected .name { fill: var(--accent); }
.place:focus { outline: none; }
.place:focus-visible .hit { stroke: var(--red); stroke-width: 2; }
.ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; pointer-events: none; }
.place.selected .ring { opacity: 1; animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Filter bar: black glass; a red bead slides to the chosen option ---------- */
.cat-bar {
  position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; margin-bottom: 26px; padding: 5px; border-radius: 999px;
  background: rgba(16, 11, 12, .88); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 36px -20px rgba(0,0,0,.6); overflow-x: auto; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar .cat {
  position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .35s;
}
.cat-bar .cat:hover, .cat-bar .cat[aria-pressed="true"] { color: #fff; }
.cat .count { font-size: 11.5px; opacity: .65; }
.cat-bar .bead {
  position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #E8282F, #B5161D); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px -4px rgba(232,40,47,.7);
  transition: left .55s var(--spring), width .55s var(--spring), opacity .3s;
}
.hero .cat-bar { margin: 26px 0 0; }

/* ---------- Photo mosaic: each guide is a full photo with a black glass label ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 16px; }
.guide-tile {
  position: relative; display: block; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; background: #2A2223; isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(20,10,10,.12), 0 26px 44px -24px rgba(20,10,10,.6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease), translate .9s var(--ease);
}
.guide-tile[hidden] { display: none; }
.guide-tile:hover { --ty: -6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 8px rgba(20,10,10,.12), 0 36px 60px -26px rgba(20,10,10,.7); }
.guide-tile.big { grid-column: span 2; grid-row: span 2; }
.guide-tile .ph { position: absolute; inset: 0; z-index: 0; }
.guide-tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.guide-tile:hover .ph img { transform: scale(1.09) translate(var(--dx, 0px), var(--dy, 0px)); }
.guide-tile .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 6, 7, .5), transparent 50%); }
.guide-tile .card-band { position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .9; }
.guide-tile .tags { position: absolute; z-index: 3; top: 12px; left: 12px; right: 60px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 5px 10px 5px 8px; border-radius: 999px; color: #fff;
  background: rgba(14, 9, 10, .5); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.tag svg { width: 13px; height: 13px; color: var(--red-bright); }
.guide-tile .go {
  position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -6px rgba(210,29,37,.8);
  opacity: 0; transform: scale(.5) rotate(-45deg); transition: opacity .4s var(--ease), transform .55s var(--spring);
}
.guide-tile:hover .go, .guide-tile:focus-visible .go { opacity: 1; transform: none; }
.guide-tile .cap {
  position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; padding: 13px 16px 14px; border-radius: 18px; display: grid;
  background: rgba(14, 9, 10, .52); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06); transition: background-color .5s var(--ease);
}
.guide-tile:hover .cap { background: rgba(14, 9, 10, .66); }
.guide-tile .region { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-bright); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-tile h2, .guide-tile h3 { font-size: 24px; color: #fff; margin-top: 2px; }
.guide-tile .sum {
  font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0; transition: max-height .6s var(--ease), opacity .45s var(--ease), margin-top .6s var(--ease);
}
.guide-tile:hover .sum, .guide-tile:focus-visible .sum, .guide-tile.big .sum { max-height: 4.6em; opacity: 1; margin-top: 6px; }
.guide-tile .checked { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); opacity: 1; }
.guide-tile.big h2, .guide-tile.big h3 { font-size: clamp(32px, 3.4vw, 46px); }
.guide-tile.big .cap { left: 16px; right: auto; max-width: min(470px, calc(100% - 32px)); bottom: 16px; padding: 18px 22px 20px; border-radius: 22px; }
.guide-tile.big .sum { -webkit-line-clamp: 3; font-size: 14.5px; }
.all-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(232, 40, 47, .55), transparent 60%), #151011;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 26px 44px -24px rgba(20,10,10,.6); transition: transform .6s var(--ease);
}
.all-tile:hover { transform: translateY(-6px); }
.all-tile b { font-family: var(--font-display); font-size: 64px; line-height: .9; font-weight: 650; }
.all-tile .t { font-family: var(--font-display); font-size: 22px; font-style: italic; }
.all-tile p { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 6px; }
.all-tile .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.all-tile .bead { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); flex: none; transition: transform .55s var(--spring); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.all-tile:hover .bead { transform: translateX(4px) rotate(-12deg) scale(1.08); }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---------- "When to go" bars ---------- */
.season-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 50px; align-items: center; }
.season-wrap h2 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 12px; }
.sub { margin-top: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.pill-btn {
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .3s, border-color .3s, transform .2s var(--ease);
}
.pill-btn:hover { transform: translateY(-1px); border-color: rgba(255,90,96,.7); }
.pill-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.pill-btn[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px rgba(255,255,255,.8); }
.bars { --quiet: #3A3032; border-radius: 26px; padding: 28px 26px 18px; background: rgba(255,255,255,.045); }
.bars .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 220px; }
.bar { height: 100%; display: flex; align-items: end; }
.bar span { width: 100%; border-radius: 10px 10px 4px 4px; height: calc(var(--h, 0) * 1%); background: var(--quiet); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); transition: height .9s var(--ease), background-color .6s; transition-delay: calc(var(--k, 0) * 45ms); }
.bars.static:not(.grown) .bar span { height: 0; }
.bar span[data-m="b"] { background: linear-gradient(to top, #A3161C, #F0353C); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 18px -4px rgba(240,53,60,.6); }
.bar span[data-m="g"] { background: linear-gradient(to top, #C9867B, #EDB2A7); }
.bar span[data-m="p"] { background: linear-gradient(to top, #B9852C, #EDB851); }
.bars .letters { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.55); text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.65); margin-top: 18px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.legend .m-best { background: var(--best); } .legend .m-good { background: var(--good); } .legend .m-peak { background: var(--peak); } .legend .m-quiet { background: #3A3032; }
.bars-note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.88); min-height: 22px; }
.m-best { background: var(--best); } .m-good { background: var(--good); } .m-peak { background: var(--peak); } .m-quiet { background: var(--quiet); }

/* ---------- Featured guide ---------- */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.frame { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); background: #2A2223; }
.frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.frame figcaption, .hero-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: auto; max-width: calc(100% - 24px); font-size: 11.5px; line-height: 1.4; color: #fff;
  background: rgba(14, 9, 10, .58); padding: 5px 11px; border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.frame figcaption a, .hero-photo figcaption a { color: #fff; }
.feature h2 { font-size: clamp(44px, 5.5vw, 72px); margin: 12px 0 18px; }
.feature .sum { font-size: 17px; color: #3E302E; }
.feature dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.feature dl div { border-top: 2px solid var(--black); padding-top: 10px; min-width: 0; }
.feature dl div:first-child { border-top-color: var(--red); }
.feature dt { font-size: 12px; color: var(--muted); }
.feature dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

/* ---------- Guide page ---------- */
.guide-hero .wrap { display: grid; gap: 18px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero-grid .text { display: grid; gap: 14px; min-width: 0; }
.guide-hero h1 { font-size: clamp(46px, 7vw, 92px); text-shadow: 0 2px 30px rgba(40, 0, 5, .35); }
.guide-hero .summary { font-size: 17.5px; max-width: 58ch; opacity: .95; }
.guide-hero .coords { opacity: .75; }
.guide-hero .checked { opacity: 1; }
.hero .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.hero .facts div {
  border-radius: 16px; padding: 11px 14px; min-width: 0; background: rgba(14, 9, 10, .4);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.hero .facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.hero .facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; }
.hero-photo { position: relative; margin: 0; border-radius: 30px; overflow: hidden; background: #2A2223; box-shadow: 0 40px 80px -34px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.2); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover; }
/* Several photos at the top of a guide: a strip that snaps to each photo; arrows and dots */
.hero-gallery { position: relative; min-width: 0; border-radius: 30px; box-shadow: 0 40px 80px -34px rgba(0,0,0,.75); }
.hero-gallery .slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 30px;
  scrollbar-width: none; background: #2A2223; overscroll-behavior-x: contain;
}
.hero-gallery .slides::-webkit-scrollbar { display: none; }
.hero-gallery .slides:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-gallery .slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.hero-gallery .slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover; }
.hero-gallery .slide figcaption {
  position: absolute; left: 12px; bottom: 44px; max-width: calc(100% - 24px); font-size: 11.5px; line-height: 1.4; color: #fff;
  background: rgba(14, 9, 10, .58); padding: 5px 11px; border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-gallery .slide figcaption a { color: #fff; }
.gal-btn {
  position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 28px; line-height: 1; color: #fff; padding-bottom: 3px;
  background: rgba(14, 9, 10, .5); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px -10px rgba(0,0,0,.6); transition: background-color .3s, transform .35s var(--spring), opacity .3s;
}
.gal-btn:hover { background: var(--red); transform: scale(1.08); }
.gal-btn.prev { left: 12px; }
.gal-btn.next { right: 12px; }
.gal-btn[disabled] { opacity: 0; pointer-events: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: width .45s var(--spring), background-color .3s; }
.gal-dots span.on { width: 22px; background: #fff; }
.gal-count { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(14, 9, 10, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.locator { margin: 0; justify-self: center; border-radius: 28px; padding: 22px; display: grid; gap: 8px; justify-items: center; background: rgba(14, 9, 10, .4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.locator svg { width: 100%; max-width: 170px; height: auto; display: block; }
.locator .county { fill: rgba(255,255,255,.85); stroke: rgba(255,255,255,.35); stroke-width: 2; }
.locator .here { fill: var(--red); stroke: #fff; stroke-width: 4; }
.locator .here-ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .5; }
.locator figcaption { font-size: 12px; opacity: .8; text-align: center; }
.draft-banner { border-radius: 16px; background: rgba(14, 9, 10, .55); color: #fff; padding: 12px 16px; font-size: 14px; box-shadow: inset 3px 0 0 var(--peak); }
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.place-card {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 22px 22px; border-radius: 24px; background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(20,16,17,.05), 0 18px 34px -24px rgba(20,10,10,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .5s;
}
.place-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 26px 44px -24px rgba(20,10,10,.5); }
.place-card .tagline { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
/* A sight's own photo at the top of its card */
.place-card.has-photo { padding-top: 10px; }
.pc-photo { margin: 0 -12px 12px; }
.pc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #2A2223; transition: transform 1.2s var(--ease), filter .6s; }
.place-card:hover .pc-photo img { transform: scale(1.025); filter: saturate(1.08); }
.pc-photo figcaption { margin: 6px 4px 0; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.pc-photo figcaption a { color: inherit; }
/* Map pop-up with the sight's photo */
.pin-pop img { display: block; width: calc(100% + 12px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 6px; background: #E6DDD3; }
.place-card h3 { font-size: 23px; position: relative; padding-bottom: 8px; }
.place-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 26px; background: var(--red); border-radius: 2px; transition: width .5s var(--ease); }
.place-card:hover h3::after { width: 60px; }
.place-card p { color: #4D3D3A; font-size: 14.5px; }
.place-card .card-band { display: none; }
.place-card.proposed { background: rgba(255, 248, 230, .8); box-shadow: inset 0 0 0 1.5px rgba(221,166,64,.7); }
.place-card.proposed .sources { margin-top: 8px; font-size: 12.5px; }
.map-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; min-height: 34px; padding: 0 14px 0 6px;
  border: 0; border-radius: 999px; background: var(--black); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16); transition: background-color .3s, transform .3s var(--ease);
}
.map-link svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--red); }
.map-link:hover { background: var(--red); transform: translateY(-1px); }
.map-box.guide-map { height: 460px; min-height: 0; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(20,16,17,.08); }
.guide-map.map-failed { height: auto; display: grid; place-items: center; padding: 28px 16px; border: 1px dashed rgba(20,16,17,.25); border-radius: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.gl-place.solo { cursor: default; }
.map-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 0 0 18px; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: 127px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(210,29,37,.15); }
.timeline li::after { content: ""; position: absolute; left: 131px; top: 20px; bottom: 0; width: 1px; background: rgba(20,16,17,.15); }
.timeline li:last-child::after { display: none; }
.timeline li span { padding-left: 22px; }
.timeline time { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 3px; text-align: right; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
.bullets li::marker { color: var(--red); }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.sources a { text-underline-offset: 3px; }
.nearby .mosaic { grid-auto-rows: 210px; }
.nearby .all-tile p { display: none; }
.nearby .all-tile b { font-size: 54px; }

/* ---------- My trip: Save buttons, header counter, the trip page ---------- */
.site-nav a .short { display: none; }
.trip-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; box-shadow: 0 0 10px rgba(232,40,47,.55);
}
.trip-count[hidden] { display: none; }
.save-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: #fff; background: rgba(14, 9, 10, .45);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 26px -14px rgba(0,0,0,.6); transition: background-color .3s, transform .3s var(--ease);
}
.save-btn:hover { transform: translateY(-1px); background: rgba(14, 9, 10, .62); }
.save-btn svg { transition: transform .5s var(--spring), fill .3s; }
.save-btn[aria-pressed="true"] { background: var(--red); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn.pop svg { animation: savepop .55s var(--spring); }
@keyframes savepop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }
.hero-save { margin-top: 6px; }
.save-btn.small { min-height: 34px; padding: 0 13px 0 10px; font-size: 13px; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(20,16,17,.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
.save-btn.small:hover { box-shadow: inset 0 0 0 1.5px var(--black); background: rgba(255,255,255,.5); }
.save-btn.small[aria-pressed="true"] { color: #fff; background: var(--red); box-shadow: none; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.card-acts .map-link { margin-top: 0; }
.panel .save-btn { min-height: 48px; background: rgba(255,255,255,.08); }
.panel .save-btn[aria-pressed="true"] { background: var(--red); }

.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.trip-grid:has(#trip-map[hidden]) { grid-template-columns: minmax(0, 1fr); }
.trip-map { position: sticky; top: calc(var(--header-h) + 20px); height: min(70vh, 620px); min-height: 360px; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(20,16,17,.08); }
.trip-map[hidden] { display: none; }
.trip-sum { margin-bottom: 14px; }
.trip-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; }
.trip-item {
  display: grid; grid-template-columns: 30px 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px;
  background: var(--card); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 22px -18px rgba(20,10,10,.45); view-transition-name: none;
}
.trip-item .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff; font-size: 13px; font-weight: 700; }
.trip-item img, .trip-item .noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; background: #E6DDD3; }
.trip-item .txt { display: grid; min-width: 0; }
.trip-item .kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.trip-item .txt a { font-family: var(--font-display); font-size: 19px; font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.2; }
.trip-item .txt a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.trip-item small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-item .acts { display: flex; gap: 4px; }
.ico { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(20,16,17,.07); color: var(--ink); font-size: 15px; cursor: pointer; transition: background-color .25s; }
.ico:hover { background: rgba(20,16,17,.15); }
.ico.del:hover { background: var(--red); color: #fff; }
.ico[disabled] { opacity: .3; cursor: default; }
.trip-list .leg { position: relative; height: 34px; margin-left: 26px; border-left: 2px dashed rgba(210,29,37,.5); }
.trip-list .leg span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.trip-shared { margin-bottom: 22px; padding: 16px 18px; border-radius: 18px; background: rgba(210,29,37,.08); box-shadow: inset 0 0 0 1.5px rgba(210,29,37,.3); display: grid; gap: 12px; }
.trip-empty { display: grid; gap: 14px; justify-items: start; }
.trip-empty[hidden], .trip-shared[hidden], .trip-tools[hidden] { display: none; }
.trip-pin {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(20,10,10,.35); transition: transform .3s var(--spring);
}
.trip-pin:hover { transform: scale(1.15); background: var(--black); }

/* ---------- Home: "Before you go" quick links ---------- */
.basics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.basic {
  position: relative; display: grid; gap: 4px; align-content: start; min-height: 150px; padding: 20px 20px 22px; border-radius: 24px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 100% at 0% 0%, rgba(232,40,47,.32), transparent 55%), #151011;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 22px 40px -24px rgba(20,10,10,.6); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.basic:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 30px 50px -24px rgba(20,10,10,.7); }
.basic svg { color: var(--red-bright); margin-bottom: 10px; transition: transform .5s var(--spring); }
.basic:hover svg { transform: scale(1.1) rotate(-5deg); }
.basic b { font-family: var(--font-display); font-size: 21px; font-weight: 650; }
.basic small { font-size: 13px; color: rgba(255,255,255,.65); }
.basic .go { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); transition: transform .5s var(--spring); }
.basic:hover .go { transform: translateX(3px) rotate(-12deg); }

/* ---------- Bus times ---------- */
.bus-pills { margin: 0 0 18px; }
.bus-box { border-radius: 24px; padding: 22px 24px 20px; background: rgba(255,255,255,.045); }
.bus-next { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; margin-bottom: 14px; padding: 10px 16px; border-radius: 14px; background: var(--red); color: #fff; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px -12px rgba(232,40,47,.8); }
.bus-next[hidden] { display: none; }
.bus-next b { font-family: var(--font-display); font-size: 26px; font-weight: 650; }
.bus-next span { opacity: .85; font-size: 14px; }
.bus-meta { color: rgba(255,255,255,.85); font-size: 14.5px; margin-bottom: 14px; }
.bus-meta span { color: rgba(255,255,255,.6); font-size: 13px; }
.bus-times { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bus-times li { display: grid; justify-items: center; min-width: 64px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: background-color .3s, opacity .3s; }
.bus-times li small { font-size: 10px; font-weight: 500; opacity: .7; }
.bus-times li.past { opacity: .38; }
.bus-times li.off { opacity: .3; text-decoration: line-through; }
.bus-times li.next { background: var(--red); box-shadow: 0 0 18px -4px rgba(240,53,60,.8); }
.bus-ops { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.bus-route[hidden] { display: none; }
.bus-source { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.6); max-width: 80ch; }
.bus-source a { color: #fff; }

.offline-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.offline-list a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--black); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.offline-list a:hover { background: var(--red); }
.install-btn { justify-self: start; margin-top: 6px; }
.install-btn[hidden] { display: none; }

/* ---------- Guides list ---------- */
.region-group[hidden] { display: none; }
.region-group h2 { margin-bottom: 22px; }

/* ---------- Text pages (About, Privacy) ---------- */
.prose { max-width: 72ch; display: grid; gap: 14px; font-size: 16.5px; }
.prose h2 { font-size: 26px; margin-top: 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--red); }

/* ---------- Review page (local preview only) ---------- */
.confirm-group { display: grid; gap: 12px; }
.confirm-group h2 { font-size: 22px; }
.confirm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.confirm-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 14px; align-items: baseline; }
.confirm-list a { font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
.confirm-list .check { display: grid; gap: 4px; min-width: 0; }
.confirm-list .check .sources { font-size: 12.5px; gap: 2px; }
.confirm-list .check .sources li { display: block; }
.confirm-list .check a { font-family: inherit; font-size: inherit; text-decoration: underline; }
.review-thumb { display: block; width: 100%; max-width: 240px; height: auto; border-radius: 10px; margin-bottom: 6px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); vertical-align: 2px; }
.pill-answered { background: #E3F1F2; color: #1F6470; }
.pill-partly { background: #F6EEDC; color: #7A5B22; }
.pill-local { background: #EEEEEA; color: #55554E; }
.stack { display: grid; gap: 28px; }

/* ---------- Footer: black glass on the flag ---------- */
.site-footer { color: #fff; padding: 40px 0 60px; }
.foot-card {
  display: grid; gap: 14px; padding: 32px 34px; border-radius: 30px; font-size: 13.5px;
  background: rgba(14, 9, 10, .74); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 60px -30px rgba(0,0,0,.7);
}
.foot-card .brand b { font-size: 40px; }
.foot-card .brand b i { color: var(--red); }
.foot-card nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot-card nav a { color: #fff; text-decoration: none; }
.foot-card nav a:hover { text-decoration: underline; }
.foot-card p { opacity: .75; max-width: 80ch; }
.foot-card a { color: #fff; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1020px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .basics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-wrap, .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-photo { max-width: 720px; }
}
@media (max-width: 860px) {
  .brand span { display: none; }
  .site-nav a { padding: 8px 10px; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 4, 5, .6) 0%, rgba(10, 4, 5, .3) 55%, rgba(10, 4, 5, .06) 100%); }
  .map-card { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .map-box { height: 62vh; min-height: 380px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .trip-grid { grid-template-columns: minmax(0, 1fr); }
  .trip-map { position: relative; top: 0; height: 52vh; order: -1; }
  .site-nav a .long { display: none; }
  .site-nav a .short { display: inline; }
  /* The place panel becomes a sheet that slides up from the bottom */
  .panel {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 50; min-height: 0; max-height: 78vh; max-height: 78dvh;
    border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: #150F10;
    transform: translateY(105%); transition: transform .4s var(--ease); visibility: hidden; box-shadow: 0 -20px 50px -10px rgba(0,0,0,.6);
  }
  .panel.open { transform: none; visibility: visible; }
  .sheet-close {
    display: grid; place-items: center; position: sticky; top: 10px; margin: 10px 12px -46px auto; z-index: 4;
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; font-size: 20px; line-height: 1;
  }
  .map-box.guide-map { height: 380px; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 56px; }
  .home-hero { padding-bottom: 110px; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheets .wrap { gap: 18px; padding-bottom: 100px; }
  .sheet { margin: 0 -8px; padding: 26px 14px 28px; border-radius: 28px; }
  .sheet.small { padding: 22px 16px 24px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
  .nearby .mosaic { grid-auto-rows: 170px; }
  .guide-tile { border-radius: 20px; }
  .guide-tile .cap { left: 7px; right: 7px; bottom: 7px; padding: 9px 11px 10px; border-radius: 14px; }
  .guide-tile h2, .guide-tile h3 { font-size: 18px; }
  .guide-tile .region { font-size: 10px; }
  .guide-tile:not(.big) .tags, .guide-tile .go, .guide-tile:not(.big) .sum, .guide-tile .checked { display: none; }
  .guide-tile.big .cap { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 14px 16px 15px; }
  .guide-tile.big h2, .guide-tile.big h3 { font-size: 30px; }
  .guide-tile.big .sum { -webkit-line-clamp: 2; font-size: 13.5px; }
  .all-tile { padding: 16px; border-radius: 20px; }
  .all-tile b { font-size: 46px; }
  .all-tile .t { font-size: 18px; }
  .all-tile p { display: none; }
  .bars { padding: 20px 14px 14px; }
  .bars .row { height: 170px; gap: 4px; }
  .bars .letters { gap: 4px; font-size: 10.5px; }
  .feature dl { grid-template-columns: 1fr 1fr; }
  .hero .facts { grid-template-columns: minmax(0, 1fr); }
  .hero .facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .hero .facts dd { text-align: right; margin: 0; }
  .timeline li { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
  .timeline li::before { left: 81px; }
  .timeline li::after { left: 85px; }
  .timeline li span { padding-left: 18px; }
  .foot-card { padding: 24px 22px; }
  .confirm-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trip-item { grid-template-columns: 26px 52px minmax(0, 1fr); gap: 10px; padding: 9px 10px; }
  .trip-item img, .trip-item .noimg { width: 52px; height: 40px; }
  .trip-item .acts { grid-column: 2 / -1; }
  .trip-item .txt a { font-size: 17px; }
}
@media (max-width: 560px) {
  /* Logo lockup on phones: "STAY IN" small above "Albania." so the name fits beside the menu */
  .brand b { display: block; line-height: .95; }
  .brand b small { display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin: 0 0 3px 1px; }
  .foot-card .brand b small { font-size: 12px; }
}
@media (max-width: 420px) {
  .brand b { font-size: 24px; }
  .site-nav { gap: 0; }
  .site-nav a { font-size: 14px; padding: 8px 8px; }
  .panel .facts { grid-template-columns: minmax(0, 1fr); }
  .panel .facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .panel .facts dd { text-align: right; margin: 0; }
  .card-head h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
