/* ==========================================================================
   MOOV ENGINE — Design System v2
   Based on l-itineraire.paris (white header, gradient hero, clean cards)
   Colors adapt per-city via CSS variables in layout.php
   ========================================================================== */

/* --- Fonts loaded via <link> in layout.php --- */

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

:root {
    /* City-overridden via inline style in layout.php */
    --primary-50:  #eef0ff;
    --primary-100: #d9deff;
    --primary-200: #bbc2ff;
    --primary-500: #3a35ff;
    --primary-600: #2a1aff;
    --primary-700: #050D9E;
    --primary-800: #040a7e;
    --primary-900: #030865;
    --accent-50:   #e6f7fa;
    --accent-500:  #009DB7;
    --accent-600:  #008da4;
    --accent-700:  #007d91;

    --gray-50:  #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
    --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
    --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827;

    --green-50: #f0fdf4; --green-500: #22c55e; --green-600: #16a34a;
    --amber-50: #fffbec; --amber-100: #fef3c7; --amber-500: #f59e0b; --amber-600: #d97706; --amber-800: #92400e;
    --blue-50: #eff6ff; --blue-500: #3b82f6; --blue-600: #2563eb;
    --red-50: #fef2f2; --red-500: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow:    0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-2xl:0 25px 50px -12px rgba(0,0,0,0.25);

    --radius: 0.75rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --container: 80rem;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-800); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
p { color: var(--gray-600); }
a { color: var(--primary-700); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-800); }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

.section-container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width:640px) { .section-container { padding: 0 1.5rem; } }

/* Accessibility */
.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:-100%;left:0;background:var(--primary-700);color:#fff;padding:8px 16px;z-index:9999;border-radius:0 0 8px 0;font-weight:600; }
.skip-link:focus { top:0; }

/* ═══════ CARD ═══════ */
.card {
    background: #fff; border: 1px solid var(--gray-100); padding: 1.25rem;
    border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s var(--ease);
}
.card-hover:hover { box-shadow: 0 8px 24px -6px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card h2, .card h3 { font-family: var(--font-sans); }

/* ═══════ BUTTONS ═══════ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; background: var(--primary-700); color: #fff; border: none;
    border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; cursor: pointer;
    font-family: var(--font-sans); transition: background 0.2s var(--ease);
}
.btn-primary:hover { background: var(--primary-800); color: #fff; }
.btn-full { width: 100%; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border: 1px solid var(--gray-200); background: #fff;
    border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; cursor: pointer;
    color: var(--gray-700); font-family: var(--font-sans); transition: all 0.2s var(--ease);
}
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary-700); background: var(--primary-50); }

/* ═══════ HEADER — White, light, backdrop-blur ═══════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 4rem; max-width: var(--container); margin: 0 auto; padding: 0 1rem;
}
@media (min-width:640px) { .header-inner { padding: 0 1.5rem; } }
@media (min-width:768px) { .header-inner { height: 4.5rem; } }

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon {
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
    background: var(--primary-700); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--gray-900); }
.logo-text span { color: var(--primary-700); }
.logo img { height: 2.5rem; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.main-nav a {
    padding: 0.5rem 0.75rem; border-radius: 0.5rem;
    font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
    transition: all 0.2s var(--ease); text-decoration: none;
}
.main-nav a:hover { color: var(--primary-700); background: var(--primary-50); }
.main-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary-700), var(--primary-800)); box-shadow: 0 2px 6px rgba(5,13,158,0.25); }

/* Dropdown arrow */
.dropdown-arrow { margin-left: 0.25rem; transition: transform 0.2s var(--ease); vertical-align: middle; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.has-dropdown { position: relative; }
.dropdown-menu {
    visibility: hidden; opacity: 0;
    position: absolute; top: 100%; left: 0; z-index: 100;
    min-width: 220px; padding: 0.5rem 0; padding-top: 0.75rem;
    background: #fff; border: 1px solid var(--gray-100);
    border-radius: 0.75rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    list-style: none;
    display: flex; flex-direction: column; gap: 0;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    pointer-events: none;
}
.has-dropdown:hover .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown-menu li { margin: 0; display: block; }
.dropdown-menu a {
    display: block; padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 450;
    color: var(--gray-600); text-decoration: none; white-space: nowrap;
    transition: all 0.15s var(--ease); border-radius: 0;
    background: none; box-shadow: none;
}
.dropdown-menu a:hover { color: var(--primary-700); background: var(--primary-50); }
.dropdown-menu a.active { color: var(--primary-700); background: var(--primary-50); box-shadow: none; }
.dropdown-menu li:first-child a { font-weight: 600; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); margin-bottom: 0.25rem; padding-bottom: 0.625rem; }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 0.5rem; border-radius: 0.5rem; color: var(--gray-500);
    transition: all 0.2s var(--ease);
}
.menu-toggle:hover { color: var(--gray-700); background: var(--gray-100); }
.menu-toggle span { display: block; width: 1.25rem; height: 2px; background: currentColor; margin: 4px 0; transition: all 0.3s var(--ease); }

/* Push content below fixed header */
main { padding-top: 4rem; }
@media (min-width:768px) { main { padding-top: 4.5rem; } }

/* ═══════ HERO — Gradient primary→accent ═══════ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700), var(--accent-700));
    padding: 2.5rem 0 3rem;
}
@media (min-width:640px) { .hero { padding: 4rem 0 4.5rem; } }
@media (min-width:1024px) { .hero { padding: 5rem 0 5.5rem; } }

/* Dot pattern overlay */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px; z-index: 0;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 2.5rem); color: #fff;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 40rem; margin: 0 auto 1.5rem; animation: fadeIn 0.5s ease-out; }

/* ═══════ PLANNER CARD (glassmorphism) ═══════ */
.planner-card {
    max-width: 42rem; margin: 0 auto; background: #fff;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl);
    padding: 1rem 1.25rem; animation: fadeIn 0.5s ease-out;
}
.planner-row { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
@media (min-width:640px) { .planner-row { flex-direction: row; align-items: center; } }

.planner-field { flex: 1; position: relative; }
.planner-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.planner-field .field-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; pointer-events: none; }
.planner-field input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 0.875rem; font-family: var(--font-sans); color: var(--gray-800);
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.planner-field input::placeholder { color: var(--gray-400); }
.planner-field input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 20%, transparent); }

.swap-btn {
    padding: 0.375rem; border-radius: var(--radius-full); border: 1px solid var(--gray-200);
    background: #fff; cursor: pointer; color: var(--gray-400); transition: all 0.2s var(--ease); align-self: center;
}
.swap-btn:hover { color: var(--primary-600); border-color: var(--primary-300); }

.planner-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.5rem; border-radius: var(--radius); background: var(--primary-700);
    color: #fff; border: none; font-weight: 600; font-size: 0.875rem; cursor: pointer;
    white-space: nowrap; transition: background 0.2s var(--ease);
}
.planner-submit:hover { background: var(--primary-800); }

.planner-options { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.planner-options .option-group { flex: 1; }
.planner-options .option-group label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.planner-options input, .planner-options select {
    width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 0.875rem; font-family: var(--font-sans); transition: border-color 0.2s var(--ease);
}
.planner-options input:focus, .planner-options select:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 20%, transparent); }

.mode-selector { display: flex; gap: 0.375rem; margin-top: 0.75rem; flex-wrap: wrap; justify-content: center; }
.mode-option { cursor: pointer; text-align: center; }
.mode-option input { display: none; }
.mode-option .mode-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: var(--radius); border: 2px solid var(--gray-200);
    background: var(--gray-50); transition: all 0.2s var(--ease); margin: 0 auto 0.25rem; overflow: hidden;
}
.mode-option .mode-icon img { width: 1.25rem; height: 1.25rem; }
.mode-option input:checked + .mode-icon { border-color: var(--primary-500); background: var(--primary-50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 20%, transparent); }
.mode-label { font-size: 0.65rem; font-weight: 600; color: var(--gray-500); }

/* Hero transport mode bubbles */
.hero-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
@media (min-width:640px) { .hero-modes { gap: 1.5rem; } }
.hero-mode { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-decoration: none; }
.hero-mode-icon {
    width: 3rem; height: 3rem; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--ease);
}
.hero-mode:hover .hero-mode-icon { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.hero-mode-icon img { width: 1.5rem; height: 1.5rem; filter: brightness(0) invert(1); }
.hero-mode-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ═══════ QUICK ACCESS ═══════ */
.quick-section { padding: 3rem 0; background: var(--gray-50); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width:768px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.5rem 1.25rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); text-decoration: none; color: var(--gray-800);
    transition: all 0.3s var(--ease); cursor: pointer;
    position: relative; overflow: hidden;
}
.quick-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-700), var(--accent-500));
    transform: scaleX(0); transition: transform 0.3s var(--ease);
    transform-origin: left;
}
.quick-card:hover { box-shadow: 0 8px 24px -6px rgba(0,0,0,0.1); transform: translateY(-4px); color: var(--gray-800); }
.quick-card:hover::after { transform: scaleX(1); }
.quick-card-icon {
    width: 3.5rem; height: 3.5rem; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.875rem; transition: transform 0.3s var(--ease);
}
.quick-card-icon svg { width: 1.5rem; height: 1.5rem; }
.quick-card:hover .quick-card-icon { transform: scale(1.1); }
.quick-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--gray-900); margin-bottom: 0.375rem; }
.quick-card p { font-size: 0.8rem; color: var(--gray-500); margin: 0; line-height: 1.4; }

/* ═══════ LINES ═══════ */
.lines-section { padding: 3rem 0 4rem; }
.lines-section .section-header { text-align: center; margin-bottom: 2.5rem; }
.lines-section .section-header h2 { margin-bottom: 0.5rem; }
.lines-section .section-header p { color: var(--gray-500); max-width: 35rem; margin: 0 auto; }

.line-group { margin-bottom: 2rem; }
.line-group-header { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--gray-800); margin-bottom: 0.75rem; }
.line-type-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }

.lines-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.line-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 1.75rem; padding: 0 0.625rem;
    border-radius: 0.25rem; color: #fff; font-weight: 700; font-size: 0.875rem;
    text-decoration: none; transition: opacity 0.2s var(--ease);
}
.line-badge:hover { opacity: 0.8; color: #fff; }
.line-badge-sm { min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; font-size: 0.75rem; border-radius: 0.25rem; }
.line-badge-xs { min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; font-size: 0.7rem; border-radius: 0.25rem; }
.line-badge-lg { width: 2.25rem; height: 2.25rem; border-radius: 0.25rem; font-size: 1rem; font-weight: 800; }

.show-more-btn { margin-top: 0.75rem; background: none; border: none; cursor: pointer; font-size: 0.875rem; color: var(--primary-700); font-weight: 500; }
.show-more-btn:hover { color: var(--primary-800); text-decoration: underline; }

/* ═══════ FARES TABLE ═══════ */
.fares-table-section { padding: 3rem 0; background: var(--gray-50); }
.fares-table-card { max-width: 48rem; margin: 0 auto; }
.fares-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.fares-table thead tr { background: linear-gradient(135deg, var(--primary-700), var(--primary-800)); }
.fares-table th { text-align: left; padding: 0.875rem 1.25rem; font-weight: 600; color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.fares-table th:last-child { text-align: right; }
.fares-table td { padding: 1rem 1.25rem; color: var(--gray-700); }
.fares-table td:last-child { text-align: right; font-weight: 700; color: var(--primary-700); font-size: 1.1rem; }
.fares-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background 0.15s var(--ease); }
.fares-table tbody tr:hover { background: var(--primary-50); }

/* ═══════ GUIDE CARDS ═══════ */
.guide-section { padding: 4rem 0; }
.guide-section h2 { text-align: center; margin-bottom: 2rem; }
.guide-grid { display: grid; gap: 1.5rem; }
@media (min-width:768px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
    display: flex; flex-direction: column; padding: 1.5rem;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--gray-800);
    transition: all 0.2s var(--ease);
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--gray-800); }
.guide-card-icon { width: 3rem; height: 3rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.guide-card-icon svg { width: 1.5rem; height: 1.5rem; }
.guide-card h3 { font-family: var(--font-sans); font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.guide-card p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* ═══════ FAQ ═══════ */
.faq-section { padding: 4rem 0; background: var(--gray-50); }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 48rem; margin: 0 auto; border-top: 1px solid var(--gray-200); }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--gray-900);
    transition: color 0.2s var(--ease);
}
.faq-item summary:hover { color: var(--primary-700); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--gray-500); transition: transform 0.2s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--gray-600); padding-bottom: 1rem; line-height: 1.7; font-size: 0.9rem; }

/* ═══════ NETWORK ═══════ */
.network-section { padding: 3rem 0; }
.network-section h2 { text-align: center; margin-bottom: 1.25rem; }
.network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; }
.network-card {
    display: flex; flex-direction: column; padding: 1.25rem;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--gray-800);
    transition: all 0.2s var(--ease);
}
.network-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--gray-800); }
.network-city { font-weight: 600; font-size: 1rem; }
.network-link { color: var(--primary-700); font-size: 0.85rem; margin-top: 0.25rem; }

/* ═══════ PAGE HERO (sub-pages) — now uses guide-hero gradient ═══════ */
.page-hero {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700) 50%, var(--accent-700));
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.page-hero .section-container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.5rem; color: #fff; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: #fff; }

.breadcrumb { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary-700); }

.content-section { padding: 2rem 0 3rem; }

/* ═══════ STATION PAGE ═══════ */

/* Hero */
.st-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.st-hero-name { font-size: clamp(1.4rem, 4vw, 2rem); color: #fff; margin-bottom: 0.5rem; }
.st-hero-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.st-type-badge {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.2rem 0.625rem; border-radius: var(--radius-full); color: #fff;
}
.st-type-s { background: rgba(255,255,255,0.2); }
.st-type-b { background: rgba(34,197,94,0.5); }
.st-type-r { background: rgba(139,92,246,0.5); }
.st-type-f { background: rgba(6,182,212,0.5); }
.st-hero-addr { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.st-ada-badge { font-size: 0.65rem; font-weight: 700; background: rgba(34,197,94,0.3); color: #bbf7d0; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }
.st-hero-lines { display: flex; gap: 0.375rem; flex-wrap: wrap; }

/* Realtime card (full width, prominent) */
.st-rt-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.st-rt-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.875rem 1.25rem; background: var(--gray-900); color: #fff;
}
.st-rt-header h2 {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0;
}
.st-rt-link { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-decoration: none; font-weight: 500; }
.st-rt-link:hover { color: #fff; }
#realtime-content { padding: 1rem 1.25rem; }

/* Two-column layout */
.st-two-col { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .st-two-col { grid-template-columns: 1fr 1fr; } }
.st-two-col .station-card { margin-bottom: 0; }

/* Info dl */
.st-info-dl { font-size: 0.85rem; border-top: 1px solid var(--gray-100); margin-top: 0.5rem; }
.st-info-dl > div { display: flex; justify-content: space-between; padding: 0.375rem 0; border-bottom: 1px solid var(--gray-50); }
.st-info-dl dt { color: var(--gray-500); }
.st-info-dl dd { color: var(--gray-800); font-weight: 500; }
.st-ada { color: var(--green-500); font-weight: 600; }

/* Map full-width (bottom) */
.st-map-full {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); overflow: hidden;
}
#station-map { height: 22rem; border-radius: 0; min-height: auto; z-index: 1; }
.st-map-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.625rem 1rem; background: var(--gray-50); border-top: 1px solid var(--gray-100);
    font-size: 0.8rem; color: var(--gray-500);
}
.st-map-bar a { display: flex; align-items: center; gap: 0.25rem; color: var(--primary-700); font-weight: 500; font-size: 0.8rem; text-decoration: none; }
.st-map-bar a:hover { color: var(--primary-800); }

/* Content cards */
.station-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem;
}
.station-card-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    color: var(--gray-900); margin-bottom: 1rem;
}

/* Loading skeleton */
.station-loading { text-align: center; padding: 1rem 0; }
.station-loading p { color: var(--gray-400); font-size: 0.85rem; margin-top: 0.75rem; }
.station-loading-bar {
    height: 3px; background: var(--gray-100); border-radius: 2px; overflow: hidden; position: relative;
}
.station-loading-bar::after {
    content: ''; position: absolute; top: 0; left: -30%; height: 100%; width: 30%;
    background: var(--primary-500); border-radius: 2px;
    animation: loading-slide 1.2s ease-in-out infinite;
}
@keyframes loading-slide { 0% { left: -30%; } 100% { left: 100%; } }

/* Nearby stations grid */
.nearby-stations-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 480px) { .nearby-stations-grid { grid-template-columns: 1fr 1fr; } }

.nearby-station-card {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--gray-100);
    text-decoration: none; color: var(--gray-800);
    transition: all 0.2s var(--ease);
}
.nearby-station-card:hover { border-color: var(--primary-200); background: var(--primary-50); color: var(--gray-900); }
.nearby-station-type {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.125rem 0.5rem; border-radius: var(--radius-full); width: fit-content;
}
.nearby-type-s { background: var(--primary-50); color: var(--primary-700); }
.nearby-type-b { background: var(--green-50); color: var(--green-600); }
.nearby-type-r { background: #f3e8ff; color: #7c3aed; }
.nearby-type-f { background: #cffafe; color: #0891b2; }
.nearby-station-name { font-weight: 600; font-size: 0.875rem; }
.nearby-station-dist { font-size: 0.75rem; color: var(--gray-400); }

/* POI cards */
.poi-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 480px) { .poi-grid { grid-template-columns: 1fr 1fr; } }

.poi-card {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--gray-100);
    transition: all 0.2s var(--ease);
}
.poi-card:hover { border-color: var(--primary-200); background: var(--primary-50); }
.poi-icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 0.9rem;
}
.poi-icon-eat { background: #fef3c7; color: #b45309; }
.poi-icon-shop { background: #dbeafe; color: #1d4ed8; }
.poi-icon-culture { background: #f3e8ff; color: #7c3aed; }
.poi-icon-nature { background: #d1fae5; color: #065f46; }
.poi-icon-health { background: #fce7f3; color: #be185d; }
.poi-icon-service { background: var(--gray-100); color: var(--gray-600); }
.poi-info { flex: 1; min-width: 0; }
.poi-name { font-weight: 600; font-size: 0.85rem; color: var(--gray-800); }
.poi-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.125rem; }
.poi-cat { font-size: 0.75rem; color: var(--gray-500); }
.poi-dist { font-size: 0.7rem; color: var(--gray-400); }

/* Legacy compat */
.content-grid { display: grid; grid-template-columns: 1fr 22.5rem; gap: 1.5rem; }
.content-grid-line { display: grid; grid-template-columns: 24rem 1fr; gap: 1.5rem; }
#line-map, #full-map { border-radius: var(--radius); min-height: 25rem; z-index: 1; }
#full-map { min-height: calc(100vh - 12.5rem); border-radius: 0; }

/* ═══════ LINE PAGE ═══════ */
.line-header-row { display: flex; align-items: center; gap: 1.25rem; }
.stop-list { list-style: none; border-left: 4px solid var(--line-color, var(--primary-700)); }
.stop-item { position: relative; padding: 0.625rem 0 0.625rem 1.5rem; }
.stop-item::before { content: ''; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%); width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #fff; border: 3px solid var(--line-color, var(--primary-700)); }
.stop-item a { display: flex; justify-content: space-between; color: var(--gray-800); text-decoration: none; }
.stop-item a:hover .stop-name { color: var(--primary-700); }
.stop-name { font-weight: 500; }
.stop-borough { font-size: 0.8rem; color: var(--gray-400); }

/* ═══════ TRIP PAGE ═══════ */
.trip-section { padding: 2rem 0 3rem; }

.trip-hero-summary {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.75rem; color: rgba(255,255,255,0.85); font-size: 0.9rem;
}
.trip-hero-sep { opacity: 0.4; }
.trip-hero-modes { display: flex; gap: 0.25rem; margin-left: 0.5rem; }
.trip-hero-badge {
    display: inline-flex; align-items: center; padding: 0.125rem 0.5rem;
    border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700; color: #fff;
}

.trip-layout {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 1024px) {
    .trip-layout { grid-template-columns: 1fr 1fr; }
}

/* Map column — sticky on desktop */
.trip-map-col { order: -1; }
@media (min-width: 1024px) {
    .trip-map-col { position: sticky; top: 5.5rem; height: fit-content; max-height: calc(100vh - 7rem); }
}

.trip-map-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.trip-map-canvas { height: 28rem; }
@media (min-width: 1024px) {
    .trip-map-canvas { height: calc(100vh - 14rem); min-height: 25rem; }
}
.trip-map-legend {
    display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-100); background: var(--gray-50);
}
.trip-legend-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.trip-legend-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; flex-shrink: 0; }

.trip-map-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 20rem; background: var(--gray-50);
}
.trip-map-empty p { color: var(--gray-400); font-size: 0.9rem; margin-top: 0.75rem; }

/* Planner card on trip page */
.trip-planner-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.5rem;
}
.trip-planner-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; font-weight: 600; color: var(--gray-700);
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gray-100);
}
.trip-planner-fields {
    display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch;
}
@media (min-width: 480px) {
    .trip-planner-fields { flex-direction: row; align-items: center; }
    .trip-planner-fields .swap-btn { flex-shrink: 0; }
}

.trip-results-count { color: var(--gray-500); margin-bottom: 1rem; font-size: 0.9rem; }

/* ═══════ TRIP RESULTS ═══════ */
.trip-grid { display: grid; grid-template-columns: 18.75rem 1fr; gap: 1.5rem; }
.trip-arrow { color: var(--primary-700); }
.results-count { color: var(--gray-500); margin-bottom: 1rem; font-size: 0.9rem; }

.itinerary-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden;
    border-left: 4px solid transparent; transition: all 0.2s var(--ease);
}
.itinerary-card:hover, .itinerary-card[open] { border-left-color: var(--primary-700); box-shadow: var(--shadow-md); }
.itin-header { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 500; }
.itin-header::-webkit-details-marker { display: none; }
.itin-number { font-weight: 700; color: var(--primary-700); }
.itin-duration { font-weight: 700; }
.itin-transfers { color: var(--gray-500); font-size: 0.85rem; }
.itin-modes { display: flex; gap: 0.25rem; margin-left: auto; }
.leg-icon { display: inline-flex; align-items: center; justify-content: center; padding: 0.125rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--gray-500); }
.leg-icon.leg-walk { background: var(--gray-400); }

.itin-body { padding: 0 1.25rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.itin-legs { display: flex; flex-direction: column; }
.leg { display: grid; grid-template-columns: 4.375rem 1.25rem 1fr; gap: 0 0.75rem; padding: 0.5rem 0; position: relative; }
.leg-time { font-size: 0.85rem; font-weight: 600; text-align: right; padding-top: 0.125rem; }
.leg-marker { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #fff; border: 3px solid var(--leg-color, #999); margin-top: 0.25rem; position: relative; z-index: 1; }
.leg:not(.leg-arrival)::after { content: ''; position: absolute; left: 5.3125rem; top: 1.25rem; bottom: -0.5rem; width: 3px; background: var(--leg-color, #ddd); }
.marker-end { background: var(--primary-700); border-color: var(--primary-700); }
.leg-detail { padding-bottom: 0.5rem; }
.leg-instruction { font-weight: 500; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.leg-from, .leg-to { font-size: 0.85rem; color: var(--gray-500); }
.leg-stops { margin: 0.375rem 0; font-size: 0.85rem; }
.leg-stops summary { cursor: pointer; color: var(--primary-700); }
.leg-stops ul { list-style: none; padding: 0.25rem 0 0 0.75rem; color: var(--gray-500); }
.leg-stops li { padding: 0.125rem 0; }
.itin-map { min-height: 18.75rem; border-radius: var(--radius); }

/* ═══════ SCHEDULES PAGE ═══════ */
.schedules-search-card {
    background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg); padding: 1.5rem 1.75rem; max-width: 44rem; margin: 0 auto;
}

/* Mode tabs */
.schedules-mode-tabs {
    display: flex; gap: 0; margin-bottom: 1.25rem;
    background: var(--gray-100); border-radius: var(--radius); padding: 0.25rem;
}
.schedules-mode-tab {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer;
    flex: 1; padding: 0.625rem 0.75rem; border-radius: calc(var(--radius) - 2px); border: none;
    font-size: 0.85rem; font-weight: 600; color: var(--gray-500);
    background: transparent; transition: all 0.2s var(--ease);
}
.schedules-mode-tab input { display: none; }
.schedules-mode-tab:hover { color: var(--gray-700); }
.schedules-mode-active {
    color: var(--primary-700); background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedules-search-row { display: flex; gap: 0.5rem; }

.schedules-section-title {
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
    color: var(--gray-900); margin-bottom: 1rem;
}

.schedules-lines-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.schedules-line-filter {
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s var(--ease);
}
.schedules-line-filter:hover { opacity: 0.85; transform: scale(1.1); }
.schedules-line-active { border-color: var(--gray-900); transform: scale(1.15); box-shadow: var(--shadow-md); }

/* Realtime board */
.schedules-board {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.schedules-board-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100);
    background: var(--gray-900);
}
.schedules-board-header h2 {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin: 0;
}
.schedules-board-header .btn-outline {
    background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff;
}
.schedules-board-header .btn-outline:hover {
    background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5);
}
#schedules-board-content { padding: 1.25rem; }
.schedules-empty { color: var(--gray-400); font-size: 0.875rem; text-align: center; padding: 1rem 0; }

.schedules-arrivals-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .schedules-arrivals-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .schedules-arrivals-grid { grid-template-columns: 1fr 1fr 1fr; } }

.schedules-arrival-group {
    padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.schedules-arrival-times { margin-top: 0.5rem; }
.schedules-arrival-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.375rem 0; border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}
.schedules-arrival-row:last-child { border-bottom: none; }
.schedules-arrival-dist { color: var(--gray-500); }
.schedules-arrival-time { font-weight: 600; color: var(--primary-700); }

/* Station cards grid */
.schedules-popular-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .schedules-popular-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .schedules-popular-grid { grid-template-columns: 1fr 1fr 1fr; } }

.schedules-station-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1rem; border-radius: var(--radius); border: 1px solid var(--gray-100);
    background: #fff; text-decoration: none; color: var(--gray-800);
    transition: all 0.2s var(--ease); cursor: pointer;
}
.schedules-station-card:hover {
    border-color: var(--primary-200); background: var(--primary-50);
    box-shadow: var(--shadow); color: var(--gray-900);
}
.schedules-station-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
    background: var(--primary-50); color: var(--primary-600);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.schedules-station-info { flex: 1; min-width: 0; }
.schedules-station-name { display: block; font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedules-station-type { display: block; font-size: 0.75rem; color: var(--gray-400); }
.schedules-station-arrow { color: var(--gray-300); flex-shrink: 0; transition: transform 0.2s var(--ease); }
.schedules-station-card:hover .schedules-station-arrow { transform: translateX(3px); color: var(--primary-500); }

/* All stations accordion */
.schedules-all-details { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); }
.schedules-all-summary {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 1rem 1.25rem; cursor: pointer; list-style: none;
    font-weight: 600; font-size: 0.9rem; color: var(--gray-700);
}
.schedules-all-summary::-webkit-details-marker { display: none; }
.schedules-all-summary:hover { color: var(--primary-700); }
.schedules-all-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.25rem 1rem; padding: 0 1.25rem 1.25rem;
}
.schedules-all-link {
    padding: 0.375rem 0; font-size: 0.85rem; color: var(--gray-600);
    text-decoration: none; border-bottom: 1px solid var(--gray-50);
}
.schedules-all-link:hover { color: var(--primary-700); }

/* ═══════ REAL-TIME ARRIVALS ═══════ */
.realtime-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green-500);
    display: inline-block; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.rt-group { border-bottom: 1px solid var(--gray-100); padding: 0.75rem 0; }
.rt-group:last-child { border-bottom: none; padding-bottom: 0; }
.rt-group:first-child { padding-top: 0; }
.rt-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.rt-line {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 1.5rem; padding: 0 0.5rem;
    background: #006CB7; color: #fff; font-weight: 700; font-size: 0.75rem;
    border-radius: 0.25rem;
}
.rt-dest { font-weight: 500; font-size: 0.875rem; color: var(--gray-800); }
.rt-arrivals { display: flex; flex-direction: column; gap: 0.25rem; padding-left: 2.75rem; }
.rt-arrival {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--gray-600); padding: 0.25rem 0;
}
.rt-distance { color: var(--gray-500); }
.rt-time { font-weight: 600; color: var(--primary-700); font-size: 0.85rem; }

/* ═══════ ALERTS ═══════ */
.alerts-list { display: flex; flex-direction: column; gap: 1rem; }
.alert-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); padding: 1.5rem;
    border-left: 4px solid var(--amber-500);
    transition: all 0.2s var(--ease);
}
.alert-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-left-color: var(--amber-600); }
.alert-routes { display: flex; gap: 0.375rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.alert-header { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-900); line-height: 1.4; }
.alert-desc { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 0.75rem; line-height: 1.6; }
.alert-cause {
    font-size: 0.75rem; font-weight: 600;
    background: var(--amber-50, #fffbec); padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full); color: var(--amber-800);
    border: 1px solid var(--amber-100);
}
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-warning { background: var(--amber-100); color: var(--amber-800); }
.alert-info { background: #dbeafe; color: #1e40af; }

/* ═══════ FARES PAGE ═══════ */
.fares-content { padding: 3rem 0; }
.fares-content h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
.fares-content h2:first-of-type { margin-top: 0; }
.fares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.fares-grid-sm { grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr)); }
.fare-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); padding: 1.5rem; text-align: center; }
.fare-card h3, .fare-card h4 { font-family: var(--font-sans); font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.fare-card p:last-child { font-size: 0.85rem; color: var(--gray-500); }
.fare-highlight { border: 2px solid var(--primary-700); }
.fare-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary-700); margin: 0.5rem 0; }
.fare-free { color: var(--green-500); }
.fare-info-section { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.fare-info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); padding: 1.5rem; }
.fare-info-card h3 { font-size: 1.1rem; margin-bottom: 0.625rem; color: var(--gray-900); }
.fare-info-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.5rem; }
.fare-notice { background: var(--amber-100); border-left: 4px solid var(--amber-500); padding: 0.625rem 0.875rem; border-radius: 0.375rem; font-size: 0.85rem; color: var(--amber-800); margin-top: 0.5rem; }
.fare-source { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--gray-50); border-radius: 0.375rem; border: 1px solid var(--gray-200); }
.fare-source p { font-size: 0.8rem; color: var(--gray-500); margin: 0; }
.fare-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.tip-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); padding: 1.25rem; }
.tip-card h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary-700); }
.tip-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ═══════ MAP ═══════ */
.map-page { display: flex; flex-direction: column; }
.map-header { padding: 1rem 0; background: #fff; border-bottom: 1px solid var(--gray-100); }
.map-header h1 { font-size: 1.2rem; display: inline; margin-right: 1rem; }
.map-filters { display: inline-flex; gap: 0.75rem; }
.map-filter { font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; }

/* ═══════ TRAVEL GUIDE ═══════ */
.guide-hero {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700) 50%, var(--accent-700));
    position: relative; overflow: hidden;
}
.guide-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.guide-hero .container { position: relative; z-index: 1; }
.guide-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.5rem; color: #fff; }
.guide-hero p { color: rgba(255,255,255,0.8); max-width: 37.5rem; }
.guide-hero .breadcrumb { margin-bottom: 0.75rem; }
.guide-hero .breadcrumb, .guide-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.guide-hero .breadcrumb a:hover { color: #fff; }
.guide-content { padding: 3rem 0; }
.guide-content h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.guide-attractions { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.guide-attraction { transition: all 0.2s var(--ease); }
.guide-attraction:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-attraction h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.guide-coords { color: var(--gray-500); font-size: 0.85rem; display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.5rem; }
.guide-link { font-weight: 600; font-size: 0.9rem; color: var(--primary-700); }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 1rem; }
.guide-section-title { font-size: 1.4rem; margin-bottom: 1.25rem; padding-top: 0.5rem; color: var(--gray-900); }
.guide-tips { margin-top: 2.5rem; }

/* ═══════ MINI PLANNER ═══════ */
.planner-mini input, .planner-mini select {
    width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 0.875rem; font-family: var(--font-sans);
}
.planner-mini input:focus, .planner-mini select:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 20%, transparent); }
.planner-mini .field-group { margin-bottom: 0.625rem; }
.planner-mini .field-group label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.planner-mini .field-row { display: flex; gap: 0.5rem; }

/* ═══════ ERROR ═══════ */
.error-page { padding: 5rem 0; text-align: center; }
.error-page h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.error-page p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ═══════ FOOTER ═══════ */
.site-footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0f1a 100%);
    color: var(--gray-300); padding: 3.5rem 0 1.5rem; margin-top: 4rem;
    position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-700), var(--accent-500), var(--primary-700));
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h3 { color: var(--primary-100, #d9deff); font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; margin-bottom: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--gray-400); font-size: 0.875rem; text-decoration: none; transition: all 0.2s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col p { font-size: 0.875rem; line-height: 1.6; color: var(--gray-400); }
.footer-disclaimer { font-size: 0.75rem; opacity: 0.4; margin-top: 1rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.75rem; color: var(--gray-500); }

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width:768px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 4rem; left: 0; right: 0; background: #fff; padding: 0.75rem 1rem; border-top: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.125rem; }
    .main-nav a { display: block; padding: 0.625rem 0.75rem; font-size: 1rem; border-radius: 0.5rem; color: var(--gray-700); }
    .has-dropdown { position: static; }
    .dropdown-menu { display: none; position: static; box-shadow: none; border: none; border-radius: 0; min-width: auto; margin-top: 0; padding: 0 0 0 1rem; background: transparent; }
    .has-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a { font-size: 0.9375rem; padding: 0.5rem 0.75rem; }
    .dropdown-menu li:first-child a { border-bottom: none; margin-bottom: 0; padding-bottom: 0.5rem; }
    .content-grid, .content-grid-line { grid-template-columns: 1fr; }
    .trip-grid { grid-template-columns: 1fr; }
    .itin-body { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .planner-options { flex-direction: column; }
}
@media (max-width:480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .network-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
}
@media print {
    .site-header, .site-footer, .menu-toggle, .swap-btn, .mode-selector, .network-section, .hero-modes { display: none; }
    main { padding-top: 0; }
}
