:root {
  color-scheme: light;
  --ink: #14201c;
  --muted: #5c6864;
  --line: #dbe3df;
  --paper: #f7f8f4;
  --white: #ffffff;
  --teal: #0e7c7b;
  --coral: #d96c4b;
  --yellow: #f2b84b;
  --green: #315f4f;
  --shadow: 0 18px 50px rgba(19, 37, 31, 0.14);
  font-family: Inter, "Segoe UI", "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  min-height: 460px;
  gap: 28px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border-radius: 8px;
  background: url("/static/hero-ocean.png") center/cover;
  box-shadow: var(--shadow);
}

.hero__copy {
  color: var(--white);
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #dff5ef;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.15rem;
  line-height: 1.7;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
}

.tab {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.tab.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

.tool-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-zone label {
  min-height: 132px;
  border: 1px dashed #9bb6ad;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  background: #f3faf7;
}

.upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.upload-zone small,
.status-band,
.summary,
.source-list,
.empty-state p,
.evidence p {
  color: var(--muted);
}

.input-preview,
.analysis-band {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}

.input-preview {
  justify-items: center;
}

.input-preview {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.input-preview img,
.analysis-band img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  background: #e7eeea;
}

.input-preview img[hidden] {
  display: none;
}

.input-preview div,
.analysis-band div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.input-preview div {
  text-align: center;
  justify-items: center;
}

.input-preview span {
  max-width: 42ch;
}

.input-preview img {
  width: min(100%, 360px);
  height: 220px;
  object-fit: cover;
}

.input-preview span,
.analysis-band small {
  color: var(--muted);
  line-height: 1.45;
}

.analysis-band {
  margin: 0;
}

.analysis-band span {
  color: var(--teal);
  font-weight: 850;
}

.primary {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
}

.secondary {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.course-controls {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.course-controls > label {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 750;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--white);
}

.toggle {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.toggle span {
  line-height: 1.45;
  cursor: pointer;
}

.primary {
  background: var(--coral);
  color: var(--white);
  font-weight: 850;
}

.status-band {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.results {
  display: grid;
  gap: 18px;
}

.empty-state,
.evidence {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state h2,
.evidence h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.result-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 32, 28, 0.07);
}

.result-card.clickable-card {
  cursor: pointer;
}

.result-card.clickable-card:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 3px;
}

.result-card.clickable-card:hover {
  border-color: rgba(14, 124, 123, 0.48);
}

.result-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.result-image.clickable,
.input-preview img {
  cursor: zoom-in;
}

.result-body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.category,
.score {
  color: var(--teal);
  font-weight: 850;
}

.place-name {
  margin: 0;
  font-size: 1.8rem;
}

.summary {
  margin: 0;
  line-height: 1.7;
}

.reasons {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.route {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.route h3 {
  margin: 0 0 10px;
}

.route ol {
  margin: 0;
  padding-left: 20px;
}

.route li {
  margin: 6px 0;
}

.course-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
}

.course-card h2,
.course-card h3 {
  margin: 0;
}

.course-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.course-list li {
  margin: 8px 0;
}

.course-list span {
  display: block;
  color: var(--muted);
}

.place-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  cursor: pointer;
}

.place-detail-card:hover {
  border-color: rgba(14, 124, 123, 0.5);
}

.place-detail-card:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 3px;
}

.place-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.place-detail-card div {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.place-detail-card p,
.place-detail-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.place-detail-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 850;
}

.pet-section {
  display: grid;
  gap: 10px;
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stay-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcf9;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.stay-card:hover {
  border-color: rgba(14, 124, 123, 0.5);
}

.stay-card:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 3px;
}

.stay-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.stay-card div {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stay-card span,
.stay-card p,
.stay-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stay-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 850;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.source-list span {
  padding: 6px 9px;
  background: var(--cream);
  border-radius: 999px;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.result-actions button {
  min-width: 170px;
  padding: 0 14px;
  font-weight: 850;
}

.evidence {
  margin-top: 22px;
}

.evidence-intro {
  max-width: 820px;
  margin: 0 0 18px;
  line-height: 1.75;
}

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

.evidence article {
  border-left: 4px solid var(--yellow);
  padding: 6px 12px;
}

.evidence h3,
.evidence p {
  margin: 0;
}

.evidence h3 {
  margin-bottom: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 18, 16, 0.72);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: var(--white);
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}

.modal__dialog img {
  display: block;
  width: 100%;
  max-height: min(42vh, 360px);
  flex: none;
  object-fit: contain;
  background: #101612;
}

.modal__meta {
  position: relative;
  flex: none;
  padding: 14px 18px 18px;
  display: grid;
  gap: 6px;
  background: var(--white);
  overflow-wrap: anywhere;
}

.modal__meta p {
  margin: 0;
  color: var(--muted);
}

.detail-modal {
  display: grid;
  gap: 10px;
}

.detail-modal span {
  display: grid;
  gap: 3px;
  color: var(--muted);
}

.detail-modal strong {
  color: var(--ink);
}

.modal-actions {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.modal-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .result-card,
  .evidence-grid,
  .stay-grid,
  .place-detail-card,
  .course-controls {
    grid-template-columns: 1fr;
  }

  .result-image {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
  }

  .tabs,
  .controls,
  .input-preview,
  .analysis-band,
  .place-detail-card,
  .stay-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .input-preview img,
  .analysis-band img,
  .place-detail-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .empty-state,
  .evidence,
  .result-body {
    padding: 20px;
  }

  .button-row {
    flex-direction: column;
  }

  .modal__dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
    max-height: calc(100dvh - 20px);
  }

  .modal__dialog img {
    max-height: 30dvh;
  }

  .modal-actions a {
    min-height: 44px;
  }
}

/* 2026 competition UI refresh: editorial travel discovery */
:root {
  --ink: #143944;
  --muted: #4b646a;
  --line: #d8e8e9;
  --paper: #f3fafb;
  --white: #fff;
  --teal: #3A9FA3;
  --coral: #3A9FA3;
  --yellow: #3A9FA3;
  --green: #3A9FA3;
  --cream: #DCEFED;
  --shadow: 0 20px 56px rgba(21, 89, 103, 0.12);
  font-family: Pretendard, Inter, "Noto Sans KR", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand:focus-visible,
.tab:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.upload-zone input:focus-visible + label {
  outline: 3px solid #0c2a31;
  outline-offset: 3px;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  padding: 0 0 72px;
}

.hero {
  min-height: 440px;
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: url("/static/hero-ocean.png") center 53%/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 45, 58, 0.48);
  pointer-events: none;
}

.hero__outline {
  position: absolute;
  z-index: 1;
  inset: 4% 5%;
  width: 90%;
  height: 92%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.5;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-width: none;
  margin: auto;
  padding: 30px 18px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 30, 41, 0.7);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #d8eee7;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.eyebrow > span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--teal);
}

h1 {
  max-width: 740px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(2.65rem, 5.6vw, 5.2rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 em {
  color: #fff;
  font-style: normal;
}

.lead {
  max-width: 760px;
  display: grid;
  gap: 8px;
  font-size: 1rem;
  color: #fff;
  word-break: keep-all;
}

.lead strong {
  color: #fff;
  font-size: 1.12em;
}

.lead__opening {
  white-space: nowrap;
}

.tabs {
  width: fit-content;
  margin: 20px auto 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(25, 45, 37, 0.06);
  backdrop-filter: blur(12px);
}

.tab {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: transparent;
  color: var(--muted);
}

.tab span {
  margin-right: 7px;
  font-size: 0.7rem;
  opacity: 0.66;
}

.tab.active {
  background: var(--green);
  color: #0c2a31;
  box-shadow: 0 8px 22px rgba(24, 63, 54, 0.22);
}

.status-band {
  border-color: rgba(23, 125, 112, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

#data-health {
  width: fit-content;
  margin: 0 auto 22px;
  padding: 9px 14px;
  font-size: 0.78rem;
}

#data-health strong::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #38a875;
  box-shadow: 0 0 0 4px rgba(56, 168, 117, 0.13);
}

.section-heading {
  margin: 4px 0 12px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 8px;
  color: #246f73;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.section-heading > span {
  margin-top: 8px;
  display: block;
  color: var(--muted);
}

.tab-panel.active {
  gap: 16px;
  animation: panel-in 0.35s ease-out;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-panel {
  padding: clamp(20px, 3vw, 34px);
  border-color: rgba(23, 33, 29, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(28, 46, 39, 0.08);
}

.upload-zone label {
  min-height: 164px;
  border: 1.5px dashed rgba(23, 125, 112, 0.45);
  border-radius: 18px;
  background: var(--cream);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.upload-zone label:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--cream);
}

.toggle {
  min-height: 48px;
}

.upload-icon {
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(23, 125, 112, 0.2);
  color: #0c2a31;
}

.input-preview,
.analysis-band {
  padding: 16px;
  border-radius: 18px;
  background: var(--cream);
}

.input-preview img {
  width: min(100%, 520px);
  height: 292px;
  border-radius: 14px;
}

select {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
}

.primary,
.secondary {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 20px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary {
  background: var(--coral);
  color: #0c2a31;
  box-shadow: 0 10px 24px rgba(229, 111, 69, 0.23);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.results {
  gap: 22px;
}

.result-card {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  border-color: rgba(23, 33, 29, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 46px rgba(20, 32, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(20, 32, 28, 0.13);
}

.result-image {
  min-height: 340px;
}

.result-body {
  padding: clamp(22px, 3.5vw, 38px);
}

.category,
.score {
  font-size: 0.82rem;
}

.place-name {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.source-list span {
  padding: 7px 10px;
  border: 1px solid rgba(23, 125, 112, 0.12);
  background: var(--cream);
}

.empty-state,
.evidence,
.course-card {
  border-color: rgba(23, 33, 29, 0.08);
  border-radius: 22px;
}

.evidence {
  margin-top: 72px;
  padding: clamp(28px, 5vw, 58px);
  background: var(--cream);
  color: var(--ink);
}

.evidence h2 {
  max-width: 650px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.evidence-intro,
.evidence p {
  color: var(--muted);
}

.evidence-grid {
  margin-top: 26px;
}

.evidence article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(58, 159, 163, 0.23);
  border-left: 1px solid rgba(58, 159, 163, 0.23);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.evidence h3 {
  color: var(--ink);
}

@media (max-width: 880px) {
  .site-header,
  .shell {
    width: min(100% - 28px, 1240px);
  }

  .hero {
    min-height: 430px;
    background-position: center 53%;
  }

  .result-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand__slogan {
    min-width: 0;
  }

  .brand__slogan strong {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .site-header > p {
    display: none;
  }

  .shell {
    padding-top: 0;
  }

  .hero {
    min-height: 410px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background-position: center 53%;
  }

  .hero__copy {
    width: 100%;
    padding: 24px 14px;
  }

  .hero__outline {
    inset: 5% 2%;
    width: 96%;
    height: 90%;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .lead {
    margin-top: 12px;
    gap: 6px;
    font-size: 0.91rem;
    line-height: 1.55;
  }

  .lead strong {
    font-size: 1.04em;
  }

  .lead__opening {
    font-size: 0.9em;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: row;
    width: 100%;
    padding: 4px;
  }

  .tab {
    min-width: 0;
    min-height: 48px;
    padding: 5px 4px;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .tab span {
    display: block;
    margin: 0 0 3px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  #data-health {
    width: 100%;
    margin-bottom: 16px;
    text-align: center;
  }

  .tool-panel {
    border-radius: 18px;
  }

  .result-card,
  .empty-state,
  .evidence,
  .course-card {
    border-radius: 18px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

.brand-story {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.brand-story strong {
  color: var(--ink);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.brand-story span {
  font-size: 0.72rem;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .brand-story {
    display: none;
  }

  .stay-card {
    display: block;
    min-width: 0;
  }

  .stay-card img {
    display: block;
    width: 100%;
    height: 176px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .stay-card div {
    position: static;
    padding: 16px;
    background: var(--white);
  }
}


/* Course planner: required stops */
.brand__slogan {
  display: grid;
  gap: 2px;
  max-width: 320px;
}

.brand__slogan strong {
  line-height: 1.25;
}

.must-visit {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
}

.must-visit__heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.must-visit__heading > div {
  display: grid;
  gap: 4px;
}

.must-visit__heading span,
.must-visit__heading small {
  color: var(--muted);
  line-height: 1.45;
}

.must-visit__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.must-visit__search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
}

.must-visit__search button {
  padding: 0 18px;
}

.must-visit__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  align-items: center;
}

.must-visit__selected > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.must-visit-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #c9d8d2;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.must-visit-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-weight: 900;
}

.must-visit__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.must-visit-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.must-visit-option input {
  margin-top: 3px;
}

.must-visit-option strong,
.must-visit-option span,
.must-visit-option small {
  display: block;
}

.must-visit-option span,
.must-visit-option small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.route-stop-category {
  display: inline-block;
  margin-left: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 700px) {
  .must-visit__heading {
    display: grid;
  }

  .must-visit__search,
  .must-visit__results {
    grid-template-columns: 1fr;
  }

  .must-visit__search button {
    width: 100%;
  }
}


/* Course planner: restaurant-origin branch */
.food-origin {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
}

.food-origin[hidden],
#course-place-field[hidden] {
  display: none !important;
}

.food-origin-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.food-origin-option > div {
  min-width: 0;
}

.food-origin-option strong,
.food-origin-option span,
.food-origin-option small {
  display: block;
}

.food-origin-option span,
.food-origin-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.food-origin-option button {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .food-origin-option {
    grid-template-columns: 1fr;
  }

  .food-origin-option button {
    width: 100%;
  }
}


.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}


/* Mobile result-card image/text separation */
@media (max-width: 700px) {
  .result-card {
    display: block;
    overflow: hidden;
  }

  .result-card > .result-image,
  .result-card .result-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    position: static;
  }

  .result-card .result-body {
    position: static;
    width: 100%;
    padding: 20px;
    background: var(--white);
  }

  .result-card .result-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .result-card .place-name,
  .result-card .summary,
  .result-card .reasons,
  .result-card .source-list,
  .result-card .result-actions {
    position: static;
    width: 100%;
    max-width: 100%;
  }
}

/* Course detail card: keep image and text in separate responsive areas */
.place-detail-card {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
}

.place-detail-card > img {
  display: block;
  width: 100%;
  height: 220px;
  min-height: 0;
  max-height: 220px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  align-self: start;
}

.place-detail-card > div {
  position: static;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-detail-card > div > strong,
.place-detail-card > div > span,
.place-detail-card > div > p,
.place-detail-card > div > em {
  max-width: 100%;
}

@media (max-width: 880px) {
  .place-detail-card {
    grid-template-columns: 1fr;
  }

  .place-detail-card > img {
    height: clamp(190px, 38vw, 260px);
    max-height: 260px;
  }
}

@media (max-width: 560px) {
  .course-card {
    padding: 18px;
  }

  .place-detail-card > img {
    height: clamp(170px, 52vw, 210px);
    max-height: 210px;
  }

  .place-detail-card > div {
    padding: 16px;
  }
}

/* Course controls: five equal desktop fields, two tablet columns, one mobile column */
@media (max-width: 1000px) {
  .course-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .course-controls {
    grid-template-columns: 1fr;
  }
}

/* Course nearby recommendation links */
.course-stop-link-item {
  margin: 10px 0;
}

.route-stop-day {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--teal);
  font-weight: 800;
}

.course-stop-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(23, 125, 112, 0.2);
  border-radius: 12px;
  background: rgba(23, 125, 112, 0.05);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.course-stop-link:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 125, 112, 0.55);
  background: rgba(23, 125, 112, 0.1);
}

.course-stop-link:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 3px;
}

.course-stop-link small {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .course-stop-link {
    padding: 14px;
  }
}



/* Multi-day course grouping */
.course-route-guide {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(23, 125, 112, 0.16);
  border-radius: 12px;
  background: rgba(23, 125, 112, 0.06);
}

.course-route-guide strong {
  color: var(--teal);
  font-size: 0.86rem;
}

.course-route-guide span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.course-days {
  display: grid;
  gap: 16px;
}

.course-day {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
}

.course-day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.course-day__header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.course-day__header strong {
  color: var(--green);
  font-size: 1.05rem;
}

.course-day__header span,
.course-day__header small {
  color: var(--muted);
  font-size: 0.8rem;
}

.course-day__list {
  margin: 0;
}

.course-day__empty {
  list-style: none;
  margin-left: -20px;
  padding: 10px 0;
}

@media (max-width: 560px) {
  .course-route-guide,
  .course-day {
    padding: 14px;
  }

  .course-day__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* Interactive itinerary builder */
.course-builder {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf9;
}

.course-candidate-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-candidate-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.course-candidate-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-candidate-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.course-candidate-card__body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.course-candidate-card__body > strong {
  font-size: 1rem;
}

.course-candidate-card__body > span,
.course-candidate-card__body > small {
  color: var(--muted);
  line-height: 1.45;
}

.course-candidate-card__body button {
  width: 100%;
  margin-top: 4px;
}

.course-basket {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.must-visit__selected {
  display: grid;
  gap: 12px;
}

.course-basket-day {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.course-basket-day__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-basket-day__heading strong {
  color: var(--green);
}

.course-basket-day__heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

.course-basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.course-basket-item > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.course-basket-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-basket-item small {
  color: var(--muted);
}

.course-day__actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.course-day__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.course-day__map-link:hover {
  opacity: 0.9;
}

.course-day__map-note {
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .course-candidate-results {
    grid-template-columns: 1fr;
  }

  .course-candidate-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .course-candidate-card > img {
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }

  .course-day__actions {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .course-builder {
    padding: 14px;
  }

  .course-candidate-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .course-candidate-card__badge {
    width: 30px;
    height: 30px;
  }

  .course-basket-item {
    align-items: flex-start;
  }
}


/* Lodging + draggable itinerary + explicit image states */
.stay-picker__search {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.stay-add-option {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.stay-add-option__image {
  width: 96px;
  height: 82px;
  object-fit: cover;
  border-radius: 9px;
}

.stay-add-option > div:not(.image-placeholder) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stay-add-option span,
.stay-add-option small {
  color: var(--muted);
  line-height: 1.4;
}

.course-basket {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf9;
}

.course-basket__days {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}

.course-basket-day {
  min-height: 150px;
  align-content: start;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.course-basket-day.drag-over {
  border-color: var(--teal);
  background: rgba(14, 124, 123, 0.08);
  transform: translateY(-2px);
}

.course-basket-day__heading > div {
  display: grid;
  gap: 2px;
}

.course-basket-day__heading small,
.course-basket-day__empty {
  color: var(--muted);
  font-size: 0.76rem;
}

.course-basket-item {
  cursor: grab;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--white);
}

.course-basket-item:active {
  cursor: grabbing;
}

.course-basket-item.dragging {
  opacity: 0.48;
}

.course-basket-item--stay {
  border-color: rgba(14, 124, 123, 0.32);
  background: rgba(14, 124, 123, 0.05);
}

.course-basket-drag-handle {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  cursor: grab;
  font-size: 1rem;
  font-weight: 900;
  touch-action: none;
}

.course-basket-message {
  grid-column: 1 / -1;
}

.image-placeholder {
  display: grid !important;
  place-items: center;
  min-height: 120px;
  padding: 14px;
  background: #eef1ed;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.result-card > .image-placeholder.result-image {
  min-height: 360px;
}

.place-detail-card > .image-placeholder {
  width: 100%;
  min-height: 160px;
  padding: 14px;
}

.stay-card > .image-placeholder {
  width: 100%;
  min-height: 132px;
  padding: 10px;
}

.modal-image-placeholder {
  width: 100%;
  min-height: 220px;
  background: #101612;
  color: #d9e1dc;
}

@media (max-width: 700px) {
  .stay-picker__search,
  .stay-add-option {
    grid-template-columns: 1fr;
  }

  .stay-add-option__image,
  .stay-add-option > .image-placeholder {
    width: 100%;
    height: auto;
    min-height: 150px;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
  }

  .course-basket__days {
    grid-template-columns: 1fr;
  }

  .course-basket-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: start;
  }

  .result-card > .image-placeholder.result-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}


/* Search pagination */
.search-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 2px;
}

.search-pagination button {
  min-width: 72px;
  min-height: 36px;
  padding: 0 12px;
}

.search-pagination__status {
  min-width: 110px;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 750;
}

.image-placeholder {
  object-fit: cover;
  background: #eef1ed;
}

@media (max-width: 560px) {
  .search-pagination {
    gap: 8px;
  }

  .search-pagination button {
    min-width: 64px;
  }

  .search-pagination__status {
    min-width: 96px;
    font-size: 0.78rem;
  }
}


.image-placeholder[src] {
  display: block !important;
  padding: 0;
  object-fit: cover;
}
