/* ==========================================================================
   베를리너투어 — 원페이지 상품 사이트
   ========================================================================== */

:root {
  --color-navy: #16233f;
  --color-navy-deep: #0d1526;
  --color-gold: #b8894f;
  --color-gold-light: #d9b078;
  --color-cream: #faf7f2;
  --color-paper: #ffffff;
  --color-ink: #1c1c1c;
  --color-ink-soft: #55575c;
  --color-line: #e6e2da;
  --color-tag-bg: #f1ede4;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(22, 35, 63, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(22, 35, 63, 0.14);
  --max-width: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", sans-serif;
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }

.section--alt { background: var(--color-paper); }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 16px;
  color: var(--color-ink-soft);
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head {
  text-align: center;
}
.section-head .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-navy);
  color: #fff;
}
.btn--primary:hover { background: var(--color-navy-deep); box-shadow: var(--shadow-card-hover); }

.btn--kakao {
  background: #fee500;
  color: #1c1c1c;
}
.btn--kakao:hover { box-shadow: var(--shadow-card-hover); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

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

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Header / GNB ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(250, 247, 242, 0.98);
  border-bottom: 1px solid var(--color-line);
  transition: background 0.2s ease;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-weight: 800;
  font-size: 19px;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--color-gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--color-navy); background: rgba(22, 35, 63, 0.06); }
.nav-link .caret { font-size: 10px; transition: transform 0.2s ease; }

.nav-item.has-dropdown:hover .nav-link .caret,
.nav-item.has-dropdown.is-open .nav-link .caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--color-line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-ink);
}
.nav-dropdown-link:hover { background: var(--color-tag-bg); }
.nav-dropdown-link .status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(184, 137, 79, 0.14);
  color: var(--color-gold);
  flex-shrink: 0;
}
.nav-dropdown-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-ink-soft);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-navy);
  padding: 9px 16px;
  border: 1.5px solid var(--color-navy);
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--color-navy); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  margin-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 21, 38, 0.35) 0%, rgba(13, 21, 38, 0.55) 55%, rgba(13, 21, 38, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: normal;
  color: var(--color-gold-light);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
  max-width: 560px;
}

/* ---------- Overview table ---------- */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.overview-table tr { border-bottom: 1px solid var(--color-line); }
.overview-table tr:last-child { border-bottom: none; }
.overview-table th, .overview-table td {
  text-align: left;
  padding: 18px 26px;
  font-size: 15px;
  vertical-align: top;
}
.overview-table th {
  width: 160px;
  color: var(--color-navy);
  font-weight: 700;
  background: var(--color-tag-bg);
}
.overview-table td { color: var(--color-ink-soft); }
.overview-table td strong { color: var(--color-ink); }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-icon { font-size: 34px; margin-bottom: 16px; }
.feature-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 8px;
}
.feature-text {
  font-size: 14px;
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Itinerary ---------- */
.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.day-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
}
.day-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
}
.day-num small { font-size: 9px; font-weight: 600; letter-spacing: 0.05em; opacity: 0.8; }
.day-num strong { font-size: 18px; }

.day-heading { flex: 1; min-width: 0; }
.day-route {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--color-ink);
  margin: 0 0 4px;
}
.day-brief {
  font-size: 13.5px;
  color: var(--color-ink-soft);
  margin: 0;
}
.day-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--color-tag-bg);
  color: var(--color-gold);
  white-space: nowrap;
}
.day-chevron {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--color-ink-soft);
  transition: transform 0.2s ease;
}
.day-card.is-open .day-chevron { transform: rotate(180deg); }

.day-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.day-detail-inner {
  padding: 0 22px 22px 96px;
  font-size: 14.5px;
  color: var(--color-ink-soft);
}
.day-detail-inner p { margin: 0 0 8px; }
.day-detail-inner .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 13px;
}
.day-detail-inner .meta-row span { display: flex; align-items: center; gap: 6px; }

.itinerary-download {
  margin-top: 28px;
  text-align: center;
}

/* ---------- Destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dest-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.dest-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-tag-bg);
}
.dest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dest-media img.is-active { opacity: 1; position: relative; }
.dest-thumbs {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.dest-thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
}
.dest-thumb-dot.is-active { background: #fff; }

.dest-body { padding: 20px 22px 24px; }
.dest-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 3px;
}
.dest-name-en {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.dest-desc {
  font-size: 13.8px;
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Inclusions ---------- */
.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.include-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.include-card--yes { background: #eef4ee; border: 1px solid #cfe3cf; }
.include-card--no { background: #f6eeee; border: 1px solid #e6cccc; }
.include-card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.include-card--yes .include-card-title { color: #2f6b32; }
.include-card--no .include-card-title { color: #a13d3d; }
.include-card ul { display: flex; flex-direction: column; gap: 10px; }
.include-card li {
  font-size: 14.5px;
  color: var(--color-ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.include-card li::before { content: "—"; color: var(--color-ink-soft); flex-shrink: 0; }

/* ---------- Reviews ---------- */
.review-slider-wrap { position: relative; }
.review-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.review-media { aspect-ratio: 4 / 3; overflow: hidden; }
.review-media img { width: 100%; height: 100%; object-fit: cover; }
.review-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.review-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--color-ink-soft); }
.review-stars { color: var(--color-gold); letter-spacing: 1px; }
.review-quote { font-size: 14.5px; color: var(--color-ink); margin: 0; line-height: 1.55; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.review-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-tag-bg);
  color: var(--color-ink-soft);
}

.review-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.review-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  background: var(--color-paper);
  font-size: 16px;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-controls button:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.review-more { text-align: center; margin-top: 24px; }
.review-more a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}

/* ---------- Guide ---------- */
.guide-block {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.guide-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-tag-bg);
}
.guide-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 4px;
}
.guide-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 16px;
}
.guide-bio { margin: 0; color: var(--color-ink-soft); font-size: 15px; }
.guide-bio + .guide-bio { margin-top: 10px; }
.guide-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
}
.guide-stat strong { display: block; font-size: 20px; color: var(--color-navy); }
.guide-stat span { font-size: 12.5px; color: var(--color-ink-soft); }

/* ---------- Contact CTA ---------- */
.contact-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
  text-align: center;
}
.contact-section .section-title { color: #fff; }
.contact-section .section-desc { color: rgba(255, 255, 255, 0.78); margin-left: auto; margin-right: auto; }
.contact-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-cta-row .btn { min-width: 220px; padding: 18px 28px; font-size: 16px; }
.contact-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #101a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0 30px;
  font-size: 13px;
  line-height: 1.9;
}
.footer-links {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-links a { font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.footer-links a:hover { color: var(--color-gold-light); }
.footer-info p { margin: 0 0 4px; }
.footer-copy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Floating mobile CTA ---------- */
.mobile-fab {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}
.mobile-fab .btn { flex: 1; padding: 14px; font-size: 14.5px; }
.mobile-fab .btn--primary { background: var(--color-navy); color: #fff; }

/* ---------- Simple pages (terms/privacy) ---------- */
.doc-page {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 20px 100px;
}
.doc-page h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.doc-page .doc-updated { color: var(--color-ink-soft); font-size: 13.5px; margin-bottom: 36px; }
.doc-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 34px 0 12px;
}
.doc-page p, .doc-page li { font-size: 14.5px; color: var(--color-ink-soft); }
.doc-page ul, .doc-page ol { padding-left: 20px; margin: 10px 0; }
.doc-page li { margin-bottom: 6px; }
.doc-page table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc-page th, .doc-page td {
  border: 1px solid var(--color-line);
  padding: 10px 12px;
  font-size: 13.5px;
  text-align: left;
  color: var(--color-ink-soft);
}
.doc-page th { background: var(--color-tag-bg); color: var(--color-ink); }
.doc-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-block { flex-direction: column; text-align: center; padding: 32px; }
  .guide-stats { justify-content: center; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 20px 30px;
    gap: 2px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 190;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 6px; border-bottom: 1px solid var(--color-line); border-radius: 0; }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 6px;
    background: transparent;
  }
  .nav-item.is-open .nav-dropdown { display: block; }
  .nav-item.has-dropdown:hover .nav-dropdown { display: none; }
  .nav-item.has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 560px; }
  .hero-content { padding: 60px 20px 100px; }

  .overview-table th { width: 110px; padding: 14px 16px; font-size: 13.5px; }
  .overview-table td { padding: 14px 16px; font-size: 13.5px; }

  .feature-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }

  .day-detail-inner { padding-left: 22px; }
  .day-badge { display: none; }

  .review-card { flex: 0 0 82%; }

  .contact-cta-row { flex-direction: column; align-items: stretch; }
  .contact-cta-row .btn { width: 100%; }

  .mobile-fab { display: flex; }
  body { padding-bottom: 76px; }

  .section { padding: 60px 0; }
}
