/* ============================================================
   100 PASSES — ONE LONG ASCENT  |  style.css
   ============================================================ */

/* ── Custom properties ───────────────────────────────────── */
:root {
    --accent:         #C9442A;
    --accent-dark:    #A83520;
    --dark:           #0D0D0D;
    --dark-2:         #1A1A1A;
    --stats-bg:       #111111;
    --bg-light:       #F5F3EF;
    --bg-white:       #FFFFFF;
    --text:           #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted:     #9A9A9A;
    --white:          #FFFFFF;
    --sep:            rgba(255,255,255,0.12);

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --nav-h: 94px;
    --section-pad-v: 6rem;
    --section-pad-h: 5rem;
    --label-spacing: 0.18em;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Reusable: section label ─────────────────────────────── */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

/* ── Reusable: buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Ghost = light outline (hero) */
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* Accent outline — orange border, used directly below hero title */
.btn-accent-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--accent);
    margin-top: 0.8rem;
}
.btn-accent-outline:hover {
    background: var(--accent);
}

/* Outline dark (light backgrounds) */
.btn-outline-dark {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}
.btn-outline-dark:hover {
    background: var(--text);
    color: var(--white);
}

.link-plain {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color 0.2s;
}
.link-plain:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-pad-h);
    height: var(--nav-h);
    /* Transparent over hero; JS adds .nav--scrolled */
    background: transparent;
    transition: background 0.35s;
}

.nav--scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-logo {
    align-self: center;
    margin-top: 0;
}

.nav-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover  { color: var(--white); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* ── Language switcher ───────────────────────────────────── */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    padding-left: 1.6rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-lang-link {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 0.2rem 0;
}
.nav-lang-link:hover  { color: rgba(255,255,255,0.8); }
.nav-lang-link.active { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.above-fold {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    position: relative;
    flex: 1;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.55);
}

/* Gradient darkens bottom edge */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0)    40%,
        rgba(0,0,0,0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--nav-h) var(--section-pad-h) 0;
    max-width: 900px;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.02;
    color: var(--white);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-rule {
    width: 44px;
    height: 2px;
    background: var(--accent);
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
}

.hero-sub {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.4rem;
    letter-spacing: 0.01em;
}

/* Scroll indicator (right side, vertical) */
.hero-scroll {
    position: absolute;
    right: 2.6rem;
    bottom: 3.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero-scroll-text {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5);
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
    background: var(--stats-bg);
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* THE CHALLENGE (2/5) | CURRENT STATUS (3/5) */
.stats-panel {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 3.5rem 1.3rem;
}
.stats-panel:first-child  { flex: 2; }
.stats-panel:last-child   { flex: 3; }

.stats-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-panel-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.stats-panel-title {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-panel-body {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Full-height divider between the two panels */
.stats-panel-sep {
    width: 1px;
    background: var(--sep);
    margin: 1rem 0;
    flex-shrink: 0;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    color: var(--white);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.stat-note {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    margin-top: 0.2rem;
    text-align: center;
}

/* Circular progress stat */
.stat-ring-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.progress-ring { display: block; }

.stat-ring-text {
    position: absolute;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1;
}

/* Separator between stats within a panel */
.stat-sep {
    width: 1px;
    height: 50px;
    background: var(--sep);
    flex-shrink: 0;
}

/* Stacked inline stats (climbing time + riding days) */
.stat-stacked {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.stat-inline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.stat-inline-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-inline .stat-value { font-size: 1.35rem; }

/* ═══════════════════════════════════════════════
   FEATURED PASS
══════════════════════════════════════════════════ */
.featured-pass {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.featured-content {
    background: var(--bg-light);
    padding: var(--section-pad-v) var(--section-pad-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-name {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 0.9rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.featured-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 2.4rem;
}

/* Pass stats row */
.pass-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pass-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pass-stat-icon {
    color: var(--text-secondary);
    height: 26px;
    display: flex;
    align-items: center;
}

.pass-stat-value {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.pass-stat-label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.featured-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.featured-image {
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-image:hover img {
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════════
   MAP SECTION
══════════════════════════════════════════════════ */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.map-left {
    position: relative;
    isolation: isolate; /* contain Leaflet's internal z-index stack */
}

#map {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* Override Leaflet zoom controls for consistency */
.leaflet-control-zoom a {
    font-family: var(--font-sans) !important;
    color: var(--dark) !important;
}

.map-legend {
    position: absolute;
    bottom: 1.4rem;
    left: 1.4rem;
    background: rgba(255,255,255,0.95);
    padding: 0.8rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    z-index: 400;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.legend-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-dot.completed { background: #C9442A; }
.legend-dot.planned   { background: #C9442A; border: 2px solid #C9442A; background: transparent; outline: 2px solid #C9442A; outline-offset: 0;}
.legend-dot.future    { background: #888888; }
.legend-dot.dream     { background: transparent; border: 2px solid #888888; }

.map-right {
    background: var(--bg-light);
    padding: var(--section-pad-v) var(--section-pad-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-right h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.map-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.4rem;
}

/* ═══════════════════════════════════════════════
   LATEST RIDE
══════════════════════════════════════════════════ */
.latest-ride {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.ride-image {
    overflow: hidden;
    position: relative;
}
.ride-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(25%);
    transition: transform 0.6s ease;
}
.ride-image:hover img { transform: scale(1.03); }

.ride-content {
    background: var(--bg-light);
    padding: var(--section-pad-v) var(--section-pad-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ride-name {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: var(--dark);
    margin-bottom: 0.7rem;
    line-height: 1.05;
}

.ride-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}

.bullet { color: var(--text-muted); }

.ride-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Thumbnail gallery */
.ride-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2.4rem;
}

.ride-thumb {
    overflow: hidden;
    aspect-ratio: 1;
}
.ride-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ride-thumb:hover img { transform: scale(1.07); }

/* ═══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark-2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

/* Left: quote */
.footer-quote-col {
    padding: 4rem var(--section-pad-h);
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.footer-quote {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 0.75;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.3rem;
}

blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

/* Right: challenge specs */
.footer-challenge-col {
    padding: 4rem var(--section-pad-h);
    display: flex;
    align-items: center;
}

.footer-challenge {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bike-icon { opacity: 0.9; }

.footer-challenge-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.footer-challenge-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-challenge-list li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    letter-spacing: 0.01em;
    padding-left: 1rem;
    position: relative;
}
.footer-challenge-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════
   LEAFLET CUSTOM MARKERS (defined in main.js)
══════════════════════════════════════════════════ */
.map-marker {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.map-marker.completed { background: #C9442A; }
.map-marker.planned   { background: #C9442A; opacity: 0.6; }
.map-marker.future    { background: #888888; }
.map-marker.dream     { background: transparent; border-color: #888888; }

/* Leaflet popup style override */
.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    min-width: 160px;
}
.leaflet-popup-tip { display: none; }

.map-popup {
    padding: 0.9rem 1.1rem;
    font-family: var(--font-sans);
}
.map-popup-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--dark);
    margin-bottom: 0.15rem;
}
.map-popup-alt {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.map-popup-status {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.35rem;
    color: var(--accent);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --section-pad-h: 3rem;
        --section-pad-v: 4.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad-h: 1.5rem;
        --section-pad-v: 3.5rem;
    }

    .nav { padding: 0 1.5rem; }
    .nav-links { gap: 1.2rem; }
    .nav-link { font-size: 0.72rem; }

    .stats-bar         { flex-direction: column; }
    .stats-panel       { padding: 2rem 1.5rem; }
    .stats-panel-sep   { width: auto; height: 1px; margin: 0 1.5rem; }
    .stats-panel-body  { flex-wrap: wrap; justify-content: flex-start; gap: 1.5rem 0; }
    .stat              { flex: 1 1 40%; padding: 0 0.5rem; }
    .stat-sep          { display: none; }
    .stat-stacked      { flex: 1 1 100%; flex-direction: row; align-items: flex-start; justify-content: center; gap: 2.5rem; }

    .featured-pass,
    .map-section,
    .latest-ride,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .ride-image {
        min-height: 320px;
        order: -1;
    }

    .map-left { min-height: 360px; }

    .footer-quote-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

    .hero-scroll { display: none; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .nav-lang  { margin-left: auto; padding-left: 0; border-left: none; }

    .hero-title { font-size: 2.4rem; }

    .pass-stats  { gap: 1.2rem; }

    .ride-gallery { grid-template-columns: repeat(2, 1fr); }

    blockquote { font-size: 0.9rem; }
}


/* ═══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════ */

/* Always-dark nav on the about page (no hero image behind it) */
.nav--dark {
    background: rgba(13, 13, 13, 0.97);
}

/* ── Page header ─────────────────────────────── */
.about-header {
    background: var(--dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.about-header-inner {
    padding: calc(var(--nav-h) + 4rem) var(--section-pad-h) 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-header h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.about-header-sub {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
    line-height: 1.7;
}

.about-header-img {
    overflow: hidden;
    position: relative;
}

.about-header-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--dark) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.about-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .about-header {
        grid-template-columns: 1fr;
    }
    .about-header-img { height: 260px; }
}

/* ── Prose container ─────────────────────────── */
.about-prose {
    max-width: 680px;
    margin: 0 auto;
    padding: 4.5rem var(--section-pad-h);
}

.about-prose p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.about-prose p:last-child { margin-bottom: 0; }

.about-prose--no-bottom  { padding-bottom: 1rem; }
.about-prose--no-top     { padding-top: 1rem; }
.about-prose--half-top   { padding-top: 1.125rem; }

.about-prose-img {
    margin: 2.5rem -3rem;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.about-prose-img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* Lead — big opening statement */
.about-lead {
    font-family: var(--font-serif) !important;
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    color: var(--dark) !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
}

/* Accent — italic pull quote within prose */
.about-accent {
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-size: 1.25rem !important;
    color: var(--dark) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 2rem 0 !important;
}

/* Punch — short dramatic line */
.about-punch {
    font-size: 1.05rem !important;
    color: var(--dark) !important;
    font-weight: 400 !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.6 !important;
}

/* Single-word punchline — extra breathing room */
.about-punch--solo {
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-size: 1.4rem !important;
    color: var(--accent) !important;
    margin-top: 0.6rem !important;
    margin-bottom: 2.5rem !important;
}

/* Punchy accent colour variant */
.about-punch--em {
    color: var(--accent) !important;
}

/* ── Alternating splits ───────────────────────── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.about-header + .about-split { margin-top: -2px; }

/* Reverse: image left, text right */
.about-split--reverse .about-split-image { order: -1; }

/* Text column */
.about-split-text {
    background: var(--bg-light);
    padding: 5rem var(--section-pad-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.about-split-text p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}
.about-split-text p:last-child { margin-bottom: 0; }

/* Reuse lead/punch/em inside splits */
.about-split-text .about-lead   { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--dark); line-height: 1.25; margin-bottom: 1.5rem; }
.about-split-text .about-punch  { font-size: 1.05rem; color: var(--dark); font-weight: 400; margin-bottom: 0.3rem; }
.about-split-text .about-punch--em { color: var(--accent); }

/* Eyebrow label above split text */
.about-eyebrow {
    font-family: var(--font-sans) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    margin-bottom: 1rem !important;
}

/* Image column */
.about-split-image {
    overflow: hidden;
    position: relative;
}
.about-split-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.about-split-image:hover img { transform: scale(1.04); }

/* 35% smaller variant — no cropping, centred in the column */
.about-split-image--small {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-split-image--small img {
    width: 65%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* 30% smaller variant */
.about-split-image--small-30 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-split-image--small-30 img {
    width: 70%;
    height: auto;
    object-fit: unset;
}

/* Align image left edge to text column left edge */
.about-split-image--align-text-left {
    justify-content: flex-start;
    padding-left: var(--section-pad-h);
}

/* Double photo variant — two images side by side, no gap, pinned to top */
.about-split-image--double {
    align-self: start;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.about-split-image--double img {
    width: 50%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* Muted variant (accident section — slightly desaturated) */
.about-split-image--muted img {
    filter: grayscale(40%) brightness(0.9);
}

/* ── Race stats (Cyclotour) ───────────────────── */
.about-race-stats {
    display: flex;
    gap: 2rem;
    margin: 1.8rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.about-race-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-race-value {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.about-race-unit {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.15rem;
}

.about-race-label {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ── Turning-point divider ───────────────────── */
.about-divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--dark);
    padding: 3rem var(--section-pad-h);
}

.about-divider-rule {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.about-divider-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Closing manifesto ───────────────────────── */
.about-closing {
    background: var(--dark-2);
    padding: 6rem var(--section-pad-h);
}

.about-closing-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4rem;
}

.about-manifesto p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    font-weight: 400;
}

.about-manifesto-accent {
    color: var(--white) !important;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem) !important;
    margin-top: 0.4rem;
}

.about-manifesto-sep {
    width: 1px;
    height: 120px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.about-manifesto--right { text-align: right; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .about-split,
    .about-split--reverse { grid-template-columns: 1fr; }

    .about-split-image { min-height: 360px; }
    .about-split--reverse .about-split-image { order: 0; }

    .about-closing-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-manifesto--right { text-align: center; }
    .about-manifesto-sep { width: 60px; height: 1px; margin: 0 auto; }

    .about-divider-text { white-space: normal; text-align: center; }
}

@media (max-width: 600px) {
    .about-prose { padding: 3rem 1.5rem; }
    .about-race-stats { gap: 1.2rem; }
    .about-prose-img { margin: 2rem 0; }
    .about-prose-img img { height: 70vh; }
}

/* ============================================================
   PASSES PAGE
============================================================ */

/* ── Page header ──────────────────────────────────────────── */
.passes-header {
    background: var(--dark);
    color: #fff;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.passes-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(196,30,58,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.passes-header-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.passes-header .section-label {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.passes-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.passes-header-sub {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ── Filter bar ───────────────────────────────────────────── */
.passes-filters {
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filters-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search input */
.filter-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.filter-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

#pass-search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--bg-light);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#pass-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196,30,58,0.1);
    background: #fff;
}

/* Vertical separator */
.filter-sep {
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Category pills */
.filter-cats {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cat-btn {
    padding: 0.32rem 0.7rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 20px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
}

.cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Dropdown selects */
.filter-selects {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1.8rem 0.5rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.79rem;
    color: var(--text);
    background: var(--bg-light)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 0.6rem center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196,30,58,0.1);
}

/* Meta: count + reset */
.filter-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    flex-shrink: 0;
}

.filter-count {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

.filter-count strong {
    color: var(--text);
    font-weight: 600;
}

.filter-reset {
    padding: 0.38rem 0.9rem;
    border: 1.5px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
    pointer-events: none;
}

.filter-reset.visible {
    opacity: 1;
    pointer-events: auto;
}

.filter-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Pass grid section ────────────────────────────────────── */
.passes-section {
    background: var(--bg-light);
    padding: 3rem 2rem 5rem;
}

.passes-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ── Pass card ────────────────────────────────────────────── */
.pass-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.pass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

/* Card image */
.pc-img {
    position: relative;
    height: 200px;
    background: #1a1a1a;
    overflow: hidden;
}

.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pass-card:hover .pc-img img {
    transform: scale(1.04);
}

/* Category badge — shared visual style */
.cat-badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.cat-badge.hc {
    background: rgba(196,30,58,0.85);
    border-color: transparent;
}

/* Overlay variant: positioned on top of pass card images */
.pc-cat {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

/* Status badge */
.pc-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(4px);
}

.pc-status.completed {
    background: rgba(22,163,74,0.85);
    color: #fff;
}

.pc-status.planned {
    background: rgba(0,0,0,0.55);
    color: #fff;
}

.pc-status.future,
.pc-status.dream {
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.75);
}

.pc-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Card body */
.pc-body {
    padding: 1.5rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc-canton {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.3rem;
    min-height: 1.2em;
}

.pc-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.pc-alt {
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 1.1rem;
}

.pc-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin-bottom: 1.1rem;
}

/* Stats row */
.pc-stats {
    display: flex;
    gap: 0;
    margin-bottom: 1.2rem;
}

.pc-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    position: relative;
}

.pc-stat + .pc-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(0,0,0,0.07);
}

.pc-stat-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.pc-stat-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #aaa;
    text-transform: uppercase;
}

/* Difficulty bars */
.pc-diff {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.diff-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.diff-bar {
    width: 6px;
    border-radius: 2px;
    background: rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.diff-bar:nth-child(1) { height: 8px; }
.diff-bar:nth-child(2) { height: 11px; }
.diff-bar:nth-child(3) { height: 14px; }
.diff-bar:nth-child(4) { height: 17px; }
.diff-bar:nth-child(5) { height: 20px; }

.diff-bar.filled {
    background: var(--accent);
}

.pc-diff-label {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.04em;
}

/* CTA link */
.pc-cta {
    display: block;
    margin-top: auto;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
    transition: all 0.18s;
    text-transform: uppercase;
}

.pc-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(196,30,58,0.04);
}

/* ── Empty state ──────────────────────────────────────────── */
.passes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: #aaa;
}

.passes-empty-icon {
    margin: 0 auto 1.5rem;
    color: #ccc;
}

.passes-empty p {
    font-size: 1rem;
    color: #999;
    max-width: 360px;
    margin: 0 auto;
}

.passes-more {
    display: none; /* shown via JS when needed */
    text-align: center;
    padding: 2.5rem 0 4rem;
}

/* ── Passes page responsive ───────────────────────────────── */
@media (max-width: 1100px) {
    .passes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .passes-filters { position: static; }

    .filters-inner {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }

    .filter-sep { display: none; }

    .filter-search { flex: 1 1 100%; }

    .filter-cats { flex-wrap: wrap; }

    .filter-selects {
        flex: 1 1 100%;
    }

    .filter-select { flex: 1 1 calc(50% - 0.3rem); }

    .filter-meta { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }

    .passes-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .passes-header { padding: 5rem 1.5rem 3rem; }
    .passes-section { padding: 2rem 1rem 4rem; }
}

@media (max-width: 480px) {
    .filter-select { flex: 1 1 100%; }
    .pc-body { padding: 1.2rem; }
}

/* ═══════════════════════════════════════════════
   PLACEHOLDER — coming-soon pages
══════════════════════════════════════════════════ */
.placeholder-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad-v) var(--section-pad-h);
    background: var(--bg-light);
}

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 480px;
}

.placeholder-icon {
    color: var(--text-muted);
    opacity: 0.55;
}

.placeholder-msg {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   MAP PAGE — Full-screen sidebar + map layout
══════════════════════════════════════════════════ */
.map-page-body { overflow: hidden; }

.map-page {
    display: flex;
    height: calc(100vh - var(--nav-h));
    margin-top: var(--nav-h);
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────── */
.mp-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.mp-sidebar-head {
    padding: 1.6rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.mp-sidebar-head .section-label { margin-bottom: 0.55rem; }

.mp-head-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.mp-status-counts {
    display: flex;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.mp-count-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    gap: 3px;
}
.mp-count-item:last-child { border-right: none; }
.mp-count-dot {
    width: 7px; height: 7px; border-radius: 50%;
}
.mp-count-dot.completed { background: var(--accent); }
.mp-count-dot.planned   { background: #E8A87C; }
.mp-count-dot.future    { background: #777; }
.mp-count-dot.dream     { background: #4A6FA5; }
.mp-count-n {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.mp-count-lbl {
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

/* Filter pills */
.mp-filters {
    display: flex;
    gap: 0.35rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.mp-filter-btn {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.32rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    border-radius: 1px;
    transition: all 0.18s;
}
.mp-filter-btn:hover { border-color: rgba(255,255,255,0.38); color: rgba(255,255,255,0.8); }
.mp-filter-btn.active[data-status=""]          { border-color: rgba(255,255,255,0.6); color: var(--white); }
.mp-filter-btn.active[data-status="completed"] { border-color: var(--accent); color: var(--white); background: rgba(201,68,42,0.18); }
.mp-filter-btn.active[data-status="planned"]   { border-color: #E8A87C; color: #E8A87C; background: rgba(232,168,124,0.1); }
.mp-filter-btn.active[data-status="future"]    { border-color: #888; color: #aaa; background: rgba(136,136,136,0.1); }
.mp-filter-btn.active[data-status="dream"]     { border-color: #6A8FC5; color: #8AAFDF; background: rgba(74,111,165,0.12); }

/* Search */
.mp-search-wrap {
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    position: relative;
}
.mp-search-icon {
    position: absolute;
    left: 2.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.25);
    pointer-events: none;
}
.mp-search {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem 0.5rem 2.25rem;
    outline: none;
    transition: border-color 0.18s;
}
.mp-search::placeholder { color: rgba(255,255,255,0.25); }
.mp-search:focus { border-color: rgba(255,255,255,0.28); }

/* List header */
.mp-list-header {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 1.5rem 0.25rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Pass list */
.mp-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mp-list::-webkit-scrollbar       { width: 3px; }
.mp-list::-webkit-scrollbar-track { background: transparent; }
.mp-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.mp-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-left: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}
.mp-row:hover  { background: rgba(255,255,255,0.04); }
.mp-row.active { background: rgba(201,68,42,0.1); border-left-color: var(--accent); }

.mp-row-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.12);
}
.mp-row-dot.completed { background: var(--accent); }
.mp-row-dot.planned   { background: #E8A87C; }
.mp-row-dot.future    { background: #777; }
.mp-row-dot.dream     { background: #4A6FA5; }

.mp-row-name {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-row.active .mp-row-name { color: var(--white); font-weight: 600; }

.mp-row-alt {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.28);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mp-row-cat {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    min-width: 18px;
    text-align: right;
}

/* ── Map area ─────────────────────────────────── */
.mp-map-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}
#map-full {
    width: 100%;
    height: 100%;
}

/* Markers */
.map-marker {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s;
}
.map-marker.completed { background: var(--accent); }
.map-marker.planned   { background: #E8A87C; }
.map-marker.future    { background: #777; }
.map-marker.dream     { background: #4A6FA5; }
.map-marker.active    { transform: scale(1.6); border-color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.55); }

/* Popup reset */
.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14) !important;
    padding: 0 !important;
}
.leaflet-popup-content { margin: 1rem 1.25rem !important; }
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-close-button { top: 14px !important; right: 10px !important; font-size: 18px !important; color: #999 !important; }

/* Rich popup content */
.map-popup-rich  { min-width: 185px; padding: 0.55rem 0 0.65rem; }
.mpr-status {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.28rem;
}
.mpr-status.completed { color: var(--accent); }
.mpr-status.planned   { color: #B8643A; }
.mpr-status.future    { color: #777; }
.mpr-status.dream     { color: #4A6FA5; }
.mpr-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.18;
    margin-bottom: 0.22rem;
}
.mpr-alt-cat {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}
.mpr-stats {
    display: flex;
    gap: 1.1rem;
    margin-bottom: 0.8rem;
}
.mpr-stat         { display: flex; flex-direction: column; gap: 2px; }
.mpr-stat-val     { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.mpr-stat-lbl     { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.mpr-link {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    transition: opacity 0.15s;
}
.mpr-link:hover { opacity: 0.7; }

/* Floating legend */
.mp-map-legend {
    position: absolute;
    bottom: 1.75rem;
    right: 1rem;
    z-index: 800;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.1);
}
.mp-map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
}
.mp-map-legend .legend-dot          { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mp-map-legend .legend-dot.completed { background: var(--accent); }
.mp-map-legend .legend-dot.planned   { background: #E8A87C; }
.mp-map-legend .legend-dot.future    { background: #777; }
.mp-map-legend .legend-dot.dream     { background: #4A6FA5; }

/* ── Map page responsive ─────────────────────── */
@media (max-width: 900px) {
    .map-page-body { overflow: visible; }
    .map-page {
        flex-direction: column;
        height: auto;
        overflow: visible;
        margin-top: var(--nav-h);
    }
    .mp-sidebar  { width: 100%; max-height: 42vh; }
    .mp-map-wrap { height: 58vh; }
    .mp-map-legend { bottom: 1rem; right: 0.6rem; }
}
@media (max-width: 600px) {
    .mp-sidebar  { max-height: 38vh; }
    .mp-map-wrap { height: 62vh; }
    .mp-sidebar-head { padding: 1rem 1rem 0.9rem; }
    .mp-filters, .mp-search-wrap { padding-left: 1rem; padding-right: 1rem; }
    .mp-row { padding-left: 1rem; padding-right: 1rem; }
    .mp-list-header { padding-left: 1rem; padding-right: 1rem; }
}
