:root {
  --ink: #102933;
  --ink-soft: #597078;
  --teal: #0a6971;
  --teal-deep: #093843;
  --aqua: #39d4c7;
  --paper: #f7f7f2;
  --line: #dce3e0;
  --hyundai: #2b6bdf;
  --hyundai-soft: #e9f0ff;
  --kia: #d24b37;
  --kia-soft: #ffede7;
  --warn: #d88124;
  --shadow: 0 18px 45px rgba(11, 45, 52, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  align-items: center;
  background: var(--teal-deep);
  color: #eefcf9;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 5vw;
}
.brand-lockup { align-items: center; display: inline-flex; gap: 11px; text-decoration: none; }
.brand-mark { display: flex; gap: 3px; height: 27px; align-items: end; }
.brand-mark i { background: var(--aqua); border-radius: 2px; display: block; width: 5px; }
.brand-mark i:nth-child(1) { height: 13px; opacity: .68; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 18px; opacity: .82; }
.brand-text { display: grid; gap: 1px; letter-spacing: .08em; }
.brand-text strong { font-size: 13px; font-weight: 800; }
.brand-text small { color: #a5d3ce; font-size: 8px; font-weight: 700; }
.topbar-status { align-items: center; color: #cae4e0; display: flex; font-size: 12px; font-weight: 650; gap: 8px; }
.status-pulse { background: var(--aqua); border-radius: 50%; box-shadow: 0 0 0 4px rgba(57, 212, 199, .14); height: 7px; width: 7px; }

main { margin: 0 auto; max-width: 1540px; padding: 0 5vw 56px; }
.hero { max-width: 955px; padding: clamp(48px, 8vw, 105px) 0 48px; position: relative; }
.hero::after { background: var(--aqua); content: ""; height: 4px; left: -5vw; position: absolute; top: 0; width: min(28vw, 360px); }
.eyebrow, .control-kicker { color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .14em; margin: 0 0 11px; }
.eyebrow { align-items: center; display: flex; gap: 8px; }
.eyebrow span { background: var(--kia); border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
h1 { font-size: clamp(32px, 4.25vw, 61px); letter-spacing: -0.065em; line-height: 1.16; margin: 0; max-width: 960px; }
.hero > p { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.7; margin: 21px 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-meta span { background: #edf1ed; border-radius: 999px; color: #607278; font-size: 12px; padding: 8px 13px; }
.hero-meta strong { color: var(--ink); font-size: 15px; margin-right: 3px; }

.control-strip { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding-bottom: 18px; }
.control-kicker { font-size: 9px; margin-bottom: 6px; }
h2 { font-size: 19px; letter-spacing: -0.04em; margin: 0; }
.filter-group { display: flex; gap: 7px; }
.filter-button { background: transparent; border: 1px solid #ced9d6; border-radius: 999px; color: #50666c; font-size: 13px; font-weight: 750; padding: 9px 13px; transition: .2s ease; }
.filter-button span { background: #e4eae8; border-radius: 20px; font-size: 10px; margin-left: 4px; padding: 2px 5px; }
.filter-button:hover { border-color: var(--teal); color: var(--teal); }
.filter-button.active { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.filter-button.active span { background: rgba(255,255,255,.16); }

.workspace { align-items: stretch; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .72fr); padding-top: 24px; }
.map-panel, .directory-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { align-items: center; display: flex; justify-content: space-between; padding: 22px 22px 16px; }
.outline-button { background: #f7faf9; border: 1px solid #cad9d5; border-radius: 9px; color: var(--teal); font-size: 12px; font-weight: 750; padding: 8px 11px; }
.outline-button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.map-wrap { min-height: 575px; position: relative; }
#map { height: 575px; width: 100%; z-index: 0; }
.map-legend { background: rgba(255,255,255,.93); border: 1px solid rgba(213, 223, 220, .9); border-radius: 10px; bottom: 18px; box-shadow: 0 8px 24px rgba(31, 58, 62, .13); display: flex; font-size: 11px; font-weight: 750; gap: 11px; left: 18px; padding: 8px 10px; position: absolute; z-index: 500; }
.map-legend span { align-items: center; display: flex; gap: 5px; }
.legend-dot { border-radius: 50%; height: 8px; width: 8px; }
.legend-dot.hyundai { background: var(--hyundai); }
.legend-dot.kia { background: var(--kia); }
.map-caption { align-items: flex-start; background: #f7faf9; border-top: 1px solid var(--line); color: #607278; display: flex; font-size: 12px; gap: 9px; line-height: 1.5; padding: 13px 19px; }
.map-caption p { margin: 0; }
.caption-icon { align-items: center; border: 1px solid #97aea9; border-radius: 50%; color: var(--teal); display: inline-flex; flex: 0 0 auto; font-family: Georgia, serif; font-weight: bold; height: 16px; justify-content: center; width: 16px; }

.directory-panel { display: flex; flex-direction: column; max-height: 751px; }
.selected-detail { border-bottom: 1px solid var(--line); }
.detail-empty { color: var(--ink-soft); font-size: 13px; padding: 15px 20px; }
.detail-card { animation: reveal .28s ease; padding: 18px 20px 16px; }
.detail-topline { align-items: center; display: flex; gap: 7px; justify-content: space-between; }
.brand-badge { border-radius: 999px; display: inline-block; font-size: 10px; font-weight: 850; letter-spacing: .06em; padding: 5px 8px; }
.brand-badge.hyundai { background: var(--hyundai-soft); color: var(--hyundai); }
.brand-badge.kia { background: var(--kia-soft); color: var(--kia); }
.location-pill { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.detail-card h3 { font-size: 20px; letter-spacing: -0.05em; line-height: 1.3; margin: 9px 0 10px; }
.address-line { color: #577077; font-size: 12px; line-height: 1.55; margin: 0 0 10px; }
.phone-link { align-items: center; color: var(--ink); display: inline-flex; font-size: 14px; font-weight: 800; gap: 6px; text-decoration: none; }
.phone-link:hover { color: var(--teal); text-decoration: underline; }
.phone-symbol { border: 1px solid #b4cac5; border-radius: 6px; color: var(--teal); font-size: 10px; padding: 2px 4px; }
.diagnosis-label { color: #75878b; font-size: 10px; font-weight: 800; margin: 15px 0 6px; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.diag-tag { background: #eff4f2; border: 1px solid #dbe5e2; border-radius: 5px; color: #3c595e; font-size: 10px; font-weight: 700; padding: 5px 6px; }
.detail-links { display: flex; gap: 8px; margin-top: 14px; }
.detail-links a { border-bottom: 1px solid #a5b8b5; color: var(--teal); font-size: 11px; font-weight: 800; text-decoration: none; }
.detail-links a:hover { border-color: var(--teal); }
.center-warning { background: #fff6e8; border-left: 3px solid var(--warn); color: #7a572c; font-size: 11px; line-height: 1.45; margin-top: 12px; padding: 7px 9px; }
.directory-head { align-items: end; display: flex; justify-content: space-between; padding: 17px 20px 12px; }
.directory-head h2 span { color: var(--teal); font-size: 14px; }
.scroll-hint { color: #849598; font-size: 10px; font-weight: 700; }
.center-list { display: grid; gap: 8px; overflow: auto; padding: 0 12px 15px; scrollbar-color: #b9cbc6 transparent; }
.center-card { align-items: stretch; background: #fff; border: 1px solid #e1e8e5; border-radius: 13px; color: var(--ink); display: grid; font-family: inherit; grid-template-columns: 4px 1fr auto; padding: 0; text-align: left; transition: .18s ease; width: 100%; }
.center-card:hover, .center-card:focus-visible { border-color: #81aaa4; box-shadow: 0 5px 14px rgba(19, 75, 78, .08); outline: none; transform: translateY(-1px); }
.center-card.selected { background: #f2f9f7; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.center-card .color-bar { border-radius: 13px 0 0 13px; }
.center-card.hyundai .color-bar { background: var(--hyundai); }
.center-card.kia .color-bar { background: var(--kia); }
.center-card-content { min-width: 0; padding: 12px 8px 12px 11px; }
.card-metadata { align-items: center; color: var(--ink-soft); display: flex; font-size: 10px; font-weight: 750; gap: 5px; }
.card-metadata .dot { background: #a6b6b5; border-radius: 50%; height: 3px; width: 3px; }
.center-card h3 { font-size: 14px; letter-spacing: -0.035em; margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center-card p { color: #778a8e; font-size: 11px; line-height: 1.35; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { align-self: center; color: #92a4a5; font-size: 19px; padding: 10px 12px 10px 2px; }
.empty-state { color: var(--ink-soft); font-size: 13px; line-height: 1.6; padding: 28px 8px; text-align: center; }

.notice { align-items: flex-start; background: #e7f1ef; border-radius: var(--radius-md); display: flex; gap: 13px; margin-top: 24px; padding: 19px 22px; }
.notice-icon { align-items: center; background: var(--teal); border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 900; height: 20px; justify-content: center; margin-top: 2px; width: 20px; }
.notice h2 { font-size: 14px; margin-bottom: 5px; }
.notice p { color: #547076; font-size: 12px; line-height: 1.6; margin: 0; }
.parking-app-promo {
  align-items: center;
  background: #1e293b;
  border: 1px solid rgba(96, 165, 250, .42);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .13), inset 0 1px 0 rgba(191, 219, 254, .08);
  color: #fff;
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 92px;
  padding: 17px 54px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  width: 100%;
}
.parking-app-promo:hover, .parking-app-promo:focus-visible {
  border-color: rgba(96, 165, 250, .8);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(191, 219, 254, .12);
  outline: none;
  transform: translateY(-1px);
}
.parking-app-promo-copy { align-items: center; display: flex; flex-direction: column; gap: 6px; }
.parking-app-promo-copy strong { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.4; }
.parking-app-promo-copy > span { color: #6ee7b7; font-size: 13px; font-weight: 600; line-height: 1.5; }
.parking-app-promo-arrow { color: #93c5fd; font-size: 22px; font-weight: 700; line-height: 1; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
footer { border-top: 1px solid #d7e0dd; color: #6c8184; display: flex; font-size: 10px; gap: 15px; justify-content: space-between; line-height: 1.5; padding: 22px 5vw 28px; }

.ev-pin { align-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 5px 14px rgba(16, 36, 48, .28); color: #fff; display: flex; font-size: 10px; font-weight: 900; height: 31px; justify-content: center; transform: rotate(-45deg); width: 31px; }
.ev-pin span { transform: rotate(45deg); }
.ev-pin.hyundai { background: var(--hyundai); }
.ev-pin.kia { background: var(--kia); }
.ev-pin.active { box-shadow: 0 0 0 4px rgba(57, 212, 199, .42), 0 6px 17px rgba(16,36,48,.34); }
.leaflet-popup-content-wrapper { border-radius: 13px; box-shadow: 0 12px 30px rgba(10, 37, 45, .2); }
.leaflet-popup-content { margin: 13px 15px; min-width: 180px; }
.popup-brand { font-size: 10px; font-weight: 850; letter-spacing: .07em; margin-bottom: 4px; }
.popup-brand.hyundai { color: var(--hyundai); }
.popup-brand.kia { color: var(--kia); }
.popup-title { font-size: 14px; font-weight: 850; line-height: 1.3; }
.popup-address { color: #678; font-size: 11px; line-height: 1.4; margin: 5px 0 0; }
.leaflet-control-zoom a { color: var(--teal-deep) !important; }
@keyframes reveal { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1020px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .map-wrap, #map { min-height: 510px; height: 510px; }
}
@media (max-width: 780px) {
  .topbar { min-height: 62px; padding: 0 20px; }
  .topbar-status { font-size: 10px; }
  .brand-text small { display: none; }
  main { padding: 0 18px 42px; }
  .hero { padding: 51px 0 34px; }
  .hero::after { left: -18px; width: 160px; }
  .control-strip { align-items: flex-start; flex-direction: column; }
  .filter-group { width: 100%; }
  .filter-button { flex: 1; padding-inline: 8px; }
  .workspace { display: flex; flex-direction: column; gap: 16px; }
  .map-wrap, #map { min-height: 420px; height: 420px; }
  .directory-panel { max-height: none; }
  .center-list { grid-template-columns: 1fr 1fr; max-height: 420px; }
  footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 19px 18px 24px; }
}
@media (max-width: 490px) {
  h1 { letter-spacing: -0.06em; }
  .topbar-status { display: none; }
  .panel-head { padding: 18px 16px 13px; }
  .map-wrap, #map { min-height: 380px; height: 380px; }
  .map-caption { font-size: 11px; padding: 12px 14px; }
  .map-legend { bottom: 13px; left: 13px; }
  .center-list { grid-template-columns: 1fr; max-height: 360px; }
  .scroll-hint { display: none; }
  .detail-card { padding: 16px; }
  .notice { margin-top: 16px; padding: 16px; }
  .parking-app-promo { border-radius: 15px; min-height: 96px; padding: 17px 39px 17px 17px; }
  .parking-app-promo-copy strong { font-size: 16px; }
  .parking-app-promo-copy > span { font-size: 13px; }
  .parking-app-promo-arrow { right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
