/* ==========================================================================
   Nieuws (homepagina)
   ========================================================================== */

.news-section {
    padding-top: 1rem;
}

.news-featured {
    display: grid;
    gap: 0.85rem;
    padding: 2.1rem 2.2rem;
    border: 1px solid rgba(255, 210, 63, 0.35);
    border-left: 6px solid var(--accent);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(255, 210, 63, 0.22), transparent 48%),
        linear-gradient(135deg, var(--surface-2), var(--surface));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 210, 63, 0.1);
    margin-bottom: 1.35rem;
}

.news-featured h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.news-featured p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem 0.85rem;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 0.78rem;
    font-weight: 600;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 210, 63, 0.25);
}

.news-category {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.14);
    color: var(--info);
    border: 1px solid rgba(125, 211, 252, 0.28);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
    background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
    border-top-color: var(--info);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.news-card h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text);
    transition: color 0.18s ease;
}

.news-card:hover h4 {
    color: var(--accent);
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.news-card time,
.news-featured time {
    color: var(--muted-2);
}

@media (max-width: 960px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Reisplanner - styling in de sfeer van JulianBits
   Donker, industrieel, geel accent. Alleen CSS, geen frameworks.
   ========================================================================== */

:root {
    --bg: #0b0b0d;
    --bg-soft: #101013;
    --surface: #141418;
    --surface-2: #1a1a20;
    --surface-3: #23232b;
    --line: #27272f;
    --line-strong: #3a3a45;
    --text: #f5f5f7;
    --muted: #a3a3ae;
    --muted-2: #797985;
    --accent: #ffd23f;
    --accent-2: #ffe37a;
    --accent-soft: rgba(255, 210, 63, 0.1);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.1);
    --warning: #ffb020;
    --warning-soft: rgba(255, 176, 32, 0.1);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.1);
    --info: #7dd3fc;
    --info-soft: rgba(125, 211, 252, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1120px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    overflow-wrap: break-word;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 12% -10%, rgba(255, 210, 63, 0.07), transparent 34rem);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

img,
svg,
video,
canvas,
iframe,
picture {
    max-width: 100%;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}

/* Oudere browsers kennen overflow: clip nog niet. */
@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--accent-2);
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.main-content {
    flex: 1 0 auto;
}

.container {
    width: min(var(--container), 92vw);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skip-link:focus {
    top: 1rem;
    color: var(--bg);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.82rem;
}

.card-foot {
    margin: 0.75rem 0 0;
}

.mono {
    font-variant-numeric: tabular-nums;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.icon-lg {
    width: 30px;
    height: 30px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.45);
    animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.45); }
    65% { box-shadow: 0 0 0 7px rgba(255, 210, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); }
}

/* --------------------------------------------------------------------------
   Bovenbalk met mededelingen
   -------------------------------------------------------------------------- */

.dev-banner {
    position: relative;
    z-index: 51;
    color: var(--text);
    background:
        radial-gradient(130% 240% at 4% -70%, rgba(255, 210, 63, 0.2), transparent 58%),
        linear-gradient(100deg, #17160f 0%, #111115 46%, #0d0d10 100%);
    border-bottom: 1px solid rgba(255, 210, 63, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 34px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.dev-banner::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(255, 210, 63, 0.18));
    box-shadow: 0 0 18px rgba(255, 210, 63, 0.32);
}

.dev-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-block: 0.62rem;
    min-height: 3.05rem;
}

.dev-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    padding: 0.3rem 0.6rem 0.3rem 0.48rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 63, 0.26);
    background: rgba(255, 210, 63, 0.09);
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dev-banner-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: live-pulse 2.4s ease-out infinite;
}

.dev-banner-slider {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dev-banner-slides {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.dev-banner-slide {
    grid-area: 1 / 1;
    margin: 0;
    color: #c6c6d0;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(7px);
    visibility: hidden;
    transition: opacity 0.42s ease, transform 0.42s ease, visibility 0s linear 0.42s;
}

.dev-banner-slide.is-active {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.dev-banner-slide strong {
    color: var(--accent-2);
    font-weight: 800;
}

.dev-banner-nav {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
}

.dev-banner-arrow {
    appearance: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 210, 63, 0.2);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dev-banner-arrow .icon {
    width: 14px;
    height: 14px;
}

.dev-banner-arrow-prev .icon {
    transform: rotate(90deg);
}

.dev-banner-arrow-next .icon {
    transform: rotate(-90deg);
}

.dev-banner-arrow:hover {
    color: var(--accent);
    border-color: rgba(255, 210, 63, 0.5);
    background: rgba(255, 210, 63, 0.12);
}

.dev-banner-dots {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-inline: 0.1rem;
}

.dev-banner-dot-btn {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 210, 63, 0.24);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.dev-banner-dot-btn:hover {
    background: rgba(255, 210, 63, 0.55);
}

.dev-banner-dot-btn.is-active {
    width: 18px;
    background: var(--accent);
}

.dev-banner-count {
    min-width: 2.55rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 63, 0.24);
    background: rgba(255, 210, 63, 0.08);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    text-align: center;
}

.dev-banner-progress {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.dev-banner-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255, 210, 63, 0.2), var(--accent));
}

.dev-banner.is-ticking .dev-banner-progress-bar {
    animation: banner-progress var(--banner-interval, 8s) linear forwards;
}

.dev-banner.is-paused .dev-banner-progress-bar {
    animation-play-state: paused;
}

.dev-banner.no-auto .dev-banner-progress {
    display: none;
}

@keyframes banner-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .dev-banner-slide {
        transition: none;
    }

    .dev-banner-pulse {
        animation: none;
    }
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
}

.site-header {
    position: relative;
    z-index: 1;
    background: rgba(11, 11, 13, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1rem;
}

.logo {
    display: inline-block;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

/* Met logomark in de header: het woordmerk zelf blijft licht, alleen
   "planner" houdt de accentkleur. */
.logo .logo-text {
    color: var(--text);
}

.logo-with-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    display: block;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
}

.logo:hover,
.logo:focus {
    color: var(--text);
}

.logo-small {
    font-size: 1.2rem;
}

/* Inline SVG-achtergrond van het actieve thema. */
.theme-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.theme-background svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Themalogo met aftelklok in de header. */
.logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.logo-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(255, 210, 63, 0.28);
    border-radius: 999px;
    background: rgba(255, 210, 63, 0.09);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-countdown::before {
    content: "";
    flex: none;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.12);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.25rem 1.4rem;
}

.main-nav a {
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.main-nav a.is-active {
    border-color: var(--accent);
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Knoppen, badges en kleine onderdelen
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.75rem 1.3rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #0b0b0d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: transparent;
    color: var(--accent);
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-secondary {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.btn-small {
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    font-size: 0.69rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-success {
    border-color: rgba(74, 222, 128, 0.32);
    background: var(--success-soft);
    color: var(--success);
}

.badge-warning {
    border-color: rgba(255, 176, 32, 0.35);
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-danger {
    border-color: rgba(255, 107, 107, 0.35);
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-info {
    border-color: rgba(125, 211, 252, 0.32);
    background: var(--info-soft);
    color: var(--info);
}

.badge-muted {
    border-color: var(--line-strong);
    background: var(--surface-3);
    color: var(--muted);
}

.badge-crowd {
    padding: 0.34rem 0.55rem;
}

.crowd-meter {
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
}

.crowd-person {
    width: 0.78rem;
    height: 0.78rem;
    display: block;
}

.crowd-person.is-on {
    filter: drop-shadow(0 0 0.4px currentColor);
}

.crowd-person.is-off {
    opacity: 0.75;
}

.crowd-meter-label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

.badge-live {
    border-color: rgba(255, 215, 0, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
}

.text-link,
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.text-link .icon,
.arrow-link .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.text-link:hover .icon,
.arrow-link:hover .icon {
    transform: translateX(3px);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pill-list.spaced {
    margin-top: 0.8rem;
}

.pill-list.is-centered {
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Pagina-koppen, secties en grids
   -------------------------------------------------------------------------- */

.page-head {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    max-width: 900px;
    margin-bottom: 0.65rem;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    letter-spacing: -0.03em;
}

.page-head h1 span {
    color: var(--accent);
}

.page-head p {
    max-width: 60ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section {
    padding: 4rem 0;
}

.section-tight {
    padding: 3rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    letter-spacing: -0.025em;
}

.section-intro {
    max-width: 60ch;
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.section-head > .text-link {
    margin-bottom: 0.25rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.card > .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
}

.card p {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.card .card-link {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Hero en homepagina
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 0;
    font-size: clamp(2.6rem, 5.6vw, 4.5rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.hero h1 span {
    color: var(--accent);
}

.hero-lead {
    max-width: 46ch;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.planner-card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.planner-card h2 {
    margin-bottom: 0.35rem;
    font-size: 1.3rem;
}

.planner-card .planner-sub {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.service-card .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0.85rem;
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.service-card p {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.service-card .arrow-link {
    margin-top: auto;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.route-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--line-strong);
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.route-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-3px);
}

.route-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.route-codes {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.route-codes .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.route-note {
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-next {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.route-next span {
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-next strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--text);
    font-size: 1rem;
}

.route-card > .text-link {
    margin-top: 1rem;
}

.route-foot {
    margin: 0.75rem 0 0;
}

.route-unavailable {
    margin: 1rem 0 0;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
}

.panel {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.disruption-item {
    padding: 0.8rem 0.9rem;
    border-left: 2px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.disruption-item.is-disruption {
    border-left-color: var(--danger);
}

.disruption-item.is-maintenance {
    border-left-color: var(--warning);
}

.disruption-item h4 {
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.disruption-item .meta {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.74rem;
}

.panel-foot {
    margin-top: 1rem;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.025));
}

.cta-band h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    text-transform: uppercase;
}

.cta-band p {
    max-width: 65ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Formulieren
   -------------------------------------------------------------------------- */

.form-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 2rem;
}

.form-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.form-card-head h2,
.form-card-head h3 {
    margin: 0;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.form-card-head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-card-head > .icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-width: 0;
}

.field label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
    color: var(--muted-2);
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Datum- en tijdvelden: het native kalender-/klokicoon geel maken,
   zodat het goed zichtbaar blijft op de donkere achtergrond. */
.field input[type="date"],
.field input[type="time"] {
    cursor: pointer;
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(83%) sepia(58%) saturate(1399%) hue-rotate(357deg) brightness(102%) contrast(101%);
}

.field-hint {
    color: var(--muted-2);
    font-size: 0.72rem;
}

/* Eigen stationssuggesties in plaats van de native datalist-dropdown. */

.autocomplete {
    position: relative;
    width: 100%;
    min-width: 0;
}

.station-search .autocomplete {
    flex: 1 1 16rem;
    min-width: 0;
}

.autocomplete-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.45rem);
    left: 0;
    right: auto;
    width: max(100%, min(18rem, calc(100vw - 2rem)));
    max-width: min(26rem, calc(100vw - 2rem));
    max-height: 21rem;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid rgba(255, 210, 63, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, #1e1e25 0%, var(--surface) 55%, var(--bg-soft) 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.66),
        0 0 0 1px rgba(255, 210, 63, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
}

.autocomplete-panel::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    height: 2px;
    margin: -0.35rem -0.35rem 0;
    background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--accent-2) 50%, var(--accent) 78%, transparent);
    opacity: 0.75;
}

.autocomplete-panel::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-panel::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--line-strong);
    background-clip: padding-box;
}

.autocomplete-panel::-webkit-scrollbar-thumb:hover {
    background: var(--muted-2);
    background-clip: padding-box;
}

.autocomplete-panel[hidden] {
    display: none;
}

.autocomplete-panel.is-open {
    animation: autocomplete-in 0.16s ease-out;
}

@keyframes autocomplete-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.autocomplete-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.1rem 0 0.3rem;
    padding: 0.4rem 0.5rem 0.5rem;
    border-bottom: 1px solid var(--line);
}

.autocomplete-head-icon {
    display: inline-flex;
    color: var(--accent);
}

.autocomplete-head-icon svg {
    width: 15px;
    height: 15px;
}

.autocomplete-head-title {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.autocomplete-head-count {
    min-width: 1.35rem;
    margin-left: auto;
    padding: 0.02rem 0.4rem;
    border: 1px solid rgba(255, 210, 63, 0.25);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.autocomplete-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 0;
    border-radius: calc(var(--radius-sm) - 1px);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.32;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 2px 0 0 transparent;
    transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.autocomplete-option + .autocomplete-option {
    margin-top: 1px;
}

.autocomplete-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--surface-3);
    color: var(--muted);
    transition: background 0.14s ease, color 0.14s ease;
}

.autocomplete-option-icon svg {
    width: 14px;
    height: 14px;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    background: linear-gradient(90deg, rgba(255, 210, 63, 0.14), rgba(255, 210, 63, 0.03));
    box-shadow: inset 2px 0 0 var(--accent);
    outline: none;
}

.autocomplete-option:hover .autocomplete-option-icon,
.autocomplete-option.is-active .autocomplete-option-icon {
    background: var(--accent);
    color: var(--bg);
}

.autocomplete-option-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.autocomplete-match {
    background: transparent;
    color: var(--accent);
    font-weight: 900;
}

.autocomplete-option-code {
    flex: 0 0 auto;
    padding: 0.06rem 0.36rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.autocomplete-option:hover .autocomplete-option-code,
.autocomplete-option.is-active .autocomplete-option-code {
    border-color: rgba(255, 210, 63, 0.4);
    background: var(--bg);
    color: var(--accent);
}

.autocomplete-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.15rem 0.85rem 1.05rem;
    text-align: center;
}

.autocomplete-empty-icon {
    display: inline-flex;
    margin-bottom: 0.25rem;
    color: var(--muted-2);
}

.autocomplete-empty-icon svg {
    width: 24px;
    height: 24px;
}

.autocomplete-empty p {
    margin: 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
}

.autocomplete-empty span {
    color: var(--muted-2);
    font-size: 0.74rem;
    line-height: 1.4;
}

.autocomplete-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.3rem;
    padding: 0.42rem 0.5rem 0.15rem;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 0.64rem;
}

.autocomplete-keys {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.autocomplete-keys kbd {
    min-width: 1.15rem;
    padding: 0.04rem 0.28rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface-3);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 720px) {
    .autocomplete-foot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .autocomplete-panel.is-open {
        animation: none;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    flex-wrap: wrap;
}

.form-actions.is-end {
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-note {
    color: var(--muted-2);
    font-size: 0.75rem;
}

.advanced-options {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.advanced-options > summary {
    padding: 0.7rem 0.9rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.advanced-options > summary:hover {
    color: var(--accent);
}

.advanced-options[open] > summary {
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.advanced-options .form-grid {
    padding: 0.9rem;
}

/* --------------------------------------------------------------------------
   Zoekresultaten en reisadviezen
   -------------------------------------------------------------------------- */

.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    margin-bottom: 1.5rem;
}

.search-summary h2 {
    margin: 0;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.search-summary p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn.js-share.is-copied,
.btn.js-share.is-shared {
    border-color: var(--success);
    color: var(--success);
}

.btn.js-share.is-failed {
    border-color: var(--danger);
    color: var(--danger);
}

.trip-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.trip-filters-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trip-filters .filter-pills {
    margin-bottom: 0;
}

.trip-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trip-card {
    display: block;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--surface);
    color: var(--text);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.trip-card:hover,
.trip-card:focus-visible {
    border-color: var(--line-strong);
    border-left-color: var(--accent);
    background: var(--surface-2);
    color: var(--text);
}

.trip-card > .trip-card-body > .trip-facts {
    margin-top: 0.85rem;
}

.trip-card {
    position: relative;
}

.trip-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.trip-card-body,
.trip-card-foot {
    position: relative;
    z-index: 2;
}

.trip-share {
    margin-left: auto;
}

.trip-route-line {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.trip-route-line strong {
    color: var(--text);
    font-weight: 700;
}

.trip-note {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.trip-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.trip-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trip-more .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.trip-card:hover .trip-more .icon {
    transform: translateX(3px);
}

.trip-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.trip-times {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.trip-time {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.trip-time small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.trip-time-delay {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

.trip-times > .icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.trip-facts {
    display: flex;
    align-items: center;
    gap: 0.55rem 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
}

.trip-facts strong {
    color: var(--text);
}

.trip-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.trip-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.trip-price.is-first {
    border-color: rgba(255, 210, 63, 0.32);
    background: linear-gradient(135deg, rgba(255, 210, 63, 0.12), rgba(255, 210, 63, 0.03));
}

.trip-price-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trip-price.is-first .trip-price-label {
    color: var(--accent-2);
}

.trip-price-icon {
    width: 12px;
    height: 12px;
}

.trip-price-amount {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.trip-price-note {
    color: var(--muted-2);
    font-size: 0.72rem;
}

.trip-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.trip-legs {
    margin-top: 1rem;
}

.leg {
    position: relative;
    display: grid;
    grid-template-columns: 4.15rem 1.4rem minmax(0, 1fr);
    gap: 0.75rem;
    padding-bottom: 1.1rem;
}

.leg:last-child {
    padding-bottom: 0;
}

.leg-time {
    padding-top: 0.05rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.leg-time small {
    display: block;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 600;
}

.leg-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.leg-rail::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: -1.1rem;
    width: 2px;
    background: var(--line-strong);
}

.leg:last-child .leg-rail::before {
    bottom: auto;
    height: 0.85rem;
}

.leg-dot {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 0.28rem;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.leg-body {
    padding-bottom: 0.15rem;
    min-width: 0;
}

.leg-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 800;
}

.leg-title .direction {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.leg-route {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.83rem;
}

.leg-route strong {
    color: var(--text);
}

.leg-route .track {
    margin-left: 0.1rem;
}

.leg-meta {
    display: flex;
    gap: 0.35rem 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
    color: var(--muted-2);
    font-size: 0.75rem;
}

.leg-message {
    margin-top: 0.45rem;
    padding: 0.5rem 0.65rem;
    border-left: 2px solid var(--warning);
    background: var(--warning-soft);
    color: #f3d9a9;
    font-size: 0.79rem;
}

.leg-message.is-danger {
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: #ffc4c4;
}

.transfer-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 1rem 5.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.77rem;
}

.transfer-row strong {
    color: var(--text);
}

.leg-stops {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--line);
}

.leg-stops-label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stop-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 1rem;
}

.stop-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.stop-list time {
    color: var(--muted-2);
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stop-times {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

#reizen {
    scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   Tabellen en vertrektijden
   -------------------------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--surface);
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 0.9rem;
    vertical-align: top;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.data-table tr.is-cancelled td {
    opacity: 0.62;
}

.time-cell {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 900;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.time-cell small {
    display: block;
    margin-top: 0.1rem;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 600;
}

.delay {
    display: inline-block;
    margin-left: 0.3rem;
    color: var(--danger);
    font-size: 0.73rem;
    font-weight: 800;
}

.delay.is-on-time {
    color: var(--success);
}

.destination {
    font-weight: 700;
}

.track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    color: var(--warning);
    font-size: 0.76rem;
}

.table-note {
    margin: 0.75rem 0 0;
    color: var(--muted-2);
    font-size: 0.75rem;
}

.departure-board {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.departure-board-head,
.departure-row {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr) 92px;
    grid-template-areas: "time main track";
    gap: 1rem;
}

.departure-item {
    position: relative;
}

.departure-row {
    color: inherit;
    text-decoration: none;
}

.departure-row-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.departure-row-hit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.departure-board-head {
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.departure-board-head span:last-child {
    text-align: right;
}

.departure-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.departure-row {
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-bottom: 2px solid var(--accent);
}

.departure-item:last-child .departure-row {
    border-bottom: 0;
}

.departure-item:hover .departure-row,
.departure-item:focus-within .departure-row {
    background: rgba(255, 255, 255, 0.025);
}

.departure-row.is-cancelled {
    opacity: 0.62;
}

.departure-row.is-cancelled .departure-destination {
    text-decoration: line-through;
}

.departure-time {
    grid-area: time;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.departure-time-value {
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.departure-delay {
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 800;
}

.departure-delay.is-on-time {
    color: var(--success);
}

.departure-actual {
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 600;
}

.departure-actual time {
    color: var(--text);
    font-weight: 800;
}

.departure-main {
    grid-area: main;
    min-width: 0;
}

.departure-material {
    margin-top: 0.42rem;
    min-width: 0;
}

.departure-material-units {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
}

.departure-material-unit {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.departure-material-photo {
    display: block;
    width: auto;
    height: 1.9rem;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.departure-material-number {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.departure-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.departure-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.18rem 0.4rem;
    border: 1px solid rgba(255, 210, 63, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.departure-destination {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
}

.departure-trainline {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.departure-number {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.departure-via {
    margin: 0.24rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.departure-via a {
    position: relative;
    z-index: 2;
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
}

.departure-via a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.departure-note {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.28rem 0 0;
    color: var(--warning);
    font-size: 0.72rem;
    font-weight: 700;
}

.departure-note .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.departure-messages {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.3rem;
    color: var(--warning);
    font-size: 0.76rem;
}

.departure-track {
    grid-area: track;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.18rem;
}

.departure-track-label {
    display: none;
    color: var(--muted-2);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.departure-track-was {
    color: var(--warning);
    font-size: 0.68rem;
    font-weight: 700;
}

.departure-track-change {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.32rem;
    border: 1px solid rgba(255, 176, 32, 0.6);
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.departure-track-change .icon {
    width: 11px;
    height: 11px;
}

/* Vertrektijddetail */

.departure-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.7fr);
    align-items: start;
    gap: 1rem;
}

.departure-detail-card,
.departure-detail-facts,
.departure-detail-section {
    border: 1px solid var(--line);
    background: var(--surface);
}

.departure-detail-card {
    padding: 1.4rem 1.5rem;
    border-top: 3px solid var(--accent);
}

.departure-detail-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.departure-detail-card-head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
}

.departure-detail-card-head h2 span {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.departure-detail-times {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.departure-detail-time span {
    display: block;
    color: var(--muted-2);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.departure-detail-time strong {
    display: block;
    margin-top: 0.16rem;
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}

.departure-detail-time.is-delay strong {
    color: var(--warning);
}

.departure-detail-time strong.is-on-time {
    color: var(--success);
    font-size: 1.1rem;
}

.departure-detail-time em {
    display: block;
    margin-top: 0.14rem;
    color: var(--warning);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.departure-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.departure-detail-track {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.departure-detail-track-change {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.16rem 0.45rem;
    border: 1px solid rgba(255, 176, 32, 0.5);
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}

.departure-detail-track-change .icon {
    width: 14px;
    height: 14px;
}

.departure-detail-alert,
.departure-detail-messages p {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.8rem 0 0;
    color: var(--warning);
    font-size: 0.8rem;
}

.departure-detail-alert.is-danger {
    color: var(--danger);
}

.departure-detail-alert .icon,
.departure-detail-messages .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.05rem;
}

.departure-detail-facts {
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem 1.35rem;
}

.departure-fact span {
    display: block;
    color: var(--muted-2);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.departure-fact strong {
    display: block;
    margin-top: 0.1rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.35;
}

.departure-detail-section {
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
}

.departure-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.departure-section-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.departure-section-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.departure-section-head > .icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.departure-detail-section .trip-material-units {
    gap: 0.75rem;
}

.departure-detail-section .trip-material-unit figcaption .pill-list {
    flex-basis: 100%;
    margin-top: 0.35rem;
}

.departure-detail-section .trip-material-unit .pill {
    padding: 0.2rem 0.45rem;
    font-size: 0.66rem;
}

.journey-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.journey-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.journey-table th {
    padding: 0.62rem 0.85rem;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.journey-table th:nth-child(2),
.journey-table th:nth-child(3) {
    width: 108px;
}

.journey-table th:last-child {
    width: 68px;
    text-align: right;
}

.journey-table td {
    padding: 0.62rem 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    vertical-align: middle;
}

.journey-table tbody tr:last-child td {
    border-bottom: 0;
}

.journey-table tbody tr.is-passing {
    background: rgba(255, 255, 255, 0.012);
}

.journey-table tbody tr.is-passing .journey-station-name {
    color: var(--muted);
    font-weight: 600;
}

.journey-table tbody tr.is-current {
    background: var(--accent-soft);
    box-shadow: inset 3px 0 0 var(--accent);
}

.journey-table tbody tr.is-cancelled .journey-station-name {
    color: var(--danger);
    text-decoration: line-through;
}

.journey-table td:last-child {
    text-align: right;
}

.journey-station {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
}

.journey-station-name {
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.journey-station-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.34rem;
    border: 1px solid var(--line-strong);
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.journey-station-tag.is-current {
    border-color: rgba(255, 210, 63, 0.4);
    background: var(--accent-soft);
    color: var(--accent);
}

.journey-station-tag.is-destination {
    border-color: var(--line-strong);
    color: var(--text);
}

.journey-station-tag.is-passing {
    border-color: transparent;
    background: transparent;
    color: var(--muted-2);
}

.journey-time {
    color: var(--text);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.journey-delay {
    display: inline-flex;
    margin-left: 0.3rem;
    padding: 0.02rem 0.3rem;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.4;
    vertical-align: 1px;
}

.journey-actual {
    display: block;
    margin-top: 0.06rem;
    color: var(--warning);
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.departure-route {
    position: relative;
    margin-left: 0.35rem;
    padding-left: 1.3rem;
    border-left: 2px solid var(--line-strong);
}

.departure-route-stop {
    position: relative;
    padding: 0.38rem 0;
    color: var(--text);
    font-size: 0.86rem;
}

.departure-route-stop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.72rem;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
}

.departure-route-stop.is-origin::before {
    border-color: var(--accent);
    background: var(--accent);
}

.departure-route-stop.is-destination::before {
    border-color: var(--text);
    background: var(--text);
}

.departure-route-stop strong {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
}

.departure-route-stop span {
    display: block;
    margin-top: 0.05rem;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Storingen
   -------------------------------------------------------------------------- */

.disruption-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.status-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#spoor {
    scroll-margin-top: 90px;
}

.status-head {
    align-items: center;
}

.view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.view-switch-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.view-switch-option .icon {
    width: 18px;
    height: 18px;
}

.view-switch-option strong {
    margin-left: auto;
    min-width: 1.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.view-switch-option:hover {
    background: var(--surface-2);
    color: var(--text);
}

.view-switch-option:hover strong {
    background: var(--line);
    color: var(--text);
}

.view-switch-option.is-active {
    border-color: rgba(255, 107, 107, 0.4);
    background: var(--danger-soft);
    color: var(--text);
}

.view-switch-option.is-active .icon {
    color: var(--danger);
}

.view-switch-option.is-active strong {
    background: rgba(255, 107, 107, 0.18);
    color: var(--danger);
}

.view-switch-option.is-maintenance.is-active {
    border-color: rgba(255, 176, 32, 0.42);
    background: var(--warning-soft);
}

.view-switch-option.is-maintenance.is-active .icon {
    color: var(--warning);
}

.view-switch-option.is-maintenance.is-active strong {
    background: rgba(255, 176, 32, 0.18);
    color: var(--warning);
}

.view-panel.is-entering {
    animation: view-panel-in 0.22s ease both;
}

@keyframes view-panel-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.view-help {
    margin: 0 0 1.35rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.88rem;
}

.view-help strong {
    color: var(--text);
}

#spoor.is-maintenance-view .view-help {
    border-left-color: var(--warning);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
}

.status-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.status-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
}

.status-card.is-maintenance {
    border-left-color: var(--warning);
}

.status-card.is-maintenance:hover {
    border-left-color: var(--warning);
}

.status-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--danger);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-tag .icon {
    width: 16px;
    height: 16px;
}

.status-card.is-maintenance .status-tag {
    color: var(--warning);
}

.status-when {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted-2);
    font-size: 0.76rem;
    font-weight: 600;
}

.status-when .icon {
    width: 14px;
    height: 14px;
}

.status-card h3 {
    margin: 0 0 0.45rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.3;
    transition: color 0.18s ease;
}

.status-card:hover h3 {
    color: var(--accent);
}

.status-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-more .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.status-card:hover .status-more .icon {
    transform: translateX(3px);
}

.status-lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.status-block {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.status-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.status-card .pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.74rem;
}

.status-advice {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.status-advice li {
    position: relative;
    padding-left: 0.95rem;
}

.status-advice li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.more-status {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.more-status > summary {
    padding: 0.85rem 1.1rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.more-status > summary:hover {
    color: var(--accent);
}

.more-status[open] > summary {
    border-bottom: 1px solid var(--line);
    color: var(--accent);
}

.more-status .status-grid {
    padding: 1rem;
}

/* --------------------------------------------------------------------------
   Detailpagina storing of werkzaamheid
   -------------------------------------------------------------------------- */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.back-link .icon {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.back-link:hover {
    color: var(--accent);
}

.detail-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--danger);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-tag .icon {
    width: 16px;
    height: 16px;
}

.detail-tag.is-maintenance {
    color: var(--warning);
}

.detail-tag.is-trip {
    color: var(--accent);
}

.detail-period {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-period .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.detail-body {
    padding-top: 2.25rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: start;
    gap: 1.25rem;
}

.detail-main,
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card {
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.detail-card h2 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.detail-lead {
    margin: 0 0 0.8rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.detail-list li {
    position: relative;
    padding-left: 1.1rem;
}

.detail-list li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.detail-note {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.detail-facts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
}

.detail-facts > div {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.detail-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-facts dt {
    margin-bottom: 0.2rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.detail-facts dd {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.5;
}

.detail-back {
    margin: 0;
}

.btn.is-back .icon {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Reisdetail: samenvatting en tijdlijn
   -------------------------------------------------------------------------- */

.page-head h1.detail-route,
.detail-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.7rem;
    max-width: none;
}

.detail-route-arrow {
    width: clamp(22px, 4.2vw, 38px);
    height: clamp(22px, 4.2vw, 38px);
    flex: 0 0 auto;
    color: var(--accent);
}

.trip-detail {
    max-width: 880px;
    margin: 0 auto;
}

/* Samenvatting */

.trip-summary {
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
}

.detail-period-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.detail-period-date > .icon {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.detail-period-date > span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.detail-period-date strong {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.detail-period-date time {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--text);
    font-weight: 750;
}

.detail-period-date time strong {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.detail-period-divider {
    color: var(--muted-2);
}

.trip-summary-title {
    margin: 0 0 0.9rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.trip-summary-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem 1.5rem;
}

.trip-summary-point {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.trip-summary-point.is-arrival {
    align-items: flex-end;
    text-align: right;
}

.trip-summary-label {
    color: var(--muted-2);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.trip-summary-time {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.trip-summary-delay-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.trip-summary-place {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.trip-summary-track {
    margin-top: 0.15rem;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.trip-summary-between {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 8rem;
    text-align: center;
}

.trip-summary-duration {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.trip-summary-line {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--accent);
}

.trip-summary-line::before {
    content: "";
    flex: 1;
    height: 1px;
    margin-right: 0.3rem;
    background: var(--line-strong);
}

.trip-summary-line .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.trip-summary-transfers {
    color: var(--muted-2);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.trip-fares {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.trip-fares-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trip-fares-heading .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.trip-fares-heading small {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.trip-fares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}

.trip-fare {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.trip-fare.is-first {
    border-color: rgba(255, 210, 63, 0.38);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, 0.12), transparent 60%),
        var(--surface);
    box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.06);
}

.trip-fare-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trip-fare.is-first .trip-fare-label {
    color: var(--accent-2);
}

.trip-fare-icon {
    width: 13px;
    height: 13px;
}

.trip-fare-price {
    color: var(--text);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.trip-fare-caption {
    color: var(--muted-2);
    font-size: 0.7rem;
}

.trip-summary-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.trip-summary-note,
.trip-summary-delay {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.trip-summary-delay {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--warning);
    font-weight: 700;
}

.trip-summary-delay.is-danger {
    color: var(--danger);
}

.trip-summary-delay .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Tijdlijn */

.trip-steps-section {
    margin-top: 2rem;
}

.trip-steps-head {
    margin-bottom: 1rem;
}

.trip-steps-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.trip-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trip-leg {
    --trip-time-col: 3.4rem;
    --trip-marker-col: 1.2rem;
    --trip-col-gap: 0.7rem;
    padding: 1rem 1.15rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
}

.trip-leg.is-cancelled {
    border-left-color: var(--danger);
}

.trip-leg.is-walking {
    border-left-color: var(--line-strong);
}

.trip-leg-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.trip-leg-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.trip-leg.is-walking .trip-leg-number {
    background: var(--surface-3);
    color: var(--muted);
}

.trip-leg.is-cancelled .trip-leg-number {
    background: var(--danger);
    color: #fff;
}

.trip-leg-name {
    min-width: 0;
}

.trip-leg-name h3 {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1rem;
}

.trip-leg-direction {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.trip-leg-meta {
    margin: 0.15rem 0 0;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.trip-leg-tags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.trip-leg-duration {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.trip-leg-materials {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.trip-leg-route {
    padding-top: 0.95rem;
}

.trip-stop {
    display: grid;
    grid-template-columns: var(--trip-time-col) var(--trip-marker-col) minmax(0, 1fr);
    column-gap: var(--trip-col-gap);
    padding-bottom: 0.95rem;
}

.trip-stop:last-child {
    padding-bottom: 0;
}

.trip-stop-time {
    padding-top: 0.05rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.trip-stop-marker {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 0.35rem;
}

.trip-stop-marker::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: -1.3rem;
    width: 2px;
    background: var(--line-strong);
}

.trip-stop:last-child .trip-stop-marker::before {
    display: none;
}

.trip-stop-dot {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.trip-stop.is-arrival .trip-stop-dot {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.trip-leg.is-cancelled .trip-stop-dot {
    background: var(--danger);
    box-shadow: 0 0 0 1px var(--danger);
}

.trip-leg.is-cancelled .trip-stop.is-arrival .trip-stop-dot {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--danger);
}

.trip-stop-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.trip-stop-body strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.trip-stop-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.trip-stop-detail .track {
    min-width: 1.6rem;
    padding: 0.08rem 0.32rem;
    font-size: 0.7rem;
}

.track.is-changed {
    border-color: var(--warning);
    background: var(--warning-soft);
    color: var(--warning);
}

.journey-track-was {
    display: block;
    margin-top: 0.15rem;
    color: var(--warning);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.trip-delay {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.38rem;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.time-actual {
    display: block;
    flex-basis: 100%;
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.time-actual time {
    color: var(--text);
    font-weight: 800;
}

.trip-material {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--line);
}

.trip-material-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.trip-material-label {
    color: var(--muted-2);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.trip-material-summary {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.trip-material-units {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trip-material-unit {
    margin: 0;
    padding: 0.45rem 0.6rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.trip-material-unit.is-text-only {
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
}

.trip-material-unit.is-text-only figcaption {
    margin-top: 0;
    color: var(--muted);
}

.trip-material-photo-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.trip-material-photo {
    display: block;
    width: 100%;
    height: auto;
}

.trip-material-unit figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    font-size: 0.76rem;
}

.trip-material-unit figcaption strong {
    color: var(--text);
}

.trip-material-unit figcaption span {
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}

.trip-leg-stops {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.trip-leg-stops-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.trip-leg-stops-head h4 {
    margin: 0;
    font-size: 0.95rem;
}

.trip-leg-stops-head p {
    margin: 0.15rem 0 0;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.trip-leg-stops-count {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Tussenstops standaard ingeklapt */
.stops-disclosure {
    margin-top: 0.15rem;
}

.stops-disclosure > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.stops-disclosure > summary::-webkit-details-marker {
    display: none;
}

.stops-disclosure > summary:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

.stops-disclosure > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.stops-disclosure[open] > summary {
    margin-bottom: 0.75rem;
    border-color: var(--line-strong);
    color: var(--accent);
}

.stops-disclosure .stops-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.stops-disclosure[open] .stops-chevron {
    transform: rotate(180deg);
}

.stops-label-hide {
    display: none;
}

.stops-disclosure[open] .stops-label-show {
    display: none;
}

.stops-disclosure[open] .stops-label-hide {
    display: inline;
}

.trip-leg-stops .journey-table {
    min-width: 480px;
}

.trip-leg-stops .journey-table td:last-child {
    white-space: nowrap;
}

.trip-leg .leg-message {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.7rem 0 0;
    border-radius: var(--radius-sm);
}

.trip-leg .leg-message .icon {
    width: 16px;
    height: 16px;
    margin-top: 0.12rem;
    flex: 0 0 auto;
}

.trip-transfer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.trip-transfer.is-impossible {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.trip-transfer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--accent);
}

.trip-transfer.is-impossible .trip-transfer-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.trip-transfer-icon .icon {
    width: 16px;
    height: 16px;
}

.trip-transfer-body {
    flex: 1;
    min-width: 0;
}

.trip-transfer-body strong {
    display: block;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.35;
}

.trip-transfer-body span {
    display: block;
    margin-top: 0.08rem;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.trip-transfer.is-impossible .trip-transfer-body span {
    color: var(--danger);
}

.trip-transfer-time {
    flex: 0 0 auto;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.trip-detail .table-note {
    margin-top: 1rem;
}

.disruption-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--warning);
    background: var(--surface);
}

.disruption-card .badge {
    margin-bottom: 0.55rem;
}

.disruption-card.is-disruption {
    border-left-color: var(--danger);
}

.disruption-card h3 {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.disruption-card .meta {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.disruption-card .description {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.station-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.station-list span {
    padding: 0.22rem 0.45rem;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Stations en OV-fiets
   -------------------------------------------------------------------------- */

.overview-head {
    align-items: center;
}

.station-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.station-search input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.72rem 0.85rem 0.72rem 2.5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.station-search input[type="search"]::placeholder {
    color: var(--muted-2);
}

.station-search input[type="search"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.station-search .btn {
    min-height: 46px;
    white-space: nowrap;
}

.form-card .station-search {
    margin-bottom: 0;
}

.station-banner,
.result-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
}

.station-banner-main {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    min-width: 0;
}

.station-banner-main > div {
    min-width: 0;
}

.station-banner-icon,
.result-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border: 1px solid rgba(255, 210, 63, 0.28);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
}

.station-banner-icon .icon,
.result-banner-icon .icon {
    width: 25px;
    height: 25px;
}

.station-banner .eyebrow,
.result-banner .eyebrow {
    margin-bottom: 0.25rem;
}

.station-banner h2,
.result-banner h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.25rem);
    letter-spacing: -0.025em;
}

.result-banner h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.station-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.85rem;
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.station-banner-meta > span {
    display: inline-flex;
    align-items: center;
}

.station-banner-meta > span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 0.85rem;
    border-radius: 50%;
    background: var(--line-strong);
}

.station-banner > .btn,
.result-banner > .btn {
    flex: none;
}

.result-banner > div {
    flex: 1;
    min-width: 0;
}

.all-stations {
    margin-top: 1.5rem;
}

.all-stations .station-links {
    margin-top: 0;
    padding: 0 1.15rem 1.15rem;
}

.all-stations > summary {
    list-style-position: inside;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.popular-card {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.popular-card:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}

.popular-card strong {
    color: var(--text);
    font-size: 0.88rem;
}

.popular-card span {
    color: var(--muted-2);
    font-size: 0.7rem;
}

.ov-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ov-card {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--surface);
}

.ov-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ov-card h3 {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.ov-card p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.station-table {
    min-width: 0;
}

.station-table a {
    color: var(--text);
    font-weight: 700;
}

.station-table a:hover {
    color: var(--accent);
}

.station-table td:last-child {
    font-weight: 800;
}

.station-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.station-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
}

.station-link span {
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 600;
}

.station-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.all-locations {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

.all-locations > summary {
    padding: 0.9rem 1.15rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.all-locations > summary:hover {
    color: var(--accent);
}

.all-locations .table-wrap {
    border: 0;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Artikel
   -------------------------------------------------------------------------- */

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-pill.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.article {
    max-width: 840px;
    margin: 0 auto;
}

.article-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.75rem;
}

.article-header h1 {
    margin: 0.6rem 0;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.article-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.article-body {
    color: #d8d8de;
    font-size: 1.02rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.15rem;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.related {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Over-pagina
   -------------------------------------------------------------------------- */

.prose {
    max-width: 840px;
}

.prose h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.prose h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

.prose ul {
    margin: 0 0 1.25rem;
}

.prose ul li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.4rem;
}

.prose ul li::before {
    content: "";
    position: absolute;
    top: 0.95rem;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Over-pagina: kleine verfijning, dezelfde opbouw als de rest ---------- */

.page-over .over-prose {
    max-width: 760px;
}

.page-over .over-prose h2 {
    margin-top: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
}

.page-over .over-prose p {
    font-size: 0.98rem;
    line-height: 1.8;
}

.page-over .over-prose p:first-of-type {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-over .over-services {
    margin-top: 2.5rem;
}

.page-over .over-services .service-card {
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-over .over-services .service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 210, 63, 0.28);
    box-shadow: 0 22px 40px -34px rgba(0, 0, 0, 0.95);
}

.page-over .over-services .service-card .icon {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    padding: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 210, 63, 0.18);
    border-radius: 11px;
    background: var(--accent-soft);
}
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.source-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--line-strong);
    background: var(--surface);
}

.source-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.source-card p {
    margin: 0 0 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.source-card .text-link {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Meldingen, lege staten en hulpmiddelen
   -------------------------------------------------------------------------- */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--info);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.88rem;
}

.notice .icon {
    width: 21px;
    height: 21px;
    margin-top: 0.1rem;
    color: var(--info);
}

.notice strong {
    color: var(--text);
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 0.35rem;
}

.notice-warning {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.notice-warning .icon {
    color: var(--warning);
}

.notice-danger {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}

.notice-danger .icon {
    color: var(--danger);
}

.notice-success {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.notice-success .icon {
    color: var(--success);
}

.notice.is-inline {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.nearby-notice {
    margin-bottom: 1.25rem;
}

.nearby-list {
    display: grid;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.nearby-list a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    text-decoration: none;
}

.nearby-list a:hover,
.nearby-list a:focus-visible {
    border-color: var(--accent);
}

.nearby-kind {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nearby-kind .icon {
    width: 14px;
    height: 14px;
}

.nearby-kind.is-disruption {
    color: var(--danger);
}

.nearby-kind.is-maintenance {
    color: var(--info);
}

.nearby-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-distance {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.nearby-more {
    margin-top: 0.55rem;
}

.nearby-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.nearby-more a .icon {
    width: 14px;
    height: 14px;
}

.stale-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.stale-note .icon {
    flex: none;
    margin-top: 0.1rem;
}

.empty-state {
    padding: 2.75rem 1.5rem;
    border: 1px dashed var(--line-strong);
    background: var(--surface);
    text-align: center;
}

.empty-state .icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.empty-state p {
    max-width: 55ch;
    margin: 0 auto 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state p:last-child {
    margin-bottom: 0;
}

.stack-top {
    margin-top: 1.5rem;
}

.divider {
    height: 1px;
    margin: 2.5rem 0;
    background: var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.footer-simple {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand p {
    max-width: 44ch;
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    padding-top: 0.3rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .icon {
    width: 14px;
    height: 14px;
}

.footer-disclaimer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-disclaimer p {
    max-width: 90ch;
    margin: 0;
    color: var(--muted-2);
    font-size: 0.74rem;
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--muted);
}

.footer-disclaimer a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Eenheid in panelen
   -------------------------------------------------------------------------- */

.form-card,
.search-summary,
.trip-card,
.table-wrap,
.departure-board,
.departure-detail-card,
.departure-detail-facts,
.departure-detail-section,
.ov-card,
.source-card,
.all-locations,
.disruption-card,
.popular-card,
.station-link,
.cta-band {
    border-radius: var(--radius);
}

.source-card,
.form-card {
    border-top: 1px solid var(--line);
}

.popular-card,
.station-link {
    border-radius: var(--radius-sm);
}

.disruption-table .data-table th:first-child {
    width: 130px;
}

.disruption-table .data-table th:nth-child(3) {
    width: 220px;
}

.disruption-table .muted {
    color: var(--muted);
}

.planner-card h2,
.form-card-head h2,
.form-card-head h3,
.search-summary h2,
.panel-head h3,
.source-card h3,
.ov-card h3,
.disruption-card h3,
.empty-state h2,
.empty-state h3,
.prose h2,
.prose h3,
.article-header h1 {
    text-transform: none;
    letter-spacing: -0.015em;
}

.cta-band {
    border-color: var(--line);
    background: var(--surface);
}

/* --------------------------------------------------------------------------
   Responsief
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding-top: 3rem;
    }

    .planner-card {
        max-width: 720px;
    }

    .service-grid,
    .route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4,
    .popular-grid,
    .station-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 820px) {
    .dev-banner-inner {
        gap: 0.6rem;
        padding-block: 0.55rem;
    }

    .dev-banner-badge-text {
        display: none;
    }

    .dev-banner-badge {
        padding: 0.3rem;
        border-radius: 8px;
    }

    .dev-banner-dots {
        display: none;
    }

    .dev-banner-slide {
        font-size: 0.82rem;
    }

    .dev-banner-arrow {
        display: none;
    }

    .dev-banner-nav {
        gap: 0.3rem;
    }

    .dev-banner-count {
        min-width: 2.3rem;
        font-size: 0.66rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .logo-countdown {
        font-size: 0.62rem;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.2rem 1.1rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .split-grid,
    .grid-2,
    .grid-3,
    .disruption-grid,
    .ov-locations,
    .status-grid {
        grid-template-columns: 1fr;
    }

.view-switch {
        width: 100%;
        max-width: 460px;
    }

    .station-banner,
    .result-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .station-banner > .btn,
    .result-banner > .btn {
        align-self: flex-start;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .route-grid,
    .source-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4,
    .popular-grid,
    .station-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .disruption-table .data-table {
        min-width: 0;
    }

    .disruption-table thead {
        display: none;
    }

    .disruption-table tbody tr {
        display: grid;
        gap: 0.35rem;
        padding: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .disruption-table tbody tr:last-child {
        border-bottom: 0;
    }

    .disruption-table td {
        padding: 0;
        border: 0;
    }

    .disruption-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.1rem;
        color: var(--muted-2);
        font-size: 0.64rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .disruption-table td[data-label="Type"]::before {
        display: none;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .departure-board-head,
    .departure-row {
        grid-template-columns: 116px minmax(0, 1fr) 92px;
        gap: 0.8rem;
    }

    .departure-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(var(--container), 90vw);
    }

.logo {
        font-size: 1.35rem;
    }

    .logo-mark {
        width: 1.9rem;
        height: 1.9rem;
    }

    .main-nav {
        gap: 0.2rem 0.85rem;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .planner-card,
    .form-card {
        padding: 1.15rem;
    }

    .form-grid,
    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .service-grid,
    .route-grid,
    .source-grid,
    .grid-4,
    .popular-grid,
    .station-links {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-head {
        align-items: flex-start;
    }

    .station-banner,
    .result-banner {
        padding: 1rem;
    }

    .station-banner-main {
        align-items: flex-start;
    }

    .station-banner-icon,
    .result-banner-icon {
        width: 42px;
        height: 42px;
    }

    .station-banner-icon .icon,
    .result-banner-icon .icon {
        width: 21px;
        height: 21px;
    }

    .station-banner-meta {
        gap: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    .station-banner-meta > span + span::before {
        display: none;
    }

    .station-search .btn {
        width: 100%;
    }

    .section-head h2 {
        font-size: 1.45rem;
    }

    .page-head {
        padding: 2.25rem 0 1.5rem;
    }

    .page-head h1 {
        font-size: 2rem;
    }

    .search-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .trip-card {
        padding: 1rem;
    }

    .trip-summary {
        padding: 1rem;
    }

    .trip-summary-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.85rem 1rem;
    }

    .trip-summary-point:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .trip-summary-point.is-arrival {
        grid-column: 2;
        grid-row: 1;
    }

    .trip-summary-between {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        min-width: 0;
    }

    .trip-summary-line {
        width: 3rem;
        flex: 0 0 auto;
    }

    .trip-summary-time {
        font-size: 2rem;
    }

    .trip-summary-place {
        font-size: 0.82rem;
    }

    .trip-steps-section {
        margin-top: 1.6rem;
    }

    .trip-leg {
        --trip-time-col: 2.9rem;
        --trip-col-gap: 0.55rem;
        padding: 0.9rem;
    }

    .trip-leg-head {
        gap: 0.6rem;
    }

    .trip-leg-number {
        width: 1.55rem;
        height: 1.55rem;
        font-size: 0.72rem;
    }

    .trip-stop-time {
        font-size: 0.92rem;
    }

    .trip-stop-body strong {
        font-size: 0.9rem;
    }

    .trip-material-photo {
        width: auto;
        height: 32px;
        max-width: none;
    }

    .trip-top {
        gap: 0.9rem;
    }

    .trip-time {
        font-size: 1.55rem;
    }

    .trip-facts {
        font-size: 0.78rem;
    }

    .trip-price-note {
        flex-basis: 100%;
    }

    .trip-fares-heading small {
        flex-basis: 100%;
        margin-left: 0;
    }

    .leg {
        grid-template-columns: 3.5rem 1.15rem minmax(0, 1fr);
        gap: 0.55rem;
    }

    .stop-list {
        grid-template-columns: 1fr;
    }

    .leg-time {
        font-size: 0.84rem;
    }

    .transfer-row {
        margin-left: 4.25rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .cta-band {
        padding: 1.35rem;
        margin: 2rem 0;
    }

    .departure-board-head {
        display: none;
    }

    .departure-row {
        grid-template-columns: 82px minmax(0, 1fr) auto;
        grid-template-areas:
            "time . track"
            "main main main";
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.85rem 0.9rem;
    }

    .departure-main {
        margin-top: 0.1rem;
    }

    .departure-material-units {
        flex-direction: column;
        align-items: stretch;
    }

    .departure-material-unit {
        flex: 0 0 auto;
    }

    .departure-time-value {
        font-size: 1.45rem;
    }

    .departure-destination {
        font-size: 0.94rem;
    }

    .departure-track-label {
        display: block;
    }

    .nearby-list a {
        flex-wrap: wrap;
    }

    .nearby-title {
        white-space: normal;
        overflow: visible;
    }

    .journey-table {
        min-width: 0;
    }

    .journey-table thead {
        display: none;
    }

    .journey-table,
    .journey-table tbody,
    .journey-table tr,
    .journey-table td {
        display: block;
    }

    .journey-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem 0.6rem;
        padding: 0.7rem 0.8rem;
        border-bottom: 1px solid var(--line);
    }

    .journey-table tbody tr:last-child {
        border-bottom: 0;
    }

    .journey-table td {
        padding: 0;
        border: 0;
    }

    .journey-table td:first-child {
        grid-column: 1 / -1;
    }

    .journey-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.08rem;
        color: var(--muted-2);
        font-size: 0.56rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .journey-table td:last-child {
        text-align: left;
    }

    .departure-detail-card,
    .departure-detail-section {
        padding: 1.1rem;
    }

    .departure-detail-times {
        gap: 1.1rem;
    }

    .departure-detail-time strong {
        font-size: 1.45rem;
    }

    .status-card {
        padding: 1rem;
    }

    .more-status .status-grid {
        padding: 0.75rem;
    }

    .detail-card {
        padding: 1.1rem;
    }

    .status-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-body {
        font-size: 0.98rem;
    }
}

@media (max-width: 380px) {
    .trip-time {
        font-size: 1.4rem;
    }

    .trip-times {
        gap: 0.6rem;
    }

    .leg {
        grid-template-columns: 3.2rem 1rem minmax(0, 1fr);
    }

    .trip-summary-time {
        font-size: 1.8rem;
    }

    .trip-leg {
        --trip-time-col: 2.55rem;
        --trip-marker-col: 1rem;
        --trip-col-gap: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }
}

@media print {
    .dev-banner,
    .site-header,
    .site-footer,
    .btn {
        display: none !important;
    }

    .card,
    .panel,
    .trip-card,

    .page-head,
    .section {
        padding: 0 0 1rem;
    }
}

/* --------------------------------------------------------------------------
   Voorzieningen per station
   -------------------------------------------------------------------------- */

.facility-banner {
    margin-top: 0.25rem;
}

.facility-search {
    margin: 1.5rem 0 0;
}

.facility-search input[type="search"] {
    flex: 1 1 260px;
    width: auto;
    background: var(--surface);
}

.facility-search-result {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.facility-search-result .icon {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--accent);
}

.facility-search-result strong {
    color: var(--text);
}

.facility-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
}

.facility-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.facility-nav-link .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.facility-nav-link strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.66rem;
}

.facility-nav-link:hover {
    border-color: var(--line-strong);
    border-left-color: var(--accent-2);
    background: var(--surface-2);
    color: var(--accent);
}

.facility-nav-link:hover strong {
    background: var(--accent-soft);
    color: var(--accent);
}

.facility-category {
    margin-top: 2.5rem;
}

.facility-category-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.facility-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 1px solid rgba(255, 210, 63, 0.28);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
}

.facility-category-icon .icon {
    width: 22px;
    height: 22px;
}

.facility-category-head > div {
    flex: 1;
    min-width: 0;
}

.facility-category-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.facility-category-head p {
    max-width: 70ch;
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.facility-category-head > .badge {
    flex: none;
    margin-top: 0.25rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.65rem;
}

.facility-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 16rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--surface);
}

.facility-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.facility-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--accent);
}

.facility-card-icon .icon {
    width: 19px;
    height: 19px;
}

.facility-card-heading {
    flex: 1;
    min-width: 0;
}

.facility-card h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
}

.facility-card-meta {
    margin: 0.2rem 0 0;
    color: var(--muted-2);
    font-size: 0.74rem;
}

.facility-card-head > .badge {
    flex: none;
    margin-top: 0.2rem;
}

.facility-locations {
    margin-top: 0.85rem;
    border-top: 1px dashed var(--line);
}

.facility-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(39, 39, 47, 0.7);
}

.facility-location:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.facility-location-name {
    flex: 1 1 60%;
    min-width: 0;
    color: var(--text);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.facility-location-time {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
}

.facility-location-hours {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1 0 100%;
    color: var(--muted-2);
    font-size: 0.68rem;
    line-height: 1.4;
}

.facility-location-hours > span {
    min-width: 0;
}

.facility-location-hours .icon {
    width: 12px;
    height: 12px;
    flex: none;
}

.facility-location .badge {
    flex: none;
    padding: 0.18rem 0.4rem;
    font-size: 0.58rem;
}

.facility-more {
    margin-top: 0.55rem;
}

.facility-more > summary {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.facility-more > summary:hover {
    color: var(--accent-2);
}

.facility-more .facility-locations {
    margin-top: 0.55rem;
}

@media (max-width: 860px) {
    .facility-grid {
        grid-template-columns: 1fr;
    }

    .facility-category-head {
        flex-wrap: wrap;
    }

    .facility-category-head > .badge {
        margin-left: calc(42px + 0.9rem);
    }
}

@media (max-width: 620px) {
    .facility-card-head {
        flex-wrap: wrap;
    }

    .facility-card-head > .badge {
        margin-left: calc(38px + 0.75rem);
    }
}

/* --------------------------------------------------------------------------
   Kleinere schermen: alles binnen de breedte, geen zijwaartse paginascroll
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    /* Tabellen mogen op smalle schermen meekrimpen in plaats van
       binnen een eigen horizontale scroller te blijven hangen. */
    .data-table,
    .journey-table {
        min-width: 0;
    }

    .data-table th {
        white-space: normal;
    }

    .data-table th,
    .data-table td {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 620px) {
    /* 16px voorkomt automatisch inzoomen op iOS bij het invullen van een veld. */
    input,
    select,
    textarea,
    .field input,
    .field select,
    .field textarea,
    .station-search input[type="search"] {
        font-size: 1rem;
    }

    .main-nav {
        gap: 0.15rem 0.9rem;
    }

    .main-nav a {
        padding-block: 0.55rem;
    }

    .view-switch-option {
        gap: 0.4rem;
        padding: 0.55rem 0.6rem;
        white-space: normal;
    }

    .view-switch-option strong {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .trip-leg-stops .journey-table {
        min-width: 0;
    }

    .trip-material-photo-wrap {
        overflow: hidden;
    }

    .trip-material-photo {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .view-switch {
        grid-template-columns: 1fr;
    }

    .view-switch-option {
        padding: 0.5rem 0.55rem;
        font-size: 0.78rem;
    }

    .view-switch-option .icon {
        width: 16px;
        height: 16px;
    }

    .view-switch-option strong {
        min-width: 1.4rem;
        padding: 0.08rem 0.32rem;
        font-size: 0.66rem;
    }
}

/* ==========================================================================
   Huisstijl 2.0 — sitebrede toepassing
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ontwerpvariabelen en pagina-achtergrond
   -------------------------------------------------------------------------- */

.theme-site {
    --radius: 18px;
    --radius-sm: 12px;
    --theme-shadow: 0 24px 60px rgba(0, 0, 0, .24);
    --theme-shadow-soft: 0 18px 44px -34px rgba(0, 0, 0, .9);
}

.theme-site .main-content {
    background:
        radial-gradient(circle at 3% 0%, rgba(255, 210, 63, .045), transparent 34rem),
        radial-gradient(circle at 100% 22%, rgba(125, 211, 252, .03), transparent 30rem);
}

/* --------------------------------------------------------------------------
   Pagina-koppen
   -------------------------------------------------------------------------- */

.theme-site .page-head {
    position: relative;
    overflow: hidden;
    padding: clamp(2.7rem, 5.6vw, 4.2rem) 0 clamp(2rem, 3.6vw, 2.9rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% -10%, rgba(255, 210, 63, .13), transparent 30rem),
        radial-gradient(circle at 100% 110%, rgba(125, 211, 252, .055), transparent 24rem);
}

.theme-site .page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.theme-site .page-head::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -70px;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    border: 1px dashed rgba(255, 210, 63, .13);
    border-radius: 50%;
    pointer-events: none;
}

.theme-site .page-head > .container {
    position: relative;
    z-index: 1;
}

.theme-site .page-head h1 {
    max-width: 920px;
    margin-bottom: .7rem;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.theme-site .page-head h1 span {
    color: var(--accent);
}

.theme-site .page-head p {
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.theme-site .detail-head .detail-route {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.08;
}

.theme-site .eyebrow {
    gap: .45rem;
    padding: .36rem .68rem;
    border: 1px solid rgba(255, 210, 63, .24);
    border-radius: 999px;
    background: rgba(255, 210, 63, .075);
    color: var(--accent);
    font-size: .62rem;
    letter-spacing: .15em;
    line-height: 1;
}

.theme-site .eyebrow .icon {
    width: 14px;
    height: 14px;
}

.theme-site .section-head {
    margin-bottom: 1.9rem;
}

.theme-site .section-head h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    letter-spacing: -0.03em;
}

.theme-site .section-intro {
    font-size: 1rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Knoppen, badges en pillen
   -------------------------------------------------------------------------- */

.theme-site .btn {
    min-height: 50px;
    padding: .85rem 1.4rem;
    border-radius: 14px;
    font-size: .74rem;
    letter-spacing: .07em;
    box-shadow: 0 10px 26px rgba(255, 210, 63, .16);
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.theme-site .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 210, 63, .2);
}

.theme-site .btn-secondary {
    box-shadow: none;
}

.theme-site .btn-secondary:hover {
    transform: translateY(-1px);
}

.theme-site .btn-small {
    min-height: 38px;
    padding: .5rem .9rem;
    border-radius: 11px;
}

.theme-site .btn .icon {
    width: 16px;
    height: 16px;
}

.theme-site .badge {
    padding: .32rem .62rem;
    border-radius: 999px;
    font-size: .62rem;
    letter-spacing: .08em;
    line-height: 1.3;
}

.theme-site .badge .icon {
    width: 13px;
    height: 13px;
}

.theme-site .pill {
    padding: .42rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-size: .74rem;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.theme-site .pill:hover {
    background: var(--accent-soft);
}

.theme-site .filter-pill {
    padding: .5rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    font-size: .7rem;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.theme-site .filter-pill.is-active {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 8px 20px rgba(255, 210, 63, .16);
}

/* --------------------------------------------------------------------------
   Formulieren en zoekvelden
   -------------------------------------------------------------------------- */

.theme-site .form-card {
    position: relative;
    padding: clamp(1.35rem, 2.4vw, 1.9rem);
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .09), transparent 18rem),
        var(--surface);
    box-shadow: var(--theme-shadow);
}

.theme-site .form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1.35rem, 2.4vw, 1.9rem);
    width: 64px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    pointer-events: none;
}

.theme-site .form-card-head {
    margin-bottom: 1.4rem;
}

.theme-site .form-card-head h2,
.theme-site .form-card-head h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    letter-spacing: -0.02em;
    text-transform: none;
}

.theme-site .form-card-head p {
    max-width: 70ch;
    font-size: .88rem;
    line-height: 1.6;
}

.theme-site .field label {
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .09em;
}

.theme-site .field input,
.theme-site .field select {
    min-height: 56px;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: .98rem;
    font-weight: 600;
}

.theme-site .field input:hover,
.theme-site .field select:hover {
    border-color: #4b4b59;
}

.theme-site .field input:focus,
.theme-site .field select:focus {
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(255, 210, 63, .1);
}

.theme-site .field-hint {
    font-size: .76rem;
    line-height: 1.5;
}

.theme-site .advanced-options {
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .advanced-options > summary {
    padding: .85rem 1.05rem;
    border-radius: 16px;
}

.theme-site .advanced-options[open] > summary {
    border-radius: 16px 16px 0 0;
}

.theme-site .checkbox input {
    width: 20px;
    height: 20px;
}

.theme-site .station-search {
    gap: .65rem;
}

.theme-site .station-search input[type="search"],
.theme-site .facility-search input[type="search"] {
    min-height: 56px;
    padding: .85rem 1.05rem;
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: .98rem;
}

.theme-site .station-search input[type="search"]:focus,
.theme-site .facility-search input[type="search"]:focus {
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(255, 210, 63, .1);
}

.theme-site .station-search .btn,
.theme-site .facility-search .btn {
    min-height: 56px;
    border-radius: 14px;
}

.theme-site .autocomplete-panel {
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .42);
}

.theme-site .form-actions {
    gap: .75rem;
}

/* --------------------------------------------------------------------------
   Home: hero, planner en diensten
   -------------------------------------------------------------------------- */

.theme-site .hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5.4rem) 0 clamp(2.6rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 8% -10%, rgba(255, 210, 63, .14), transparent 32rem),
        radial-gradient(circle at 100% 100%, rgba(125, 211, 252, .06), transparent 26rem);
}

.theme-site .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.theme-site .hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -90px;
    width: 320px;
    height: 320px;
    transform: translateY(-50%);
    border: 1px dashed rgba(255, 210, 63, .12);
    border-radius: 50%;
    pointer-events: none;
}

.theme-site .hero-grid {
    z-index: 1;
}

.theme-site .hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.theme-site .hero-lead {
    max-width: 48ch;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.65;
}

.theme-site .planner-card {
    position: relative;
    padding: clamp(1.4rem, 2.6vw, 2rem);
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .1), transparent 18rem),
        var(--surface);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.theme-site .planner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(1.4rem, 2.6vw, 2rem);
    width: 64px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    pointer-events: none;
}

.theme-site .planner-card h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    letter-spacing: -0.02em;
}

.theme-site .planner-sub {
    font-size: .88rem;
    line-height: 1.55;
}

.theme-site .service-card {
    position: relative;
    padding: 1.4rem;
    border-radius: 20px;
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.theme-site .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 63, .28);
    background: var(--surface-2);
    box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .95);
}

.theme-site .service-card .icon {
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 210, 63, .2);
    border-radius: 13px;
    background: var(--accent-soft);
}

.theme-site .service-card h3 {
    font-size: 1.04rem;
    letter-spacing: -0.01em;
}

.theme-site .service-card p {
    line-height: 1.55;
}

.theme-site .card,
.theme-site .panel,
.theme-site .route-card {
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   CTA en statuspanelen
   -------------------------------------------------------------------------- */

.theme-site .cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 210, 63, .24);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .13), transparent 20rem),
        linear-gradient(135deg, rgba(255, 210, 63, .08), rgba(255, 210, 63, .015)),
        var(--surface);
    box-shadow: var(--theme-shadow);
}

.theme-site .cta-band::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -70px;
    width: 220px;
    height: 220px;
    transform: translateY(-50%);
    border: 1px dashed rgba(255, 210, 63, .18);
    border-radius: 50%;
    pointer-events: none;
}

.theme-site .cta-band h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    letter-spacing: -0.03em;
    text-transform: none;
}

.theme-site .view-switch {
    gap: .45rem;
    padding: .4rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .view-switch-option {
    border-radius: 13px;
    padding: .7rem .8rem;
}

.theme-site .view-help {
    padding: .9rem 1.1rem;
    border-radius: 14px;
    line-height: 1.55;
}

.theme-site .status-card {
    padding: 1.35rem 1.4rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 4px 0 0 var(--danger), var(--theme-shadow-soft);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-site .status-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 210, 63, .2);
    background: var(--surface-2);
    box-shadow: inset 4px 0 0 var(--danger), 0 24px 50px -34px rgba(0, 0, 0, .95);
}

.theme-site .status-card.is-maintenance {
    box-shadow: inset 4px 0 0 var(--warning), var(--theme-shadow-soft);
}

.theme-site .status-card.is-maintenance:hover {
    box-shadow: inset 4px 0 0 var(--warning), 0 24px 50px -34px rgba(0, 0, 0, .95);
}

.theme-site .status-card h3 {
    font-size: 1.08rem;
}

.theme-site .status-lead {
    font-size: .9rem;
    line-height: 1.6;
}

.theme-site .more-status,
.theme-site .all-locations {
    border-radius: 18px;
    background: var(--surface);
}

/* --------------------------------------------------------------------------
   Reisplanner: samenvatting, filters en reiskaarten
   -------------------------------------------------------------------------- */

.theme-site .search-summary {
    padding: 1.25rem 1.4rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .08), transparent 16rem),
        var(--surface-2);
    box-shadow: inset 4px 0 0 var(--accent), var(--theme-shadow-soft);
}

.theme-site .search-summary h2 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-transform: none;
}

.theme-site .trip-filters {
    margin-bottom: 1.5rem;
}

.theme-site .trip-card {
    padding: 1.4rem 1.5rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--accent), var(--theme-shadow-soft);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-site .trip-card:hover,
.theme-site .trip-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 210, 63, .26);
    background: var(--surface-2);
    box-shadow: inset 3px 0 0 var(--accent), 0 26px 55px -36px rgba(0, 0, 0, .95);
}

.theme-site .trip-time {
    font-size: 2rem;
}

.theme-site .trip-facts {
    gap: .45rem 1rem;
}

.theme-site .trip-facts strong {
    font-weight: 800;
}

.theme-site .trip-card-foot {
    border-top-color: var(--line);
}

/* --------------------------------------------------------------------------
   Vertrektijden en vertrektijddetail
   -------------------------------------------------------------------------- */

.theme-site .departure-board {
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--theme-shadow);
}

.theme-site .departure-board-head {
    padding: .8rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
        var(--surface-2);
    font-size: .63rem;
}

.theme-site .departure-row {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.theme-site .departure-item:last-child .departure-row {
    border-bottom: 0;
}

.theme-site .departure-item:hover .departure-row,
.theme-site .departure-item:focus-within .departure-row {
    background: rgba(255, 210, 63, .035);
}

.theme-site .departure-time-value {
    font-size: 1.8rem;
}

.theme-site .departure-type {
    border-radius: 6px;
}

.theme-site .departure-track-change {
    border-radius: 999px;
}

.theme-site .departure-detail-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: inset 0 3px 0 var(--accent), var(--theme-shadow-soft);
}

.theme-site .departure-detail-card-head h2 {
    letter-spacing: -0.02em;
}

.theme-site .departure-detail-times {
    gap: 1.5rem;
    margin-top: 1.15rem;
}

.theme-site .departure-detail-facts,
.theme-site .departure-detail-section {
    border-radius: 20px;
    background: var(--surface);
}

.theme-site .departure-detail-section {
    padding: 1.4rem 1.5rem;
}

.theme-site .departure-track-change {
    border-radius: 999px;
}

.theme-site .journey-table-wrap {
    border-radius: 14px;
    background: var(--bg-soft);
}

.theme-site .table-wrap {
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .data-table th {
    font-size: .64rem;
    letter-spacing: .1em;
}

.theme-site .data-table td {
    padding: .9rem 1rem;
}

.theme-site .data-table tbody tr:hover {
    background: rgba(255, 210, 63, .025);
}

.theme-site .track {
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Detailpagina's, reissamenvatting en tijdlijn
   -------------------------------------------------------------------------- */

.theme-site .detail-body {
    padding-top: clamp(1.8rem, 3.4vw, 2.6rem);
}

.theme-site .back-link {
    padding: .42rem .8rem .42rem .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.theme-site .back-link:hover {
    border-color: rgba(255, 210, 63, .3);
    background: var(--accent-soft);
}

.theme-site .detail-kicker {
    gap: .45rem;
    margin-bottom: .8rem;
}

.theme-site .detail-tag {
    padding: .34rem .68rem;
    border: 1px solid rgba(255, 107, 107, .28);
    border-radius: 999px;
    background: var(--danger-soft);
    font-size: .64rem;
}

.theme-site .detail-tag.is-maintenance {
    border-color: rgba(255, 176, 32, .3);
    background: var(--warning-soft);
}

.theme-site .detail-tag.is-trip {
    border-color: rgba(255, 210, 63, .28);
    background: var(--accent-soft);
}

.theme-site .detail-period {
    font-size: .88rem;
}

.theme-site .detail-layout {
    gap: 1.25rem;
}

.theme-site .detail-card {
    padding: 1.5rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .045), transparent 18rem),
        var(--surface);
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .detail-card h2 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.theme-site .detail-lead {
    line-height: 1.65;
}

.theme-site .detail-facts {
    gap: .6rem;
}

.theme-site .detail-facts > div {
    padding: .75rem .85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .detail-facts > div:last-child {
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.theme-site .detail-facts dd {
    font-size: .9rem;
}

.theme-site .trip-summary {
    padding: clamp(1.35rem, 2.6vw, 1.8rem);
    border-left: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .09), transparent 20rem),
        var(--surface);
    box-shadow: inset 3px 0 0 var(--accent), var(--theme-shadow-soft);
}

.theme-site .trip-summary-title {
    font-size: .66rem;
}

.theme-site .trip-summary-time {
    font-size: clamp(2.1rem, 4.4vw, 2.6rem);
}

.theme-site .trip-summary-foot {
    border-top-color: var(--line);
}

.theme-site .trip-fares {
    border-color: var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .trip-fare.is-first {
    box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .08), var(--theme-shadow-soft);
}

.theme-site .trip-timeline {
    gap: .9rem;
}

.theme-site .trip-leg {
    padding: 1.2rem 1.35rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--accent), var(--theme-shadow-soft);
}

.theme-site .trip-leg.is-cancelled {
    box-shadow: inset 3px 0 0 var(--danger), var(--theme-shadow-soft);
}

.theme-site .trip-leg.is-walking {
    box-shadow: inset 3px 0 0 var(--line-strong), var(--theme-shadow-soft);
}

.theme-site .trip-leg-stops {
    border-top-color: var(--line);
}

.theme-site .stops-disclosure > summary {
    border-radius: 999px;
    padding: .55rem .9rem;
}

.theme-site .trip-transfer {
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .trip-material-unit {
    border-radius: 14px;
}

.theme-site .trip-material-unit figcaption {
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Stationsbanner, OV-fiets en voorzieningen
   -------------------------------------------------------------------------- */

.theme-site .station-banner,
.theme-site .result-banner {
    padding: 1.4rem 1.5rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .08), transparent 18rem),
        linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .station-banner-icon,
.theme-site .result-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.theme-site .station-banner h2,
.theme-site .result-banner h2 {
    letter-spacing: -0.03em;
}

.theme-site .station-banner-meta {
    font-size: .85rem;
}

.theme-site .ov-card {
    padding: 1.35rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--accent), var(--theme-shadow-soft);
}

.theme-site .ov-card h3 {
    font-size: 1rem;
    letter-spacing: .01em;
}

.theme-site .popular-card,
.theme-site .station-link {
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .facility-nav {
    gap: .55rem;
}

.theme-site .facility-nav-link {
    padding: .62rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.theme-site .facility-nav-link:hover {
    border-color: rgba(255, 210, 63, .35);
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-site .facility-category {
    margin-top: 2.75rem;
}

.theme-site .facility-category-head {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
}

.theme-site .facility-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.theme-site .facility-grid {
    gap: 1rem;
}

.theme-site .facility-card {
    padding: 1.25rem;
    border-left: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--accent), var(--theme-shadow-soft);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.theme-site .facility-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 210, 63, .2);
    background: var(--surface-2);
    box-shadow: inset 3px 0 0 var(--accent), 0 24px 50px -34px rgba(0, 0, 0, .95);
}

.theme-site .facility-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.theme-site .facility-card h3 {
    font-size: 1.02rem;
}

.theme-site .facility-locations {
    border-top-color: var(--line);
}

/* --------------------------------------------------------------------------
   Prose, over-pagina en bronnen
   -------------------------------------------------------------------------- */

.theme-site .prose h2 {
    letter-spacing: -0.02em;
}

/* De Over-pagina heeft eigen kaartregels met een hogere specificiteit;
   deze override houdt de radius en icoonchip gelijk aan de rest van de site.
   Let op: page-over staat op hetzelfde element als theme-site. */
.theme-site.page-over .over-services .service-card {
    border-radius: 20px;
}

.theme-site.page-over .over-services .service-card .icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 13px;
    background: var(--accent-soft);
}

.theme-site .source-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .source-card h3 {
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* --------------------------------------------------------------------------
   Meldingen, lege staten en hulpmiddelen
   -------------------------------------------------------------------------- */

.theme-site .notice {
    padding: 1rem 1.15rem;
    border-left-width: 3px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.55;
}

.theme-site .notice-warning {
    background: var(--warning-soft);
}

.theme-site .notice-danger {
    background: var(--danger-soft);
}

.theme-site .notice-success {
    background: var(--success-soft);
}

.theme-site .empty-state {
    padding: clamp(2.6rem, 5vw, 3.8rem) 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 210, 63, .09), transparent 20rem),
        var(--surface);
    box-shadow: var(--theme-shadow);
}

.theme-site .empty-state .icon {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 1px solid rgba(255, 210, 63, .25);
    border-radius: 16px;
    background: rgba(255, 210, 63, .08);
}

.theme-site .empty-state h2,
.theme-site .empty-state h3 {
    margin-top: .35rem;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    letter-spacing: -0.02em;
    text-transform: none;
}

.theme-site .empty-state p {
    line-height: 1.6;
}

.theme-site .divider {
    background: var(--line);
}

/* --------------------------------------------------------------------------
   Responsieve verfijning
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .theme-site .page-head::after,
    .theme-site .hero::after,
    .theme-site .cta-band::before {
        display: none;
    }

    .theme-site .detail-layout {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .theme-site .page-head {
        padding: 2.2rem 0 1.8rem;
    }

    .theme-site .page-head h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .theme-site .form-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .theme-site .form-card::before {
        left: 1.25rem;
    }

    .theme-site .planner-card {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .theme-site .planner-card::before {
        left: 1.35rem;
    }

    .theme-site .btn {
        min-height: 48px;
    }

    .theme-site .field input,
    .theme-site .field select {
        min-height: 52px;
    }

    .theme-site .station-search input[type="search"],
    .theme-site .facility-search input[type="search"],
    .theme-site .station-search .btn,
    .theme-site .facility-search .btn {
        min-height: 52px;
    }

    .theme-site .search-summary {
        padding: 1.15rem 1.2rem;
    }

    .theme-site .trip-card {
        padding: 1.15rem 1.2rem;
        border-radius: 16px;
    }

    .theme-site .trip-leg,
    .theme-site .trip-summary,
    .theme-site .detail-card,
    .theme-site .departure-board,
    .theme-site .departure-detail-card,
    .theme-site .departure-detail-facts,
    .theme-site .departure-detail-section,
    .theme-site .station-banner,
    .theme-site .result-banner,
    .theme-site .empty-state,
    .theme-site .cta-band,
    .theme-site .ov-card,
    .theme-site .facility-card {
        border-radius: 18px;
    }

    .theme-site .status-card {
        padding: 1.2rem 1.25rem;
        border-radius: 16px;
    }

.theme-site .facility-category {
        margin-top: 2.25rem;
    }

    .theme-site .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-site .station-banner,
    .theme-site .result-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-site .detail-tag {
        font-size: .6rem;
    }
}

@media (max-width: 420px) {
    .theme-site .eyebrow {
        padding: .32rem .58rem;
        font-size: .58rem;
    }

    .theme-site .badge {
        font-size: .58rem;
    }
}

/* ==========================================================================
   Treinradar — kaart en popup in reisplannerstijl
   ========================================================================== */

.theme-site .tr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.theme-site .tr-map-wrap {
    position: relative;
    min-width: 0;
}

.theme-site .tr-map {
    position: relative;
    z-index: 0;
    height: 78vh;
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--theme-shadow);
}

.theme-site .tr-panel {
    margin-bottom: 0;
}

.theme-site .tr-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    max-width: calc(100% - 110px);
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    box-shadow: var(--theme-shadow-soft);
    color: var(--text);
    font-size: .82rem;
}

.theme-site .tr-status #tr-updated {
    color: var(--muted);
    font-size: .75rem;
}

.theme-site .tr-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
}

.theme-site .tr-btn {
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.theme-site .tr-btn:hover:not(:disabled) {
    border-color: rgba(255, 210, 63, .4);
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-site .tr-btn:disabled {
    opacity: .5;
    cursor: default;
}

.theme-site .tr-loading {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(11, 11, 13, .7);
    color: #fff;
    font-weight: 700;
}

.theme-site .tr-loading.is-hidden {
    display: none;
}

.theme-site .tr-loading-dot {
    width: 10px;
    height: 10px;
    margin-right: .55rem;
    border-radius: 50%;
    background: var(--accent);
    animation: tr-pulse 1s infinite;
}

@keyframes tr-pulse {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

.theme-site .tr-search {
    display: grid;
    gap: .55rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.theme-site .tr-search-label {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-site .tr-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}

.theme-site .tr-search-row input {
    min-width: 0;
    padding: .62rem .72rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
}

.theme-site .tr-search-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.theme-site .tr-search-btn {
    white-space: nowrap;
}

.theme-site .tr-search-status {
    min-height: 1.1rem;
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.theme-site .tr-filter-head {
    margin-top: .25rem;
}

.theme-site .tr-legend {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.theme-site .tr-legend li {
    margin: 0;
}

.theme-site .tr-filter-label {
    display: grid;
    grid-template-columns: 18px 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-size: .82rem;
    cursor: pointer;
}

.theme-site .tr-filter-label input {
    accent-color: var(--accent);
}

.theme-site .tr-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.theme-site .tr-legend-count {
    color: var(--muted);
    font-size: .78rem;
}

.theme-site .tr-legend-empty {
    color: var(--muted);
    font-style: italic;
}

/* Leaflet-overrides: .theme-site geeft hogere specificiteit dan de Leaflet-CSS,
   die later in de body wordt geladen. */
.theme-site .leaflet-container {
    z-index: 0 !important;
    background: var(--bg-soft);
    color: var(--text);
    font-family: inherit;
}

.theme-site .leaflet-container a {
    color: var(--accent);
}

.theme-site .leaflet-control-container .leaflet-bar {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-soft);
}

.theme-site .leaflet-bar a,
.theme-site .leaflet-bar a:hover {
    border-bottom-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.theme-site .leaflet-bar a:hover {
    background: var(--surface-2);
    color: var(--accent);
}

.theme-site .leaflet-control-attribution {
    padding: .1rem .4rem;
    background: rgba(20, 20, 24, .86) !important;
    color: var(--muted);
    font-size: .65rem;
}

/* Popup */
.theme-site .leaflet-popup-content-wrapper {
    position: relative;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 210, 63, .09), transparent 18rem),
        var(--surface);
    box-shadow: var(--theme-shadow);
    color: var(--text);
    overflow: hidden;
}

.theme-site .leaflet-popup-content-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.4rem;
    z-index: 2;
    width: 64px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
    pointer-events: none;
}

.theme-site .leaflet-popup-tip {
    background: var(--surface);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}

.theme-site .leaflet-popup-content {
    margin: 0;
    padding: 1.4rem 1.4rem 1.2rem;
    line-height: 1.5;
}

.theme-site .leaflet-popup-close-button {
    top: .85rem !important;
    right: 1rem !important;
    width: 22px !important;
    height: 22px !important;
    color: var(--muted) !important;
    font-size: 1.2rem !important;
    line-height: 20px !important;
}

.theme-site .leaflet-popup-close-button:hover {
    color: var(--accent) !important;
}

.theme-site .tr-popup {
    min-width: 0;
}

.theme-site .tr-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding-right: 1.4rem;
}

.theme-site .tr-popup-kicker {
    display: inline-flex;
    align-items: center;
    padding: .3rem .62rem;
    border: 1px solid rgba(255, 210, 63, .24);
    border-radius: 999px;
    background: rgba(255, 210, 63, .075);
    color: var(--accent);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
}

.theme-site .tr-popup-live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--success);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-site .tr-popup-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px var(--success-soft);
}

.theme-site .tr-popup-title {
    margin: .7rem 0 .6rem;
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.theme-site .tr-popup-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 .6rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(255, 210, 63, .28);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
}

.theme-site .tr-popup-origin {
    min-width: 0;
    color: var(--muted);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.theme-site .tr-popup-arrow {
    flex: none;
    color: var(--accent);
    font-weight: 900;
    line-height: 1;
}

.theme-site .tr-popup-destination {
    min-width: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.theme-site .tr-popup-route.is-loading,
.theme-site .tr-popup-route.is-error {
    border-color: var(--line);
    background: rgba(255, 255, 255, .02);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
}

.theme-site .tr-popup-spinner {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    animation: tr-pulse 1s infinite;
}

.theme-site .tr-popup-sub {
    margin: -.1rem 0 .8rem;
    color: var(--muted);
    font-size: .76rem;
}

.theme-site .tr-popup-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 0;
}

.theme-site .tr-popup-facts div {
    min-width: 0;
    padding: .6rem .7rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.theme-site .tr-popup-facts dt {
    margin-bottom: .15rem;
    color: var(--muted-2);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-site .tr-popup-facts dd {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-site .tr-popup-media {
    display: flex;
    gap: .5rem;
    margin-top: .7rem;
}

.theme-site .tr-popup-media:empty {
    display: none;
}

.theme-site .tr-popup-img {
    flex: 1;
    width: 0;
    height: 62px;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    object-fit: contain;
}

@media (max-width: 900px) {
    .theme-site .tr-layout {
        grid-template-columns: 1fr;
    }

    .theme-site .tr-map {
        height: 62vh;
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .theme-site .leaflet-popup-content-wrapper {
        width: min(240px, calc(100vw - 32px)) !important;
        max-width: min(240px, calc(100vw - 32px)) !important;
        border-radius: 14px;
    }

    .theme-site .leaflet-popup-content {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: .6rem .6rem .5rem;
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .theme-site .leaflet-popup-close-button {
        top: .65rem !important;
        right: .75rem !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 1.35rem !important;
        line-height: 28px !important;
    }

    .theme-site .tr-popup-head {
        padding-right: 2rem;
    }

    .theme-site .tr-popup-title {
        font-size: 1.05rem;
    }

    .theme-site .tr-popup-route {
        padding: .55rem .65rem;
        font-size: .84rem;
    }

    .theme-site .tr-popup-facts {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .theme-site .tr-popup-facts div {
        padding: .5rem .6rem;
    }

    .theme-site .tr-popup-img {
        height: 44px;
    }

    .theme-site .tr-popup-title {
        font-size: .98rem;
    }

    .theme-site .tr-popup-facts div {
        padding: .4rem .5rem;
    }
}


