* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Google Sans Flex", "Segoe UI", Arial, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "ROND" 0;
    background:
        radial-gradient(circle at top left, #dfe7ff 0, #dfe7ff 14%, transparent 35%),
        radial-gradient(circle at top right, #ffdede 0, #ffdede 12%, transparent 32%),
        linear-gradient(180deg, #f8f9ff 0%, #f3f4f8 100%);
    color: #1f1a24;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.page-narrow {
    max-width: 920px;
}

.hero,
.detail-surface {
    margin-bottom: 20px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 251, 255, 0.9);
    border: 1px solid rgba(121, 116, 126, 0.14);
    box-shadow:
        0 1px 2px rgba(27, 28, 31, 0.08),
        0 12px 32px rgba(77, 67, 92, 0.08);
}

.hero-centered {
    margin-top: 56px;
}

.large-flex-header {
    padding: 12px 4px 20px;
    margin-bottom: 8px;
}

.header-eyebrow {
    color: #65558f;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-results {
    display: grid;
    gap: 18px;
}

.results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.results-header-main {
    display: grid;
    gap: 6px;
}

.results-title {
    font-size: 34px;
    line-height: 1.08;
    font-weight: 500;
    color: #1f1a24;
    font-variation-settings:
        "slnt" 0,
        "wdth" 112,
        "GRAD" 0,
        "ROND" 16;
}

.filter-menu {
    position: relative;
    flex: 0 0 auto;
}

.filter-menu[open] .filter-button {
    background: #d0e4ff;
    color: #12315b;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 251, 255, 0.92);
    border: 1px solid rgba(121, 116, 126, 0.14);
    box-shadow:
        0 1px 2px rgba(27, 28, 31, 0.06),
        0 10px 24px rgba(77, 67, 92, 0.06);
    cursor: pointer;
    list-style: none;
    color: #1f1a24;
}

.filter-button::-webkit-details-marker {
    display: none;
}

.filter-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.filter-icon svg {
    width: 22px;
    height: 22px;
}

.filter-panel {
    position: absolute;
    top: 64px;
    right: 0;
    z-index: 10;
    width: min(92vw, 760px);
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 251, 255, 0.98);
    border: 1px solid rgba(121, 116, 126, 0.14);
    box-shadow:
        0 10px 24px rgba(77, 67, 92, 0.14),
        0 2px 8px rgba(27, 28, 31, 0.08);
}

.filter-panel-title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 500;
}

.hero-topline {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #e8def8;
    color: #4a4458;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 500;
    font-variation-settings:
        "slnt" 0,
        "wdth" 115,
        "GRAD" 0,
        "ROND" 18;
}

.hero-copy {
    max-width: 720px;
    margin: 12px 0 0;
    color: #49454f;
    font-size: 17px;
    line-height: 1.45;
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-link {
    color: #65558f;
    font-size: 15px;
    font-weight: 500;
}

.search-box {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 24px;
}

.search-box-compact {
    margin-top: 0;
}

.search-field {
    display: grid;
    gap: 8px;
    flex: 1 1 320px;
}

.filter-field {
    display: grid;
    gap: 8px;
    flex: 0 1 220px;
}

.field-label {
    font-size: 14px;
    color: #49454f;
    font-weight: 500;
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #7a757f;
    border-radius: 18px;
    font-size: 16px;
    background: #fffbff;
    color: #1f1a24;
    font-family: inherit;
    font-weight: 500;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 18px;
    background: #fffbff;
    border: 1px solid #7a757f;
    color: #49454f;
    font-size: 15px;
    font-weight: 500;
}

.toggle-field input {
    width: 18px;
    height: 18px;
    accent-color: #65558f;
}

.search-box button,
.primary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 58px;
    border: 0;
    border-radius: 20px;
    padding: 0 22px;
    background: #65558f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(101, 85, 143, 0.24);
}

.geo-button {
    background: #d0e4ff;
    color: #12315b;
    box-shadow: none;
}

.geo-status {
    min-height: 22px;
    margin-top: 10px;
    color: #49454f;
    font-size: 14px;
}

.summary-band {
    display: grid;
    gap: 4px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(232, 222, 248, 0.74);
    border: 1px solid rgba(121, 116, 126, 0.12);
}

.summary-kicker {
    color: #65558f;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.summary-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 500;
    font-variation-settings:
        "slnt" 0,
        "wdth" 108,
        "GRAD" 0,
        "ROND" 12;
}

.summary-subtitle {
    color: #49454f;
    font-size: 15px;
}

.refine-block {
    display: grid;
    gap: 10px;
}

.results {
    display: grid;
    gap: 16px;
}

.station-list {
    display: grid;
    background: rgba(255, 251, 255, 0.92);
    border: 1px solid rgba(121, 116, 126, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(27, 28, 31, 0.06),
        0 10px 24px rgba(77, 67, 92, 0.06);
}

.lazy-load-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(121, 116, 126, 0.14);
    background: rgba(245, 247, 255, 0.95);
}

.lazy-load-status {
    color: #49454f;
    font-size: 14px;
}

.load-more-button {
    min-width: 160px;
    padding: 12px 20px;
    border-radius: 18px;
    border: 0;
    background: #65558f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.load-more-button:disabled {
    background: rgba(101, 85, 143, 0.4);
    cursor: default;
}

.station-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    min-height: 88px;
    background: transparent;
}

.station-list-item + .station-list-item {
    border-top: 1px solid rgba(121, 116, 126, 0.14);
}

.station-logo-wrap {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.station-logo-wrap-large {
    width: 84px;
    height: 84px;
}

.station-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.station-logo-large {
    width: 62px;
    height: 62px;
}

.station-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.station-main {
    min-width: 0;
    flex: 1 1 auto;
}

.station-side {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 96px;
    flex: 0 0 auto;
}

.station-name {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    font-variation-settings:
        "slnt" 0,
        "wdth" 104,
        "GRAD" 0,
        "ROND" 10;
}

.station-price {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    color: #1d192b;
    white-space: nowrap;
}

.station-updated {
    color: #49454f;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.station-address {
    color: #49454f;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.3;
}

.detail-head {
    display: flex;
    gap: 18px;
    align-items: center;
}

.detail-copy {
    min-width: 0;
}

.detail-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title,
.fuel-detail-name,
.fuel-value strong {
    font-weight: 500;
}

.section-title {
    font-size: 22px;
    margin-bottom: 18px;
}

.fuel-detail-list {
    display: grid;
    gap: 0;
    border: 1px solid rgba(121, 116, 126, 0.12);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.fuel-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.fuel-detail-row + .fuel-detail-row {
    border-top: 1px solid rgba(121, 116, 126, 0.12);
}

.fuel-detail-main {
    min-width: 0;
    flex: 1 1 auto;
}

.fuel-detail-name {
    font-size: 17px;
    margin-bottom: 4px;
}

.fuel-detail-support {
    color: #49454f;
    font-size: 14px;
    line-height: 1.4;
}

.fuel-detail-values {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fuel-value {
    display: grid;
    gap: 4px;
    min-width: 86px;
    text-align: right;
}

.fuel-value span {
    color: #49454f;
    font-size: 12px;
}

.fuel-value strong {
    font-size: 15px;
    color: #1d192b;
}

.error {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f9dedc;
    color: #8c1d18;
    font-size: 14px;
}

.empty-state {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 251, 255, 0.86);
    color: #49454f;
    border: 1px solid rgba(121, 116, 126, 0.12);
}

@media (max-width: 640px) {
    .page {
        padding: 18px 14px 32px;
    }

    .hero,
    .detail-surface {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .hero-centered {
        margin-top: 18px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .results-header {
        align-items: stretch;
    }

    .results-title {
        font-size: 28px;
    }

    .filter-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 14px;
        width: auto;
    }

    .station-list {
        border-radius: 24px;
    }

    .station-list-item {
        gap: 12px;
        padding: 16px 14px;
        min-height: 80px;
    }

    .station-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .station-logo-wrap-large {
        width: 72px;
        height: 72px;
    }

    .station-logo {
        width: 40px;
        height: 40px;
    }

    .station-logo-large {
        width: 52px;
        height: 52px;
    }

    .detail-head,
    .fuel-detail-row {
        display: grid;
        gap: 10px;
    }

    .fuel-detail-values,
    .fuel-value {
        justify-items: start;
        justify-content: flex-start;
        text-align: left;
    }

    .station-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .station-side {
        justify-items: end;
        min-width: 82px;
    }
}
