:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #2b6cb0;
    --work: #2b6cb0;
    --work-bg: #e6f0fa;
    --weekend: #c05621;
    --weekend-bg: #fdf0e2;
    --holiday: #6b46c1;
    --holiday-bg: #f0e9fb;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #1a202c;
    --text-muted: #64748b;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 6px 20px rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 16px;
}

.schedule-container {
    max-width: 1100px;
    margin: 0 auto;
}

.schedule-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 16px;
}

.schedule-header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.schedule-header p {
    font-size: 1.05rem;
    opacity: 0.92;
}

.schedule-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.payment-notice {
    background: #fff8e1;
    color: #8a6100;
    padding: 12px 20px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-box, .day-filter, .route-filter {
    flex: 1;
    min-width: 180px;
}

.search-box input, .day-filter select, .route-filter select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #fafbfc;
    transition: all 0.2s;
}

.search-box input:focus, .day-filter select:focus, .route-filter select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
    background: white;
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.route-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    transition: box-shadow 0.2s;
}

.route-card:hover {
    box-shadow: var(--shadow-hover);
}

.route-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.route-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    min-width: 46px;
    height: 46px;
    padding: 0 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
}

.route-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.route-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.regularity-block {
    padding: 10px 0;
}

.regularity-block + .regularity-block {
    border-top: 1px dashed var(--border);
    margin-top: 4px;
}

.regularity-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.regularity-tag.work { background: var(--work-bg); color: var(--work); }
.regularity-tag.weekend { background: var(--weekend-bg); color: var(--weekend); }
.regularity-tag.holiday { background: var(--holiday-bg); color: var(--holiday); }

.regularity-days {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.times-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.times-col {
    flex: 1;
    min-width: 220px;
}

.direction-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    font-weight: 600;
}

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

.time-badge {
    background: #f1f5f9;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.05rem;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.legend-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-top: 20px;
}

.legend-section h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.legend-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.legend-mark {
    font-weight: 700;
    color: var(--text);
}

.contact-info {
    background: var(--card-bg);
    padding: 16px;
    text-align: center;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    body { padding: 10px; }
    .controls { flex-direction: column; }
    .schedule-header h1 { font-size: 1.3rem; }
    .route-card-header { flex-direction: column; }
    .times-row { flex-direction: column; gap: 12px; }
}
