@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/quicksand-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #c24433;
    --secondary: #186d61;
    --text: #333333;
    --text-light: #888888;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-warm: linear-gradient(135deg, #fdf6f4 0%, #f0f7f6 100%);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    background: var(--bg);
}

h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Layout */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 40px 24px;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section-warm {
    background: var(--bg-warm);
}

/* Header */

.header {
    background: white;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.header-logo span {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

.header-nav a {
    color: #555;
    text-decoration: none;
}

.header-nav a.active {
    color: var(--accent);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.header-nav .back-link {
    color: var(--secondary);
    font-size: 12px;
}

/* Breadcrumb */

.breadcrumb {
    padding: 8px 24px;
    font-size: 11px;
    color: var(--text-muted);
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

/* Buttons */

.btn {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-outline:hover {
    opacity: 0.8;
}

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

.btn-sm {
    padding: 7px 16px;
    font-size: 12px;
}

/* Form inputs */

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    background: #fafafa;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    transition: border-color 0.15s;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    background: white;
}

.form-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--accent);
    margin-top: 4px;
}

.price-hint {
    background-color: #f0f7f6;
    border-left: 3px solid var(--secondary);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}

/* Day pills */

.day-pills {
    display: flex;
    gap: 4px;
}

.day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    background: #f0f0f0;
    color: #999;
    border: none;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.day-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.day-pill span {
    pointer-events: none;
}

.day-pill:has(input:checked) {
    background: var(--accent);
    color: white;
}

.day-pill.selected {
    background: var(--accent);
    color: white;
}

.day-pill.selected.return,
.day-pills-group[data-name="return_days"] .day-pill:has(input:checked) {
    background: var(--secondary);
    color: white;
}

.day-pill:hover {
    opacity: 0.85;
}

/* Trip type toggle */

.trip-toggle {
    display: flex;
}

.trip-toggle-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
}

.trip-toggle-option:first-child {
    border-radius: 3px 0 0 3px;
}

.trip-toggle-option:last-child {
    border-radius: 0 3px 3px 0;
}

.trip-toggle-option.active {
    background: var(--accent);
    color: white;
}

.trip-toggle-option:not(.active) {
    background: #f0f0f0;
    color: #999;
}

/* Cards */

.card {
    border-radius: 6px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: white;
    overflow: hidden;
}

.route-card {
    padding: 16px;
}

.route-card-title {
    font-weight: bold;
    font-size: 14px;
}

.route-card-price {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 6px;
    font-weight: bold;
}

.route-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.route-card-link {
    font-size: 11px;
    color: var(--accent);
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-decoration: none;
}

.route-card-link:hover {
    text-decoration: underline;
}

/* Alert card (dashboard) */

.alert-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.alert-card.inactive {
    opacity: 0.6;
}

.alert-card-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.alert-card-body {
    padding: 14px 16px;
}

.alert-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
}

.alert-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Status badge */

.badge {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge-active {
    color: var(--secondary);
    background: #e8f5e9;
}

.badge-inactive {
    color: #999;
    background: #f0f0f0;
}

/* Toggle switch */

.toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    display: inline-block;
    flex-shrink: 0;
}

.toggle.on {
    background: var(--secondary);
}

.toggle.off {
    background: #ccc;
}

.toggle-knob {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.2s;
}

.toggle.on .toggle-knob {
    right: 2px;
    left: auto;
}

.toggle.off .toggle-knob {
    left: 2px;
}

/* Status dot */

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: var(--secondary);
}

.status-dot.inactive {
    background: #ccc;
}

/* Stats cards */

.stats-bar {
    display: flex;
    gap: 12px;
}

.stat-card {
    flex: 1;
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
}

/* Trust signals */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 24px;
}

.trust-item {
    text-align: center;
}

.trust-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-subtitle {
    font-size: 10px;
    color: var(--text-muted);
}

/* How it works */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fdf6f4;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Quicksand', sans-serif;
}

/* FAQ */

.faq-item {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
}

.faq-question {
    font-weight: bold;
    font-size: 14px;
}

.faq-answer {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
    line-height: 1.6;
}

/* Chart container */

.chart-container {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 20px;
}

.chart-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.chart-filter {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
}

.chart-filter.active {
    background: var(--accent);
    color: white;
}

.chart-filter:not(.active) {
    background: #f0f0f0;
    color: #999;
}

/* Notification table */

.notif-table {
    width: 100%;
    border-collapse: collapse;
}

.notif-header {
    background: #fafafa;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    text-align: left;
}

.notif-row {
    font-size: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 16px;
}

.notif-table td,
.notif-table th {
    padding: 10px 16px;
}

/* Footer */

.footer {
    background: #333;
    color: #aaa;
    padding: 24px;
    font-size: 12px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #ddd;
}

.footer-logo {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #ddd;
}

/* Utility */

.text-accent {
    color: var(--accent);
}

.text-secondary {
    color: var(--secondary);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 14px;
}

.mt-3 {
    margin-top: 20px;
}

/* Flash messages */

.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.flash-success {
    background: #e8f5e9;
    color: var(--secondary);
    border-left: 3px solid var(--secondary);
}

.flash-error {
    background: #fce4ec;
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

/* Mobile hamburger menu */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    min-width: 160px;
    z-index: 100;
    border-radius: 0 0 4px 4px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero */

.hero {
    background: var(--bg-warm);
    padding: 36px 24px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle {
    color: #555;
    font-size: 14px;
    margin: 0 0 24px;
}

/* Alert form */

.alert-form {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 28px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-time .form-group {
    margin-bottom: 0;
}

input[type="time"].form-input {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    background: #fafafa;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    appearance: auto;
}

.form-select:focus {
    border-color: var(--accent);
    outline: none;
    background: white;
}

.form-label-small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: none;
}

.form-microcopy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.form-group-optional {
    margin-bottom: 14px;
}

.form-group-return {
    margin-bottom: 14px;
}

.optional-label {
    color: #bbb;
    text-transform: none;
    font-size: 10px;
}

.input-with-suffix {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

/* Trip presets */

.trip-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trip-preset:last-child {
    grid-column: 1 / -1;
}

.trip-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #eee;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
    min-height: 64px;
}

.trip-preset input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.trip-preset span {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    line-height: 1.3;
}

.trip-preset small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.trip-preset.active,
.trip-preset:has(input:checked) {
    border-color: var(--accent);
    background: #fdf6f4;
    box-shadow: 0 0 0 1px var(--accent);
}

.trip-preset.active span,
.trip-preset:has(input:checked) span {
    color: var(--accent);
}

.trip-preset:hover:not(.active) {
    border-color: #ccc;
    background: #f5f5f5;
}

/* Period presets */

.period-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.period-preset {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #eee;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}

.period-preset input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.period-preset span {
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}

.period-preset.active,
.period-preset:has(input:checked) {
    border-color: var(--accent);
    background: #fdf6f4;
    box-shadow: 0 0 0 1px var(--accent);
}

.period-preset.active span,
.period-preset:has(input:checked) span {
    color: var(--accent);
}

.period-preset:hover:not(.active) {
    border-color: #ccc;
}

/* Trip type toggle (legacy, keep for edit form) */

.trip-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.trip-type-option {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    background: #f0f0f0;
    color: #999;
}

.trip-type-option:first-child {
    border-radius: 3px 0 0 3px;
}

.trip-type-option:last-child {
    border-radius: 0 3px 3px 0;
}

.trip-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.trip-type-option.active {
    background: var(--accent);
    color: white;
}

/* Day pills group */

.day-pills-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Button variants */

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 12px 32px;
    font-size: 14px;
}

/* Section title */

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    margin: 0 0 6px;
    color: var(--text);
}

/* CTA section */

.cta-section {
    background: var(--bg-warm);
    padding: 36px 24px;
    text-align: center;
}

/* Features grid (why section) */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border-left: 3px solid var(--accent);
}

.feature-card:nth-child(3),
.feature-card:nth-child(4) {
    border-left-color: var(--secondary);
}

/* Steps grid */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
}

/* Routes grid */

.routes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* Route card (home page) */

a.route-card {
    display: block;
    background: white;
    border-radius: 6px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}

a.route-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.route-card-header {
    font-weight: bold;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.route-card-header .route-from,
.route-card-header .route-to {
    font-weight: 700;
}

.route-card-header .route-arrow {
    color: var(--text-muted);
    margin: 0 4px;
}

/* FAQ list */

.faq-list {
    max-width: 560px;
    margin: 0 auto;
}

/* Trust icon */

.trust-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

/* Route page specifics */

.route-intro {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.route-operator {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-prefilled {
    background: var(--bg-warm);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}

.route-from,
.route-to {
    font-weight: bold;
    font-size: 14px;
}

.route-arrow {
    color: var(--text-muted);
    margin: 0 8px;
}

/* Stats grid (route page) */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card-green .stat-value {
    color: var(--secondary);
}

.stat-card-red .stat-value {
    color: var(--accent);
}

/* Editorial content (markdown) */

.editorial-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 0;
}

.editorial-content h2,
.editorial-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}

.editorial-content p {
    margin-bottom: 12px;
    color: #555;
    font-size: 13px;
}

.editorial-content ul {
    padding-left: 20px;
    color: #555;
    font-size: 13px;
}

.editorial-content li {
    margin-bottom: 4px;
}

/* Responsive */

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .routes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .routes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .route-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

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

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .route-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .alert-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats-bar {
        flex-wrap: wrap;
    }

    .trust-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Calendar grid */
.calendar-container {
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.calendar-header span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-week {
    display: flex;
    gap: 2px;
}

.calendar-day {
    flex: 1;
    text-align: center;
    padding: 8px 2px;
    border-radius: 4px;
    min-height: 60px;
    cursor: default;
}

.calendar-day-num {
    font-size: 12px;
    color: var(--text);
}

.calendar-day-price {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.calendar-day--cheap {
    background-color: #f0fdf4;
}

.calendar-day--cheap .calendar-day-price {
    color: #16a34a;
}

.calendar-day--medium {
    background-color: #fff7ed;
}

.calendar-day--medium .calendar-day-price {
    color: #ea580c;
}

.calendar-day--expensive {
    background-color: #fef2f2;
}

.calendar-day--expensive .calendar-day-price {
    color: #dc2626;
}

.calendar-day--estimated .calendar-day-price {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}

.calendar-day--empty {
    background: transparent;
}

.calendar-event-badge {
    display: inline-block;
    font-size: 8px;
    background: #7c3aed;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.calendar-event-popup {
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 0;
    font-size: 12px;
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    max-width: 300px;
    min-width: 200px;
}

.popup-event {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 14px;
}

.popup-event + .popup-event {
    border-top: 1px solid #f0f0f0;
}

.popup-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.popup-name {
    display: block;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.popup-venue {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.calendar-event-detail {
    padding: 6px 10px;
    background: #f5f3ff;
    border-left: 3px solid #7c3aed;
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    color: var(--text);
    margin: 2px 0;
}

.calendar-legend {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.legend-dot--cheap { background: #16a34a; }
.legend-dot--medium { background: #ea580c; }
.legend-dot--expensive { background: #dc2626; }
.legend-dot--estimated { background: var(--text-muted); }
.legend-dot--event { background: #7c3aed; }

@media (max-width: 600px) {
    .calendar-day {
        padding: 6px 1px;
        min-height: 50px;
    }
    .calendar-day-num { font-size: 10px; }
    .calendar-day-price { font-size: 11px; }
    .calendar-event-badge { font-size: 7px; }
}
