/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  background: #fafaf8;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #8b2500; text-decoration: underline; }
a:hover { color: #c43400; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: #1a1a1a;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Header next button ───────────────────────────────────────────────────── */
/* ── Header next button (generic, used by photo essay / quiz) ─────────────── */
.header-next-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-block;
  background: #8b2500;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-next-btn:hover { background: #a82c00; color: #fff; }

/* ── Destination split More button ────────────────────────────────────────── */
.dest-nav-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: stretch;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.dest-nav-left,
.dest-nav-label,
.dest-nav-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.175rem 0.375rem;
  background: #8b2500;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

.dest-nav-left  { border-radius: 4px 0 0 4px; position: relative; padding-left: 0.56rem; }
.dest-nav-right { border-radius: 0 4px 4px 0; position: relative; padding-right: 0.56rem; }
.dest-nav-label { font-weight: 400; }

.dest-nav-empty {
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

/* Left hover: left only */
.dest-nav-btn:has(.dest-nav-left:hover) .dest-nav-left { background: #a33000; color: #fff; }

/* More or right arrow hover: co-highlight both */
.dest-nav-btn:has(.dest-nav-right:hover) .dest-nav-right,
.dest-nav-btn:has(.dest-nav-right:hover) .dest-nav-label,
.dest-nav-btn:has(.dest-nav-label:hover) .dest-nav-right,
.dest-nav-btn:has(.dest-nav-label:hover) .dest-nav-label {
  background: #a33000;
  color: #fff;
}

/* Tooltips — left arrow to the left, right arrow to the right */
.dest-nav-left[data-tooltip]::after,
.dest-nav-right[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

.dest-nav-left[data-tooltip]::after  { right: calc(100% + 6px); }
.dest-nav-right[data-tooltip]::after { left:  calc(100% + 6px); }

.dest-nav-left[data-tooltip]:hover::after { opacity: 1; }

.dest-nav-right[data-tooltip]:hover::after,
.dest-nav-btn:has(.dest-nav-label:hover) .dest-nav-right[data-tooltip]::after {
  opacity: 1;
}

/* Image-bar tooltips: appear above the button, anchored to left/right edges */
.image-bar .dest-nav-left[data-tooltip]::after,
.image-bar .dest-nav-right[data-tooltip]::after {
  top: auto;
  bottom: calc(100% + 6px);
  transform: none;
}
.image-bar .dest-nav-left[data-tooltip]::after  { right: auto; left: 0; }
.image-bar .dest-nav-right[data-tooltip]::after { left: auto; right: 0; }

/* ── Breadcrumbs ──────────────────────────────────────────────────────────── */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-family: system-ui, sans-serif;
  color: #aaa;
  flex-wrap: wrap;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumbs a { color: #ccc; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ── Main content ─────────────────────────────────────────────────────────── */
.main-content { padding: 2rem 0 3rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.image-block {
  position: relative;
  margin-bottom: 1.75rem;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.inline-image {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.image-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-family: system-ui, sans-serif;
  border-radius: 0 0 4px 4px;
}

.image-bar-text {
  flex: 1;
  min-width: 0;
}

.image-bar-desc {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
}

.image-bar-credit {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.15rem;
}


.hero-info {
  margin-bottom: 1.5rem;
}

.page-header {
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.page-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
}

.hero-country {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

/* ── Article body ─────────────────────────────────────────────────────────── */
.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}


/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section {
  background: #f5f0e8;
  border-left: 4px solid #8b2500;
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 4px 4px 0;
  text-align: left;
}

.cta-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cta-row {
  overflow: hidden;
  padding: 0.75rem 0;
  border-top: 1px solid #ddd6c8;
}

.cta-row p {
  font-size: 0.95rem;
  margin: 0;
}

.cta-row .btn-primary {
  float: right;
  margin-left: 1rem;
  white-space: nowrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: #8b2500;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #a82c00; color: #fff; }


/* ── Navigation ───────────────────────────────────────────────────────────── */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-prev, .nav-next {
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #8b2500;
  padding: 0.5rem 0;
}
.nav-prev:hover, .nav-next:hover { color: #a82c00; }

/* ── Photo Essay ──────────────────────────────────────────────────────────── */
.photo-essay-page { }

.photo-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: #888;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #8b2500;
  transition: width 0.3s ease;
}


.photo-essay-image {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.overlay-nav {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.photo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.photo-counter {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #888;
}

.photo-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.photo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  text-decoration: none;
  transition: background 0.15s;
}
.photo-dot:hover { background: #aaa; }
.photo-dot.active { background: #8b2500; }

/* ── Quiz ─────────────────────────────────────────────────────────────────── */

.quiz-idle {
  text-align: center;
  padding: 2rem 0;
}

.quiz-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.quiz-start-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: #888;
}

.quiz-difficulty {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.quiz-difficulty--easy   { background: #e8f5e9; color: #2e7d32; }
.quiz-difficulty--medium { background: #fff3e0; color: #e65100; }
.quiz-difficulty--hard   { background: #fce4ec; color: #c62828; }

.quiz-question {
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.quiz-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-family: Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option-btn:hover:not(:disabled) {
  border-color: #8b2500;
  background: #fdf5f3;
}
.quiz-option-btn.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
}
.quiz-option-btn.wrong {
  border-color: #c62828;
  background: #fce4ec;
}
.quiz-option-btn:disabled { cursor: default; }

.quiz-explanation {
  background: #f5f5f5;
  border-left: 4px solid #8b2500;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1rem;
  font-size: 0.92rem;
  color: #333;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}
.quiz-next-btn { float: right; margin-left: 1rem; }

.quiz-results {
  text-align: center;
  padding: 2rem 0;
}

.results-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.results-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.score-verdict {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
.verdict--poor   { background: #fce4ec; color: #c62828; }
.verdict--ok     { background: #fff3e0; color: #e65100; }
.verdict--good   { background: #e8f5e9; color: #2e7d32; }
.verdict--expert { background: #e3f2fd; color: #1565c0; }

.results-pct {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.results-actions { display: flex; justify-content: center; }

/* ── Index page ───────────────────────────────────────────────────────────── */
.index-header {
  margin-bottom: 2rem;
}

.index-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.index-lead {
  font-size: 1.05rem;
  color: #444;
  font-style: italic;
}

.destination-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.destination-card {
  border-bottom: 1px solid #eee;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  transition: background 0.1s;
}
.card-link:hover { background: #fdf5f3; }

.card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e8;
}

.card-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ebe3;
}

.card-rank {
  font-family: system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b2500;
}

.card-text { flex: 1; min-width: 0; }

.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.card-country {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b2500;
}

.card-tagline {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin-top: 0.2rem;
}

.card-arrow {
  font-size: 1.2rem;
  color: #ccc;
  flex-shrink: 0;
}

/* ── Privacy page ─────────────────────────────────────────────────────────── */
.privacy-page h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.privacy-page h2 { font-size: 1.2rem; margin: 1.75rem 0 0.4rem; }
.privacy-page p, .privacy-page li { font-size: 1rem; margin-bottom: 0.75rem; }
.privacy-page ul { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.privacy-date { color: #888; font-family: system-ui, sans-serif; font-size: 0.85rem; margin-bottom: 1.5rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #888;
  padding: 1.5rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
}

.site-footer p { margin-bottom: 0.4rem; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  html { font-size: 16px; }

  /* Header */
  .site-header .container { gap: 0.5rem; }
  .header-next-btn { padding: 0.3rem 0.7rem; font-size: 0.78rem; }

  /* Breadcrumbs — push to second row below logo + nav button */
  .breadcrumbs { order: 3; flex-basis: 100%; }
  .site-header .dest-nav-btn { order: 2; }
  /* Hide all but the last 2 breadcrumb items; prepend "… ›" when truncated */
  .breadcrumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .breadcrumbs li:nth-last-child(2):not(:first-child)::before {
    content: "… ›";
    margin-right: 0.4rem;
    color: #aaa;
  }

  /* Hero */
  .hero-image { max-height: 300px; }
  .page-title { font-size: 1.3rem; }
  .page-tagline { font-size: 0.95rem; }

  /* Article */
  .article-body p { font-size: 1rem; }
  .inline-image { max-height: 240px; }

  /* Index cards */
  .index-header h1 { font-size: 1.4rem; }
  .card-thumb { width: 80px; height: 56px; }
  .card-thumb img { width: 80px; height: 56px; }
  .card-name { font-size: 1rem; }
  .card-tagline { display: none; }

  /* Photo essay */
  .photo-essay-image { max-height: 60vh; }
  .photo-counter { display: none; }

  /* Quiz */
  .quiz-question { font-size: 1.05rem; }
  .quiz-option-btn { padding: 0.65rem 0.8rem; font-size: 0.95rem; }

  /* Nav */
  .page-nav { gap: 0.5rem; }
}
