:root {
    --text: #191f28;
    --text-soft: #4e5968;
    --text-muted: #8b95a1;
    --line: #e5e8eb;
    --line-soft: #edf0f3;
    --surface: #ffffff;
    --background: #f7f8fa;
    --field: #f2f4f6;
    --blue: #3182f6;
    --blue-hover: #1b64da;
    --blue-soft: #e8f3ff;
    --shadow: 0 8px 24px rgba(25, 31, 40, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

code {
    padding: 3px 7px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .12);
    border-radius: 6px;
    font-family: Consolas, "Courier New", monospace;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 32px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(229, 232, 235, .7);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(49, 130, 246, .24);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
}

.brand small {
    color: var(--text-muted);
    font-size: 12px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    padding: 9px 13px;
    color: var(--text-soft);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover {
    color: var(--text);
    background: var(--field);
}

.nav a.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.workspace {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 42px 24px 72px;
}

.home-hero,
.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: center;
    min-height: 430px;
    padding: 56px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.search-panel {
    grid-template-columns: minmax(0, .86fr) 1.14fr;
    align-items: center;
    min-height: 260px;
    padding: 44px 50px;
}

.eyebrow,
.section-title span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.home-hero h1,
.section-title strong {
    display: block;
    max-width: 720px;
    margin: 14px 0 14px;
    font-size: 44px;
    line-height: 1.16;
    font-weight: 850;
}

.section-title strong {
    font-size: 30px;
}

.home-hero p,
.section-title p {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.primary-link,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 48px;
    padding: 0 18px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.primary-link:hover,
.search-button:hover {
    background: var(--blue-hover);
}

.metric-grid article {
    padding: 22px;
    background: #fbfcfd;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
}

.metric-grid span,
.metric-grid small {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-grid strong {
    display: block;
    margin: 10px 0 5px;
    color: var(--text);
    font-size: 34px;
    line-height: 1;
    font-weight: 850;
}

.home-search {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1fr) 110px;
    gap: 12px;
    align-items: end;
    max-width: 640px;
    margin-top: 30px;
    padding: 14px;
    background: #f7f9fb;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
}

.hero-visual {
    position: relative;
    min-height: 280px;
}

.hero-visual:before {
    content: "";
    position: absolute;
    inset: 24px 28px 36px 10px;
    background: linear-gradient(135deg, #e8f3ff, #f6f8fb);
    border-radius: 38px;
    transform: rotate(-4deg);
}

.hero-visual:after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 112px;
    height: 112px;
    background: #dbeafe;
    border-radius: 36px;
}

.hero-visual-card {
    position: absolute;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(229, 232, 235, .9);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(25, 31, 40, .12);
    backdrop-filter: blur(12px);
}

.hero-visual-card.main {
    top: 58px;
    left: 0;
    width: 250px;
}

.hero-visual-card.sub {
    right: 0;
    bottom: 36px;
    width: 230px;
}

.hero-visual-card span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-visual-card strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1.18;
    font-weight: 850;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: var(--blue);
    background: var(--blue-soft);
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.filters {
    display: grid;
    grid-template-columns: 116px 116px 116px minmax(220px, 1fr) 96px;
    gap: 12px;
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

select,
input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--text);
    background: var(--field);
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
}

select:focus,
input:focus {
    background: #fff;
    border-color: var(--blue);
    outline: 3px solid rgba(49, 130, 246, .16);
}

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

.metric-grid article {
    background: var(--surface);
}

.metric-grid strong {
    font-size: 28px;
}

.region-picker {
    padding: 44px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.region-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.region-picker-grid a {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 20px;
    background: #fbfcfd;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.region-picker-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(49, 130, 246, .32);
    box-shadow: 0 12px 28px rgba(25, 31, 40, .08);
}

.region-picker-grid span {
    color: var(--text);
    font-size: 22px;
    font-weight: 850;
}

.region-picker-grid small {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.map-section {
    margin-top: 28px;
}

.parking-map {
    width: 100%;
    height: 470px;
    overflow: hidden;
    background: var(--field);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: end;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 16px;
    padding: 0 12px;
    color: var(--text-soft);
    background: var(--field);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.back-link:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.detail-hero h1 {
    max-width: 820px;
    margin: 14px 0 12px;
    color: var(--text);
    font-size: 38px;
    line-height: 1.18;
    font-weight: 850;
}

.detail-hero p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.detail-summary-card {
    padding: 24px;
    background: #fbfcfd;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
}

.detail-summary-card span,
.detail-summary-card small {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.detail-summary-card strong {
    display: block;
    margin: 10px 0 6px;
    color: var(--text);
    font-size: 34px;
    line-height: 1;
    font-weight: 850;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.detail-grid article {
    min-width: 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.detail-grid h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 20px;
    font-weight: 850;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}

.detail-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.detail-list dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-list dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.detail-map {
    height: 340px;
    box-shadow: none;
}

.price-marker-wrap {
    background: transparent;
    border: 0;
}

.price-marker {
    position: relative;
    display: grid;
    place-items: center;
    width: 86px;
    min-height: 48px;
    padding: 8px 9px 9px;
    color: #fff;
    background: #0797ee;
    border: 1px solid #0078ca;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .18);
    text-align: center;
    text-decoration: none;
    transform: translate(-50%, -100%);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.price-marker:hover {
    color: #fff;
    filter: brightness(1.03);
    box-shadow: 0 4px 9px rgba(15, 23, 42, .24);
    transform: translate(-50%, calc(-100% - 2px));
}

.price-marker:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: 1px solid #0078ca;
    border-bottom: 1px solid #0078ca;
    transform: translateX(-50%) rotate(45deg);
}

.price-marker span,
.price-marker strong {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 1.1;
}

.price-marker span {
    max-width: 100%;
    color: rgba(255, 255, 255, .88);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-marker strong {
    margin-top: 5px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
}

.price-marker--free {
    color: #111827;
    background: #fff;
    border-color: #111827;
}

.price-marker--free:hover {
    color: #111827;
    box-shadow: 0 4px 9px rgba(15, 23, 42, .24);
}

.price-marker--free:after {
    border-color: #111827;
}

.price-marker--free span {
    color: #111827;
}

.price-marker--paid,
.price-marker--muted {
    color: #fff;
}

.price-marker--paid span,
.price-marker--paid strong,
.price-marker--muted span {
    color: rgba(255, 255, 255, .88);
}

.price-marker--paid strong,
.price-marker--muted strong {
    color: #fff;
}

.price-marker--muted {
    color: #fff;
    background: #aebdca;
    border-color: #8b9cab;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .16);
}

.price-marker--muted span {
    color: rgba(255, 255, 255, .88);
}

.price-marker--muted:after {
    border-color: #8b9cab;
}

.price-marker--muted:hover {
    color: #fff;
    box-shadow: 0 4px 9px rgba(15, 23, 42, .22);
}

.leaflet-popup-content {
    display: grid;
    gap: 5px;
    min-width: 190px;
    margin: 13px 16px;
}

.leaflet-popup-content strong,
.leaflet-popup-content span,
.leaflet-popup-content small {
    display: block;
}

.leaflet-popup-content strong {
    color: var(--text);
    font-size: 14px;
}

.leaflet-popup-content span,
.leaflet-popup-content small {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
}

.section-heading span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.list-section {
    margin-top: 28px;
}

.table-wrap {
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--text-muted);
    background: #fbfcfd;
    font-size: 12px;
    font-weight: 850;
}

td {
    color: var(--text-soft);
    font-size: 14px;
}

td strong {
    display: block;
    color: var(--text);
    font-weight: 850;
}

td small {
    display: block;
    max-width: 420px;
    margin-top: 6px;
    color: var(--text-muted);
    line-height: 1.5;
}

tbody tr:hover {
    background: #f9fafb;
}

.empty-state {
    margin-top: 14px;
    padding: 18px;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 16px;
}

@media (max-width: 1120px) {
    .home-hero,
    .search-panel,
    .detail-hero,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .search-panel {
        min-height: 0;
    }

    .hero-visual {
        display: none;
    }

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

    .region-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .keyword-field,
    .search-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }

    .workspace {
        padding: 22px 14px 44px;
    }

    .home-hero,
    .search-panel,
    .region-picker,
    .detail-hero,
    .detail-grid article {
        padding: 24px;
        border-radius: 20px;
    }

    .filters,
    .metric-grid,
    .home-search,
    .region-picker-grid {
        grid-template-columns: 1fr;
    }

    .parking-map {
        height: 360px;
        border-radius: 18px;
    }

    .detail-hero h1 {
        font-size: 28px;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .home-search {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .home-hero h1,
    .section-title strong {
        font-size: 27px;
    }

    .home-summary strong,
    .metric-grid strong {
        font-size: 28px;
    }
}
