:root {
    --navy: #0f1f3d;
    --navy-soft: #1c3260;
    --volt: #d8ff5c;
    --blue: #2f6bff;
    --blue-soft: #eaf0ff;
    --text: #141b2b;
    --muted: #5f6b80;
    --line: #e0e5ef;
    --surface: #ffffff;
    --background: #f3f5f9;
    --warn: #b54708;
    --warn-soft: #fff4e5;
    --radius: 18px;
}

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

body,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

body {
    min-width: 320px;
    color: var(--text);
    background: var(--background);
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    word-break: keep-all;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(47, 107, 255, 0.4);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 40px));
    min-height: 62px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--navy);
    background: var(--volt);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 16px;
}

.brand-copy small {
    color: #9fb0d0;
    font-size: 11px;
}

.header-link {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 60px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 28px;
    padding: 34px 36px 50px;
    border-radius: 0 0 26px 26px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(216, 255, 92, 0.12) 0 18%, transparent 18% 100%),
        var(--navy);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--volt);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 560px;
    margin-top: 14px;
    color: #c3cee4;
    font-size: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hero-stats div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: var(--navy-soft);
}

.hero-stats dt {
    color: #9fb0d0;
    font-size: 12px;
    font-weight: 700;
}

.hero-stats dd {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stats small {
    margin-left: 2px;
    color: #9fb0d0;
    font-size: 13px;
    font-weight: 700;
}

.toolbar {
    position: sticky;
    top: 62px;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: -22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 30px rgba(15, 31, 61, 0.1);
}

.search-box {
    flex: 1 1 300px;
}

.search-box input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f9fc;
    outline: none;
}

.search-box input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}

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

.filter,
.near-button {
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #39445a;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filter[aria-pressed="true"] {
    border-color: var(--navy);
    color: var(--volt);
    background: var(--navy);
}

.near-button {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.near-button[aria-pressed="true"] {
    color: var(--blue);
    background: var(--blue-soft);
}

.ad-box {
    min-height: 100px;
    margin: 22px 0;
    overflow: hidden;
    text-align: center;
}

.results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 20px;
}

.list-panel,
.map-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.list-header h2 {
    font-size: 18px;
}

.result-count {
    color: var(--muted);
    font-size: 13px;
}

.result-count strong {
    color: var(--blue);
    font-size: 16px;
}

.station-list {
    max-height: 640px;
    overflow-y: auto;
    list-style: none;
}

.station {
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f5;
}

.station.is-selected {
    background: var(--blue-soft);
    box-shadow: inset 4px 0 0 var(--blue);
}

.station-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.station-head h3 {
    font-size: 16px;
}

.station-name {
    padding: 0;
    border: 0;
    color: var(--text);
    background: none;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.station-name:hover {
    color: var(--blue);
    text-decoration: underline;
}

.distance {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.station-address {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.chargers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    list-style: none;
}

.charger,
.tag {
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.charger {
    color: var(--blue);
    background: var(--blue-soft);
}

.charger-fast {
    color: var(--navy);
    background: var(--volt);
}

.tag {
    color: #4a5568;
    background: #eff1f5;
}

.tag-warn {
    color: var(--warn);
    background: var(--warn-soft);
}

.station-meta {
    display: grid;
    gap: 2px;
    margin-top: 9px;
    font-size: 13px;
}

.station-meta div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
}

.station-meta dt {
    color: #8792a6;
    font-weight: 700;
}

.station-meta dd {
    color: #39445a;
}

.station-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.station-actions a {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #39445a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.station-actions a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.empty {
    padding: 40px 20px;
    color: var(--muted);
    text-align: center;
}

.map-panel {
    position: sticky;
    top: 150px;
}

.map-canvas {
    width: 100%;
    height: 620px;
    background: #e4e9f2;
}

.map-selection {
    min-height: 60px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.map-selection strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.guide {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.guide h2 {
    font-size: 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.guide-grid article {
    padding: 18px;
    border-left: 3px solid var(--volt);
    border-radius: 4px 12px 12px 4px;
    background: #f7f8fb;
}

.guide-grid h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.guide-grid p {
    color: var(--muted);
    font-size: 13px;
}

.partner-area {
    margin-top: 22px;
    overflow: hidden;
    border-radius: 12px;
}

.site-footer {
    padding: 26px 20px 34px;
    color: #9fb0d0;
    background: var(--navy);
    font-size: 12px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .results-layout {
        grid-template-columns: 1fr;
    }

    .map-panel {
        position: static;
        order: -1;
    }

    .map-canvas {
        height: 360px;
    }

    .station-list {
        max-height: none;
        overflow: visible;
    }

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

@media (max-width: 640px) {
    .header-inner,
    .page-shell {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 26px 20px 42px;
        border-radius: 0 0 20px 20px;
    }

    .hero-stats dd {
        font-size: 21px;
    }

    .toolbar {
        position: static;
        padding: 12px;
    }

    .filters {
        width: 100%;
    }

    .near-button {
        flex: 1 0 100%;
    }

    .map-canvas {
        height: 300px;
    }

    .station {
        padding: 15px 16px;
    }

    .guide {
        padding: 22px 18px;
    }
}
