* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #f6f8fb;
}

.stations-page {
    min-height: 100vh;
}

.stations-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.stations-hero {
    padding: 28px 0 38px;
    background: #ffffff;
    border-bottom: 1px solid #e7ebf0;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #64748b;
}

.stations-hero h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.stations-hero p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 16px;
}

.stations-search-wrap {
    max-width: 650px;
    margin-top: 25px;
}

.stations-search-wrap label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.stations-search-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #172033;
    font-size: 15px;
}

.stations-search-wrap input:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .12);
}

.stations-content {
    padding: 30px 0 60px;
}

.stations-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 28px;
    color: #64748b;
}

.stations-summary strong {
    color: #172033;
    font-size: 24px;
}

.stations-summary span {
    font-size: 14px;
}

.city-section {
    margin-bottom: 42px;
}

.city-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.city-heading h2 {
    margin: 0;
    font-size: 23px;
}

.city-heading span {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.station-card {
    display: block;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.station-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .07);
}

.station-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.station-name {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 750;
}

.station-badge {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff7e8;
    color: #9a6700;
    font-size: 10px;
    font-weight: 800;
}

.station-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.line-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.station-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    color: #64748b;
    font-size: 12px;
}

.station-code {
    font-weight: 750;
    color: #334155;
}

.station-link {
    display: block;
    margin-top: 14px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.station-link span {
    margin-left: 3px;
}

.no-results {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .station-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .stations-container {
        width: min(100% - 22px, 1180px);
    }

    .stations-hero {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .stations-content {
        padding-top: 23px;
    }

    .station-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .station-card {
        padding: 16px;
    }

    .city-heading h2 {
        font-size: 20px;
    }
}
