: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:
    linear-gradient(90deg, rgba(7, 24, 22, 0.72), rgba(7, 24, 22, 0.14)),
    url("/static/hero-scene.svg") 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: minmax(260px, 1.5fr) 160px 160px;
}

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: 18px 1fr;
  align-items: center;
  font-weight: 700;
}

.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;
}

.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: #eef5f2;
  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: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.modal__dialog img {
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  background: #101612;
}

.modal__meta {
  padding: 14px 18px 18px;
  display: grid;
  gap: 6px;
}

.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;
}

@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;
  }
}

/* 2026 competition UI refresh: editorial travel discovery */
:root {
  --ink: #17211d;
  --muted: #64716b;
  --line: #e4e7e1;
  --paper: #f5f4ef;
  --white: #fff;
  --teal: #177d70;
  --coral: #e56f45;
  --yellow: #eab84b;
  --green: #183f36;
  --cream: #eeece4;
  --shadow: 0 24px 70px rgba(23, 38, 32, 0.12);
  font-family: Pretendard, Inter, "Noto Sans KR", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 6% 2%, rgba(229, 111, 69, 0.08), transparent 24rem),
    var(--paper);
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 84px;
  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;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.1rem;
}

.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: 570px;
  align-items: center;
  padding: clamp(36px, 6vw, 76px);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(9, 31, 27, 0.88) 0%, rgba(9, 31, 27, 0.58) 48%, rgba(9, 31, 27, 0.08) 100%),
    url("/static/hero-scene.svg") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.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: #ffb48e;
  font-style: normal;
}

.lead {
  max-width: 650px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
}

.hero__facts span {
  display: grid;
  gap: 3px;
}

.hero__facts strong {
  color: var(--white);
  font-size: 1.1rem;
}

.tabs {
  width: fit-content;
  margin: 30px auto 18px;
  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: var(--white);
  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 42px;
  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: 8px 0 20px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--teal);
  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: 22px;
  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:
    linear-gradient(135deg, rgba(23, 125, 112, 0.06), rgba(229, 111, 69, 0.04));
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.upload-zone label:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: rgba(23, 125, 112, 0.08);
}

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

.input-preview,
.analysis-band {
  padding: 16px;
  border-radius: 18px;
  background: #fafaf7;
}

.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);
  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: rgba(23, 125, 112, 0.07);
}

.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(--green);
  color: var(--white);
}

.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: rgba(255, 255, 255, 0.72);
}

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

.evidence article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.evidence h3 {
  color: #ffb48e;
}

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

  .hero {
    min-height: 510px;
    background:
      linear-gradient(90deg, rgba(9, 31, 27, 0.84), rgba(9, 31, 27, 0.36)),
      url("/static/hero-scene.svg") center/cover;
  }

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

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

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

  .shell {
    padding-top: 0;
  }

  .hero {
    min-height: 520px;
    padding: 34px 26px;
    border-radius: 20px;
  }

  .hero::after {
    inset: 10px;
    border-radius: 13px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero__facts {
    gap: 14px 20px;
  }

  .tabs {
    width: 100%;
    padding: 4px;
  }

  .tab {
    flex: 1;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  #data-health {
    width: 100%;
    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: #eef5f2;
  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%;
  }
}
