/* =============================================================================
   Giro d'Italia Ride Like a Pro – Bulgaria 2027 — site stylesheet

   Plain CSS, no build step. Edit this file and reload the page.

   Contents
     1. Variables (colours, fonts, spacing)      — change the look here
     2. Reset & base typography
     3. Layout helpers (.container, .section, .grid-*)
     4. Buttons & badges
     5. Header & navigation (desktop + mobile drawer)
     6. Hero sections
     7. Homepage sections
     8. Cards (routes, accommodation, albums, sponsors)
     9. Content pages (event, programme timeline, results, travel, legal)
    10. Forms (registration, contact)
    11. Gallery & lightbox
    12. Map & elevation profile
    13. Footer, cookie banner, messages, error pages
    14. Responsive breakpoints
    15. Accessibility & reduced motion
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Variables
   The pink/charcoal palette is a fallback, not an official brand guideline.
   --------------------------------------------------------------------------- */
:root {
  --brand: #e6007e;         /* racing pink */
  --brand-dark: #b8005f;
  --brand-light: #ff4da6;
  --brand-tint: #fff0f7;

  --ink: #15161a;           /* near-black used for dark sections */
  --ink-800: #1f2026;
  --ink-700: #2a2b33;

  --text: #15161a;
  --text-muted: #5b6270;
  --text-faint: #8a91a0;
  --line: #e2e6ec;          /* borders */
  --bg: #ffffff;
  --bg-soft: #f5f6f8;       /* light grey sections */

  --ok: #16a34a;
  --warn-bg: #fff7e6;
  --warn-text: #7a4b00;
  --warn-line: #f5d58a;
  --err-bg: #fef2f2;
  --err-text: #991b1b;
  --err-line: #fecaca;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(21, 22, 26, 0.12);
  --shadow-brand: 0 10px 25px rgba(230, 0, 126, 0.3);

  --container: 1200px;
  --gutter: 20px;
  --section-y: 80px;       /* vertical padding of page sections */
}

/* ---------------------------------------------------------------------------
   2. Reset & base typography
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
[x-cloak] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 16px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* Headline styles */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.display-xl { font-size: clamp(2.9rem, 8vw, 6.5rem); }
.display-lg { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.display-md { font-size: clamp(2.1rem, 3.5vw, 3rem); }
.display-sm { font-size: 1.9rem; }
.display-xs { font-size: 1.5rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.on-dark .eyebrow, .eyebrow.light { color: var(--brand-light); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 42rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; color: var(--text-faint); }
.text-center { text-align: center; }
.accent { color: var(--brand); }
.accent-light { color: var(--brand-light); }

/* Rich text entered by the organizer */
.prose { font-size: 1.1rem; line-height: 1.7; color: #3a4150; max-width: 48rem; }
.prose p + p, .prose ul, .prose ol { margin-top: 1rem; }
.prose li { margin-left: 1.25rem; list-style: disc; }
.prose a { text-decoration: underline; }
.prose h2, .prose h3 { font-family: var(--font-display); text-transform: uppercase; margin-top: 1.5rem; color: var(--text); }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.5rem; }
.prose.compact { font-size: 1rem; }

/* ---------------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }
.section { padding: var(--section-y) 0; }
.section.soft { background: var(--bg-soft); }
.section.dark, .on-dark { background: var(--ink); color: #fff; }
.section.brand { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.section-head { margin-bottom: 40px; }
.section-head.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.section-head h2 { margin-top: 10px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-sidebar { grid-template-columns: 1fr 2fr; gap: 48px; }          /* nav + content */
.grid-sidebar-wide { grid-template-columns: 7fr 5fr; gap: 48px; }     /* main + aside */
.grid-5-7 { grid-template-columns: 5fr 7fr; gap: 48px; }
.grid-7-5 { grid-template-columns: 7fr 5fr; gap: 48px; }
.span-all { grid-column: 1 / -1; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 56px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; align-items: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 56px; }

.stripe { height: 6px; width: 100%; background: repeating-linear-gradient(135deg, var(--brand) 0 12px, var(--brand-dark) 12px 24px); }

.sticky-box { position: sticky; top: 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sticky-box ul { margin-top: 12px; }
.sticky-box li + li { margin-top: 8px; }
.sticky-box a { color: var(--text); font-size: 0.95rem; }
.sticky-box a:hover { color: var(--brand); }

/* ---------------------------------------------------------------------------
   4. Buttons & badges
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-700); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.btn-white:hover { background: #f3f4f6; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
}
.badge-warn { background: #fbbf24; }
.badge-soft { background: var(--bg-soft); color: var(--text-muted); }

/* ---------------------------------------------------------------------------
   5. Header & navigation
   --------------------------------------------------------------------------- */
.header-wrap { position: relative; height: 80px; background: var(--ink); }
.header-wrap.transparent { height: 0; background: transparent; }
.header { position: absolute; left: 0; right: 0; top: 0; z-index: 40; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 48px; width: auto; }
.logo-bar { width: 8px; height: 36px; border-radius: 2px; background: var(--brand); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.logo-text small { display: block; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--brand-light); margin-top: 3px; }

.nav { display: none; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; min-width: 0; }
.nav-link {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link.active { color: var(--brand-light); }
.menu-btn { display: inline-flex; background: none; border: 0; color: #fff; padding: 8px; border-radius: 8px; }
.menu-btn svg { width: 28px; height: 28px; }

.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(21, 22, 26, 0.96); backdrop-filter: blur(6px); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.drawer-head .title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.drawer-nav { display: flex; flex-direction: column; gap: 20px; padding: 24px 0; }
.drawer-nav .nav-link { font-size: 1.5rem; }
.drawer-nav .btn { margin-top: 16px; }

/* Announcement bar above the header */
.announcement { background: var(--brand); color: #fff; text-align: center; font-size: 0.9rem; font-weight: 600; }
.announcement .container { padding-top: 8px; padding-bottom: 8px; }
.announcement a { color: #fff; }

/* ---------------------------------------------------------------------------
   6. Hero sections
   --------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg, .hero-img, .hero-overlay { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.dim { opacity: 0.5; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* With a video, the image sits underneath as a fallback (poster / autoplay blocked). */
.hero-img-fallback { z-index: -1; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-img-fallback { z-index: auto; }
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.2; }
/* Placeholder artwork until the organizer uploads photography (Site settings → hero image) */
.hero-bg {
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(230, 0, 126, 0.45), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(255, 77, 166, 0.25), transparent 60%),
    linear-gradient(180deg, #1f2026 0%, #15161a 55%, #0d0d10 100%);
}
.hero-bg.road::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2%; height: 42%;
  background: linear-gradient(170deg, transparent 48%, #2a2b33 48.5%, #2a2b33 100%);
  clip-path: polygon(0 100%, 100% 20%, 100% 100%);
}
.hero-overlay { background: linear-gradient(180deg, rgba(21, 22, 26, 0.35) 0%, rgba(21, 22, 26, 0.55) 60%, rgba(21, 22, 26, 0.95) 100%); }
.hero .container { position: relative; }

/* Homepage hero: full viewport height, content aligned to the bottom */
.hero-home { min-height: 100svh; display: flex; align-items: flex-end; }
.hero-home .container { padding-top: 160px; padding-bottom: 96px; }
.hero-home h1 { margin-top: 16px; max-width: 18ch; }
.hero-home h1 span { display: block; margin-top: 8px; color: var(--brand-light); }
.hero-meta { margin-top: 24px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.hero-meta .sep { margin: 0 8px; color: var(--brand-light); }
.hero-actions { margin-top: 32px; }
.hero .stripe { position: absolute; left: 0; right: 0; bottom: 0; }

/* Inner page hero */
.hero-page .container { padding-top: 110px; padding-bottom: 96px; }
.hero-page h1 { margin-top: 12px; }
.hero-page .lede { color: rgba(255, 255, 255, 0.8); margin-top: 24px; }

/* Countdown */
.countdown { margin-top: 48px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; margin-top: 12px; }
.countdown-cell { text-align: center; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px); }
.countdown-cell b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-cell span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.countdown-note { margin-top: 8px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

/* Stat tiles on route detail hero */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; max-width: 760px; }
.stat { padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); }
.stat dt { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.stat dd { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }

/* ---------------------------------------------------------------------------
   7. Homepage sections
   --------------------------------------------------------------------------- */
.highlights { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: 32px; box-shadow: var(--shadow); }
.highlights .hero-bg { opacity: 0.8; }
.highlights > * { position: relative; }
.highlights ul { margin-top: 20px; }
.highlights li { display: flex; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.highlights li + li { margin-top: 14px; }
.highlights li::before { content: ""; flex: none; width: 24px; height: 8px; margin-top: 10px; background: var(--brand); }
.highlights .btn { margin-top: 32px; }

.day-card { border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 32px; }
.day-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
.day-card h3 span { margin-left: 12px; color: var(--brand-light); }
.day-card ul { margin-top: 24px; }
.day-card li { display: flex; gap: 16px; }
.day-card li + li { margin-top: 16px; }
.day-card .time { flex: none; width: 96px; font-family: var(--font-display); font-weight: 600; color: var(--brand-light); }
.day-card .where { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.day-card .empty { color: rgba(255, 255, 255, 0.6); }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.chips li { padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.destination-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.destination-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.destination-art .note { position: absolute; left: 24px; right: 24px; bottom: 24px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

.cta-band { text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: 0.3; background: repeating-linear-gradient(135deg, var(--brand) 0 12px, var(--brand-dark) 12px 24px); }
.cta-band .container { position: relative; }
.cta-band p { margin: 20px auto 0; max-width: 36rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); }
.cta-band .btn { margin-top: 32px; }
.cta-strip { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.cta-strip p { margin-top: 8px; color: rgba(255, 255, 255, 0.9); }

/* ---------------------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------------------- */
.card { overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: box-shadow 0.2s; color: inherit; text-decoration: none; display: block; }
.card:hover { box-shadow: var(--shadow); text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .hero-bg { position: absolute; inset: 0; }
.card-media svg.track { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.card-media .badge { position: absolute; top: 16px; left: 16px; }
.card-media .badge.right { left: auto; right: 16px; }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; }
.card-body .tagline { margin-top: 8px; color: var(--text-muted); }
.card-body .btn { margin-top: 24px; }
.card-pad { padding: 24px; }

.route-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.route-figures dt { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.route-figures dd { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }

.info-box { padding: 32px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.info-box h2 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.info-box p { margin-top: 12px; color: var(--text-muted); }
.info-box.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.info-box.white { background: #fff; }

.panel-dark { border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: 40px; text-align: center; }
.panel-dark h2 { margin-top: 12px; }
.panel-dark p { margin: 16px auto 0; max-width: 28rem; color: rgba(255, 255, 255, 0.8); }
.panel-dark .btn { margin-top: 32px; }
.panel-dark.left { text-align: left; }
.panel-dark .tier-list { margin-top: 20px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.panel-dark .tier-list li + li { margin-top: 10px; }

.notice { padding: 16px; border-radius: 12px; }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); }
.notice-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-line); font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   9. Content pages
   --------------------------------------------------------------------------- */
.article { scroll-margin-top: 96px; }
.article h2 { margin-top: 8px; }
.article img { margin-top: 24px; border-radius: var(--radius); }
.article .prose { margin-top: 20px; }

/* Programme timeline */
.timeline { position: relative; margin: 32px 0 0 16px; padding-left: 32px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -41px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.timeline .time { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.timeline h3 { margin-top: 4px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
.timeline .meta { margin-top: 4px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.timeline .desc { margin-top: 12px; max-width: 42rem; color: #3a4150; }
.day-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; text-transform: uppercase; }
.day-title span { color: var(--brand); }

/* Definition list rows (route facts) */
.facts { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--text-muted); }
.facts dd { font-weight: 600; text-align: right; }

/* Simple list of links (other routes, available routes) */
.link-list li + li { margin-top: 10px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
.link-list a:hover { border-color: var(--brand); text-decoration: none; }
.link-list .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; }
.link-list .meta { font-size: 0.9rem; color: var(--text-faint); }

/* Results list */
.result-list { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.result-list li { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.result-list li + li { border-top: 1px solid var(--line); }
.result-list .name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.result-list .row { gap: 12px; }

/* FAQ accordions */
.faq-group { scroll-margin-top: 96px; }
.faq-list { margin-top: 16px; }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .prose { margin-top: 12px; }

/* Contact details */
.contact-details { margin-top: 24px; }
.contact-details > div + div { margin-top: 16px; }
.contact-details dt { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.contact-details dd { font-weight: 600; }

/* Filter pills (gallery categories) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--text); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pills a:hover { background: #e9ebef; text-decoration: none; }
.pills a.active { background: var(--ink); color: #fff; }

/* Legal page meta */
.legal-meta { margin-top: 12px; font-size: 0.9rem; color: var(--text-faint); }

/* ---------------------------------------------------------------------------
   10. Forms
   --------------------------------------------------------------------------- */
.form-card { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.95rem; font-weight: 600; }
.field .help { margin-top: 4px; font-size: 0.8rem; color: var(--text-faint); }
.field .error, .error { margin-top: 4px; font-size: 0.9rem; color: var(--err-text); }
.input, .form-card select, .form-card textarea, .form-card input[type="text"], .form-card input[type="email"] {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #cbd1da; background: #fff; color: var(--text); font: inherit;
}
.input:focus, .form-card select:focus, .form-card textarea:focus, .form-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.25); }
.form-card textarea { resize: vertical; min-height: 150px; }
.fieldset { margin-top: 32px; border: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border: 2px solid var(--brand); padding: 15px; }
.checks { margin-top: 16px; }
.checks > div + div { margin-top: 14px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: #3a4150; cursor: pointer; }
.check input, .choice input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.check .error { margin-left: 32px; }
.required { color: var(--brand); }
.form-card .btn { margin-top: 32px; }
.form-note { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--text-faint); }
.honeypot { display: none; }

/* ---------------------------------------------------------------------------
   11. Gallery & lightbox
   --------------------------------------------------------------------------- */
.masonry { columns: 1; column-gap: 16px; }
.masonry li { break-inside: avoid; margin-bottom: 16px; }
.masonry button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: none; }
.masonry img { width: 100%; transition: transform 0.5s; }
.masonry button:hover img { transform: scale(1.02); }
.masonry .caption { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.masonry .credit { color: var(--text-faint); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(21, 22, 26, 0.95); }
.lightbox figure { max-width: 1024px; max-height: 100%; text-align: center; }
.lightbox img { margin: 0 auto; max-height: 80vh; width: auto; border-radius: 12px; }
.lightbox figcaption { margin-top: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.lightbox-btn { position: absolute; padding: 12px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.1rem; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.95rem; font-weight: 600; }

/* ---------------------------------------------------------------------------
   12. Map & elevation profile
   --------------------------------------------------------------------------- */
.map { margin-top: 24px; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.map-placeholder { margin-top: 24px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.map-placeholder b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.map-placeholder p { margin-top: 8px; max-width: 24rem; color: var(--text-muted); }
.profile-box { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.profile-box svg { display: block; width: 100%; height: 224px; }
.leaflet-container { font: inherit; }
.leaflet-container a { color: var(--brand); }

/* ---------------------------------------------------------------------------
   13. Footer, cookie banner, messages, error pages
   --------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
.footer-brand { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.footer-brand span { display: block; color: var(--brand-light); }
.footer-tagline { margin-top: 16px; max-width: 28rem; color: rgba(255, 255, 255, 0.7); }
.footer-meta { margin-top: 24px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.footer-social { display: flex; gap: 16px; margin-top: 24px; }
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer a:hover { color: #fff; }
.footer-col h2 { margin-bottom: 16px; }
.footer-col li + li { margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 24px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 680px; margin: 0 auto; padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 0.9rem; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.1); }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .row { margin-top: 16px; gap: 12px; }

.messages { margin-top: 24px; }
.message { padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 500; }
.message.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.message.error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-line); }

.error-page { padding: 112px 0; text-align: center; }
.error-page h1 { margin-top: 12px; }
.error-page p { margin-top: 16px; color: var(--text-muted); }
.error-page .btn { margin-top: 32px; }

.thank-you { text-align: center; }
.thank-you .reference { margin-top: 12px; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: 0.15em; color: var(--brand); }
.thank-you p { margin-top: 24px; font-size: 1.1rem; color: #3a4150; }
.thank-you .row { margin-top: 40px; }

/* Sponsors grid */
.sponsor-tier { text-align: center; }
.sponsor-tier + .sponsor-tier { margin-top: 48px; }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.sponsor-logos li { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); width: 192px; }
.sponsor-logos li:hover { border-color: var(--brand); }
.sponsor-logos img { margin: 0 auto; width: 100%; height: auto; object-fit: contain; max-height: 64px; }
.sponsor-logos .xl { width: 100%; max-width: 384px; } .sponsor-logos .xl img { max-height: 128px; }
.sponsor-logos .lg { width: 256px; }                   .sponsor-logos .lg img { max-height: 96px; }
.sponsor-logos .sm { width: 144px; }                   .sponsor-logos .sm img { max-height: 48px; }

/* Accommodation card */
.accommodation h3 { margin-top: 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.accommodation .kind { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.accommodation .desc { margin-top: 12px; color: #3a4150; }
.accommodation .contact { margin-top: 16px; font-size: 0.9rem; }
.accommodation .contact p + p { margin-top: 4px; }

/* Album card text */
.album-meta { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.album-title { margin-top: 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }


/* Homepage photo mosaic: first image large, the rest in a grid */
.mosaic { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mosaic-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); aspect-ratio: 4 / 3; }
.mosaic-item a { display: block; height: 100%; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; font-size: 0.85rem; color: #fff; background: linear-gradient(transparent, rgba(21, 22, 26, 0.8)); }

/* Homepage video: poster with play button; the player loads on click */
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 1024px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-800); box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { display: block; padding: 0; background: none; cursor: pointer; }
.video-poster img, .video-poster .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); transition: transform 0.2s, background-color 0.2s; }
.play-btn svg { width: 40px; height: 40px; margin-left: 4px; }
.video-poster:hover .play-btn { transform: scale(1.08); background: var(--brand-dark); }
.video-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-caption { margin-top: 16px; text-align: center; color: rgba(255, 255, 255, 0.7); }
.video-section .tiny { color: rgba(255, 255, 255, 0.45); }

/* Simple entrance animation */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.05s; } .rise-3 { animation-delay: 0.1s; } .rise-4 { animation-delay: 0.15s; } .rise-5 { animation-delay: 0.2s; }

/* ---------------------------------------------------------------------------
   14. Responsive breakpoints
   --------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-sidebar, .grid-sidebar-wide, .grid-5-7, .grid-7-5 { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .sticky-box { position: static; }
}
@media (min-width: 640px) {
  :root { --section-y: 96px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
  .mosaic-item { aspect-ratio: auto; }
  .mosaic-item:first-child { grid-column: span 2; grid-row: span 2; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 40px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .result-list li { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-strip { flex-direction: row; justify-content: space-between; text-align: left; }
  .countdown-cell b { font-size: 3rem; }
  .countdown-grid { gap: 16px; }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; align-items: center; }
  .lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }
}
@media (max-width: 1023px) {
  .grid-sidebar, .grid-sidebar-wide, .grid-5-7, .grid-7-5 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sticky-box { position: static; }
}
@media (max-width: 767px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-card .btn-block.auto { width: auto; }
}
@media (min-width: 1024px) {
  .masonry { columns: 3; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
/* Desktop navigation appears from 1200px; below that the drawer menu is used. */
@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-btn, .drawer { display: none !important; }
}
@media (min-width: 1400px) { .nav { gap: 28px; } .nav-link { font-size: 0.9rem; letter-spacing: 0.12em; } .logo-text { font-size: 1.35rem; } }

/* ---------------------------------------------------------------------------
   15. Accessibility & reduced motion
   --------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
