/**
 * TourDaddy Travel — theme stylesheet
 *
 * Tone: 든든한 여행 가이드 (단호 · 실행 · 워드마크 우선)
 * Color: Travel navy #0C3954 + Sunset #F0B429 · crisp white canvas
 * Type: Montserrat (display/CTA) + Plus Jakarta Sans (body)
 */

:root {
  --tdt-ink: #0a1b26;
  --tdt-ink-2: #2a3d4a;
  --tdt-muted: #5f7380;
  --tdt-line: #dce8ef;
  --tdt-line-strong: #b7cdd9;
  --tdt-canvas: #ffffff;
  --tdt-surface: #ffffff;
  --tdt-surface-2: #f0f5f8;
  --tdt-deep: #071e2c;
  --tdt-accent: #0c3954;
  --tdt-accent-hover: #082a3e;
  --tdt-accent-soft: #e8f3f8;
  --tdt-accent-fg: #0c3954;
  --tdt-signal: #f0b429;
  --tdt-signal-hover: #d99a12;
  --tdt-signal-ink: #1a1200;
  --tdt-warn: #9a6412;

  --tdt-radius: 8px;
  --tdt-radius-sm: 6px;
  --tdt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tdt-shadow: 0 14px 36px rgb(12 57 84 / 0.16);

  --tdt-font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --tdt-font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --tdt-header-h: 80px;
  --tdt-mobile-nav-h: 64px;
  --tdt-max: 1120px;
  --tdt-wide: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--tdt-canvas);
  color: var(--tdt-ink);
  font-family: var(--tdt-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

body:has(.mobile-bottom-nav) {
  padding-bottom: calc(var(--tdt-mobile-nav-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body:has(.mobile-bottom-nav) {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tdt-accent-fg);
}

h1, h2, h3 {
  font-family: var(--tdt-font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--tdt-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--tdt-radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--tdt-radius);
  border: 1px solid transparent;
  font-family: var(--tdt-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--tdt-ease), background 160ms var(--tdt-ease), border-color 160ms var(--tdt-ease), color 160ms var(--tdt-ease), box-shadow 160ms var(--tdt-ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--accent {
  background: var(--tdt-signal);
  color: var(--tdt-signal-ink);
  box-shadow: 0 8px 20px rgb(240 180 41 / 0.35);
}

.btn--accent:hover {
  background: var(--tdt-signal-hover);
  color: var(--tdt-signal-ink);
}

.btn--signal {
  background: var(--tdt-signal);
  color: var(--tdt-signal-ink);
  box-shadow: 0 8px 20px rgb(240 180 41 / 0.35);
}

.btn--signal:hover {
  background: var(--tdt-signal-hover);
  color: var(--tdt-signal-ink);
}

.btn--ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.filters-band .btn--ghost,
.itin-cta-row .btn--ghost,
.page-shell .btn--ghost,
.place-block .btn--ghost {
  border-color: var(--tdt-line-strong);
  color: var(--tdt-ink);
}

.filters-band .btn--ghost:hover,
.itin-cta-row .btn--ghost:hover,
.page-shell .btn--ghost:hover,
.place-block .btn--ghost:hover {
  background: var(--tdt-surface-2);
  color: var(--tdt-ink);
}

.btn--block {
  width: 100%;
}

.btn--header-cta {
  min-height: 44px;
  padding-inline: 1.1rem;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
}

/* Header — white bar + navy brand edge */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--tdt-header-h);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tdt-line);
  box-shadow: inset 0 -3px 0 var(--tdt-accent);
  transition: height 220ms var(--tdt-ease), background 220ms var(--tdt-ease), box-shadow 220ms var(--tdt-ease);
  overflow: visible;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgb(255 255 255 / 0.98);
  box-shadow:
    inset 0 -3px 0 var(--tdt-accent),
    0 10px 28px rgb(7 30 44 / 0.08);
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* fixed 헤더 높이만큼 본문 상단 여백 */
.site-main {
  padding-top: var(--tdt-header-h);
}

.site-header__inner {
  max-width: var(--tdt-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(280px, 58vw);
}

.brand-logo--footer {
  height: 48px;
  max-width: 260px;
  filter: brightness(0) invert(1);
}

.custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.custom-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 58vw);
}

/* Prevent nowrap phrases from causing page overflow on narrow screens */
@media (max-width: 560px) {
  .nowrap {
    white-space: normal;
  }
}

.gnb {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 980px) {
  .gnb {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  align-items: center;
}

.footer-list a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
}

/* —— Desktop mega menu —— */
.gnb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gnb-item {
  position: static;
}

.gnb-item .gnb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--tdt-radius-sm);
  text-decoration: none;
  font-family: var(--tdt-font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tdt-ink);
  transition: background 160ms var(--tdt-ease), color 160ms var(--tdt-ease);
}

.gnb-item .gnb-link:hover,
.gnb-item.is-open > .gnb-link {
  background: var(--tdt-accent-soft);
  color: var(--tdt-accent);
}

.gnb-mega-toggle {
  display: none;
}

.gnb-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms var(--tdt-ease);
  opacity: 0.7;
}

.gnb-item.is-open .gnb-caret {
  transform: rotate(225deg) translateY(-1px);
}

.mega-panel[hidden] {
  display: none !important;
}

.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 80;
  animation: mega-in 180ms var(--tdt-ease) both;
}

@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mega-panel__shade {
  position: fixed;
  inset: 0;
  top: var(--tdt-header-h);
  background: rgb(18 8 31 / 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mega-panel__sheet {
  position: relative;
  z-index: 1;
  background: var(--tdt-surface);
  border-bottom: 1px solid var(--tdt-line);
  box-shadow: 0 24px 48px rgb(18 8 31 / 0.12);
}

.mega-panel__inner {
  max-width: var(--tdt-wide);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-col {
  min-width: 0;
}

.mega-col__title {
  display: inline-flex;
  margin-bottom: 0.65rem;
  text-decoration: none;
  font-family: var(--tdt-font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tdt-ink);
  border-bottom: 2px solid transparent;
}

.mega-col__title:hover {
  color: var(--tdt-accent-fg);
  border-bottom-color: var(--tdt-accent);
}

.mega-col--link .mega-col__title {
  margin: 0;
  padding: 0.55rem 0.7rem;
  width: 100%;
  border-radius: 12px;
  border-bottom: 0;
  font-family: var(--tdt-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--tdt-canvas);
}

.mega-col--link .mega-col__title:hover {
  background: var(--tdt-accent-soft);
  color: var(--tdt-accent-fg);
}

.mega-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.mega-col__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tdt-ink-2);
  border-radius: 6px;
}

.mega-col__thumb {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--tdt-surface-2);
}

.mega-col__link:hover {
  color: var(--tdt-accent-fg);
}

body.mega-open {
  overflow: hidden;
}

/* —— Mobile drawer accordion —— */
.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.drawer-item {
  border-bottom: 1px solid var(--tdt-line);
}

.drawer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem;
}

.drawer-link {
  display: block;
  padding: 0.95rem 0.15rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--tdt-ink);
}

.drawer-acc-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--tdt-canvas);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-acc-toggle span {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--tdt-ink);
  border-bottom: 1.5px solid var(--tdt-ink);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms var(--tdt-ease);
}

.drawer-item.is-open > .drawer-row .drawer-acc-toggle span {
  transform: rotate(225deg) translateY(-1px);
}

.drawer-sub {
  margin: 0;
  padding: 0 0 0.75rem 0.75rem;
  list-style: none;
}

.drawer-sub[hidden] {
  display: none !important;
}

.drawer-sub .drawer-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.15rem;
  color: var(--tdt-ink-2);
}

.drawer-sub .drawer-sub {
  padding-left: 0.85rem;
  border-left: 2px solid var(--tdt-line);
}

.drawer-sub .drawer-sub .drawer-link {
  font-weight: 500;
  font-size: 0.9rem;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn--header-cta {
  display: none;
}

@media (min-width: 720px) {
  .btn--header-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius-sm);
  background: var(--tdt-surface);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--tdt-ink);
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -5px;
  position: absolute;
}

.nav-toggle__bars::after {
  top: 5px;
  position: absolute;
}

.mobile-drawer {
  position: fixed;
  inset: var(--tdt-header-h) 0 auto 0;
  z-index: 40;
  background: var(--tdt-surface);
  border-bottom: 1px solid var(--tdt-line);
  padding: 1.25rem;
  box-shadow: var(--tdt-shadow);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer .drawer-list {
  margin-bottom: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--tdt-header-h));
  display: grid;
  align-items: end;
  color: #f7f3ff;
  overflow: clip;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(7 30 44 / 0.94) 8%, rgb(12 57 84 / 0.62) 48%, rgb(7 30 44 / 0.88) 100%),
    radial-gradient(1200px 600px at 80% 20%, rgb(240 180 41 / 0.45), transparent 60%),
    linear-gradient(180deg, #0c3954, #071e2c);
}

.hero__map {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  animation: map-drift 28s linear infinite;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes map-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -24px, 0); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--tdt-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(3.5rem, 9vw, 5.5rem);
}

.brand-lockup,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tdt-accent-soft);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  max-width: 18em;
  margin-bottom: 0.75rem;
  animation: rise 700ms var(--tdt-ease) both;
}

.hero__lead {
  max-width: 36em;
  color: rgb(247 243 255 / 0.82);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  animation: rise 700ms var(--tdt-ease) 80ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  max-width: 520px;
  margin-bottom: 1rem;
  animation: rise 700ms var(--tdt-ease) 140ms both;
}

.hero-search input,
.search-form input,
.email-form input,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--tdt-radius);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  padding: 0.7rem 1rem;
  font: inherit;
}

.hero-search input::placeholder {
  color: rgb(255 255 255 / 0.65);
}

.hero-search input:focus,
.email-form input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.search-form input:focus {
  outline: 2px solid var(--tdt-accent);
  outline-offset: 2px;
}

.hero-cta-row,
.itin-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rise 700ms var(--tdt-ease) 200ms both;
}

/* Sections */
.band {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.band__inner {
  max-width: var(--tdt-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.band__inner--split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .band__inner--split {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading .eyebrow {
  color: var(--tdt-accent-fg);
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.4rem;
  max-width: 20em;
}

.section-lead {
  color: var(--tdt-muted);
  max-width: 40em;
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
  background: var(--tdt-surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tdt-ink-2);
  transition: border-color 160ms var(--tdt-ease), background 160ms var(--tdt-ease), color 160ms var(--tdt-ease);
}

a.chip:hover {
  border-color: var(--tdt-accent);
  color: var(--tdt-accent-fg);
  background: var(--tdt-accent-soft);
}

/* Destination browse — photo-led city grid */
.browse-dest {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .browse-dest {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 980px) {
  .browse-dest {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.browse-dest__card {
  display: grid;
  grid-template-rows: 160px auto;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 220ms var(--tdt-ease),
    border-color 220ms var(--tdt-ease),
    box-shadow 220ms var(--tdt-ease);
}

@media (min-width: 640px) {
  .browse-dest__card {
    grid-template-rows: 180px auto;
  }
}

.browse-dest__card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px rgb(18 8 31 / 0.12);
  color: inherit;
}

.browse-dest__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgb(7 30 44 / 0.15), rgb(7 30 44 / 0.72)),
    linear-gradient(120deg, #0c3954, #1A5F7A 55%, #071e2c);
}

.browse-dest__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(18 8 31 / 0.45));
  pointer-events: none;
}

.browse-dest__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--tdt-ease);
}

.browse-dest__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--tdt-font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgb(255 255 255 / 0.92);
  letter-spacing: -0.04em;
  z-index: 1;
}

.browse-dest__card:hover .browse-dest__media img {
  transform: scale(1.05);
}

.browse-dest__body {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem 1.15rem;
}

.browse-dest__country {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tdt-accent-fg);
}

.browse-dest__body h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.browse-dest__body p {
  margin: 0;
  color: var(--tdt-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Itinerary browse — numbered media rows */
.browse-itin {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tdt-line);
}

.browse-itin__row {
  display: grid;
  grid-template-columns: 2.1rem 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 0.15rem;
  border-bottom: 1px solid var(--tdt-line);
  text-decoration: none;
  color: inherit;
  transition: background 180ms var(--tdt-ease), padding-left 180ms var(--tdt-ease);
}

@media (min-width: 720px) {
  .browse-itin__row {
    grid-template-columns: 2.6rem 104px 1fr auto;
    gap: 1.15rem;
    padding: 1.15rem 0.35rem;
  }
}

.browse-itin__row:hover {
  background: rgb(255 255 255 / 0.7);
  padding-left: 0.55rem;
  color: inherit;
}

.browse-itin__index {
  font-family: var(--tdt-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tdt-accent);
  opacity: 0.85;
}

.browse-itin__media {
  margin: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--tdt-accent-soft), var(--tdt-surface-2));
}

@media (min-width: 720px) {
  .browse-itin__media {
    width: 104px;
    height: 78px;
  }
}

.browse-itin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browse-itin__media.is-empty {
  display: grid;
  place-items: center;
  font-family: var(--tdt-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tdt-accent-fg);
}

.browse-itin__body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.browse-itin__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tdt-accent-fg);
}

.browse-itin__tags span + span {
  color: var(--tdt-muted);
  font-weight: 600;
}

.browse-itin__tags span + span::before {
  content: '·';
  margin-right: 0.7rem;
  color: var(--tdt-line-strong);
}

.browse-itin__body h2 {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-itin__facts {
  margin: 0;
  color: var(--tdt-muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-itin__go {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--tdt-line);
  background: var(--tdt-surface);
  position: relative;
  transition: border-color 180ms var(--tdt-ease), background 180ms var(--tdt-ease), transform 180ms var(--tdt-ease);
}

.browse-itin__go::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 46%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--tdt-ink-2);
  border-top: 2px solid var(--tdt-ink-2);
  transform: translate(-50%, -50%) rotate(45deg);
}

.browse-itin__row:hover .browse-itin__go {
  border-color: var(--tdt-accent);
  background: var(--tdt-accent-soft);
  transform: translateX(3px);
}

@media (max-width: 519px) {
  .browse-itin__row {
    grid-template-columns: 72px 1fr auto;
  }

  .browse-itin__index {
    display: none;
  }
}

/* Prep / tools */
.prep-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .prep-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .prep-rail {
    grid-template-columns: repeat(6, 1fr);
  }
}

.prep-rail a,
.tool-pair a {
  display: block;
  text-decoration: none;
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
  padding: 1.1rem 1rem;
  font-weight: 700;
  transition: border-color 160ms var(--tdt-ease), transform 160ms var(--tdt-ease);
}

.prep-rail a:hover,
.tool-pair a:hover {
  border-color: var(--tdt-accent);
  transform: translateY(-2px);
}

.tool-pair {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .tool-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-pair span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  color: var(--tdt-muted);
  font-size: 0.92rem;
}

/* Email CTA */
.email-band {
  background: var(--tdt-deep);
  color: #f7f3ff;
}

.email-band__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .email-band__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.email-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16em;
}

.email-band p {
  color: rgb(247 243 255 / 0.78);
  max-width: 32em;
}

.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.email-form input {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.25);
  color: #fff;
}

.email-form input::placeholder {
  color: rgb(255 255 255 / 0.6);
}

/* Updates */
.update-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--tdt-line);
}

.update-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tdt-accent-fg);
  background: var(--tdt-accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.update-title {
  font-weight: 600;
}

.update-list time {
  color: var(--tdt-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .update-list li {
    grid-template-columns: auto 1fr;
  }

  .update-list time {
    grid-column: 2;
  }
}

/* Shared content shells */
.page-shell,
.hub-page,
.itinerary-page,
.place-page,
.prep-page,
.lead-page,
.single-article {
  max-width: var(--tdt-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* docs/guide.html 시간축 일정표 — 가로 스크롤 */
.tdt-guide-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0.25rem;
  background: #eceff3;
  border-radius: 12px;
}

.tdt-guide-wrap .tdt-guide {
  min-width: min(100%, 1000px);
}

.tdt-guide-wrap .sheet {
  margin-block: 12px;
}

/* WP wpautop가 legend i 사이에 <br>를 넣어 세로로 깨지는 것 보정 */
.tdt-guide .legend {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  text-align: right;
}

.tdt-guide .legend br {
  display: none !important;
}

.tdt-guide .legend i,
.tdt-guide .legend .legend__chip {
  display: inline-block !important;
  font-style: normal;
  white-space: nowrap;
}

.page-shell--center {
  text-align: center;
  padding-block: 5rem;
}

.page-shell__header,
.hub-hero,
.itin-summary,
.place-header,
.lead-page__header {
  margin-bottom: 2rem;
}

.hub-hero h1,
.itin-summary h1,
.place-header h1,
.lead-page h1,
.page-shell__header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hub-hero__lead,
.place-one-liner {
  color: var(--tdt-muted);
  max-width: 42em;
}

.fact-grid {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

@media (min-width: 640px) {
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .fact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fact-grid > div {
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
  padding: 1rem 1.05rem;
}

.fact-grid dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tdt-muted);
}

.fact-grid dd {
  margin: 0.3rem 0 0;
  font-weight: 600;
}

.hub-section,
.itin-block,
.place-block {
  margin-bottom: 2.5rem;
}

.hub-section--split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .hub-section--split {
    grid-template-columns: 1fr 1fr;
  }
}

.hub-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .hub-link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-link-grid li,
.plain-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tdt-line);
  font-weight: 600;
}

.hub-cta-list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tdt-line);
  text-decoration: none;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
  background: var(--tdt-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tdt-line);
}

.data-table th {
  background: var(--tdt-surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tdt-muted);
}

.score-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .score-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.score-row li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
}

.affiliate-notice {
  background: var(--tdt-surface-2);
  border-left: 3px solid var(--tdt-accent);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--tdt-ink-2);
  font-size: 0.9rem;
}

.affiliate-notice p {
  margin: 0;
}

/* Lead form */
.lead-form__grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .lead-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form__full {
    grid-column: 1 / -1;
  }
}

.lead-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tdt-ink-2);
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.search-form input {
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line-strong);
  color: var(--tdt-ink);
}

.form-note {
  margin-top: 0.85rem;
  color: var(--tdt-muted);
  font-size: 0.85rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Badge (country / duration tags on list cards) */
.tdt-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tdt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--tdt-accent-soft);
  color: var(--tdt-accent-fg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tdt-badge--muted {
  background: var(--tdt-surface-2);
  color: var(--tdt-ink-2);
}

/* Mega menu — headed country columns as clean editorial groups */
.mega-col--headed {
  padding: 0.55rem 0.65rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--tdt-canvas), rgb(246 244 250 / 0.4));
  border: 1px solid transparent;
}

.mega-col--headed .mega-col__title {
  margin-bottom: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--tdt-line);
}

.mega-col--headed .mega-col__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.35rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.mega-col--headed .mega-col__link:hover {
  background: var(--tdt-surface);
  color: var(--tdt-accent-fg);
  box-shadow: 0 1px 2px rgb(18 8 31 / 0.05);
}

/* Region filter — text tabs, not pill clusters */
.region-filter {
  margin: 0 0 1.75rem;
  border-bottom: 1px solid var(--tdt-line);
}

.region-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.region-filter__link {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--tdt-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms var(--tdt-ease), border-color 160ms var(--tdt-ease);
}

.region-filter__link:hover,
.region-filter__link.is-active {
  color: var(--tdt-ink);
  border-bottom-color: var(--tdt-accent);
}

/* Content stream — compact row list (not stacked cards): one line of scan per
   item so many results are visible at once, rows divided by a hairline. */
.content-stream {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--tdt-surface);
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius);
  overflow: hidden;
}

.stream-item {
  border-bottom: 1px solid var(--tdt-line);
}

.stream-item:last-child {
  border-bottom: 0;
}

.stream-item a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
}

.stream-item a:hover {
  background: var(--tdt-canvas);
}

.stream-item__media {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--tdt-radius-sm);
  overflow: hidden;
}

.stream-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stream-item__body {
  flex: 1;
  min-width: 0;
}

.stream-item__body h2,
.stream-item__body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.stream-item__body p {
  color: var(--tdt-muted);
  font-size: 0.84rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-item .tdt-badge-row {
  margin-bottom: 0.25rem;
}

.stream-item .fact-grid--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  margin-top: 0.1rem;
}

.stream-item .fact-grid--compact > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  background: none;
  border: 0;
  padding: 0;
}

.stream-item .fact-grid--compact dt {
  font-size: 0.72rem;
}

.stream-item .fact-grid--compact dd {
  font-size: 0.82rem;
  margin: 0;
}

.stream-item time,
.meta-line {
  color: var(--tdt-muted);
  font-size: 0.85rem;
}

.empty-state {
  color: var(--tdt-muted);
  padding: 2rem 0;
}

.entry-content {
  max-width: 42em;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

/* Footer — deep brand field */
.site-footer {
  background:
    radial-gradient(120% 80% at 10% -10%, rgb(12 57 84 / 0.55), transparent 55%),
    var(--tdt-deep);
  color: #f7f2ff;
  padding: 3.5rem 0 5.5rem;
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.site-footer__inner {
  max-width: var(--tdt-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
}

.brand-wordmark--footer {
  margin-bottom: 0.75rem;
}

.brand-logo--footer {
  max-width: 200px;
  height: auto;
  /* SVG 폰트 미로드·인코딩 이슈 대비: 네이비 로고를 화이트로 반전 */
  filter: brightness(0) invert(1);
}

.footer-brand p,
.footer-cta p {
  color: rgb(247 242 255 / 0.78);
}

.footer-list a {
  color: rgb(247 242 255 / 0.9);
  font-weight: 600;
}

.footer-list a:hover {
  color: var(--tdt-signal);
}

.site-footer .btn--accent {
  background: var(--tdt-signal);
  color: var(--tdt-signal-ink);
  box-shadow: 0 8px 20px rgb(240 180 41 / 0.28);
}

.site-footer .btn--accent:hover {
  background: var(--tdt-signal-hover);
  color: var(--tdt-signal-ink);
}

.site-footer__legal {
  max-width: var(--tdt-wide);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(247 242 255 / 0.55);
  font-size: 0.85rem;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--tdt-line);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
}

.mobile-nav-list a {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.2rem;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--tdt-muted);
}

.mobile-nav-list .is-active a,
.mobile-nav-list a:hover {
  color: var(--tdt-accent-fg);
}

.mobile-nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.mobile-nav-icon[data-icon="home"] {
  border-radius: 3px 3px 2px 2px;
}

.mobile-nav-icon[data-icon="calendar"] {
  border-top-width: 3px;
}

.mobile-nav-icon[data-icon="bookmark"] {
  border-radius: 2px 2px 6px 6px;
}

.mobile-nav-icon[data-icon="route"] {
  border-radius: 999px;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--tdt-ease), transform 600ms var(--tdt-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* WP pagination */
.navigation.pagination {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius-sm);
  text-decoration: none;
  background: var(--tdt-surface);
}

.page-numbers.current {
  background: var(--tdt-accent);
  border-color: var(--tdt-accent);
  color: #fff;
}

/* —— Travel tools (§5.6) —— */
.tool-page {
  max-width: var(--tdt-max);
  margin: 0 auto;
  padding: 32px 20px 72px;
}
.tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 20px;
}
.tool-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--tdt-ink-2);
}
.tool-grid input,
.tool-newsletter input {
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius-sm);
  padding: 10px 12px;
  font: inherit;
}
.tool-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tool-check-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--tdt-line);
  border-radius: var(--tdt-radius-sm);
  background: var(--tdt-surface);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tool-newsletter {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.tool-newsletter label {
  display: grid;
  gap: 6px;
}
.tool-note {
  color: var(--tdt-muted);
  font-size: 0.9rem;
}
.tool-result dd {
  font-weight: 700;
  font-size: 1.15rem;
}
.tdt-product-cta {
  margin-top: 8px;
}
