@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --ink: #1d2625;
  --muted: #66706d;
  --line: #dfe6e1;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --leaf: #23715f;
  --leaf-dark: #155448;
  --mint: #e7f3eb;
  --sun: #f3b23f;
  --coral: #ee765f;
  --sky: #dceef5;
  --shadow: 0 18px 45px rgba(30, 48, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(223, 230, 225, 0.8);
  background: rgba(251, 252, 247, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--leaf);
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.ghost-button,
.primary-button,
.chip,
.theme-card,
.close-button {
  cursor: pointer;
  border: 0;
}

.ghost-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: white;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #24352f;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(16, 30, 26, 0.82), rgba(16, 30, 26, 0.38), rgba(16, 30, 26, 0.1)),
    url("assets/hero-korean-family.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 38px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.6;
}

.search-panel {
  width: min(1040px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 220px 120px;
  gap: 12px;
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
}

.search-field span,
.select-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

input,
select {
  min-height: 48px;
}

textarea {
  min-height: 108px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(35, 113, 95, 0.14);
}

.primary-button {
  align-self: end;
  min-height: 48px;
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  font-weight: 800;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-group {
  margin-top: 14px;
}

.filter-group > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-group .quick-filters {
  margin-top: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-weight: 700;
}

.chip.active {
  border-color: var(--leaf);
  color: white;
  background: var(--leaf);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -12px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 32px rgba(30, 48, 42, 0.08);
}

.stats-band div {
  padding: 22px 24px;
  background: white;
}

.stats-band strong {
  display: block;
  font-size: 25px;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 76px auto 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

.result-text {
  color: var(--muted);
  font-weight: 700;
}

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

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.map-toolbar strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.map-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.location-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.kakao-map {
  width: 100%;
  height: 430px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
}

.place-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(30, 48, 42, 0.07);
}

.place-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--sky);
}

.image-wrap {
  position: relative;
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(17, 24, 22, 0.2);
}

.status-verified {
  background: var(--leaf);
}

.status-seasonal {
  background: #b45c20;
}

.status-check {
  background: #4e6170;
}

.place-body {
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.place-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.place-card p {
  color: var(--muted);
  line-height: 1.55;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 27px;
  margin-top: 12px;
}

.mini-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #5d4a16;
  background: #fff3d4;
  font-size: 12px;
  font-weight: 800;
}

.travel-summary {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--leaf-dark) !important;
  font-size: 13px;
  font-weight: 800;
}

.place-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.price {
  color: var(--coral);
  font-weight: 900;
}

.detail-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--leaf-dark);
  font-weight: 800;
  cursor: pointer;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 80px;
}

.note-list article {
  min-height: 150px;
  padding: 20px;
  border-left: 5px solid var(--sun);
  background: white;
}

.note-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.note-list p {
  color: var(--muted);
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 22, 0.64);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  font-size: 26px;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  margin-bottom: 10px;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.65;
}

dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 14px;
  margin: 18px 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.tip {
  padding: 14px;
  border-radius: 8px;
  background: var(--mint);
}

.review-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review-heading,
.review-meta,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-heading {
  margin-bottom: 14px;
}

.review-heading h3 {
  margin: 0;
  font-size: 22px;
}

.review-heading .eyebrow {
  margin-bottom: 5px;
}

.review-count {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 13px;
}

.review-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.review-form label:not(.photo-button) {
  display: grid;
  gap: 6px;
}

.review-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.photo-button,
.review-submit,
.review-delete {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.photo-button,
.review-submit {
  display: grid;
  min-height: 42px;
  padding: 0 14px;
  place-items: center;
}

.photo-button {
  border: 1px solid var(--line);
  color: var(--leaf-dark);
  background: white;
}

.photo-button input {
  display: none;
}

.review-submit {
  color: white;
  background: var(--leaf);
}

.review-photo-preview {
  display: none;
}

.review-photo-preview.has-image {
  display: block;
}

.review-photo-preview img {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.review-notice {
  margin: 0 !important;
  color: var(--muted);
  font-size: 12px;
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-image {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 8px;
  object-fit: cover;
}

.review-content p {
  margin: 10px 0;
  color: var(--ink);
}

.review-meta span {
  color: var(--muted);
  font-size: 12px;
}

.review-delete {
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.review-empty p {
  margin: 6px 0 0;
}

.info-link {
  display: inline-block;
  margin: 0 10px 6px 0;
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .search-row,
  .place-grid,
  .note-list {
    grid-template-columns: 1fr 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 62px;
  }

  .ghost-button {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    padding-top: 72px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .search-panel {
    padding: 14px;
  }

  .stats-band,
  .place-grid,
  .note-list {
    grid-template-columns: 1fr;
  }

  .stats-band,
  .section {
    width: calc(100% - 28px);
  }

  .section {
    margin-top: 52px;
  }

  .section-head {
    display: block;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .kakao-map {
    height: 330px;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .review-item {
    grid-template-columns: 1fr;
  }
}
