:root {
  color-scheme: light;
  --forest: #123d39;
  --forest-2: #1d5a4f;
  --river: #2d7b83;
  --orange: #ef6a3a;
  --paper: #f5f1e8;
  --paper-2: #e9e4d8;
  --ink: #17221f;
  --muted: #64706b;
  --line: rgba(18, 61, 57, .16);
  --shadow: 0 16px 44px rgba(13, 42, 38, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 12px 16px; color: var(--paper); background: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #ffb26e; outline-offset: 3px; }

.app-shell { width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 70px rgba(14, 44, 40, .16); }
.topbar { position: sticky; z-index: 1100; top: 0; display: grid; min-height: 76px; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 11px clamp(18px, 4vw, 54px); color: #fff; background: rgba(15, 53, 49, .97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.gailurrak { display: inline-flex; align-items: center; gap: 10px; color: white; font-weight: 780; letter-spacing: -.04em; text-decoration: none; }
.mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--forest); background: #f1b16f; border-radius: 50%; font-size: 1.16rem; }
.title-lockup { min-width: 0; }
.title-lockup p { margin: 0 0 2px; color: rgba(255,255,255,.67); font-size: .69rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; }
.title-lockup h1 { margin: 0; overflow: hidden; font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 720; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.languages { display: flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.08); border-radius: 999px; }
.languages button { min-width: 38px; min-height: 34px; padding: 6px 8px; color: rgba(255,255,255,.72); background: transparent; border: 0; border-radius: 999px; font-size: .72rem; font-weight: 750; cursor: pointer; }
.languages button[aria-pressed="true"] { color: var(--forest); background: #fff; }
.language-select { display: none; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; cursor: pointer; }

.hero { position: relative; min-height: clamp(310px, 42vw, 570px); overflow: hidden; color: white; background: var(--forest); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,32,29,.91) 0%, rgba(7,32,29,.55) 48%, rgba(7,32,29,.12) 82%), linear-gradient(0deg, rgba(7,32,29,.52), transparent 55%); }
.hero-content { position: absolute; z-index: 1; left: clamp(22px, 5vw, 72px); bottom: clamp(26px, 6vw, 70px); }
.eyebrow { margin: 0 0 12px; color: #d5b184; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h2 { max-width: 800px; margin: 0; font-size: clamp(2.65rem, 7vw, 6.8rem); font-weight: 670; letter-spacing: -.075em; line-height: .9; }
.direction-button { display: flex; min-height: 56px; align-items: center; gap: 13px; margin-top: 25px; padding: 10px 17px; color: white; background: rgba(13, 55, 50, .75); border: 1px solid rgba(255,255,255,.28); border-radius: 9px; backdrop-filter: blur(8px); cursor: pointer; }
.direction-button span { display: grid; text-align: left; }
.direction-button small { color: rgba(255,255,255,.64); font-size: .67rem; text-transform: uppercase; }
.direction-button b { font-size: .98rem; }
.hero-distance { position: absolute; z-index: 1; right: clamp(20px, 5vw, 68px); bottom: clamp(26px, 6vw, 70px); display: grid; text-align: right; }
.hero-distance strong { font-size: clamp(2.1rem, 5vw, 4.6rem); letter-spacing: -.08em; }
.hero-distance span { color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.ride-dashboard { padding: clamp(24px, 4vw, 48px) clamp(18px, 5vw, 72px) 20px; background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: .7fr .7fr 1.3fr 1.3fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { min-width: 0; min-height: 104px; padding: 17px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.stat strong { display: block; overflow: hidden; font-size: clamp(1.12rem, 2vw, 1.62rem); letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.stat small { display: block; margin-top: 5px; color: var(--river); font-size: .72rem; }
.ride-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ride-actions button { display: flex; min-height: 62px; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; cursor: pointer; }
.locate-button { color: white; background: var(--forest); border: 1px solid var(--forest); }
.download-button { color: var(--forest); background: #fff; border: 1px solid var(--line); }
.download-button span { display: grid; text-align: left; }
.download-button small { color: var(--muted); font-size: .7rem; }
.gps-status { min-height: 20px; margin: 12px 0 0; color: var(--river); font-size: .78rem; }
.distance-note { margin: 5px 0 0; color: var(--muted); font-size: .7rem; }

.tabs { position: sticky; z-index: 1000; top: 76px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.tabs button { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-pressed="true"] { color: var(--forest); border-bottom-color: var(--orange); }
.tabs span { font-size: 1rem; }
.tabs b { font-size: .82rem; }

.workspace { display: grid; min-height: 660px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); background: var(--paper-2); }
.map-panel { position: relative; min-width: 0; min-height: 660px; }
.map-panel.wide { grid-column: 1 / -1; }
.route-map { width: 100%; height: 100%; min-height: 660px; background: #dbe1d5; }
.map-legend { position: absolute; z-index: 500; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; background: rgba(255,255,255,.95); border: 1px solid rgba(18,61,57,.14); border-radius: 9px; box-shadow: var(--shadow); }
.map-legend span, .map-legend button { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 6px 9px; color: var(--ink); background: transparent; border: 0; border-radius: 6px; font-size: .7rem; cursor: default; }
.map-legend button { cursor: pointer; }
.map-legend button[aria-pressed="false"] { opacity: .42; text-decoration: line-through; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.route-swatch { height: 5px !important; background: var(--orange); border-radius: 3px !important; }
.point-swatch { color: #fff; background: var(--orange); }
.town-swatch { background: #f0c488; border: 2px solid var(--forest); }
.practical-swatch { background: var(--river); }

.browser-panel { max-height: 760px; overflow: auto; background: #f0ece2; border-left: 1px solid var(--line); }
.item-list { padding: 14px; }
.item-button { display: grid; width: 100%; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 13px 11px; text-align: left; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.item-button > span { display: grid; width: 32px; height: 32px; place-items: center; color: white; background: var(--forest); border-radius: 50%; font-size: .72rem; font-weight: 800; }
.item-button b { font-size: .84rem; line-height: 1.25; }
.item-button small { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.item-button:hover, .item-button.active { background: #fff; }
.item-button.active > span { background: var(--orange); }
.service-group h3 { margin: 22px 10px 6px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.detail-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); background: #fff; border-top: 1px solid var(--line); }
.detail-panel[hidden] { display: none; }
.detail-panel figure { position: relative; min-height: 390px; margin: 0; overflow: hidden; background: var(--forest); }
.detail-panel figure > img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel figure > span { position: absolute; top: 20px; left: 20px; display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font-weight: 850; }
.detail-panel figure > a { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 9px; overflow: hidden; color: #fff; background: rgba(7, 28, 26, .78); border-radius: 4px; font-size: .62rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.detail-body { padding: clamp(28px, 5vw, 68px); }
.detail-body h2 { max-width: 850px; margin: 0 0 24px; font-size: clamp(2rem, 4vw, 4.2rem); font-weight: 620; letter-spacing: -.065em; line-height: .98; }
.story { max-width: 880px; margin: 26px 0; color: #3d4844; font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.78; }
.audio-player { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.audio-play { display: inline-flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 16px; color: #fff; background: var(--forest); border: 0; border-radius: 7px; cursor: pointer; }
.audio-play.is-playing { background: var(--orange); }
.audio-back { width: 44px; height: 44px; color: var(--forest); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.speed-control { display: grid; gap: 2px; margin-left: auto; color: var(--muted); font-size: .66rem; }
.speed-control select { min-height: 34px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.source-link { display: inline-block; padding-bottom: 4px; color: var(--forest-2); font-size: .76rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--orange); }

.point-marker, .town-marker, .practical-marker { display: grid !important; place-items: center; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,.28); font-weight: 850; }
.point-marker { color: #fff; background: var(--orange); border: 2px solid #fff; }
.town-marker { color: var(--forest); background: #f0c488; border: 2px solid var(--forest); font-size: .68rem; }
.practical-marker { color: #fff; background: var(--river); border: 2px solid #fff; font-size: .72rem; }
.practical-marker.status, .practical-marker.hazard { background: #bd3f2e; }
.user-marker { width: 22px !important; height: 22px !important; background: #1773e6; border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 6px rgba(23,115,230,.23), 0 3px 8px rgba(0,0,0,.25); }

.route-alert, .safety { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin: 0; padding: 22px clamp(18px, 5vw, 72px); }
.route-alert { color: #4b2119; background: #f9dfcf; border-top: 1px solid #edc1a9; border-bottom: 1px solid #edc1a9; }
.safety { color: white; background: var(--forest); }
.route-alert strong, .safety strong { display: block; margin-bottom: 5px; }
.route-alert p, .safety p { margin: 0; line-height: 1.45; }
.route-alert small { display: block; margin-top: 5px; opacity: .72; }
.route-alert > a, .safety > a { font-size: .75rem; font-weight: 800; white-space: nowrap; text-decoration: none; border-bottom: 1px solid currentColor; }
.alert-icon, .safety-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(18px, 5vw, 72px); color: #b7c5c0; background: #0b2c29; font-size: .72rem; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 13px; }
  .gailurrak > span:last-child { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; }
  .map-panel, .route-map { min-height: 500px; }
  .browser-panel { max-height: 420px; border-left: 0; border-top: 1px solid var(--line); }
  .detail-panel { grid-template-columns: 1fr; }
  .detail-panel figure { min-height: 340px; }
}

@media (max-width: 660px) {
  .topbar { min-height: 64px; grid-template-columns: auto 1fr; padding: 8px 12px; }
  .mark { width: 34px; height: 34px; }
  .title-lockup { padding-right: 4px; }
  .title-lockup p { font-size: .58rem; }
  .title-lockup h1 { font-size: .92rem; }
  .top-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .languages { display: grid; grid-template-columns: repeat(4, 1fr); }
  .languages button { width: 100%; min-height: 38px; }
  .icon-button { width: 40px; height: 40px; }
  .tabs { top: 118px; }
  .hero { min-height: 390px; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,32,29,.91), rgba(7,32,29,.18) 78%); }
  .hero-content { right: 20px; bottom: 24px; }
  .hero h2 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .hero-distance { top: 22px; right: 18px; bottom: auto; }
  .hero-distance strong { font-size: 2.2rem; }
  .ride-dashboard { padding-inline: 12px; }
  .stat { min-height: 92px; padding: 13px 12px; }
  .stat strong { font-size: 1.05rem; }
  .ride-actions { grid-template-columns: 1fr; }
  .tabs button { min-height: 54px; gap: 4px; }
  .tabs b { font-size: .73rem; }
  .map-panel, .route-map { min-height: 58vh; }
  .map-legend { right: 8px; bottom: 8px; left: 8px; justify-content: center; }
  .map-legend span, .map-legend button { padding-inline: 6px; }
  .detail-panel figure { min-height: 270px; }
  .detail-body { padding: 26px 18px 38px; }
  .detail-body h2 { font-size: 2.25rem; }
  .audio-player { flex-wrap: wrap; }
  .speed-control { margin-left: 0; }
  .route-alert, .safety { grid-template-columns: auto 1fr; padding: 18px; }
  .route-alert > a, .safety > a { grid-column: 2; width: fit-content; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Urola/Arditurri family parity — 2026-09-30 */
:root {
  --forest: #153f35;
  --forest-2: #0e2d27;
  --river: #6d8f62;
  --orange: #f1a13a;
  --paper: #fbfaf5;
  --paper-2: #f4f0e7;
  --ink: #14211d;
  --muted: #637069;
  --line: #d9ddd2;
  --fern: #dfe8d6;
  --blue: #287cff;
  --shadow: 0 18px 55px rgba(42, 55, 46, .08);
}

html, body { background: var(--paper-2); }
.app-shell { width: 100%; max-width: none; padding-bottom: 1.5rem; background: var(--paper-2); box-shadow: none; }
.topbar {
  position: relative; min-height: 78px; grid-template-columns: 1fr auto 1fr; padding: .85rem clamp(1rem, 3vw, 2.5rem);
  color: var(--ink); background: rgba(244, 240, 231, .94); border-bottom: 1px solid rgba(20, 33, 29, .1); backdrop-filter: blur(16px);
}
.gailurrak { color: var(--ink); font-size: .8rem; font-weight: 850; }
.mark { width: 35px; height: 35px; color: #fff; background: var(--forest); border-radius: 50% 50% 45% 55%; font-family: Georgia, serif; }
.title-lockup { text-align: center; }
.title-lockup p { color: var(--river); font-size: .62rem; font-weight: 850; letter-spacing: .13em; }
.title-lockup h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; }
.top-actions { justify-content: flex-end; }
.languages { padding: .22rem .3rem; background: var(--paper); border: 1px solid var(--line); }
.languages button { min-width: 30px; min-height: 32px; color: var(--muted); }
.languages button[aria-pressed="true"] { color: #fff; background: var(--forest); }
.icon-button { color: var(--forest); background: var(--paper); border-color: var(--line); }

.hero { min-height: 310px; border-radius: 0; }
.hero-shade { background: linear-gradient(90deg, rgba(6, 24, 19, .86) 0%, rgba(6, 24, 19, .35) 50%, rgba(6, 24, 19, .08) 100%); }
.hero-content { bottom: auto; left: auto; display: flex; min-height: 310px; flex-direction: column; justify-content: center; max-width: 1440px; margin: auto; padding: 2rem clamp(1rem, 4vw, 3.5rem); position: relative; }
.hero h2 { max-width: 700px; margin: .45rem 0 1.15rem; font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 4.6rem); font-weight: 500; line-height: .96; }
.direction-button { min-height: 50px; width: fit-content; margin-top: 0; padding: .55rem .85rem; border-radius: 999px; background: rgba(255,255,255,.12); }
.direction-button svg { color: var(--orange); }
.hero-distance { display: none; }

.ride-dashboard {
  position: relative; z-index: 20; width: calc(100% - 2rem); max-width: 1340px; margin: -32px auto 0; padding: 1rem;
  background: rgba(251, 250, 245, .96); border: 1px solid rgba(255,255,255,.8); border-radius: 25px; box-shadow: 0 18px 60px rgba(18,55,45,.17); backdrop-filter: blur(18px);
}
.stats-grid { border: 0; border-radius: 0; overflow: visible; }
.stat { min-height: 0; padding: .25rem 1rem; }
.stat span { margin-bottom: 0; }
.stat strong { margin-top: .15rem; font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; }
.ride-actions { gap: .7rem; margin-top: .9rem; }
.ride-actions button { min-height: 58px; justify-content: flex-start; padding: .7rem .85rem; border-radius: 17px; }
.download-button { background: var(--fern); }
.gps-status, .distance-note { margin-left: .35rem; }

.tabs {
  position: relative; top: auto; z-index: 10; width: calc(100% - 2rem); max-width: 900px; margin: 1rem auto; padding: .32rem;
  gap: .35rem; background: rgba(251,250,245,.8); border: 1px solid var(--line); border-radius: 999px;
}
.tabs button { min-height: 45px; border: 0; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.tabs button[aria-pressed="true"] { color: #fff; background: var(--forest); box-shadow: 0 7px 20px rgba(21,63,53,.2); }
.tabs svg { width: 17px; height: 17px; }

.workspace { min-height: 0; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); gap: 1rem; max-width: 1440px; margin: auto; padding: 0 clamp(.75rem, 2.5vw, 2rem); background: transparent; }
.primary-surface, .detail-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 27px; overflow: hidden; box-shadow: var(--shadow); }
.primary-surface { min-height: 660px; }
.map-panel, .route-map { min-height: 660px; height: 660px; }
.map-panel.wide { grid-column: auto; }
.map-legend { top: 1rem; right: auto; bottom: auto; left: 1rem; padding: .48rem .7rem; gap: .8rem; border-radius: 999px; }
.map-legend span, .map-legend button { min-height: auto; padding: 0; font-weight: 800; }
.route-swatch { width: 22px !important; height: 4px !important; background: var(--forest); }
.point-swatch { width: 10px !important; height: 10px !important; background: var(--orange); }
.town-swatch { width: 11px !important; height: 11px !important; background: var(--blue); border: 2px solid #fff; border-radius: 3px !important; box-shadow: 0 0 0 1px var(--blue); }
.practical-swatch { width: 9px !important; height: 9px !important; background: #f2c94c; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #98740c; }

.browser-panel { height: 660px; max-height: none; overflow: auto; background: var(--paper); border: 0; }
.item-list { padding: clamp(1rem, 3vw, 2rem); }
.item-button { grid-template-columns: auto 1fr auto; gap: .85rem; padding: .72rem .4rem; }
.item-button > span { width: 34px; height: 34px; background: var(--forest); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(25,70,130,.2); }
.item-button > span svg { width: 16px; height: 16px; }
.item-button:hover, .item-button.active { background: var(--fern); border-radius: 12px; }
.town-list .item-button > span, .item-button[data-type="town"] > span { background: var(--blue); border-radius: 9px; }
.service-group h3 { margin-top: 1.5rem; font-family: Georgia, serif; font-size: 1.12rem; letter-spacing: 0; text-transform: none; color: var(--ink); }

.detail-panel { grid-column: auto; display: block; align-self: start; border-top: 1px solid var(--line); }
.detail-panel figure { min-height: 0; height: 245px; border-radius: 0; }
.detail-panel figure > img { border-radius: 0; }
.detail-panel figure > span { top: auto; right: 1rem; bottom: .75rem; left: auto; width: auto; height: auto; opacity: .85; background: transparent; font-family: Georgia, serif; font-size: 3.5rem; }
.detail-panel figure > a { border-radius: 12px; }
.detail-body { padding: 1.2rem; }
.detail-body h2 { margin: .3rem 0 1rem; font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.05; }
.story { margin: 1.15rem 0 0; font-family: Georgia, serif; font-size: 1rem; line-height: 1.75rem; }
.audio-player { display: grid; grid-template-columns: auto 1fr auto auto; gap: .65rem; padding: .7rem; border-radius: 19px; background: var(--paper-2); }
.audio-play { width: auto; min-width: 48px; min-height: 48px; padding: .6rem .8rem; border-radius: 999px; }
.audio-back { width: 38px; height: 38px; }
.source-link { margin-top: 1rem; color: var(--river); border-bottom-color: var(--orange); }

.point-marker { background: var(--forest); }
.town-marker { color: #fff; background: var(--blue); border-radius: 7px; border-color: #fff; }
.practical-marker { color: #3d3108; background: #f2c94c; }
.practical-marker svg { width: 13px; height: 13px; stroke-width: 2.3; }
.detail-panel figure > span svg { width: 34px; height: 34px; color: #fff; }
.route-alert, .safety { width: calc(100% - 2rem); max-width: 1380px; margin: 1rem auto 0; padding: 1rem; border-radius: 19px; }
.route-alert { color: #682e21; background: #f6dfd8; }
.safety { color: var(--forest); background: var(--paper); border: 1px solid var(--line); }
.safety > a { padding: .65rem .8rem; color: #fff; background: var(--forest); border: 0; border-radius: 999px; }
footer { max-width: 1380px; margin: 1rem auto 0; padding: 1rem; color: var(--muted); background: transparent; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .primary-surface, .map-panel, .route-map, .browser-panel { min-height: 540px; height: 540px; }
  .detail-panel { scroll-margin-top: 1rem; }
}

@media (max-width: 700px) {
  .topbar { grid-template-columns: auto minmax(0,1fr) auto; min-height: 68px; padding: .65rem .75rem; }
  .title-lockup { text-align: left; }
  .top-actions { grid-column: auto; display: flex; width: auto; }
  .languages { display: none; }
  .language-select { display: flex; min-height: 38px; align-items: center; padding: 0 .45rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
  .language-select select { min-height: 36px; border: 0; background: transparent; color: var(--forest); font-size: .68rem; font-weight: 900; }
  .hero, .hero-content { min-height: 285px; }
  .hero-content { justify-content: flex-end; padding-bottom: 3rem; }
  .ride-dashboard { width: calc(100% - 1.2rem); margin-top: -24px; border-radius: 21px; }
  .tabs { position: fixed; z-index: 1000; right: .7rem; bottom: .7rem; left: .7rem; width: auto; max-width: none; margin: 0; border-color: rgba(255,255,255,.2); border-radius: 20px; background: rgba(14,45,39,.96); box-shadow: 0 12px 40px rgba(12,45,35,.32); }
  .tabs button { flex-direction: column; gap: .12rem; min-height: 50px; color: rgba(255,255,255,.62); font-size: .56rem; }
  .tabs button[aria-pressed="true"] { background: rgba(255,255,255,.13); box-shadow: none; }
  .workspace { padding: .3rem .6rem 0; }
  .primary-surface, .detail-panel { border-radius: 21px; }
  .primary-surface, .map-panel, .route-map, .browser-panel { min-height: 500px; height: 500px; }
  .map-legend { right: .65rem; left: .65rem; justify-content: center; border-radius: 16px; }
  .detail-panel figure { height: 235px; }
  .detail-body { padding: 1.2rem; }
  .audio-player { grid-template-columns: auto 1fr auto; }
  .audio-back { display: none; }
  footer { padding-bottom: 5.8rem; }
}

/* Bidasoa corrections; canonical Urola colours and component radii remain intact. */
.hero-content { right: auto; left: auto; bottom: auto; width: 100%; }
.route-alert { margin-top: .65rem; margin-bottom: .65rem; }
.route-swatch { background: var(--forest); }
.closed-swatch { width:14px; height:5px; background:#b43727; }
#transcript { margin-top: 1rem; }
#transcript summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--forest); font-weight:700; }
#transcript .story { margin-top:.5rem; }
#credit-details { line-height:1.7; }
.map-legend button { min-height:44px; }
@media(max-width:700px) { .hero-content { right:auto; padding-left:1rem; padding-right:1rem; } .language-select { min-height:44px; } .map-legend { flex-wrap:wrap; gap:0; } }

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-ff2310f5.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-875ccdd4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-52306abf.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-001175b1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-98bbbccb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Fallback';
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.00%;
  size-adjust: 104.76%;
}
body { font-family: 'Geist', 'Geist Fallback', Arial, sans-serif; }
