:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1f2328;
  --muted: #5f6670;
  --line: #e7e1d8;
  --red: #c0392b;
  --blue: #1e5aa8;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #8e2a3f 45%, var(--blue) 100%);
  color: #fff;
  padding-block: 64px 56px;
}
.eyebrow {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
}
.lead {
  max-width: 600px;
  margin: 14px 0 0;
  font-size: 1.1rem;
  opacity: 0.92;
}

.section-title {
  margin: 40px 0 16px;
  font-size: 1.35rem;
}

/* Province cards */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.province-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.province-card:hover,
.province-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.province-card.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.province-card .ko {
  font-size: 1.35rem;
  font-weight: 700;
}
.province-card .en {
  font-weight: 600;
}
.province-card .cities {
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Province detail */
.detail {
  margin-top: 36px;
  scroll-margin-top: 16px;
}
.hint {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.detail-head {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
}
.detail-head h3 {
  margin: 0;
  font-size: 1.7rem;
}
.detail-head h3 span {
  color: var(--accent);
}
.detail-head p {
  margin: 6px 0 0;
}
.detail-head .cities {
  color: var(--muted);
  font-weight: 600;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
}
.tabs button {
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.tabs button small {
  font-weight: 400;
  opacity: 0.7;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.item {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.item h4 {
  margin: 0;
  font-size: 1.05rem;
}
.item-ko {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92rem;
}
.item p {
  margin: 8px 0 0;
}
.item .price {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: var(--red);
}
.item .address {
  font-size: 0.88rem;
  color: var(--muted);
}
.item .address a {
  margin-left: 4px;
  font-weight: 700;
  color: var(--blue);
}
.item .source {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}
.usd {
  font-weight: 500;
  color: var(--muted);
}

.badge {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: #eef1f5;
}
.badge-luxury {
  background: #fbefd5;
  color: #8a5a00;
}
.badge-mid-range {
  background: #e3effc;
  color: #1e5aa8;
}
.badge-budget {
  background: #e4f4e6;
  color: #2e7d32;
}

.empty {
  color: var(--muted);
}

.note {
  margin: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer {
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
