/* ═══════════════════════════════════════════════
   IRM (Irace Management) — Brand overrides on Bootstrap 5
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    /* IRM Brand Colors */
    --irm-red: #C82333;
    --irm-blue: #2B328C;
    --theme: #C82333;
    --theme-dark: #A01C29;

    /* Typography */
    --font-primary: 'Oswald', 'Bebas Neue', sans-serif;
    --font-secondary: 'Roboto', 'Montserrat', sans-serif;
}

/* ── Layout utilities ── */
.min-w-0 { min-width: 0; }

/* ── Theme bar (IRM brand gradient) ── */
.theme-bar {
    height: 3px;
    background: linear-gradient(90deg, #C82333 0%, #2B328C 50%, #00A9E0 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}
.theme-bar-bottom {
    height: 3px;
    background: linear-gradient(90deg, #C82333 0%, #2B328C 50%, #00A9E0 100%);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* ── Theme utilities ── */
.text-theme,
a.text-theme,
a.text-theme:hover { color: var(--theme) !important; }
.bg-theme { background: var(--theme); }

/* ── Navbar brand (IRM logo) ── */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-brand {
    font-weight: 700;
    color: #111827 !important;
}
.nav-icon {
    width: 18px;
    height: 18px;
    color: #1e293b;
}
.footer-flag {
    width: 20px;
    height: 20px;
    color: #1e293b;
}
[data-theme="dark"] .footer-flag {
    color: #94a3b8;
    filter: brightness(0) invert(1);
}
[data-theme="dark"] .nav-icon {
    color: #94a3b8;
    filter: brightness(0) invert(1);
}
.irm-logo-nav {
    height: 28px;
    width: auto;
}
[data-theme="dark"] .irm-logo-nav,
[data-theme="dark"] .irm-logo-footer,
[data-theme="dark"] .rrca-logo-footer {
    filter: brightness(0) invert(1);
}
.brand-by {
    font-size: .7rem;
    font-weight: 400;
    color: #9ca3af;
    font-family: var(--font-secondary);
    letter-spacing: 0;
}

/* ── Typography: headings ── */
h1, h2, h3, h4, h5, h6,
.hero-heading, .scene-heading, .event-card-name,
.event-list-name, .section-label, .legal-content h1,
.legal-content h2 {
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
}
body {
    font-family: var(--font-secondary);
}

/* ── Navbar toggler (subtle, no border) ── */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    box-shadow: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ── Navbar collapse (mobile menu) ── */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 8px;
        padding-bottom: 4px;
    }
    .navbar-collapse .nav-link {
        padding: 8px 0;
    }
    .lang-switch-mobile {
        margin-right: 4px;
    }
}

/* ── Active nav link (neutral, no accent) ── */
.nav-link.active {
    color: #111827 !important;
    background: #f3f4f6;
    border-radius: 6px;
    font-weight: 500;
}

/* ── Language toggle switch ── */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}
.lang-switch:hover {
    text-decoration: none;
}
.lang-switch-label {
    font-size: .7rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color .15s;
    line-height: 1;
}
.lang-switch-label.active {
    color: #111827;
}
.lang-switch-track {
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.lang-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: left .2s ease;
}
.lang-switch-knob.right {
    left: 16px;
}

/* ── Status Badges ── */
.badge-pending   { background-color: #fef9c3 !important; color: #a16207 !important; }
.badge-paid      { background-color: #dcfce7 !important; color: #166534 !important; }
.badge-verified  { background-color: #dbeafe !important; color: #1e40af !important; }
.badge-expired   { background-color: #fee2e2 !important; color: #991b1b !important; }
.badge-cancelled { background-color: #f3f4f6 !important; color: #6b7280 !important; }
.badge-rejected  { background-color: #fee2e2 !important; color: #991b1b !important; }
.badge-refunded  { background-color: #e0e7ff !important; color: #3730a3 !important; }

/* ── OTP Countdown Timer ── */
.otp-timer {
    font-weight: 600;
    font-family: ui-monospace, monospace;
    font-size: .95rem;
}
.otp-timer.urgent {
    color: #dc2626;
}
.timer-expired-text {
    color: #dc2626;
    font-weight: 500;
}

/* ── OTP Inputs (6 digit) ── */
.otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s;
}
.otp-digit:focus {
    border-color: var(--theme);
}

/* ── Event Card Accent ── */
.event-accent-bar {
    width: 4px;
    flex-shrink: 0;
}

/* ── Body background ── */
body {
    background: #f8f9fa;
}

/* ── Registration form (Bootstrap-compatible) ── */
.reg-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 840px) {
    .reg-checkout-grid { grid-template-columns: 1fr; }
}

/* ── Category card grid ── */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .category-grid { grid-template-columns: 1fr; }
}

/* ── Category card ── */
.category-card {
    position: relative;
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fff;
    user-select: none;
}
.category-card:hover {
    border-color: #b0b7c3;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.category-card.selected {
    border-color: var(--theme);
    background: #f5f3ff;
}

/* Hidden radio inside card */
.category-card .category-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Card content */
.category-card-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.category-card-type {
    font-size: .75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 6px;
}
.category-card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--theme);
    margin-top: 12px;
}
.category-card-meta {
    font-size: .78rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Checkmark circle */
.category-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--theme);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}
.category-card.selected .category-card-check {
    display: flex;
}

/* ── Category section (transparent, no visual wrapper) ── */
.category-section {
    margin-bottom: 20px;
}

/* ── Registration form section (fade-in animation) ── */
.reg-form-section {
    transition: opacity .3s ease, transform .3s ease;
}
.reg-form-section.d-none {
    display: none !important;
}
.reg-form-section.fade-ready {
    opacity: 0;
    transform: translateY(8px);
}

/* ── Team name card (sidebar, above summary) ── */
.team-name-sidebar {
    margin-bottom: 16px;
}

/* ── Participant layout ── */

.participant-layout-flex {
    display: flex;
    gap: 20px;
}
@media (max-width: 640px) {
    .participant-layout-flex { flex-direction: column; }
}

.participant-form-main { flex: 1; min-width: 0; }
.participant-addons-side { width: 200px; flex-shrink: 0; border-left: 1px solid #e5e7eb; padding-left: 16px; }

/* ── Sidebar sticky ── */
.sidebar-sticky { position: sticky; top: 72px; }
.sidebar-card     { border-top: 3px solid var(--theme) !important; }

/* ── Summary rows ── */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .85rem;
    color: #374151;
}
.summary-row.total {
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--theme);
}
.summary-row.indent {
    padding-left: 12px;
    font-size: .8rem;
    color: #6c757d;
}

/* ── Auth Card (login + verify centered) ── */
.auth-card {
    max-width: 420px;
    margin: 48px auto;
}
.auth-card .card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── Auth tabs (OTP | Password) ── */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: .85rem;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}
.auth-tabs a.active,
.auth-tabs a:hover.active {
    color: var(--theme) !important;
    border-bottom-color: var(--theme);
    font-weight: 500;
}
.auth-tabs a:hover:not(.active) {
    color: #374151;
}

/* ── Auth info banner ── */
.auth-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .78rem;
    margin-bottom: 16px;
    text-align: center;
}
.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .82rem;
    margin-bottom: 12px;
    text-align: center;
}

/* ── Google SSO button ── */
.btn-google {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: .9rem;
}
.btn-google:hover {
    background: #f9fafb;
}

/* ── OTP resend button ── */
.btn-resend {
    min-width: 110px;
}
.btn-resend:disabled {
    pointer-events: none;
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #9ca3af;
    font-size: .85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #d1d5db;
}
.auth-divider span {
    padding: 0 12px;
}

/* ── App page header card ── */
.app-header-card {
    border-radius: 12px;
    padding: 24px;
}

/* ── Registration list card ── */
.reg-list-card {
    transition: box-shadow .15s;
}
.reg-list-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ── Monospace code ── */
.code-mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: .78rem;
    color: #6c757d;
}

/* ── Time display ── */
.time-val {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-weight: 600;
    font-size: .9rem;
    color: #111827;
}

/* ── Registration form ── */
.reg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}
.reg-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 12px;
}

/* ── Participant card ── */
.participant-card {
    border-left: 3px solid var(--theme);
}

/* ── Addon sidebar ── */
.addon-sidebar {
    border-left: 1px solid #e5e7eb;
    padding-left: 16px;
}
.addon-sidebar h4 {
    font-size: .8rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.addon-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.addon-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.addon-item label {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-weight: 400;
    cursor: pointer;
    font-size: .8rem;
}
.addon-item label input[type=checkbox] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--theme);
}
.addon-price {
    color: var(--theme);
    font-size: .75rem;
    white-space: nowrap;
}
.addon-empty {
    color: #9ca3af;
    font-size: .75rem;
}

/* ── Summary sidebar ── */
.summary-placeholder {
    color: #9ca3af;
    font-size: .85rem;
    text-align: center;
    padding: 12px 0;
}

/* ── Guest/Logged-in banner ── */
.banner-guest {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}
.banner-logged-in {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}
.banner-guest a,
.banner-logged-in a {
    font-weight: 600;
}

/* ── Alert error ── */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
[data-theme="dark"] .alert-info {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.25);
    color: #93c5fd;
}

/* ── Section label (form field groups) ── */
.section-label {
    font-size: .7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

/* ── Addon section heading ── */
.addon-section-heading {
    font-size: .8rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Addon section label (Included / Optional) ── */
.addon-section-label {
    font-size: .7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
    display: block;
}

/* ── Theme button ── */
.btn-theme {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
}
.btn-theme:hover {
    opacity: 1;
    background: var(--theme-dark, #A01C29);
    border-color: var(--theme-dark, #A01C29);
    color: #fff;
}
.btn-outline-theme {
    background: transparent;
    border-color: var(--theme);
    color: var(--theme);
}
.btn-outline-theme:hover {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
}
[data-theme="dark"] .btn-outline-theme {
    color: var(--theme);
}
[data-theme="dark"] .btn-outline-theme:hover {
    color: #fff;
}

/* ── Invalid feedback sizing ── */
.invalid-feedback {
    font-size: .75rem;
}

/* ── Success page card ── */
.success-card {
    max-width: 480px;
    width: 100%;
}
.success-wrapper {
    min-height: 60vh;
}

/* ── Remove participant button ── */
.btn-remove-participant {
    font-size: .8rem;
}
.btn-remove-participant:hover {
    text-decoration: underline !important;
}

/* ── D-none override for JS init ── */
.d-none-js {
    display: none !important;
}

/* ── Footer ── */
.site-footer {
    background: #f9fafb;
    padding-top: 20px;
    padding-bottom: calc(24px + 3px);
    margin-top: auto;
    font-size: .85rem;
    color: #6c757d;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    margin-bottom: 32px;
}
.footer-brand {
    flex: 1 1 100%;
    min-width: 100%;
}
.footer-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111827;
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
}
.footer-tagline {
    margin: 0 0 12px 0;
    font-size: .82rem;
    color: #6c757d;
}
.footer-irm {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.footer-by {
    font-size: .7rem;
    color: #9ca3af;
    font-family: var(--font-secondary);
}
.footer-irm-link {
    display: inline-flex;
    align-items: center;
}
.irm-logo-footer {
    height: 22px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.irm-logo-footer:hover {
    opacity: 1;
}
.footer-rrca {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.rrca-logo-footer {
    height: 28px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.rrca-logo-footer:hover {
    opacity: 1;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 calc(50% - 48px);
    min-width: 140px;
}
/* Desktop: brand + Navigasi + Legal = 1 row 3 kolom (2fr 1fr 1fr) */
@media (min-width: 768px) {
    .footer-brand {
        flex: 2 1 0;
        min-width: 0;
    }
    .footer-links {
        flex: 1 1 0;
        min-width: 0;
    }
}
@media (max-width: 640px) {
    .footer-links {
        flex: auto;
        min-width: auto;
    }
}
.footer-links-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 4px;
    font-family: var(--font-primary);
}
.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color .15s;
    font-size: .84rem;
}
.footer-links a:hover {
    color: #111827;
}
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    font-size: .76rem;
    color: #9ca3af;
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
    background: #0B1120;
    color: #94a3b8;
}
[data-theme="dark"] .footer-logo {
    color: #f1f5f9;
}
[data-theme="dark"] .footer-tagline {
    color: #64748b;
}
[data-theme="dark"] .footer-links a {
    color: #94a3b8;
}
[data-theme="dark"] .footer-links a:hover {
    color: #f1f5f9;
}
[data-theme="dark"] .footer-links-label {
    color: #475569;
}
[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255,255,255,0.08);
    color: #64748b;
}

/* ── Legal pages (TnC, Privacy) ── */
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 28px;
    margin-bottom: 8px;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p,
.legal-content li {
    font-size: .9rem;
    color: #374151;
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

/* ── Landing Page: Hero ── */
.hero {
    position: relative;
    padding: 80px 0 72px;
    text-align: center;
    background: linear-gradient(160deg, #0B1120 0%, #111c34 40%, #0B1120 100%);
    overflow: hidden;
}
/* Running shoe pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M20 35c-2-6-1-12 4-16 6-5 14-4 18 2 3 5 2 12-2 17l-8-4 4-7-10-2-6 10zm18-10l5 3-2 5-5-3 2-5zm20 10c3-6 4-12 0-17-5-6-13-7-18-2-4 4-3 10 0 16l9-4-3-8 9-3 3 11zm-17-9l-4 3 1 4 4-3-1-4z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 120px 72px;
}
/* Accent glow (IRM brand gradient) */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse at center, rgba(200,35,51,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .04;
    background: linear-gradient(135deg, var(--irm-red), var(--irm-blue));
}
.hero-shape-1 { width: 320px; height: 320px; top: -100px; right: -80px; animation: heroFloat 8s ease-in-out infinite; }
.hero-shape-2 { width: 140px; height: 140px; bottom: -30px; left: 8%; animation: heroFloat 6s ease-in-out infinite reverse; }
.hero-shape-3 { width: 200px; height: 200px; top: 40%; left: -60px; animation: heroFloat 10s ease-in-out infinite 2s; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.05); }
}
.hero-badge {
    display: inline-block;
    background: rgba(200,35,51,.12);
    color: #f87171;
    font-size: .73rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(200,35,51,.2);
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
    position: relative;
    font-family: var(--font-primary);
}
.hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #D11D3B, #00A9E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
}
.hero-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 24px;
}
.btn-hero {
    background: var(--irm-red);
    border: 2px solid var(--irm-red);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn-hero:hover {
    background: #A01C29;
    border-color: #A01C29;
    color: #fff;
}
.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.2);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color .2s, background .2s;
}
.btn-hero-outline:hover {
    border-color: var(--irm-red);
    background: rgba(200,35,51,.1);
    color: #fff;
}
.hero-trust {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .78rem;
    font-weight: 500;
    position: relative;
}
.hero-trust-divider {
    color: #334155;
}

/* ── Landing Page: Sections ── */
.section {
    padding: 64px 0;
}
.bg-light {
    background: #f9fafb;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: .95rem;
    color: #6c757d;
    margin-bottom: 32px;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Landing Page: Event Cards ── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.event-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform .25s;
}
.event-card-link:hover {
    transform: translateY(-4px);
    color: inherit;
}
.event-card {
    border: 1px solid #e5e7eb;
    transition: box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.event-card-link:hover .event-card {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-color: var(--theme);
}
.event-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: .7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 0 0 8px;
}
.event-open {
    background: #dcfce7;
    color: #166534;
}
.event-upcoming {
    background: #dbeafe;
    color: #1e40af;
}
.event-closed {
    background: #f3f4f6;
    color: #6b7280;
}
.event-closing {
    background: #fef3c7;
    color: #92400e;
    animation: pulseBadge 1.5s ease-in-out infinite;
}
@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
.event-card-countdown {
    font-size: .73rem;
    color: #6c757d;
    padding: 4px 10px 0 10px;
}
.event-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    padding-right: 70px;
}
.event-card-date {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 8px;
}
.event-card-categories {
    margin-bottom: 8px;
}
.event-card-cta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--theme);
}

/* ── Landing Page: Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}
.feature-item {
    padding: 28px 16px;
}
.feature-svg {
    width: 36px;
    height: 36px;
    color: var(--theme);
    margin-bottom: 14px;
    stroke-width: 1.5;
}
.feature-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}
.feature-desc {
    font-size: .85rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ── Landing Page: Stats ── */
.stats-section {
    padding: 56px 0;
    background: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--theme);
    line-height: 1.2;
}
.stat-label {
    font-size: .85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Events list page ── */
.events-header {
    padding-bottom: 8px;
}
.event-list-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 12px;
}
.event-list-link:hover {
    color: inherit;
}
.event-list-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    overflow: hidden;
}
.event-list-link:hover .event-list-card {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--theme);
    transform: translateY(-1px);
}
.event-list-layout {
    display: flex;
    align-items: center;
    gap: 20px;
}
@media (max-width: 640px) {
    .event-list-layout {
        flex-wrap: wrap;
        gap: 12px;
    }
    .event-list-action {
        width: 100%;
    }
    .event-list-action .btn {
        width: 100%;
    }
}
.event-list-date {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 72px;
}
.event-list-accent {
    width: 4px;
    height: 60px;
    border-radius: 2px;
    flex-shrink: 0;
}
.event-list-day {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.event-list-month {
    font-size: .78rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.event-list-year {
    font-size: .7rem;
    color: #9ca3af;
}
.event-list-info {
    flex: 1;
    min-width: 0;
}
.event-list-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 65px;
}
.event-list-info .event-card-badge {
    position: static;
    flex-shrink: 0;
}
.event-list-countdown {
    font-size: .73rem;
    color: #6c757d;
    white-space: nowrap;
}
.event-list-meta {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.event-list-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.event-list-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.feather-sm {
    width: 14px;
    height: 14px;
}
.feather-lg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}
/* ── Landing Page: CTA section ── */
.cta-section {
    padding: 64px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}
.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.cta-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 24px;
}

/* ── Contact page ── */
.contact-page {
    max-width: 600px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card-link {
    text-decoration: none;
    color: inherit;
}
.contact-card-link:hover {
    color: inherit;
}
.contact-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card-link:hover .contact-card {
    border-color: var(--theme);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.contact-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.contact-card-detail {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: 8px;
}
.contact-card-action {
    font-size: .85rem;
    font-weight: 600;
    color: var(--theme);
}

/* ── PAR-Q Health Screening ─────────────────────────────── */
.parq-questions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.parq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 6px;
}
.parq-question-text {
    font-size: .82rem;
    color: #333;
    flex: 1;
}
.parq-radio-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.parq-radio-label {
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.parq-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}
.parq-notif {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: .85rem;
}
.parq-notif-warning {
    background: #fff5f5;
    border: 1px solid #e53e3e;
    color: #c53030;
}
.parq-notif-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}
.parq-upload {
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px dashed #ccc;
}

/* ═══════════════════════════════════════════════
   Dark Mode Toggle
   ═══════════════════════════════════════════════ */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color .2s, background .2s;
}
.theme-toggle:hover {
    color: #111827;
    background: #f3f4f6;
}
.theme-icon {
    width: 20px;
    height: 20px;
}
/* Light mode: show moon (switch to dark) */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
/* Dark mode: show sun (switch to light) */
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ═══════════════════════════════════════════════
   Dark Mode Styles
   ═══════════════════════════════════════════════ */
[data-theme="dark"] body {
    background: #0f172a;
    color: #cbd5e1;
}
[data-theme="dark"] .navbar {
    background: #0B1120 !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .navbar-brand {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .nav-link {
    color: #94a3b8;
}
[data-theme="dark"] .nav-link:hover {
    color: #f1f5f9;
}
[data-theme="dark"] .nav-link.active {
    background: rgba(255,255,255,0.06);
    color: #f1f5f9 !important;
}
[data-theme="dark"] .theme-toggle {
    color: #64748b;
}
[data-theme="dark"] .theme-toggle:hover {
    color: #f1f5f9;
    background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}
[data-theme="dark"] .navbar-toggler {
    border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .lang-switch-label {
    color: #64748b;
}
[data-theme="dark"] .lang-switch-label.active {
    color: #f1f5f9;
}
[data-theme="dark"] .lang-switch-track {
    background: #334155;
}
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.06);
    color: #cbd5e1;
}
[data-theme="dark"] .card h3,
[data-theme="dark"] .card .fs-6 {
    color: #f1f5f9;
}
[data-theme="dark"] .section-title,
[data-theme="dark"] .event-card-name,
[data-theme="dark"] .event-list-name {
    color: #f1f5f9;
}
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .event-card-date,
[data-theme="dark"] .event-list-meta {
    color: #94a3b8;
}
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
    background: #1e293b !important;
}
/* Navbar harus konsisten dengan footer (#0B1120), bukan #1e293b */
[data-theme="dark"] .navbar.bg-white {
    background: #0B1120 !important;
}
[data-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .text-muted {
    color: #64748b !important;
}
[data-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
    color-scheme: dark;
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #1e293b;
    border-color: var(--irm-red);
    color: #e2e8f0;
}
[data-theme="dark"] .form-label {
    color: #94a3b8;
}
[data-theme="dark"] .legal-content,
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li {
    color: #cbd5e1;
}
[data-theme="dark"] .event-list-card {
    background: #1e293b;
}
[data-theme="dark"] .parq-row {
    background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .parq-question-text {
    color: #cbd5e1;
}
[data-theme="dark"] .badge.bg-light {
    background: rgba(255,255,255,0.06) !important;
    color: #94a3b8 !important;
}
[data-theme="dark"] .btn-link {
    color: #94a3b8;
}
[data-theme="dark"] .btn-link:hover {
    color: #f1f5f9;
}
[data-theme="dark"] .modal-content {
    background: #1e293b;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .event-card {
    background: #1e293b;
}
[data-theme="dark"] .event-card .card-footer {
    background: transparent;
}
[data-theme="dark"] .category-card {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .category-card:hover {
    border-color: var(--irm-red);
}
[data-theme="dark"] .category-card.selected {
    background: #1e2a3d !important;
    border-color: var(--irm-red);
}
[data-theme="dark"] .category-card-price {
    color: #f87171;
}
[data-theme="dark"] .category-card-check {
    background: var(--irm-red);
    color: #fff;
}
[data-theme="dark"] .participant-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}
/* Registration: category cards */
[data-theme="dark"] .category-card-name {
    color: #f1f5f9;
}
[data-theme="dark"] .category-card-type {
    color: #94a3b8;
}
[data-theme="dark"] .category-card-meta {
    color: #94a3b8;
}
/* Registration: participant card text */
[data-theme="dark"] .participant-label,
[data-theme="dark"] .participant-card h3,
[data-theme="dark"] .participant-card h5,
[data-theme="dark"] .participant-card .section-label {
    color: #e2e8f0;
}
/* Registration: addon section */
[data-theme="dark"] .addon-section-heading {
    color: #f1f5f9;
}
[data-theme="dark"] .addon-section-label {
    color: #94a3b8;
}
[data-theme="dark"] .addon-item label {
    color: #cbd5e1;
}
[data-theme="dark"] .addon-price {
    color: #22c55e;
}
/* Registration: summary sidebar */
[data-theme="dark"] .sidebar-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .summary-row {
    color: #cbd5e1;
}
[data-theme="dark"] .summary-row.total {
    color: #f1f5f9;
    border-top-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .summary-row.indent {
    color: #94a3b8;
}
[data-theme="dark"] .summary-placeholder {
    color: #64748b;
}
/* Landing page sections */
[data-theme="dark"] .stats-section {
    background: #0f172a;
}
[data-theme="dark"] .stat-label {
    color: #94a3b8;
}
[data-theme="dark"] .feature-name {
    color: #f1f5f9;
}
[data-theme="dark"] .feature-desc {
    color: #94a3b8;
}
[data-theme="dark"] .cta-section {
    background: #0f172a;
    border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .cta-title {
    color: #f1f5f9;
}
[data-theme="dark"] .cta-subtitle {
    color: #94a3b8;
}
[data-theme="dark"] .event-card-cta {
    color: #f87171;
}
/* Events list */
[data-theme="dark"] .event-list-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .event-list-link:hover .event-list-card {
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
[data-theme="dark"] .event-list-day {
    color: #f1f5f9;
}
[data-theme="dark"] .event-list-month {
    color: #94a3b8;
}
[data-theme="dark"] .event-list-year {
    color: #64748b;
}
/* Contact page */
[data-theme="dark"] .contact-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .contact-card-title {
    color: #f1f5f9;
}
[data-theme="dark"] .contact-card-detail {
    color: #94a3b8;
}
[data-theme="dark"] .contact-card-link:hover .contact-card {
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════
   Dark Mode — Auth Pages (Login, Register, OTP)
   ═══════════════════════════════════════════════ */
[data-theme="dark"] .auth-card .card {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
[data-theme="dark"] .auth-card h1,
[data-theme="dark"] .auth-card h2,
[data-theme="dark"] .auth-card .fs-4,
[data-theme="dark"] .auth-card .fs-5 {
    color: #f1f5f9;
}
[data-theme="dark"] .auth-tabs {
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .auth-tabs a {
    color: #94a3b8;
}
[data-theme="dark"] .auth-tabs a:hover:not(.active) {
    color: #cbd5e1;
}
[data-theme="dark"] .auth-info {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.25);
    color: #93c5fd;
}
[data-theme="dark"] .auth-success {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.25);
    color: #86efac;
}
[data-theme="dark"] .btn-google {
    background: #1e293b;
    color: #cbd5e1;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .btn-google:hover {
    background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .auth-divider {
    color: #64748b;
}
[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    border-top-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .otp-digit {
    background: #1e293b;
    border-color: rgba(255,255,255,0.15);
    color: #e2e8f0;
}
[data-theme="dark"] .otp-digit:focus {
    border-color: var(--irm-red);
}
/* Auth: register/login bottom text & links */
[data-theme="dark"] .auth-card .small {
    color: #94a3b8;
}
[data-theme="dark"] .auth-card .small a {
    color: #f87171;
}
/* Auth: Google button hover visibility */
[data-theme="dark"] .btn-google:hover {
    background: rgba(255,255,255,0.12);
    color: #f1f5f9;
}

/* ═══════════════════════════════════════════════
   Photo Search Page
   ═══════════════════════════════════════════════ */
.photo-search-page h1 { color: var(--theme); }
.photo-search-page .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.photo-search-page .photo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.photo-search-page .photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.photo-search-page .bib-tag {
    padding: 6px 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--theme);
    text-align: center;
    margin-top: auto;
}
.photo-search-page .pagination-nav {
    margin-top: 20px;
    display: flex;
    gap: 4px;
    justify-content: center;
}
.photo-search-page .pagination-nav a,
.photo-search-page .pagination-nav span {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .85rem;
}
.photo-search-page .pagination-nav a {
    background: #e5e7eb;
    color: #374151;
}
.photo-search-page .pagination-nav span {
    background: var(--theme);
    color: #fff;
}

/* Dark mode — Photo Search Page */
[data-theme="dark"] .photo-search-page .photo-card {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
[data-theme="dark"] .photo-search-page .bib-tag {
    color: var(--theme);
}
[data-theme="dark"] .photo-search-page .pagination-nav a {
    background: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .photo-search-page .pagination-nav a:hover {
    background: #475569;
    color: #e2e8f0;
}
[data-theme="dark"] .photo-search-page .pagination-nav span {
    background: var(--theme);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   Route Map Page
   ═══════════════════════════════════════════════ */
.route-map-demo-page .route-map-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
}
@media (max-width: 768px) {
    .route-map-demo-page .route-map-layout {
        grid-template-columns: 1fr;
    }
    .route-map-demo-page .route-points-sidebar {
        order: 1;
    }
    .route-map-demo-page .route-map-container {
        height: 300px;
    }
}
.route-map-demo-page .route-map-panel {
    min-width: 0;
}
.route-map-demo-page .route-map-container {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    z-index: 1;
}
[data-theme="dark"] .route-map-demo-page .route-map-container {
    border-color: rgba(255,255,255,0.08);
}
.route-map-demo-page .route-slider-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
}
[data-theme="dark"] .route-map-demo-page .route-slider-bar {
    background: #1e293b;
}
.route-map-demo-page .route-range-input {
    flex: 1;
    accent-color: var(--theme);
    height: 6px;
}
.route-map-demo-page .route-points-sidebar {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    font-size: .85rem;
}
[data-theme="dark"] .route-map-demo-page .route-points-sidebar {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
    color: #cbd5e1;
}
.route-map-demo-page .route-point-item {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.route-map-demo-page .route-point-item:hover {
    background: rgba(0,0,0,.04);
}
[data-theme="dark"] .route-map-demo-page .route-point-item:hover {
    background: rgba(255,255,255,0.05);
}
/* Route pin pulse animation (start/finish) */
.route-pin-pulse {
    animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
    0%, 100% { filter: drop-shadow(0 0 3px currentColor); }
    50% { filter: drop-shadow(0 0 8px currentColor); }
}
/* Feather pin — iconAnchor offset via setIcon, no CSS transform needed */

/* Elevation chart container */
.route-map-demo-page .elevation-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px 2px;
    margin-top: 8px;
}
[data-theme="dark"] .route-map-demo-page .elevation-container {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
}

/* Distance label dark mode — keep readable on dark tiles */
[data-theme="dark"] .distance-label-icon > div {
    background: rgba(30,41,59,.9) !important;
}

/* Leaflet overrides — keep map visible in dark mode */
[data-theme="dark"] .leaflet-container {
    background: #1e293b;
}
[data-theme="dark"] .leaflet-control-zoom a {
    background: #1e293b;
    color: #cbd5e1;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(30,41,59,.85) !important;
    color: #94a3b8 !important;
}
[data-theme="dark"] .leaflet-control-attribution a {
    color: #94a3b8 !important;
}
