:root {
  color: #111;
  background: #f3f0e8;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  --ink: #111;
  --paper: #f3f0e8;
  --paper-deep: #e7e2d7;
  --line: rgba(17, 17, 17, 0.2);
  --lime: #d9ff38;
  --blue: #2453ff;
  --red: #ff4d32;
  --green: #19b56b;
  --yellow: #ffc83d;
  --muted: #6d6a63;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }

.page-width { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 12px; padding: 10px 14px; color: #fff; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.top-accent { height: 8px; border-bottom: 1px solid var(--ink); background: var(--lime); }
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 17px; }
.wordmark__main { position: relative; font-family: Arial Black, Arial, sans-serif; font-size: clamp(34px, 4vw, 52px); font-weight: 950; line-height: 0.82; letter-spacing: -0.1em; }
.wordmark__main > span { color: var(--blue); }
.wordmark__main::after { content: ""; position: absolute; top: -8px; right: -10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.wordmark__sub { padding-left: 15px; border-left: 1px solid var(--ink); font-size: 10px; font-weight: 850; line-height: 1.4; letter-spacing: 0.04em; }
.header-meta { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 760; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; background: var(--green); }
.status-dot--stale { background: var(--yellow); }

.intro { min-height: 150px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); align-items: end; gap: 48px; padding-block: 35px 30px; }
.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.intro h1 { font-size: clamp(42px, 6vw, 78px); line-height: 0.96; letter-spacing: -0.065em; }
.intro__copy { padding-bottom: 8px; font-size: clamp(16px, 1.7vw, 23px); font-weight: 680; line-height: 1.45; letter-spacing: -0.035em; }

.filter-bar { border-block: 1px solid var(--ink); background: var(--blue); color: #fff; }
.filters { min-height: 78px; display: grid; grid-template-columns: auto auto minmax(230px, 1fr) auto; align-items: center; gap: 24px; }
.filter-group { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.filter-group legend { float: left; margin-right: 8px; font-size: 11px; font-weight: 850; letter-spacing: 0.08em; }
.filter-group button, .region-tabs button { min-height: 38px; padding: 0 15px; border: 1px solid currentColor; background: transparent; cursor: pointer; font-weight: 820; }
.filter-group button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.search-field { min-width: 0; display: flex; align-items: center; gap: 10px; justify-self: stretch; }
.search-field span { flex: 0 0 auto; font-size: 11px; font-weight: 850; letter-spacing: 0.08em; }
.search-field input { width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid #fff; border-radius: 0; background: rgba(255,255,255,0.1); color: #fff; outline: 0; }
.search-field input::placeholder { color: rgba(255,255,255,0.72); }
.search-field input:focus { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.available-toggle { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 820; cursor: pointer; }
.available-toggle input { width: 18px; height: 18px; accent-color: var(--lime); }

.region-tabs { min-height: 64px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); }
.region-tabs button { min-height: 36px; padding-inline: 13px; border-color: var(--ink); }
.region-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
#visible-count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); }

.map-layout { height: 690px; min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(350px, 0.75fr); border-inline: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.map-column { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid var(--ink); }
#map { width: 100%; height: 690px; background: var(--paper-deep); }
.map-legend { position: absolute; z-index: 500; left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 13px; padding: 10px 12px; border: 1px solid var(--ink); background: rgba(243,240,232,0.94); font-size: 11px; font-weight: 800; box-shadow: 4px 4px 0 var(--ink); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border: 1px solid var(--ink); border-radius: 50%; }
.legend-dot--available { background: var(--lime); }
.legend-dot--full { background: var(--red); }
.legend-dot--none { background: #a7a49d; }

.leaflet-control-zoom a { border-radius: 0 !important; color: var(--ink) !important; background: var(--paper) !important; }
.leaflet-control-attribution { font-size: 9px !important; }
.center-marker { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: #a7a49d; box-shadow: 3px 3px 0 rgba(17,17,17,0.45); font-size: 9px; font-weight: 950; transition: transform 140ms ease; }
.center-marker--available { background: var(--lime); }
.center-marker--full { background: var(--red); color: #fff; }
.center-marker--selected { transform: scale(1.24); box-shadow: 0 0 0 5px rgba(36,83,255,0.32), 3px 3px 0 var(--ink); }
.center-label { white-space: nowrap; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.center-label::before { display: none; }

.detail-panel { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); color: #fff; }
.detail-loading { padding: 36px; font-weight: 760; }
.detail-header { padding: 28px 27px 24px; border-bottom: 1px solid rgba(255,255,255,0.24); }
.detail-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.detail-header h2 { max-width: 16ch; font-size: clamp(25px, 2.5vw, 38px); line-height: 1.06; letter-spacing: -0.055em; }
.detail-address { margin-top: 16px; color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.5; }
.detail-contact { display: inline-block; margin-top: 6px; color: #fff; font-size: 12px; font-weight: 750; }
.detail-summary { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,0.24); }
.summary-cell { padding: 17px 20px; }
.summary-cell + .summary-cell { border-left: 1px solid rgba(255,255,255,0.24); }
.summary-cell span { display: block; margin-bottom: 6px; color: rgba(255,255,255,0.58); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.summary-cell strong { font-size: 18px; }
.schedule-wrap { min-height: 0; flex: 1; overflow: auto; padding: 20px; }
.schedule-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.schedule-heading h3 { font-size: 17px; }
.schedule-heading span { color: rgba(255,255,255,0.58); font-size: 11px; }
.schedule-list { display: grid; gap: 9px; }
.schedule-row { display: grid; grid-template-columns: minmax(82px, 1fr) 62px 54px; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.04); }
.schedule-row--available { border-color: var(--lime); background: #f7f5ee; color: var(--ink); }
.schedule-date strong, .schedule-date span { display: block; }
.schedule-date strong { font-size: 14px; }
.schedule-date span { margin-top: 3px; color: inherit; opacity: 0.65; font-size: 10px; }
.schedule-time { font-size: 15px; font-weight: 880; }
.seat-status { text-align: right; font-size: 11px; font-weight: 850; }
.schedule-row--available .seat-status { color: #087840; }
.apply-link { grid-column: 1 / -1; min-height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 900; }
.apply-link:hover, .apply-link:focus-visible { background: var(--blue); color: #fff; }
.schedule-empty { padding: 28px 4px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.stale-notice { margin-bottom: 13px; padding: 10px 11px; border: 1px solid var(--yellow); color: var(--yellow); font-size: 11px; line-height: 1.45; }
.copy-button { width: 100%; min-height: 43px; margin-top: 12px; border: 1px solid rgba(255,255,255,0.42); background: transparent; color: #fff; font-size: 12px; font-weight: 820; cursor: pointer; }
.copy-button:hover { border-color: #fff; }

.notice { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-block: 32px 45px; border-bottom: 1px solid var(--ink); }
.notice h2 { font-size: 20px; letter-spacing: -0.04em; }
.notice div { display: grid; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-footer { padding-block: 25px 36px; }
.site-footer .page-width { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.site-footer strong { letter-spacing: 0.07em; }
.error-state { padding: 32px; color: #fff; }
.error-state h2 { margin-bottom: 10px; }

@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; padding-block: 14px; }
  .search-field { order: 3; }
  .available-toggle { order: 4; justify-self: end; }
  .map-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .map-column { border-right: 0; border-bottom: 1px solid var(--ink); }
  #map { height: min(60vh, 570px); }
  .detail-panel { min-height: 520px; height: auto; overflow: visible; }
  .detail-header h2 { max-width: none; }
}

@media (max-width: 680px) {
  .page-width { width: min(100% - 24px, 1420px); }
  .masthead { min-height: 64px; }
  .wordmark__main { font-size: 30px; }
  .wordmark__sub { display: none; }
  .header-meta { max-width: 145px; justify-content: flex-end; text-align: right; font-size: 10px; }
  .intro { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding-block: 28px 24px; }
  .intro h1 { font-size: 46px; }
  .intro__copy { font-size: 16px; }
  .filter-bar .page-width { width: 100%; padding-inline: 12px; }
  .filters { grid-template-columns: 1fr; gap: 12px; padding-block: 14px; }
  .filter-group { width: 100%; }
  .filter-group legend { width: 54px; }
  .filter-group button { flex: 1; }
  .search-field { order: initial; }
  .available-toggle { order: initial; justify-self: start; }
  .region-tabs { min-height: 58px; gap: 5px; overflow-x: auto; }
  .region-tabs button { flex: 0 0 auto; padding-inline: 10px; font-size: 12px; }
  #visible-count { display: none; }
  .map-layout { width: 100%; border-inline: 0; }
  #map { height: 52vh; min-height: 400px; }
  .map-legend { left: 10px; right: 10px; bottom: 10px; justify-content: center; box-shadow: 3px 3px 0 var(--ink); }
  .detail-header { padding: 25px 20px 20px; }
  .detail-header h2 { font-size: 29px; }
  .schedule-wrap { padding: 16px 12px 22px; }
  .notice { grid-template-columns: 1fr; gap: 14px; padding-block: 28px 32px; }
  .site-footer .page-width { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
