/* =========================================================================
   Via Ludens — Design System
   A hand-authored utility + component CSS system (Tailwind's build tooling
   could not be installed in this environment — see /docs/ASSUMPTIONS.md).
   Organized as: tokens -> reset -> layout utilities -> components -> pages.
   ========================================================================= */

:root {
  /* Brand colors */
  --color-forest-900: #0f241c;
  --color-forest-800: #16342a;
  --color-forest-700: #1f4a3d;
  --color-forest-600: #2f5d46;
  --color-forest-100: #e7efe9;

  --color-river-700: #2a6e7d;
  --color-river-600: #3b8fa3;
  --color-river-100: #e3f1f3;

  --color-stone-700: #8a5a34;
  --color-stone-500: #c98a4b;
  --color-stone-200: #ecd9c3;

  --color-bg: #faf7f0;
  --color-bg-alt: #f2ece0;
  --color-surface: #ffffff;
  --color-text: #23291f;
  --color-text-muted: #565f52;
  --color-border: #e2d9c8;

  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(15, 36, 28, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 36, 28, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 36, 28, 0.18);

  --container-width: 1180px;
  --space-section: clamp(3rem, 6vw, 6rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em 0; color: var(--color-forest-800); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em 0; }
ul, ol { margin: 0 0 1em 0; padding-left: 1.25em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Visible focus states everywhere, including keyboard-only */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-river-600);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest-800);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Layout utilities ---- */
.container { max-width: var(--container-width); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-river-700);
  margin-bottom: 0.75rem;
}
.text-muted { color: var(--color-text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.1;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-primary { background: var(--color-forest-700); color: #fff; }
.btn-primary:hover { background: var(--color-forest-800); }
.btn-secondary { background: transparent; color: var(--color-forest-800); border-color: var(--color-forest-700); }
.btn-secondary:hover { background: var(--color-forest-700); color: #fff; }
.btn-on-dark { background: rgba(255,255,255,0.95); color: var(--color-forest-800); }
.btn-on-dark:hover { background: #fff; }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.15); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--color-forest-800); }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.98rem; color: var(--color-forest-800); padding: 0.4em 0.1em; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--color-river-600); }
.header-cta { display: none; }
@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-surface);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav.is-open { display: block; }
body.nav-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.mobile-nav a { display: block; padding: 0.9rem 1.25rem; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-nav .btn { margin: 1rem 1.25rem; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-start;
  color: #fff;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,16,0.86) 0%, rgba(10,20,16,0.32) 48%, rgba(10,20,16,0.12) 70%);
}
.hero__content { position: relative; z-index: 1; padding-block: 4rem 3.5rem; max-width: 760px; text-align: center; }
.hero__eyebrow { color: var(--color-stone-200); }
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero p.lead { font-size: 1.15rem; font-style: italic; color: #EFEAD8; max-width: 620px; margin-inline: auto; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; justify-content: center; }
.hero__badges { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.92rem; color: #E4DFCE; }
.hero__badges span { display: inline-flex; align-items: center; gap: 0.5em; }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,16,0.82) 0%, rgba(10,20,16,0.25) 60%);
}
.page-hero__content { position: relative; z-index: 1; padding-block: 2.5rem; }

/* ---- Page hero slideshow variant (photos only, no headline) ---- */
.page-hero--slideshow::after { background: linear-gradient(0deg, rgba(10,20,16,0.35) 0%, rgba(10,20,16,0.05) 45%); }
.page-hero--slideshow img { opacity: 0; animation: heroSlideshow 32s infinite; }
.page-hero--slideshow img:nth-of-type(1) { animation-delay: 0s; }
.page-hero--slideshow img:nth-of-type(2) { animation-delay: 4s; }
.page-hero--slideshow img:nth-of-type(3) { animation-delay: 8s; }
.page-hero--slideshow img:nth-of-type(4) { animation-delay: 12s; }
.page-hero--slideshow img:nth-of-type(5) { animation-delay: 16s; }
.page-hero--slideshow img:nth-of-type(6) { animation-delay: 20s; }
.page-hero--slideshow img:nth-of-type(7) { animation-delay: 24s; }
.page-hero--slideshow img:nth-of-type(8) { animation-delay: 28s; }
@keyframes heroSlideshow {
  0% { opacity: 1; }
  8.75% { opacity: 1; }
  12.5% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero--slideshow img { animation: none; opacity: 0; }
  .page-hero--slideshow img:nth-of-type(1) { opacity: 1; }
}

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-forest-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(22,52,42,0.88); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35em 0.75em; border-radius: 999px;
}
.card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: var(--color-text-muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 0.35em; }
.card__title { margin: 0; font-size: 1.15rem; }
.card__desc { color: var(--color-text-muted); font-size: 0.95rem; flex: 1; }
.card__link { margin-top: 0.5rem; font-weight: 700; color: var(--color-forest-700); display: inline-flex; align-items: center; gap: 0.4em; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.3em 0.85em; border-radius: 999px;
  background: var(--color-forest-100); color: var(--color-forest-800);
}
.pill--river { background: var(--color-river-100); color: var(--color-river-700); }
.pill--stone { background: var(--color-stone-200); color: var(--color-stone-700); }

/* ---- Category tiles ---- */
.category-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 3/4; color: #fff; display: flex; align-items: flex-end;
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-tile:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .category-tile:hover img { transform: none; } }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,16,0.85), rgba(10,20,16,0.05) 60%); }
.category-tile__content { position: relative; z-index: 1; padding: 1.25rem; }
.category-tile__content h3 { color: #fff; margin-bottom: 0.2em; }
.category-tile__content p { color: #E7E2D0; font-size: 0.86rem; margin: 0; }

/* ---- Why section ---- */
.value-item { display: flex; gap: 1rem; }
.value-item__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-forest-100); display: flex; align-items: center; justify-content: center; color: var(--color-forest-700);
}
.value-item__icon svg { width: 24px; height: 24px; }

/* ---- About (photo-flanked) ---- */
.about-flanked { display: grid; gap: 1.5rem; align-items: center; }
.about-flanked__photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.about-flanked__photo { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; background: var(--color-forest-100); }
.about-flanked__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-flanked__photo-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-forest-100); }
.about-flanked__photo-pair .about-flanked__photo--half { border-radius: 0; aspect-ratio: 3 / 2; }
.about-flanked__text { max-width: 620px; margin-inline: auto; }
@media (min-width: 860px) {
  .about-flanked { grid-template-columns: 1fr minmax(320px, 2fr) 1fr; gap: 0; }
  .about-flanked__photos { grid-template-columns: 1fr; }
  .about-flanked__photos--left { order: 1; }
  .about-flanked__text { order: 2; }
  .about-flanked__photos--right { order: 3; }
}

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a, .gallery-grid .gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--color-forest-100); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .gallery-grid a:hover img { transform: none; } }
.gallery-grid .gallery-item[role="button"] { cursor: zoom-in; }
.gallery-grid .gallery-item[role="button"]:hover img { transform: scale(1.06); }
.gallery-grid .gallery-item[role="button"]:focus-visible { outline: 2px solid var(--color-river-600); outline-offset: 2px; }

/* ---- Lightbox ---- */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(9, 18, 14, 0.94);
  padding: 3.5rem 1.25rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
.lightbox__img-wrap { position: relative; max-width: min(1300px, 94vw); }
.lightbox__img {
  display: block; max-width: 100%; max-height: 82vh; margin-inline: auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); background: var(--color-forest-900);
}
.lightbox__close, .lightbox__nav {
  position: absolute; border: none; border-radius: 999px; background: #fff; color: var(--color-forest-900);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--color-bg-alt); }
.lightbox__close { top: -1.1rem; right: -1.1rem; width: 40px; height: 40px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lightbox__nav--prev { left: -1.35rem; }
.lightbox__nav--next { right: -1.35rem; }
@media (max-width: 720px) {
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
  .lightbox__nav--prev { left: 0.35rem; }
  .lightbox__nav--next { right: 0.35rem; }
}
.lightbox__counter {
  position: absolute; bottom: -2.1rem; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; opacity: 0.8; white-space: nowrap;
}

/* ---- Reviews ---- */
.reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6em; margin-bottom: 0.5rem; font-weight: 700; color: var(--color-forest-800);
}
.reviews-summary svg { width: 20px; height: 20px; color: var(--color-stone-500); }
.reviews-summary .text-muted { font-weight: 500; }
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.review-card__stars { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.85rem; font-weight: 700; color: var(--color-stone-700); }
.review-card__stars svg { width: 16px; height: 16px; color: var(--color-stone-500); }
.review-card__quote { color: var(--color-text); font-size: 0.98rem; flex: 1; font-style: italic; }
.review-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.review-card__name { font-weight: 700; color: var(--color-forest-800); }
.review-card__detail { color: var(--color-text-muted); }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--color-forest-800), var(--color-forest-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #E1EDE6; max-width: 46ch; }

/* ---- Footer ---- */
.site-footer { background: var(--color-forest-900); color: #DCE7DF; margin-top: var(--space-section); }
.site-footer a { color: #DCE7DF; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.5rem; padding-block: 3rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer__top { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.site-footer__brand img { width: 34px; height: 34px; }
.site-footer__brand span { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #9FB3A6;
}
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-icons svg { width: 18px; height: 18px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--color-river-700); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.5em; color: var(--color-border); }

/* ---- Package detail ---- */
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.detail-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; }
.info-card + .info-card { margin-top: 1.5rem; }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 0; font-size: 0.92rem; }
.info-card dt { font-weight: 700; color: var(--color-forest-800); }
.info-card dd { margin: 0; color: var(--color-text-muted); }

.itinerary-day { border-left: 3px solid var(--color-river-600); padding-left: 1.25rem; padding-bottom: 2rem; position: relative; }
.itinerary-day::before {
  content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-river-600); border: 2px solid var(--color-bg);
}
.itinerary-day:last-child { padding-bottom: 0; }
.itinerary-day__day { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-river-700); }
.itinerary-day__stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.5rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-chip {
  padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); font-weight: 600; font-size: 0.88rem; color: var(--color-text);
}
.filter-chip[aria-pressed="true"] { background-color: var(--color-forest-700); color: #fff; border-color: var(--color-forest-700); }

/* ---- Country filter tiles (bigger, image-backed buttons) ---- */
.filter-bar--countries {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .filter-bar--countries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .filter-bar--countries { grid-template-columns: repeat(5, 1fr); } }
.filter-bar--countries .filter-chip {
  position: relative; overflow: hidden; padding: 0; border: 3px solid transparent; border-radius: var(--radius-md);
  aspect-ratio: 3 / 2; min-height: 110px; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--color-forest-100); background-size: cover; background-position: center;
  font-weight: 700; font-size: 1.1rem; color: #fff; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 640px) { .filter-bar--countries .filter-chip { aspect-ratio: 3 / 2; min-height: 140px; font-size: 1.2rem; } }
.filter-bar--countries .filter-chip::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(10,20,16,0.46);
}
.filter-bar--countries .filter-chip span { position: relative; z-index: 1; padding: 0.75rem 1rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.filter-bar--countries .filter-chip:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .filter-bar--countries .filter-chip:hover { transform: none; } }
.filter-bar--countries .filter-chip[aria-pressed="true"] { border-color: var(--color-gold-500, #C9A24B); }

/* Per-country background photos */
.filter-chip--albania { background-image: url("/images/albania-riviera-coast.jpg"); }
.filter-chip--bosnia-and-herzegovina { background-image: url("/images/bosnia-herzegovina-canyon-waterfall.jpg"); }
.filter-chip--kosovo { background-image: url("/images/kosovo-snowy-peaks.jpg"); }
.filter-chip--montenegro { background-image: url("/images/montenegro-stone-bridge.jpg"); }
.filter-chip--north-macedonia { background-image: url("/images/north-macedonia-forest-stream.jpg"); }

/* ---- Forms ---- */
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-field .hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75em 0.9em; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
}
.form-field input:invalid[data-touched="true"], .form-field textarea:invalid[data-touched="true"] { border-color: #B4453A; }
.form-field .error-msg { display: none; color: #B4453A; font-size: 0.82rem; margin-top: 0.35rem; }
.form-field.has-error .error-msg { display: block; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #B4453A; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-field input { width: auto; margin-top: 0.25rem; }
.form-success, .form-error-banner {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; display: none; font-weight: 600;
}
.form-success { background: var(--color-forest-100); color: var(--color-forest-800); }
.form-error-banner { background: #FBE7E4; color: #8A2E24; }
.form-success.is-visible, .form-error-banner.is-visible { display: block; }

/* ---- Misc pages ---- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.4em; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--color-forest-800); color: #fff;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: none; cursor: pointer;
}
.back-to-top.is-visible { display: flex; }

.error-page { min-height: 70vh; display: flex; align-items: center; }

/* Loading / skeleton */
.skeleton { background: linear-gradient(90deg, var(--color-bg-alt) 25%, #EDE6D5 37%, var(--color-bg-alt) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
