/* ==========================================================================
   MeadowTrail Europe — Alpine Field Notes design system
   Vanilla CSS · Grid/Flexbox · No external dependencies
   ========================================================================== */

:root {
  --primary: #3F5140;
  --secondary: #D8D0B8;
  --accent: #C87945;
  --bg: #F1EDE3;
  --text: #222820;
  --dark: #29352B;
  --paper: #FBF9F3;
  --line: rgba(63, 81, 64, .18);
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.08; color: var(--dark); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.wrap { width: min(1200px, 92%); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 500; background: var(--paper); padding: .6rem 1rem; border-radius: 4px; }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header: slim, simple, identical on every page.
   Scrolls away with the page (static, NOT sticky / fixed). ---------- */
.site-header { position: relative; top: auto; background: var(--dark); color: var(--secondary); z-index: 50; border-bottom: 1px solid rgba(216, 208, 184, .14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--bg); text-decoration: none; font-family: var(--serif); font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--bg); }
.brand em { font-style: normal; color: var(--accent); margin-left: .15rem; }
.brand svg { flex: none; width: 26px; height: 26px; }
.primary-nav ul { list-style: none; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 0 1rem; margin: 0; padding: 0; }
.primary-nav a { display: inline-block; color: var(--secondary); text-decoration: none; font-size: .76rem; letter-spacing: .03em; padding: .25rem 0; border-bottom: 1px solid transparent; white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; border-color: var(--accent); }

/* Three-dot (kebab) menu button — shown on small screens only */
.nav-toggle { display: none; position: relative; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: transparent; color: var(--bg); border: 1px solid rgba(216, 208, 184, .35); border-radius: 50%; font-size: 0; line-height: 0; cursor: pointer; transition: background .25s, border-color .25s; }
.nav-toggle::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgba(216, 208, 184, .14); border-color: var(--accent); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; right: 4%; top: calc(100% + 6px); width: min(250px, 92vw); background: var(--dark); border: 1px solid rgba(216, 208, 184, .2); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: .45rem; gap: 0; }
  .primary-nav a { display: block; padding: .55rem .75rem; border-bottom: 0; border-radius: 4px; font-size: .84rem; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(216, 208, 184, .1); color: #fff; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: .88rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); transition: background .3s, color .3s, transform .3s, border-color .3s; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b0663a; color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: var(--bg); }
.btn-light { border-color: rgba(216, 208, 184, .6); color: var(--bg); background: transparent; }
.btn-light:hover { background: var(--bg); color: var(--dark); }

/* ---------- Hero: Living Landscape Parallax ---------- */
.hero { position: relative; min-height: clamp(580px, 94vh, 920px); overflow: hidden; color: var(--bg); display: flex; align-items: flex-end; background: var(--dark); isolation: isolate; }
.hero-layer { position: absolute; inset: -10% -4%; will-change: transform; pointer-events: none; }
.hero-photo-alpine-valley { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(41, 53, 43, .35) 0%, rgba(41, 53, 43, .1) 38%, rgba(41, 53, 43, .88) 100%); }
.hero-mist { z-index: 2; background: radial-gradient(ellipse 60% 22% at 28% 62%, rgba(241, 237, 227, .26), transparent 70%), radial-gradient(ellipse 48% 18% at 76% 48%, rgba(216, 208, 184, .22), transparent 70%); animation: drift 38s ease-in-out infinite alternate; }
.hero-topo { z-index: 2; color: var(--secondary); opacity: .32; }
.hero-ridges { z-index: 3; }
.hero-ridges svg, .hero-front svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }
.hero-front { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; pointer-events: none; }
.hero-front svg { position: relative; display: block; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.topo-svg { width: 100%; height: 100%; display: block; }
.topo-path { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 5 9; animation: contour 60s linear infinite; }
@keyframes contour { to { stroke-dashoffset: -900; } }
.hero-content { position: relative; z-index: 6; padding: 0 0 7rem; width: min(1200px, 92%); margin-inline: auto; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 6.8rem); color: var(--bg); margin: .5rem 0 1.1rem; letter-spacing: -.025em; max-width: 14ch; }
.reveal-line { display: block; overflow: hidden; padding-bottom: .06em; }
.reveal-line > span { display: inline-block; transform: translateY(110%); animation: rise 1.25s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal-line:nth-child(2) > span { animation-delay: .22s; }
@keyframes rise { to { transform: none; } }
.hero-lede { max-width: 56ch; font-size: 1.15rem; color: var(--secondary); opacity: 0; animation: fade 1s .7s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-search { display: flex; gap: .4rem; max-width: 660px; margin-top: 1.6rem; background: rgba(241, 237, 227, .96); border-radius: var(--radius); padding: .4rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); opacity: 0; animation: fade 1s 1s forwards; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: .75rem .8rem; color: var(--text); }
.hero-search input:focus { outline: none; }
.hero-badges { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.badge-float { position: absolute; background: rgba(41, 53, 43, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(216, 208, 184, .3); color: var(--bg); padding: .65rem .9rem; border-radius: 4px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; animation: float 7s ease-in-out infinite, fade 1s 1.2s both; }
.badge-float strong { display: block; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--secondary); }
.badge-float.b1 { top: 16%; right: 7%; }
.badge-float.b2 { top: 38%; right: 20%; animation-delay: -2.5s, 1.4s; }
.badge-float.b3 { top: 22%; left: 52%; animation-delay: -4.5s, 1.6s; }
@keyframes float { 50% { transform: translateY(-11px); } }
@media (max-width: 800px) { .badge-float.b2, .badge-float.b3 { display: none; } .badge-float.b1 { top: 6%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin: .35rem 0 0; }
.section-head p { max-width: 52ch; margin: 0; color: #4a5247; }
.section-alt { background: var(--secondary); }
.section-dark { background: var(--dark); color: var(--secondary); }
.section-dark h2, .section-dark h3 { color: var(--bg); }
.section-dark .section-head p { color: var(--secondary); }
.lead { font-size: 1.15rem; color: #3a4238; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s ease, box-shadow .45s ease, opacity .9s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(41, 53, 43, .5); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; background: var(--secondary); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-tag { position: absolute; top: .8rem; left: .8rem; background: var(--bg); color: var(--dark); font-family: var(--mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; padding: .32rem .55rem; border-radius: 3px; }
.card-body { padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .65rem; }
.card-loc { font-family: var(--mono); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); margin: 0; }
.card-title { font-size: 1.65rem; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { margin: 0; font-size: .94rem; color: #3a4238; }
.card-notes { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .8rem; margin: .1rem 0; padding: .75rem 0; border-top: 1px dashed rgba(63, 81, 64, .3); border-bottom: 1px dashed rgba(63, 81, 64, .3); }
.card-notes dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: #6b7266; }
.card-notes dd { margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.35; }
.card-actions { display: flex; gap: .6rem; margin-top: auto; flex-wrap: wrap; padding-top: .3rem; }
.card-actions .btn { flex: 1 1 120px; }
.empty { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }

/* ---------- Difficulty indicator ---------- */
.diff { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .8rem; }
.diff-label { font-family: var(--mono); letter-spacing: .05em; color: #4a5247; }
.diff-bars { display: flex; gap: 4px; flex: none; }
.diff-bars i { width: 26px; height: 6px; border-radius: 3px; background: rgba(63, 81, 64, .18); position: relative; overflow: hidden; }
.diff-bars i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s ease; }
.diff-bars i.on::after { transform: scaleX(1); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-6px); }

/* ---------- Filter bar (sticky but compact; header is not sticky) ---------- */
.filter-bar { position: sticky; top: 0; z-index: 20; background: rgba(241, 237, 227, .93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .65rem 0; margin-bottom: 2.2rem; }
.filter-inner { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.filter-inner input, .filter-inner select { font: inherit; font-size: .88rem; padding: .55rem .7rem; border: 1px solid rgba(63, 81, 64, .3); border-radius: 4px; background: var(--paper); color: var(--text); }
.filter-inner input { flex: 1 1 220px; }
.result-count { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; margin-left: auto; color: var(--primary); }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: var(--bg); overflow: hidden; background: var(--dark); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: slowzoom 30s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.08); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41, 53, 43, .1), rgba(41, 53, 43, .85)); }
.page-hero .topo-overlay { position: absolute; inset: 0; color: var(--secondary); opacity: .28; z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; padding: 4.5rem 0 3.2rem; }
.page-hero h1 { color: var(--bg); font-size: clamp(2.6rem, 7vw, 5.6rem); margin: .45rem 0 .8rem; letter-spacing: -.02em; }
.page-hero p { max-width: 62ch; color: var(--secondary); font-size: 1.1rem; }
.page-hero.compact { min-height: 320px; }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--secondary); margin-bottom: .6rem; }
.crumbs a { color: var(--secondary); }

/* ---------- Prose & field cards ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 1.8rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.field-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 1.35rem 1.4rem; border-radius: 4px; transition: transform .4s ease, box-shadow .4s ease; }
.field-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(41, 53, 43, .45); }
.field-card h3 { margin: .25rem 0 .55rem; font-size: 1.4rem; }
.field-card p { font-size: .95rem; }
.field-card .links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Category strip & stories ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.cat-tile { display: block; border: 1px solid rgba(216, 208, 184, .3); padding: 1.3rem; border-radius: 4px; text-decoration: none; color: var(--bg); transition: background .35s, transform .35s; }
.cat-tile:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.cat-tile span { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.cat-tile strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.story { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.story-media { aspect-ratio: 3 / 2; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.story:hover .story-media img { transform: scale(1.06); }
.story-body { padding: 1.3rem; }
.story h3 { font-size: 1.45rem; margin: .35rem 0 .6rem; }
.story h3 a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- Map panel ---------- */
.map-panel { display: grid; grid-template-columns: 1.45fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(216, 208, 184, .25); min-height: 480px; }
.map-canvas { position: relative; background-color: #33433a; color: rgba(216, 208, 184, .28); background-image: linear-gradient(rgba(216, 208, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 208, 184, .07) 1px, transparent 1px); background-size: 44px 44px; overflow: hidden; }
.map-canvas .topo-svg { position: absolute; inset: 0; }
.map-label { position: absolute; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: rgba(216, 208, 184, .5); text-transform: uppercase; }
.map-pin { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); cursor: pointer; padding: 0; animation: pulse 3s infinite; transition: background .3s, transform .3s; }
.map-pin:hover { transform: translate(-50%, -50%) scale(1.2); }
.map-pin.active { background: var(--bg); border-color: var(--accent); }
.map-pin span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--mono); font-size: .64rem; color: var(--bg); letter-spacing: .06em; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 121, 69, .55); } 70% { box-shadow: 0 0 0 14px rgba(200, 121, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 121, 69, 0); } }
.map-info { background: var(--bg); color: var(--text); padding: 1.8rem; }
.map-info-inner { transition: opacity .45s ease, transform .45s ease; }
.map-info-inner.swap { opacity: 0; transform: translateX(18px); }
.map-info img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.map-info h3 { font-size: 1.9rem; margin: .3rem 0 .6rem; color: var(--dark); }
.map-info .card-actions { margin-top: 1rem; }
@media (max-width: 860px) { .map-panel { grid-template-columns: 1fr; } .map-canvas { min-height: 380px; } }

/* ---------- 3D Terrain tile ---------- */
.terrain-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.terrain-scene { perspective: 1100px; display: grid; place-items: center; min-height: 400px; }
.terrain-tile { position: relative; width: min(380px, 78vw); aspect-ratio: 1; transform: rotateX(58deg) rotateZ(-32deg); transform-style: preserve-3d; background: radial-gradient(circle at 45% 42%, #6a7c62, #3F5140 55%, #29352B); border-radius: 8px; box-shadow: 0 2px 0 #344437, 0 5px 0 #2d3b30, 0 9px 0 #26322a, 0 13px 0 #212b24, 40px 60px 70px rgba(34, 40, 32, .35); color: rgba(216, 208, 184, .55); animation: tilt 16s ease-in-out infinite alternate; overflow: hidden; }
@keyframes tilt { to { transform: rotateX(54deg) rotateZ(-25deg); } }
.terrain-tile > div, .terrain-tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 620; stroke-dashoffset: 620; animation: route 7s ease-in-out infinite; }
@keyframes route { 0% { stroke-dashoffset: 620; } 65%, 100% { stroke-dashoffset: 0; } }
.route-start { fill: var(--bg); }
.route-end { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.terrain-caption { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7266; text-align: center; margin-top: 1rem; }
@media (max-width: 900px) { .terrain-wrap { grid-template-columns: 1fr; } }

/* ---------- Detail pages ---------- */
.detail-hero { min-height: 560px; }
.detail-name { font-size: clamp(3rem, 9vw, 7.4rem) !important; line-height: .95; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-family: var(--mono); font-size: .7rem; padding: .38rem .7rem; border: 1px solid rgba(216, 208, 184, .5); border-radius: 99px; letter-spacing: .05em; color: var(--bg); }
.detail-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 3rem; align-items: start; }
.spec-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; overflow: hidden; }
.spec-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); }
.spec-card h2 { font-size: 1.6rem; margin: .2rem 0 1rem; }
.spec-row { display: grid; grid-template-columns: 112px 1fr; gap: .8rem; padding: .62rem 0; border-bottom: 1px dashed rgba(63, 81, 64, .25); }
.spec-row dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #6b7266; padding-top: .15rem; }
.spec-row dd { margin: 0; font-size: .9rem; line-height: 1.45; }
.spec-card .diff { margin: 1.1rem 0; }
.spec-card .btn { width: 100%; margin-top: .5rem; }
.feature-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.feature-list li { position: relative; padding: .8rem .9rem .8rem 2.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: .94rem; margin: 0 !important; }
.feature-list li::before { content: ""; position: absolute; left: .9rem; top: 1.15rem; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--accent); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 230px; gap: .8rem; }
.gallery button { padding: 0; border: 0; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--secondary); }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.gallery button:hover img { transform: scale(1.07); }
.lightbox { position: fixed; inset: 0; background: rgba(34, 40, 32, .94); display: none; place-items: center; z-index: 400; padding: 2rem; }
.lightbox.open { display: grid; animation: fade .35s forwards; opacity: 0; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 4px; }
.lightbox p { color: var(--secondary); text-align: center; font-size: .9rem; margin-top: .8rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg); border: 0; border-radius: 4px; padding: .5rem .85rem; cursor: pointer; font: inherit; }
.facts details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.facts summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--dark); }
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; color: var(--accent); font-family: var(--mono); font-size: 1.3rem; transition: transform .35s ease; }
.facts details[open] summary::after { transform: rotate(45deg); }
.facts details p { margin: .7rem 0 0; animation: fade .5s forwards; opacity: 0; }
.score-row { display: grid; grid-template-columns: 170px 1fr 40px; gap: .8rem; align-items: center; margin: .7rem 0; font-size: .9rem; }
.score-track { height: 8px; background: rgba(63, 81, 64, .15); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; transition: width 1.3s ease; }
.score-row span:last-child { font-family: var(--mono); font-size: .78rem; }
.notice-box { background: var(--secondary); border-left: 4px solid var(--accent); padding: 1.2rem 1.4rem; border-radius: 4px; font-size: .94rem; }
.nearby-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.nearby-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.nearby-list strong { font-family: var(--serif); font-size: 1.1rem; display: block; }
.action-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .score-row { grid-template-columns: 120px 1fr 36px; }
}

/* ---------- Forms & tables ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 640px; }
.form-grid label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); display: grid; gap: .35rem; }
.form-grid input, .form-grid textarea, .form-grid select { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); padding: .75rem .85rem; border: 1px solid rgba(63, 81, 64, .3); border-radius: 4px; background: var(--paper); }
.form-grid textarea { min-height: 160px; resize: vertical; }
.form-status { font-size: .92rem; color: var(--primary); min-height: 1.4em; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 2rem; background: var(--paper); }
.data-table th, .data-table td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: rgba(216, 208, 184, .45); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--secondary); padding: 4.2rem 0 2rem; font-size: .92rem; position: relative; overflow: hidden; }
.site-footer .topo-overlay { position: absolute; inset: 0; color: rgba(216, 208, 184, .07); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: .74rem; font-family: var(--mono); letter-spacing: .17em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--bg); margin: 0 0 .7rem; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-notices { position: relative; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(216, 208, 184, .2); display: grid; gap: .9rem; font-size: .82rem; color: rgba(216, 208, 184, .88); }
.footer-notices .platform { border: 1px solid rgba(200, 121, 69, .55); padding: 1rem 1.1rem; border-radius: 4px; }
.footer-notices p { margin: 0; }
.copy-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: .6rem; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; bottom: 1rem; right: 1rem; max-width: 560px; background: var(--dark); color: var(--secondary); padding: 1.35rem 1.4rem; border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); z-index: 300; transform: translateY(150%); transition: transform .6s cubic-bezier(.2, .7, .2, 1); border: 1px solid rgba(216, 208, 184, .2); font-size: .9rem; }
.cookie-banner.show { transform: none; }
.cookie-banner h2 { color: var(--bg); font-size: 1.25rem; margin: 0 0 .5rem; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--secondary); }
.cookie-banner .actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .hero-lede, .hero-search, .badge-float { opacity: 1; }
  .route-line { stroke-dashoffset: 0; }
  .diff-bars i.on::after { transform: scaleX(1); }
}