/**
 * RLMotorhome.com — Stylesheet
 * V6.0.0 — Cinematic Edition
 * Instrument Serif (display) + Inter (UI), dark default, editorial tone
 * Layered on top of V3-V5 classes — old tokens aliased to new for back-compat
 */

/* ========== V6 DESIGN TOKENS ========== */
:root,
[data-theme="dark"] {
    /* V6 backgrounds */
    --bg:         #0b0c0e;
    --bg2:        #111315;
    --bg-card:    #17191c;
    --border:     #262a2f;

    /* V6 text */
    --text:       #f2efe7;
    --text-secondary: #c9c7bf;
    --text-tertiary:  #8a8e95;

    /* V6 accent (warm gold) */
    --accent:     #e8b24a;
    --accent-hover: #ffca66;
    --accent-subtle: rgba(232,178,74,0.08);

    /* Live indicator */
    --live:       #ff5533;

    /* UI elements */
    --btn-bg:     rgba(255,255,255,0.08);
    --btn-border: rgba(255,255,255,0.18);
    --glass-bg:   rgba(17,19,21,0.65);
    --glass-border: rgba(255,255,255,0.12);

    /* Hero overlay (cinematic) */
    --hero-overlay: linear-gradient(180deg,
        rgba(11,12,14,0.55) 0%,
        rgba(11,12,14,0.25) 35%,
        rgba(11,12,14,0.85) 85%,
        #0b0c0e 100%);

    /* Map */
    --map-bg:     #17191c;
    --map-filter: brightness(0.85) contrast(1.1);

    /* Blueprint */
    --blueprint-stroke: #f2efe7;

    /* Shadows */
    --shadow:     0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.45);

    /* Kitchen warm gradient */
    --kitchen-bg: linear-gradient(160deg, #2a1a10 0%, #1a1410 100%);

    /* === Back-compat aliases (V3-V5 tokens) === */
    --orange:        var(--accent);
    --orange-light:  var(--accent-hover);
    --orange-dark:   var(--accent-hover);
    --orange-glow:   var(--accent-subtle);
    --orange-subtle: var(--accent-subtle);
    --bg-elevated:   var(--bg-card);
    --bg-section-alt:var(--bg2);
    --bg-hero:       linear-gradient(135deg, #0b0c0e 0%, #17191c 50%, #1a1410 100%);
    --text-on-hero:  var(--text);
    --border-hover:  rgba(255,255,255,0.20);
    --shadow-hover:  var(--shadow-lg);

    /* Typography + layout primitives */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    --gap: 1rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
}

[data-theme="light"] {
    --bg:         #f6f3ec;
    --bg2:        #ece7dc;
    --bg-card:    #ffffff;
    --border:     #d9d3c3;

    --text:       #1a1813;
    --text-secondary: #3d3a32;
    --text-tertiary:  #7b756a;

    --accent:     #b8631e;
    --accent-hover: #9f4e10;
    --accent-subtle: rgba(184,99,30,0.08);

    --live:       #c63a1f;

    --btn-bg:     rgba(0,0,0,0.04);
    --btn-border: rgba(0,0,0,0.14);
    --glass-bg:   rgba(255,255,255,0.78);
    --glass-border: rgba(0,0,0,0.1);

    --hero-overlay: linear-gradient(180deg,
        rgba(246,243,236,0) 0%,
        rgba(246,243,236,0) 55%,
        rgba(246,243,236,0.6) 85%,
        #f6f3ec 100%);

    --map-bg:     #ece7dc;
    --map-filter: none;
    --blueprint-stroke: #1a1813;
    --shadow:     0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
    --kitchen-bg: linear-gradient(160deg, #f2d4b4 0%, #e6b98a 100%);

    /* aliases */
    --bg-hero:       linear-gradient(135deg, #f6f3ec 0%, #ece7dc 50%, #e6b98a 100%);
    --text-on-hero:  #1a1813;
    --border-hover:  rgba(0,0,0,0.20);
    --shadow-hover:  var(--shadow-lg);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    transition: background 0.45s var(--ease), color 0.45s var(--ease);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* V6 — display headings use Instrument Serif */
h1, h2, h3, .display, .section-h, .section-title, .page-title, .stat-number, .odo-num, .stat-n {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
}
em { font-style: italic; }
.display em, .section-h em { color: var(--accent); }

/* V6 scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--orange-light); }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-section-alt); }
.section-title { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); letter-spacing: -0.01em; }
.section-desc { color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 800px; font-size: 1.05rem; line-height: 1.7; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.subsection-title { font-size: 1.15rem; font-weight: 500; color: var(--text-secondary); margin-top: 2.5rem; margin-bottom: 0.25rem; }
.page-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.page-desc { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 0.75rem; line-height: 1.7; }
.page-desc-sub { color: var(--text-tertiary); font-size: 1.1rem; margin-bottom: 3rem; line-height: 1.7; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--orange); color: #fff;
    font-family: var(--font); font-size: 0.95rem; font-weight: 500;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--duration) var(--ease); text-decoration: none;
}
.btn:hover { background: var(--orange-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-outline { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.35); }

/* ========== NAVIGATION ========== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.nav-logo { display: flex; align-items: center; text-decoration: none; transition: opacity var(--duration) var(--ease); }
.nav-logo:hover { opacity: 0.8; }
.nav-logo-img { height: 55px; width: auto; }
/* Show correct logo variant per theme */
[data-theme="light"] .nav-logo-light, [data-theme="light"] .footer-logo-light { display: none; }
[data-theme="light"] .nav-logo-dark, [data-theme="light"] .footer-logo-dark { display: block; }
[data-theme="dark"] .nav-logo-light, [data-theme="dark"] .footer-logo-light { display: block; }
[data-theme="dark"] .nav-logo-dark, [data-theme="dark"] .footer-logo-dark { display: none; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link { padding: 0.5rem 0.875rem; color: var(--text-secondary); font-size: 0.9rem; font-weight: 450; border-radius: var(--radius-sm); transition: all var(--duration) var(--ease); }
.nav-link:hover { color: var(--orange); background: var(--orange-subtle); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; height: 40px; padding: 0 0.625rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; line-height: 1; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: all var(--duration) var(--ease); }
.lang-toggle:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-subtle); }
.theme-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem; transition: all var(--duration) var(--ease); }
.theme-toggle:hover { border-color: var(--orange); }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--duration) var(--ease); }

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0; }
    .nav-links.open { display: flex; }
    .nav-link { padding: 0.875rem 1rem; font-size: 1rem; }
    .nav-hamburger { display: flex; }
}

/* ========== HERO ========== */
.hero {
    background: var(--bg-hero); color: var(--text-on-hero);
    padding: 6rem 0 3rem; position: relative; overflow: hidden;
    min-height: 520px; display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide-active { opacity: 1; }
.hero-bg::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.82) 100%);
}
.hero:not(.hero-has-bg)::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,126,34,0.15) 0%, transparent 70%); pointer-events: none;
}
.hero:not(.hero-has-bg)::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(15,52,96,0.3) 0%, transparent 70%); pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; width: 100%; }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.08; margin-bottom: 0.5rem; letter-spacing: -0.025em; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 300; opacity: 0.85; margin-bottom: 2rem; }

/* Live trip indicator */
.hero-live {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 1rem 1.5rem;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}
.live-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(231,76,60,0.9); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; }
.live-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.live-info { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem; }
.live-location strong, .live-stats strong { color: var(--orange-light); }
.live-weather { font-size: 0.95rem; }

/* Stats bar */
.stats-bar { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; animation: fadeInUp 0.6s var(--ease) 0.4s both; }
.stat-item { text-align: center; min-width: 80px; }
.stat-number { display: block; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--orange-light); line-height: 1.2; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; font-weight: 400; }

@media (max-width: 768px) {
    .hero { padding: 4rem 0 2rem; min-height: 420px; }
    .stats-bar { gap: 1.25rem 2rem; }
    .hero-live { gap: 0.75rem; padding: 0.875rem 1.125rem; }
}
@media (max-width: 480px) {
    .stats-bar { gap: 1rem 1.5rem; }
    .stat-item { min-width: 60px; }
}

/* ========== FEATURED EPISODE ========== */
.featured-episode { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.featured-episode-video { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.featured-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.episode-thumb-link:hover .featured-thumb { transform: scale(1.03); }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; background: rgba(230,126,34,0.9); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; padding-left: 4px; transition: all var(--duration) var(--ease); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.episode-thumb-link:hover .play-overlay { transform: translate(-50%, -50%) scale(1.1); background: var(--orange); box-shadow: 0 4px 32px rgba(230,126,34,0.45); }
.featured-episode-info { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.episode-badge { display: inline-block; background: var(--orange-subtle); color: var(--orange); padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; width: fit-content; }
.featured-episode-title { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.featured-episode-title a { color: var(--text); transition: color var(--duration) var(--ease); }
.featured-episode-title a:hover { color: var(--orange); }
.featured-episode-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.featured-episode-meta { display: flex; gap: 1rem; color: var(--text-tertiary); font-size: 0.85rem; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .featured-episode { grid-template-columns: 1fr; }
    .featured-episode-info { padding: 1.5rem; }
}

/* ========== EPISODE GRID ========== */
.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.episode-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all var(--duration) var(--ease); text-decoration: none; color: var(--text); }
.episode-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--text); }
.episode-card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.episode-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.episode-card:hover .episode-card-thumb img { transform: scale(1.05); }
.episode-card-info { padding: 1rem; }
.episode-num { font-size: 0.75rem; font-weight: 600; color: var(--orange); }
.episode-card-info h4 { font-size: 0.9rem; font-weight: 500; line-height: 1.4; margin-top: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-meta { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 0.5rem; }

@media (max-width: 768px) { .episode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .episode-grid { grid-template-columns: 1fr; } }

/* ========== CAROUSEL (Our Picks) ========== */
.carousel-wrapper { position: relative; overflow: hidden; margin-top: 1rem; }
.carousel-track {
    display: flex; gap: 1.25rem;
    transition: transform 0.6s var(--ease);
}
.carousel-card {
    min-width: calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
    flex-shrink: 0;
}
.carousel-card .episode-card-thumb { aspect-ratio: 16/9; max-height: 180px; }
.carousel-card .episode-card-thumb img { height: 100%; }
.carousel-card .episode-card-info { padding: 0.65rem 0.75rem; }
.carousel-card .episode-card-info h4 { font-size: 0.82rem; -webkit-line-clamp: 1; }
.carousel-card .episode-num { font-size: 0.7rem; }
.carousel-card .episode-meta { font-size: 0.75rem; margin-top: 0.3rem; }
.carousel-dots {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none; padding: 0; cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.carousel-dot.active {
    background: var(--orange);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-card { min-width: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 480px) {
    .carousel-card { min-width: 100%; }
}

/* ========== FILTER DROPDOWNS (Episodes page) ========== */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
    align-items: center;
}
.filter-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-family: var(--font); font-size: 0.9rem; font-weight: 450;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.filter-chevron { font-size: 0.75rem; transition: transform var(--duration) var(--ease); }
.filter-dropdown-toggle.open .filter-chevron { transform: rotate(180deg); }
.filter-dropdown { position: relative; }
.filter-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 220px; max-height: 320px; overflow-y: auto;
    z-index: 50; padding: 0.35rem;
}
.filter-dropdown-menu.open { display: block; }
.filter-dropdown-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.5rem 0.75rem;
    font-family: var(--font); font-size: 0.85rem;
    color: var(--text); background: none; border: none;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: background var(--duration) var(--ease);
    text-align: left; gap: 0.5rem;
}
.filter-dropdown-item:hover { background: var(--orange-subtle); color: var(--orange); }
.filter-count {
    font-size: 0.7rem;
    background: var(--bg-section-alt);
    color: var(--text-tertiary);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}
.filter-active-label {
    font-size: 0.85rem; font-weight: 500;
    color: var(--orange);
}
@media (max-width: 480px) {
    .filter-dropdown-menu { min-width: 180px; }
}

/* ========== MAP ========== */
.section-map { padding-bottom: 4rem; }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.trip-map { width: 100%; height: 520px; }
.countries-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.country-chip { font-size: 1.5rem; cursor: pointer; text-decoration: none; line-height: 1; display: inline-block; transition: transform var(--duration) var(--ease-spring); }
.country-chip:hover { transform: scale(1.35); }
@media (max-width: 768px) { .trip-map { height: 380px; } }

/* ========== INSTAGRAM / PHOTOS GRID ========== */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-radius: var(--radius); overflow: hidden; }
.ig-card { position: relative; aspect-ratio: 1; overflow: hidden; display: block; background: var(--bg-card); }
.ig-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s var(--ease); }
.ig-card:hover img { transform: scale(1.06); filter: brightness(0.75); }
.ig-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0.75rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); opacity: 0; transition: opacity var(--duration) var(--ease); display: flex; flex-direction: column; gap: 0.15rem; }
.ig-card:hover .ig-card-overlay { opacity: 1; }
.ig-location { color: #fff; font-size: 0.8rem; font-weight: 500; }
.ig-caption { color: rgba(255,255,255,0.8); font-size: 0.75rem; line-height: 1.4; }
.ig-grid-few { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 800px; }

@media (max-width: 768px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.photo-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 0.75rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); opacity: 0; transition: opacity var(--duration) var(--ease); }
.photo-card:hover .photo-card-overlay { opacity: 1; }
.photo-location { color: #fff; font-size: 0.8rem; font-weight: 400; }
@media (max-width: 768px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Admin Instagram grid */
.admin-ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.admin-ig-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--duration) var(--ease); }
.admin-ig-card:hover { border-color: var(--orange); }
.admin-ig-thumb { aspect-ratio: 1; overflow: hidden; background: var(--bg); }
.admin-ig-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-ig-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 0.9rem; }
.admin-ig-info { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-ig-location { font-size: 0.85rem; font-weight: 500; }
.admin-ig-caption { font-size: 0.8rem; color: var(--text-secondary); }
.admin-ig-meta { font-size: 0.75rem; color: var(--text-tertiary); }
.admin-ig-actions { padding: 0 0.75rem 0.75rem; display: flex; gap: 0.75rem; }

/* ========== LE'S KITCHEN ========== */
.section-kitchen { background: var(--bg-section-alt); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.recipe-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all var(--duration) var(--ease); text-decoration: none; color: var(--text); }
.recipe-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--text); }
.recipe-card-thumb-wrap { overflow: hidden; }
.recipe-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.6s var(--ease); }
.recipe-card:hover .recipe-card-img { transform: scale(1.03); }
.recipe-card-placeholder { aspect-ratio: 16/10; background: var(--orange-subtle); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--orange); }
.recipe-card-info { padding: 1.25rem; }
.recipe-category { font-size: 0.75rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; }
.recipe-card-info h4 { font-size: 1.05rem; font-weight: 500; margin-top: 0.25rem; line-height: 1.4; }
.recipe-meta { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-tertiary); flex-wrap: wrap; }
.recipe-difficulty { text-transform: capitalize; }
.kitchen-placeholder { text-align: center; padding: 3rem 2rem; background: var(--bg-card); border-radius: var(--radius); border: 1px dashed var(--border); color: var(--text-secondary); }
@media (max-width: 768px) { .recipe-grid { grid-template-columns: 1fr; } }

/* ========== MOTORHOME ========== */
.motorhome-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.motorhome-specs { padding: 2.5rem; }
.motorhome-specs h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.motorhome-subtitle { color: var(--text-secondary); margin-top: 0.25rem; margin-bottom: 1.5rem; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.spec { text-align: center; padding: 1.25rem 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: border-color var(--duration) var(--ease); }
.spec:hover { border-color: var(--orange); }
.spec-label { display: block; font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.spec-value { display: block; font-size: 1.35rem; font-weight: 600; color: var(--text); }
@media (max-width: 768px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } .motorhome-specs { padding: 1.5rem; } }

/* ========== CREW PAGE ========== */
.crew-page { padding-top: 3rem; }
.crew-section-title { font-size: 1.35rem; font-weight: 600; margin-top: 3rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--orange-subtle); letter-spacing: -0.01em; }
.crew-section-desc { color: var(--text-secondary); font-size: 0.95rem; margin-top: -1rem; margin-bottom: 2rem; line-height: 1.6; }
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.crew-grid-awesome { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.crew-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all var(--duration) var(--ease); }
.crew-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.crew-card-family { }
.crew-emoji { font-size: 2.5rem; line-height: 1; margin-bottom: 0.75rem; }
.crew-name { font-size: 1.15rem; font-weight: 600; }
.crew-role { display: block; font-size: 0.85rem; color: var(--orange); font-weight: 500; margin-top: 0.15rem; }
.crew-project { display: inline-block; font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.25rem; padding: 0.15rem 0.5rem; background: var(--bg); border-radius: 4px; }
.crew-works-with { display: inline-block; font-size: 0.75rem; color: var(--text-tertiary); margin-left: 0.25rem; }
.crew-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; margin-top: 0.75rem; }
.crew-joined { display: block; font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.75rem; }
.crew-origin { margin-top: 1rem; }
.crew-origin p { font-size: 1.1rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 1rem; }
.crew-origin p strong { color: var(--text); font-weight: 600; }
.crew-story { margin-top: 3rem; padding: 2.5rem; background: var(--orange-subtle); border-left: 4px solid var(--orange); }
.crew-story blockquote { font-size: 1.15rem; font-style: italic; line-height: 1.7; color: var(--text); }
.crew-story cite { display: block; margin-top: 1rem; font-size: 0.95rem; color: var(--text-secondary); font-style: normal; }
@media (max-width: 768px) { .crew-grid, .crew-grid-awesome { grid-template-columns: 1fr; } }

/* ========== EPISODES PAGE ========== */
.episodes-page { padding-top: 3rem; }
.episode-hidden { display: none; }
.episodes-load-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.episodes-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 768px) { .episodes-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .episodes-full-grid { grid-template-columns: 1fr; } }

/* ========== FOOTER ========== */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo-img { height: 50px; width: auto; }
[data-theme="light"] .footer-logo-light { display: none; }
[data-theme="light"] .footer-logo-dark { display: block; }
[data-theme="dark"] .footer-logo-light { display: block; }
[data-theme="dark"] .footer-logo-dark { display: none; }
.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); transition: all var(--duration) var(--ease); }
.social-link:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-subtle); }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 0.75rem; }
.footer-links a { display: block; color: var(--text-secondary); font-size: 0.9rem; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--text-tertiary); }
.footer-signature { font-size: 0.7rem; opacity: 0; transition: opacity 0.8s var(--ease); margin-top: 0.5rem; cursor: default; user-select: none; }
.footer-bottom:hover .footer-signature { opacity: 0.4; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.48s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ========== LEAFLET OVERRIDES ========== */
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
.leaflet-popup-content { font-family: var(--font); font-size: 0.9rem; margin: 12px 16px; }

/* ========== ADMIN ========== */
.admin-login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; margin-top: 2rem; box-shadow: var(--shadow); }
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo-img { height: 80px; width: auto; margin: 0 auto; }
[data-theme="light"] .login-logo-light { display: none; }
[data-theme="light"] .login-logo-dark { display: block; margin: 0 auto; }
[data-theme="dark"] .login-logo-light { display: block; margin: 0 auto; }
[data-theme="dark"] .login-logo-dark { display: none; }
.admin-login-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.admin-login-subtitle { text-align: center; color: var(--text-tertiary); font-size: 0.95rem; margin-bottom: 1.75rem; }
.login-crew-emojis { text-align: center; font-size: 1.1rem; letter-spacing: 0.15em; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); line-height: 2; }
.admin-login-footer { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-tertiary); }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-greeting { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }
.admin-alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.9rem; }
.admin-alert-success { background: rgba(46,204,113,0.1); color: #27ae60; border: 1px solid rgba(46,204,113,0.2); }
.admin-alert-error { background: rgba(231,76,60,0.1); color: #e74c3c; border: 1px solid rgba(231,76,60,0.2); }
.admin-table-wrapper { overflow-x: auto; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 0.75rem; border-bottom: 2px solid var(--border); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--orange-subtle); }
.admin-action { font-size: 0.85rem; margin-right: 0.75rem; }
.admin-action-danger { color: #e74c3c; }
.admin-action-danger:hover { color: #c0392b; }
.star-toggle { font-size: 1.2rem; text-decoration: none; cursor: pointer; transition: transform var(--duration) var(--ease); display: inline-block; }
.star-toggle:hover { transform: scale(1.3); }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.admin-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text-secondary); }
.form-input { width: 100%; padding: 0.65rem 0.875rem; font-family: var(--font); font-size: 0.95rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); outline: none; }
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
select.form-input { cursor: pointer; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (max-width: 768px) { .form-row { flex-direction: column; gap: 0; } .admin-header { flex-direction: column; } }

/* ==========================================================================
   V5.0.0 — JOURNEYS
   ========================================================================== */

/* Page intro / hero-lite for inner pages */
.section-hero-lite { padding: 4rem 0 2rem; text-align: center; }
.section-hero-lite .page-title { margin-top: 0; }
.section-hero-lite .page-desc { max-width: 640px; margin: 0.5rem auto 1.5rem; }

/* Empty state */
.empty-state { text-align: center; color: var(--text-secondary); padding: 4rem 0; font-size: 1.1rem; }

/* Trip grid + cards */
.trip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 768px) { .trip-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.trip-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: all var(--duration) var(--ease); box-shadow: var(--shadow); }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); color: var(--text); }

.trip-card-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--orange-subtle), var(--bg)); }
.trip-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.trip-card:hover .trip-card-cover img { transform: scale(1.05); }
.trip-card-cover-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 4rem; opacity: 0.45; }

.trip-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(0,0,0,0.6); color: #fff; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; backdrop-filter: blur(4px); }
.trip-card-badge-active { background: #e67e22; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3); }

.trip-card-info { padding: 1.25rem 1.5rem 1.5rem; }
.trip-card-info h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.3; }
.trip-card-dates { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.75rem; }
.trip-card-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--text-secondary); font-size: 0.875rem; }
.trip-card-stats span::before { content: '· '; margin-right: 0.25rem; color: var(--text-tertiary); }
.trip-card-stats span:first-child::before { content: ''; margin: 0; }

/* Trip detail hero */
.trip-hero { padding-bottom: 1rem; }

/* Timeline */
.timeline { max-width: 780px; margin: 0 auto; }
.timeline-day + .timeline-day { margin-top: 2.5rem; }
.timeline-date { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }

.timeline-entry { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--border); }
.timeline-entry:last-child { border-bottom: none; }
.timeline-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.timeline-body { flex: 1; min-width: 0; }
.timeline-body h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.timeline-flag { font-size: 1.1rem; }
.timeline-meta { color: var(--text-secondary); font-size: 0.85rem; display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.rating-stars { color: #f1c40f; letter-spacing: 0.05em; }
.timeline-notes { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-top: 0.5rem; }
.timeline-photos { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.timeline-photos a { display: block; width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); transition: transform var(--duration) var(--ease); }
.timeline-photos a:hover { transform: scale(1.05); border-color: var(--orange); }
.timeline-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Trip nav buttons row */
.trip-nav { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

.gallery-card { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); border: 0; padding: 0; cursor: pointer; background: var(--bg-card); transition: transform var(--duration) var(--ease); }
.gallery-card:hover { transform: scale(1.02); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: #fff; font-size: 0.8rem; opacity: 0; transition: opacity var(--duration) var(--ease); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.gallery-card:hover .gallery-card-overlay { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox-img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; font-size: 0.9rem; text-align: center; opacity: 0.85; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background var(--duration) var(--ease); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-close { top: 0.5rem; right: 0.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* Photo map */
.map-wrapper-tall .trip-map { height: 75vh; min-height: 500px; }

/* Leaflet custom markers — journey pages */
.stop-marker { background: transparent; border: 0; }
.stop-marker-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #e67e22; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }

.photo-marker { background: transparent; border: 0; }
.photo-marker-thumb { display: block; width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.4); cursor: pointer; transition: transform var(--duration) var(--ease); }
.photo-marker-thumb:hover { transform: scale(1.15); }

.map-popup { font-size: 0.9rem; line-height: 1.4; }
.map-popup strong { font-size: 0.95rem; }
.map-popup.photo-popup img { width: 100%; max-width: 240px; height: auto; border-radius: var(--radius-sm); margin-bottom: 0.5rem; display: block; }

/* ================================================================
   V5.0.0 — Recipes (Le's Kitchen public pages)
   ================================================================ */

.section-tabs { padding: 1.5rem 0 0.5rem; }

.category-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.75rem; scrollbar-width: thin; }
.category-tabs::-webkit-scrollbar { height: 6px; }
.category-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.category-tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: all var(--duration) var(--ease); }
.category-tab:hover { border-color: var(--orange); color: var(--text); transform: translateY(-1px); }
.category-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 3px 10px rgba(230,126,34,0.3); }
.category-tab.active .category-tab-count { background: rgba(255,255,255,0.22); color: #fff; }
.category-tab-icon { font-size: 1rem; line-height: 1; }
.category-tab-count { background: var(--orange-subtle); color: var(--orange); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight: 600; min-width: 1.5rem; text-align: center; }

.recipe-card-fav { position: absolute; top: 0.6rem; right: 0.7rem; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #ffd27a; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; backdrop-filter: blur(4px); }
.recipe-card-thumb-wrap { position: relative; }

.recipe-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.6rem; }
.recipe-tag { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--bg-subtle, rgba(0,0,0,0.05)); color: var(--text-tertiary); font-size: 0.7rem; font-weight: 500; border: 1px solid var(--border); }
.recipe-tags-lg { margin-top: 1rem; }
.recipe-tags-lg .recipe-tag { font-size: 0.8rem; padding: 0.3rem 0.8rem; }

.rating-stars { color: #f5b301; letter-spacing: 0.05em; font-size: 0.85rem; }
.rating-lg { font-size: 1.1rem; }

.kitchen-badge { font-size: 0.9rem; }

/* Recipe detail page */
.recipe-hero .page-title { margin-top: 0.6rem; }
.recipe-description { max-width: 46rem; margin-left: auto; margin-right: auto; }

.recipe-category-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: 0.8rem; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform var(--duration) var(--ease); }
.recipe-category-badge:hover { transform: translateY(-1px); color: #fff; }

.recipe-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.recipe-meta-item { display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.recipe-meta-icon { font-size: 1.3rem; }
.recipe-meta-value { font-family: var(--font-display, 'Fraunces', serif); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.recipe-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.kitchen-badge-item span { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--orange-subtle); color: var(--orange); font-size: 0.85rem; font-weight: 600; }

.recipe-photo-wrap { max-width: 56rem; margin: 0 auto 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.recipe-photo { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.recipe-photo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--orange); background: var(--orange-subtle); }

.recipe-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem; max-width: 56rem; margin: 0 auto; }
.recipe-body .section-title { font-size: 1.4rem; text-align: left; margin-bottom: 1rem; }

.ingredients-list { list-style: none; padding: 0; margin: 0; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.ingredients-list li { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; line-height: 1.4; }
.ingredients-list li:last-child { border-bottom: 0; }
.ingredients-list li::before { content: '•'; color: var(--orange); font-weight: 700; margin-right: 0.6rem; }

.instructions-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.instructions-list li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.5rem; margin-bottom: 0.8rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.55; font-size: 0.98rem; }
.instructions-list li::before { content: counter(step); position: absolute; left: 0.9rem; top: 0.95rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display, 'Fraunces', serif); font-size: 1rem; }

.recipe-notes { max-width: 56rem; margin: 2.5rem auto 0; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius); }
.recipe-notes .section-title { font-size: 1.2rem; text-align: left; margin: 0 0 0.75rem; }
.recipe-notes p { color: var(--text-secondary); line-height: 1.6; margin: 0; }

.recipe-source-badge { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--text-tertiary); font-style: italic; }

@media (max-width: 768px) {
    .recipe-body { grid-template-columns: 1fr; gap: 2rem; }
    .recipe-meta-row { gap: 1rem 1.5rem; }
    .category-tab { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}

/* V5.0.0 — 404 page */
.not-found { text-align: center; padding: 5rem 0 4rem; }
.not-found-emoji { font-size: 3rem; letter-spacing: 0.3rem; margin-bottom: 1.5rem; opacity: 0.85; }
.not-found .page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.not-found .trip-nav { justify-content: center; margin-top: 2rem; }
.not-found-signature { margin-top: 3rem; font-size: 0.85rem; color: var(--text-tertiary); font-style: italic; }

/* ========== V5.2.0 — Country pages ========== */

/* /countries index grid */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.country-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem 1.25rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: all var(--duration) var(--ease); box-shadow: var(--shadow); }
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); color: var(--text); }
.country-card-flag { font-size: 3.5rem; line-height: 1; margin-bottom: 0.85rem; transition: transform var(--duration) var(--ease-spring); }
.country-card:hover .country-card-flag { transform: scale(1.1); }
.country-card-info h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.35rem; }
.country-card-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 0.85rem; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.25rem; }
.country-card-stats span::before { content: '· '; margin-right: 0.2rem; color: var(--text-tertiary); }
.country-card-stats span:first-child::before { content: ''; margin: 0; }
.country-card-dates { color: var(--text-tertiary); font-size: 0.8rem; margin: 0.25rem 0 0; }

/* /country/{code} detail hero */
.country-hero { text-align: center; }
.country-hero-flag { font-size: 4.5rem; line-height: 1; margin-bottom: 0.75rem; }
.country-stats { justify-content: center; }
.country-date-range { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.75rem; }
.country-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Country → trips list */
.country-trip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.country-trip-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: all var(--duration) var(--ease); box-shadow: var(--shadow); }
.country-trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); color: var(--text); }
.country-trip-card-info h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.3rem; line-height: 1.3; }
.country-trip-card-dates { color: var(--text-secondary); font-size: 0.85rem; margin: 0 0 0.2rem; }
.country-trip-card-stat { color: var(--text-tertiary); font-size: 0.8rem; margin: 0; }
.country-trip-card-arrow { color: var(--text-tertiary); font-size: 1.5rem; transition: transform var(--duration) var(--ease-spring); }
.country-trip-card:hover .country-trip-card-arrow { transform: translateX(4px); color: var(--orange); }

/* Country → stops list grouped by trip */
.stops-list { max-width: 720px; margin: 0 auto; }
.stops-list-group { margin-bottom: 2rem; }
.stops-list-group:last-child { margin-bottom: 0; }
.stops-list-trip { display: inline-block; font-size: 1.05rem; font-weight: 600; color: var(--orange); text-decoration: none; margin-bottom: 0.75rem; border-bottom: 1px solid transparent; transition: border-color var(--duration) var(--ease); }
.stops-list-trip:hover { border-bottom-color: var(--orange); color: var(--orange); }
.stops-list-group ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.stops-list-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0 0.6rem 1rem; color: var(--text-secondary); font-size: 0.92rem; }
.stops-list-item + .stops-list-item { border-top: 1px dashed var(--border); }
.stops-list-date { color: var(--text-tertiary); font-size: 0.8rem; min-width: 6rem; }
.stops-list-icon { font-size: 1.05rem; }
.stops-list-name { color: var(--text); font-weight: 500; }

@media (max-width: 768px) {
    .country-hero-flag { font-size: 3.5rem; }
    .country-trip-card { padding: 1rem 1.15rem; }
    .stops-list-item { flex-wrap: wrap; }
    .stops-list-date { min-width: 0; }
}

/* ============================================================ */
/* ========== V6.0.0 — CINEMATIC EDITION COMPONENTS =========== */
/* ============================================================ */

/* ---------- Live status strip ---------- */
.strip {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    gap: 1rem;
}
.strip-left { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.strip-right { display: flex; gap: 16px; align-items: center; }
.strip-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.strip-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--live);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.strip-loc { color: var(--text-secondary); }
.strip-sky { display: inline-flex; align-items: center; gap: 12px; color: var(--text-secondary); }
.strip-sky .sky-moon { display: inline-flex; align-items: center; gap: 6px; }
.strip-sky .sky-sun { color: var(--text-tertiary); letter-spacing: 0.1em; white-space: nowrap; }
.strip-lang, .strip a { color: var(--text-tertiary); text-decoration: none; transition: color var(--duration) var(--ease); }
.strip-lang:hover, .strip a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .strip { padding: 8px 16px; font-size: 10px; gap: 0.5rem; }
    .strip-left { gap: 10px; }
    .strip-sky { gap: 8px; }
    .strip-sky .sky-moonname { display: none; }   /* keep glyph + sun times on mobile */
}
@media (max-width: 460px) {
    .strip-sky .sky-sun { display: none; }          /* tightest screens: glyph only */
}

/* ---------- Sky almanac card (trip page + homepage) ---------- */
.sky-card {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 20px 60px -30px rgba(0,0,0,.6);
}
.sky-card-moon { flex: 0 0 auto; }
.sky-moon-disc {
    width: clamp(110px, 22vw, 168px); height: auto; display: block;
    filter: drop-shadow(0 0 26px rgba(207,227,238,.12));
}
.sky-card-body { flex: 1 1 auto; min-width: 0; }
.sky-card-phase { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 4px; line-height: 1.05; }
.sky-card-illum { color: var(--text-secondary); margin-bottom: 20px; }
.sky-sun-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.sky-stat {
    background: var(--bg-card);
    padding: 14px 12px;
    text-align: center;
    display: flex; flex-direction: column; gap: 6px;
}
.sky-stat-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.sky-stat-val { font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 600; color: var(--text); }
.sky-card-link { display: inline-block; margin-top: 18px; color: var(--accent); text-decoration: none; font-weight: 600; letter-spacing: .02em; transition: color var(--duration) var(--ease); }
.sky-card-link:hover { color: var(--accent-hover); }
@media (max-width: 640px) {
    .sky-card { flex-direction: column; text-align: center; }
    .sky-sun-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage compact almanac bar (under the map) */
.sky-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 12px 22px;
    margin: 22px auto 0;
    max-width: 760px;
    padding: 14px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
}
.sky-bar-moon { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.sky-bar-glyph { font-size: 1.3em; line-height: 1; }
.sky-bar-illum { color: var(--text-tertiary); }
.sky-bar-sep { width: 1px; height: 18px; background: var(--border); }
.sky-bar-sun { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.sky-bar-stat { color: var(--text-secondary); white-space: nowrap; }
.sky-bar-lbl { color: var(--text-tertiary); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; margin-right: 5px; }
@media (max-width: 560px) {
    .sky-bar { border-radius: 16px; }
    .sky-bar-sep { display: none; }
}

/* ---------- /sky — celestial almanac page (V6.3.0) ---------- */
.sky-page {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, #11202a 0%, transparent 55%),
        radial-gradient(140% 120% at 50% 120%, #0a1016 0%, transparent 60%),
        #070b0e;
    color: #ece4d2;
    padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(50px, 8vw, 100px);
    min-height: 80vh;
}
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.sky-sunburst {
    position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
    width: 150vmax; height: 150vmax; z-index: 0; pointer-events: none; opacity: .5;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(202,168,106,.045) 0deg 1.2deg, transparent 1.2deg 9deg);
    -webkit-mask: radial-gradient(closest-side, #000 0%, transparent 62%);
            mask: radial-gradient(closest-side, #000 0%, transparent 62%);
    transition: transform .4s ease-out;
}
.sky-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.sky-head { text-align: center; margin-bottom: clamp(30px, 5vw, 56px); }
.sky-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent, #e8b24a); }
.sky-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4d; box-shadow: 0 0 10px #ff5a4d; animation: pulse 2s infinite; }
.sky-live--idle { color: #8a9aa3; }
.sky-title { font-family: 'Instrument Serif', serif; font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1; margin: 10px 0 4px; color: #f0d8a0; }
.sky-subtitle { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: #cfe3ee; opacity: .9; }
.sky-subtitle strong { color: #ece4d2; font-weight: 600; }
.sky-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a9aa3; }
.sky-meta .sky-clock { color: #f0d8a0; }
.sky-intro { max-width: 640px; margin: 14px auto 0; color: #aebcc6; line-height: 1.6; }
.sky-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(18px, 3vw, 34px); align-items: stretch; }
@media (max-width: 860px) { .sky-stage { grid-template-columns: 1fr; } }
.sky-panel { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), rgba(12,19,26,.55); border: 1px solid rgba(202,168,106,.26); border-radius: 8px; backdrop-filter: blur(2px); }
.sky-panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px 8px; }
.sky-panel-head h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.2rem; letter-spacing: .04em; color: #f0d8a0; }
.sky-panel-head .idx { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .2em; color: #9c7d44; }
.sky-orrery-panel { display: flex; flex-direction: column; min-height: 420px; }
.sky-orrery-wrap { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 12px 16px; }
#skyOrrery { width: 100%; height: auto; max-height: 480px; overflow: visible; }
.sky-planet { cursor: pointer; transition: filter .25s; }
.sky-planet:hover { filter: brightness(1.25); }
.sky-hovercard { position: absolute; pointer-events: none; z-index: 6; min-width: 190px; max-width: 230px; background: rgba(10,16,21,.94); border: 1px solid rgba(202,168,106,.5); border-radius: 4px; padding: 11px 13px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.sky-hovercard.show { opacity: 1; transform: none; }
.sky-hovercard h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.15rem; color: #f0d8a0; margin-bottom: 2px; }
.sky-card-stat { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; color: #caa86a; margin-bottom: 6px; }
.sky-hovercard p { font-style: italic; color: #cfe3ee; line-height: 1.35; }
.sky-almanac { display: flex; flex-direction: column; gap: clamp(18px, 3vw, 34px); }
.sky-moon-body { display: flex; flex-direction: column; align-items: center; padding: 4px 20px 24px; }
.sky-moon-svg { width: clamp(140px, 38vw, 180px); }
.sky-moon-disc { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 26px rgba(207,227,238,.1)); }
.sky-moon-name { font-family: 'Instrument Serif', serif; font-size: 1.3rem; color: #f0d8a0; margin-top: 12px; letter-spacing: .04em; text-align: center; }
.sky-moon-illum { font-style: italic; font-size: 1.1rem; color: #ece4d2; margin-top: 2px; }
.sky-moon-next { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: #8a9aa3; margin-top: 10px; text-align: center; line-height: 1.7; }
.sky-sun-body { padding: 4px 20px 22px; }
.sky-sun-arc svg { width: 100%; height: 60px; overflow: visible; margin-bottom: 10px; }
.sky-sun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(202,168,106,.18); border: 1px solid rgba(202,168,106,.18); border-radius: 6px; overflow: hidden; }
.sky-sun-cell { background: rgba(12,19,26,.8); padding: 12px 6px; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.sky-sun-cell .l { font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #caa86a; }
.sky-sun-cell .v { font-size: 1.15rem; color: #ece4d2; font-variant-numeric: tabular-nums; }
.sky-controls { margin: clamp(26px, 4vw, 46px) auto 0; max-width: 760px; background: rgba(12,19,26,.55); border: 1px solid rgba(202,168,106,.26); border-radius: 8px; padding: 18px clamp(16px, 3vw, 28px); }
.sky-ctrl-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sky-ctrl-head .ttl { font-family: 'Instrument Serif', serif; font-size: 1.05rem; color: #f0d8a0; letter-spacing: .04em; }
.sky-ctrl-head .res { font-style: italic; color: #cfe3ee; }
.sky-ctrl-head .res .off { font-family: ui-monospace, monospace; font-style: normal; font-size: 11px; letter-spacing: .12em; color: #caa86a; margin-left: 8px; text-transform: uppercase; }
.sky-slider-row { display: flex; align-items: center; gap: 14px; }
#skyWarp { -webkit-appearance: none; appearance: none; flex: 1; height: 2px; background: rgba(202,168,106,.5); border-radius: 2px; outline: none; }
#skyWarp::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0d8a0, #9c7d44); cursor: pointer; box-shadow: 0 0 0 4px rgba(202,168,106,.15), 0 0 14px rgba(202,168,106,.5); }
#skyWarp::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0d8a0, #9c7d44); cursor: pointer; }
.sky-btn { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #caa86a; background: transparent; border: 1px solid rgba(202,168,106,.5); border-radius: 4px; padding: 9px 13px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.sky-btn:hover, .sky-btn.act { color: #070b0e; background: #caa86a; }
@media (max-width: 520px) { .sky-sun-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- V6 Nav ---------- */
.v6-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.v6-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.v6-nav .brand-logo { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }
.v6-nav .brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.v6-nav .nav-links { display: flex; gap: 4px; }
.v6-nav .nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}
.v6-nav .nav-link:hover, .v6-nav .nav-link.active {
    color: var(--text);
    background: var(--btn-bg);
}
.v6-nav .nav-right { display: flex; align-items: center; gap: 12px; }
.v6-nav .sub-btn {
    background: var(--accent);
    color: #0b0c0e;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.v6-nav .sub-btn:hover { background: var(--accent-hover); color: #0b0c0e; }
[data-theme="light"] .v6-nav .sub-btn { color: #f6f3ec; }
[data-theme="light"] .v6-nav .sub-btn:hover { color: #f6f3ec; }
.v6-nav .theme-toggle {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--duration) var(--ease);
}
.v6-nav .theme-toggle:hover { background: rgba(255,255,255,0.14); }
[data-theme="light"] .v6-nav .theme-toggle:hover { background: rgba(0,0,0,0.08); }
.v6-nav .nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.v6-nav .nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--duration) var(--ease); }

@media (max-width: 768px) {
    .v6-nav { padding: 12px 16px; }
    .v6-nav .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0; z-index: 100; }
    .v6-nav .nav-links.open { display: flex; }
    .v6-nav .nav-link { padding: 12px 16px; font-size: 1rem; border-radius: 0; }
    .v6-nav .sub-btn { display: none; }
    .v6-nav .nav-hamburger { display: flex; }
}

/* ---------- V6 layout primitives ---------- */
.v6-container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .v6-container { padding: 0 20px; } }

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
}
.section-h {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.05;
    margin-top: 8px;
}
.section-h em { color: var(--accent); font-style: italic; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.lede {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 640px;
}
.follow-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}
.follow-link:hover { color: var(--accent); }

/* ---------- V6 buttons ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: 0.88; color: var(--bg); transform: translateY(-1px); }
.play-tri {
    width: 0; height: 0;
    border-left: 8px solid currentColor;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    color: var(--bg);
}
[data-theme="dark"] .btn-primary .play-tri { border-left-color: #0b0c0e; }
[data-theme="light"] .btn-primary .play-tri { border-left-color: #f6f3ec; }

/* V6 ghost button — overrides legacy .btn-ghost only inside V6 contexts */
.hero-btns .btn-ghost,
.v6-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
}
.hero-btns .btn-ghost:hover,
.v6-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--glass-bg); }

/* ---------- V6 Hero ---------- */
/* Hero sits over the photo — text colors stay stable across themes.
   Only the bottom fade respects --bg so it transitions cleanly into the page. */
.v6-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* Lock palette inside the hero scope */
    color: #f2efe7;
}
.v6-hero .display {
    color: #f2efe7;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.v6-hero .display em {
    color: #e8b24a;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.v6-hero .lede {
    color: rgba(242,239,231,0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.v6-hero .chip {
    background: rgba(17,19,21,0.55);
    border-color: rgba(255,255,255,0.18);
    color: #f2efe7;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.v6-hero .chip-dot { background: #ff5533; }
.v6-hero .btn-primary {
    background: #f2efe7;
    color: #0b0c0e;
}
.v6-hero .btn-primary .play-tri { border-left-color: #0b0c0e; }
.v6-hero .btn-ghost,
.v6-hero .hero-btns .btn-ghost {
    background: rgba(17,19,21,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f2efe7;
}
.v6-hero .btn-ghost:hover,
.v6-hero .hero-btns .btn-ghost:hover { border-color: #e8b24a; color: #f2efe7; }
.v6-hero .statcard {
    background: rgba(17,19,21,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f2efe7;
}
.v6-hero .statcard-label { color: rgba(242,239,231,0.55); }
.v6-hero .odo-num { color: #f2efe7; }
.v6-hero .odo-unit { color: rgba(242,239,231,0.55); }
.v6-hero .stat-n { color: #e8b24a; }
.v6-hero .stat-l { color: rgba(242,239,231,0.55); }
.v6-hero .stats-row { border-top-color: rgba(255,255,255,0.12); }
.v6-hero .hero-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
}
.v6-hero .hero-slide.hero-slide-active { opacity: 1; }
.v6-hero .hero-overlay {
    position: absolute; inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}
.v6-hero .hero-inner {
    position: relative; z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.v6-hero .hero-text {
    max-width: 640px;
    position: relative;
    isolation: isolate;
}
/* Soft contrast panel behind the title + lede — keeps text readable
   over bright/busy slideshow photos without a hard edge. */
.v6-hero .hero-text::before {
    content: '';
    position: absolute;
    inset: -32px -80px -24px -40px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 80% 70% at 30% 55%,
            rgba(11,12,14,0.62) 0%,
            rgba(11,12,14,0.40) 45%,
            rgba(11,12,14,0.10) 75%,
            rgba(11,12,14,0) 100%
        );
    border-radius: 24px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
@media (max-width: 768px) {
    .v6-hero .hero-text::before {
        inset: -20px -24px -16px -24px;
    }
}
.display {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 16px 0 20px;
}
.display em { font-style: italic; color: var(--accent); }
.v6-hero .lede { margin-bottom: 28px; max-width: 480px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.chip-dot {
    width: 6px; height: 6px;
    background: var(--live);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stat card (glass morphism) */
.statcard {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 28px 32px;
    min-width: 280px;
}
.statcard-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.odo { display: flex; align-items: baseline; gap: 6px; }
.odo-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}
.odo-unit {
    font-size: 20px;
    color: var(--text-tertiary);
}
.stats-row {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.stat-n {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    line-height: 1.1;
}
.stat-l {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .v6-hero { min-height: 90vh; }
    .v6-hero .hero-inner { flex-direction: column; align-items: flex-start; padding: 0 20px 40px; gap: 24px; }
    .statcard { min-width: unset; width: 100%; padding: 20px; }
    .display { font-size: 48px; }
}

/* ---------- V6 Section spacing ---------- */
.v6-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.v6-section:first-of-type { border-top: none; }
.v6-section.section-kitchen { background: var(--kitchen-bg); }
@media (max-width: 768px) { .v6-section { padding: 48px 0; } }

/* ---------- V6 Motorhome blueprint ---------- */
.rig-section {
    text-align: center;
}
.rig-header { margin-bottom: 2rem; }
.rig-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: var(--text);
    margin: 8px 0 4px;
    letter-spacing: -0.02em;
}
.rig-subtitle { color: var(--text-secondary); font-size: 15px; }
.rig-blueprint {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg2);
    color: var(--blueprint-stroke);
}
.rig-blueprint svg { width: 100%; height: auto; display: block; }
.rig-blueprint-photo { padding: 1rem 1.5rem 0; position: relative; }
.rig-photo {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: filter 0.45s var(--ease);
}
[data-theme="dark"] .rig-photo { filter: brightness(0.92) contrast(0.95); }
.rig-ground {
    height: 1px;
    background: repeating-linear-gradient(to right, var(--text-tertiary) 0 6px, transparent 6px 12px);
    opacity: 0.5;
    margin-top: -8px;
}
.rig-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}
.rig-spec { text-align: center; padding: 1rem 0.5rem; border-top: 1px solid var(--border); }
.rig-spec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.rig-spec-value {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.01em;
}
@media (max-width: 600px) {
    .rig-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- V6 Footer ---------- */
.foot {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 56px 40px 24px;
    margin-top: 80px;
}
.foot-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.foot-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.foot-logo-img { height: 36px; width: 36px; border-radius: 50%; }
.foot-rl {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
}
.foot-tagline {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 12px;
    max-width: 320px;
}
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--btn-bg);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.foot-social a:hover { color: var(--accent); background: var(--accent-subtle); }
.foot-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}
.foot-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color var(--duration) var(--ease);
}
a.foot-link:hover { color: var(--accent); }
.foot-bottom {
    max-width: 1440px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .foot { padding: 40px 16px 20px; margin-top: 48px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- V6 page header (other pages — episodes, journeys, etc) ---------- */
/* Width + padding matches .container so the head aligns with the card grids below */
.v6-page-head {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 1.25rem 40px;
}
.v6-page-head .eyebrow { display: block; margin-bottom: 12px; }
.v6-page-head .section-h { margin-top: 0; }
.v6-page-head .lede { margin-top: 16px; max-width: none; }
@media (max-width: 768px) { .v6-page-head { padding: 48px 1.25rem 24px; } }

/* ---------- V6 — restyle legacy classes through token aliases ---------- */
/* Old .btn becomes pill-shaped to match V6 */
.btn { border-radius: 999px; padding: 0.75rem 1.5rem; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; }
.btn-outline { border-radius: 999px; }

/* Old hero markup keeps its slideshow but restyle within V6 tokens — no changes needed; tokens cascade */

/* Old country-chip already updated in V5 — keep */

/* Section-title legacy: still serif via global rule, slightly larger */
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 0.75rem; }
.page-title { font-size: clamp(32px, 5vw, 56px); }

/* Animation polish */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

/* ---------- V6 — Episodes section: inverse theme (YouTube cinema feel) ----------
   When the site is dark, this section flips to light. When the site is light, it flips to dark.
   The token overrides cascade automatically to all V3-V6 children inside #episodes. */
#episodes {
    transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
[data-theme="dark"] #episodes {
    background: #f6f3ec;
    color: #1a1813;
    --bg: #f6f3ec;
    --bg2: #ece7dc;
    --bg-card: #ffffff;
    --border: #d9d3c3;
    --border-hover: rgba(0,0,0,0.20);
    --text: #1a1813;
    --text-secondary: #3d3a32;
    --text-tertiary: #7b756a;
    --accent: #b8631e;
    --accent-hover: #9f4e10;
    --accent-subtle: rgba(184,99,30,0.08);
    --orange: var(--accent);
    --orange-light: var(--accent-hover);
    --orange-subtle: var(--accent-subtle);
    --bg-elevated: var(--bg-card);
    --bg-section-alt: var(--bg2);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] #episodes {
    background: #0b0c0e;
    color: #f2efe7;
    --bg: #0b0c0e;
    --bg2: #111315;
    --bg-card: #17191c;
    --border: #262a2f;
    --border-hover: rgba(255,255,255,0.20);
    --text: #f2efe7;
    --text-secondary: #c9c7bf;
    --text-tertiary: #8a8e95;
    --accent: #e8b24a;
    --accent-hover: #ffca66;
    --accent-subtle: rgba(232,178,74,0.08);
    --orange: var(--accent);
    --orange-light: var(--accent-hover);
    --orange-subtle: var(--accent-subtle);
    --bg-elevated: var(--bg-card);
    --bg-section-alt: var(--bg2);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.45);
}

/* ---------- V6 — Le's Kitchen: inverse theme (matches Episodes for dark/light rhythm) ----------
   Same token cascade as #episodes so the page reads as alternating dark / light bands. */
#kitchen { transition: background 0.45s var(--ease), color 0.45s var(--ease); }
[data-theme="dark"] #kitchen.section-kitchen {
    background: #f6f3ec;
    color: #1a1813;
    --bg: #f6f3ec;
    --bg2: #ece7dc;
    --bg-card: #ffffff;
    --border: #d9d3c3;
    --border-hover: rgba(0,0,0,0.20);
    --text: #1a1813;
    --text-secondary: #3d3a32;
    --text-tertiary: #7b756a;
    --accent: #b8631e;
    --accent-hover: #9f4e10;
    --accent-subtle: rgba(184,99,30,0.08);
    --orange: var(--accent);
    --orange-light: var(--accent-hover);
    --orange-subtle: var(--accent-subtle);
    --bg-elevated: var(--bg-card);
    --bg-section-alt: var(--bg2);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] #kitchen.section-kitchen {
    background: #0b0c0e;
    color: #f2efe7;
    --bg: #0b0c0e;
    --bg2: #111315;
    --bg-card: #17191c;
    --border: #262a2f;
    --border-hover: rgba(255,255,255,0.20);
    --text: #f2efe7;
    --text-secondary: #c9c7bf;
    --text-tertiary: #8a8e95;
    --accent: #e8b24a;
    --accent-hover: #ffca66;
    --accent-subtle: rgba(232,178,74,0.08);
    --orange: var(--accent);
    --orange-light: var(--accent-hover);
    --orange-subtle: var(--accent-subtle);
    --bg-elevated: var(--bg-card);
    --bg-section-alt: var(--bg2);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.45);
}

/* ---------- Map type control (light / dark / satellite) ---------- */
.rlm-maptype-control {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    font-family: 'Inter', sans-serif;
}
.rlm-maptype-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 0;
    border-right: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.rlm-maptype-btn:last-child { border-right: 0; }
.rlm-maptype-btn:hover { background: var(--btn-bg); color: var(--text); }
.rlm-maptype-btn.active {
    background: var(--accent);
    color: #0b0c0e;
}
[data-theme="light"] .rlm-maptype-btn.active { color: #f6f3ec; }
@media (max-width: 600px) {
    .rlm-maptype-btn { padding: 5px 8px; font-size: 11px; }
}

/* ---------- Route animation control (V6.0.2) ---------- */
.rlm-anim-control {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    font-family: 'Inter', sans-serif;
}
.rlm-anim-control button {
    background: transparent;
    color: var(--text-secondary);
    border: 0;
    border-right: 1px solid var(--border);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    min-width: 32px;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.rlm-anim-control button:last-child { border-right: 0; }
.rlm-anim-control button:hover { background: var(--btn-bg); color: var(--text); }
.rlm-anim-control .rlm-anim-play {
    color: var(--accent);
    font-size: 13px;
    padding: 6px 12px;
}
.rlm-anim-control .rlm-anim-play:hover { background: var(--accent-subtle); }
.rlm-anim-control .rlm-anim-speed.active {
    background: var(--accent);
    color: #0b0c0e;
}
[data-theme="light"] .rlm-anim-control .rlm-anim-speed.active { color: #f6f3ec; }
@media (max-width: 600px) {
    .rlm-anim-control button { padding: 5px 8px; font-size: 11px; min-width: 28px; }
}
