/* ==========================================================================
   Orient Tour Armenia — Components
   Header, footer, buttons, cards, forms, and the arch motif.
   Depends on tokens from base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Arch motif — the signature shape
   -------------------------------------------------------------------------- */

/* An apse arch: rounded top, squared base. Used as an image mask throughout.
   The wrapper clips; the image fills it. */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-arch);
  background: var(--surface-sunk);
  isolation: isolate;
}

.arch--soft { border-radius: var(--r-arch-soft); }
.arch--full { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.arch--flat { border-radius: var(--r-lg); }

.arch > img,
.arch > picture > img,
.arch > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arch--3-4 { aspect-ratio: 3 / 4; }
.arch--4-5 { aspect-ratio: 4 / 5; }
.arch--1-1 { aspect-ratio: 1 / 1; }
.arch--2-3 { aspect-ratio: 2 / 3; }

/* Thin keyline that traces the arch — reads as a carved stone frame */
.arch--framed::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* Decorative arch used as a background ornament, not an image container */
.arch-ornament {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  border-bottom: none;
  pointer-events: none;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--text-on-accent);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.86em 1.6em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  box-shadow: 0 4px 14px rgba(217, 117, 40, 0.28);
}

.btn--primary:hover {
  --btn-bg: var(--accent-hover);
  box-shadow: 0 8px 22px rgba(217, 117, 40, 0.34);
}

.btn--dark {
  --btn-bg: var(--text-strong);
  --btn-fg: var(--bg);
}

.btn--dark:hover { --btn-bg: var(--tuff-800); }

[data-theme="dark"] .btn--dark {
  --btn-bg: var(--tuff-50);
  --btn-fg: var(--tuff-950);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  --btn-bd: var(--line-strong);
}

.btn--outline:hover {
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-text);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  --btn-bd: transparent;
  padding-inline: 0.9em;
}

.btn--ghost:hover {
  --btn-bg: var(--surface-sunk);
}

.btn--soft {
  --btn-bg: var(--accent-soft);
  --btn-fg: var(--accent-text);
}

.btn--soft:hover { --btn-bg: var(--apricot-300); }

[data-theme="dark"] .btn--soft:hover { --btn-bg: rgba(238, 139, 60, 0.28); }

/* For use on photographic or dark backgrounds */
.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.95);
  --btn-fg: var(--tuff-950);
  --btn-bd: transparent;
}

.btn--white {
  --btn-bg: var(--white);
  --btn-fg: var(--tuff-950);
}

.btn--white:hover { --btn-bg: var(--tuff-100); }

.btn--sm { padding: 0.62em 1.2em; font-size: var(--fs-xs); }
.btn--lg { padding: 1.02em 2.1em; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

.btn--icon {
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Text link with an animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease-out);
}

.link:hover { color: var(--accent-text); gap: var(--sp-3); }

.link:hover::after {
  transform-origin: left;
  animation: link-wipe var(--dur) var(--ease-out);
}

@keyframes link-wipe {
  0% { transform: scaleX(1); transform-origin: right; }
  49% { transform: scaleX(0); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.link--accent { color: var(--accent-text); }
.link--muted { color: var(--text-muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   3. Badges, chips, pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.36em 0.78em;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.4;
}

.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--plum { background: var(--plum-soft); color: var(--plum); }
.badge--dark { background: var(--text-strong); color: var(--bg); }
.badge--outline { background: transparent; border: 1px solid var(--line-strong); }

.badge--sky {
  background: var(--sky-100);
  color: var(--sky-700);
}

[data-theme="dark"] .badge--sky {
  background: rgba(110, 157, 181, 0.18);
  color: var(--sky-300);
}

.badge--moss { background: var(--moss-100); color: var(--moss-700); }

[data-theme="dark"] .badge--moss {
  background: rgba(86, 117, 83, 0.22);
  color: #a8c4a3;
}

.badge--glass {
  background: rgba(20, 16, 13, 0.55);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Meta chips: small icon + label pairs used on cards and detail pages */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
  stroke-width: 1.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: var(--z-toast);
  padding: var(--sp-3) var(--sp-6);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus { transform: translate(-50%, 0); }

.topbar {
  background: var(--bg-deep);
  color: var(--tuff-300);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: 40px;
  padding-block: var(--sp-2);
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--tuff-300);
  transition: color var(--dur-fast) var(--ease-out);
}

.topbar a:hover { color: var(--apricot-400); }
.topbar svg { width: 14px; height: 14px; opacity: 0.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition:
    background-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

/* Overlay mode: header floats over a full-bleed hero until the user scrolls */
.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
}

.site-header--overlay .brand__name,
.site-header--overlay .nav__link,
.site-header--overlay .icon-btn { color: var(--white); }

.site-header--overlay .brand__tag { color: rgba(255, 255, 255, 0.72); }

.site-header--overlay .btn--outline {
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.5);
}

.site-header--overlay .btn--outline:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--tuff-950);
  --btn-bd: var(--white);
}

/* Scrolled state, applied by site.js */
.site-header.is-stuck {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.site-header.is-stuck .brand__name,
.site-header.is-stuck .nav__link,
.site-header.is-stuck .icon-btn { color: var(--text-strong); }

.site-header.is-stuck .brand__tag { color: var(--text-faint); }

.site-header.is-stuck .btn--outline {
  --btn-fg: var(--text-strong);
  --btn-bd: var(--line-strong);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
  color: var(--text-strong);
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: var(--sp-1); }

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav__link:hover { color: var(--accent-text); }

.nav__link[aria-current="page"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.nav__link svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__item:hover .nav__link svg,
.nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

/* Dropdown menu */
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    visibility var(--dur);
}

.nav__item:hover > .nav__menu,
.nav__item:focus-within > .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__menu-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav__menu-link:hover { background: var(--surface-sunk); }

.nav__menu-title {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-strong);
}

.nav__menu-desc {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  line-height: 1.4;
  margin-top: 2px;
}

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Icon buttons (theme, language, search, menu) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.icon-btn:hover { background: rgba(140, 122, 107, 0.16); color: var(--accent-text); }
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.7; }
.icon-btn--wide { width: auto; padding-inline: var(--sp-3); font-size: var(--fs-xs); font-weight: 700; }

/* Theme toggle swaps which glyph is visible */
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* Language switcher */
.lang { position: relative; }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  z-index: var(--z-drawer);
}

.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang__option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.lang__option:hover { background: var(--surface-sunk); }
.lang__option[aria-current="true"] { color: var(--accent-text); }
.lang__flag { font-size: 1.05rem; line-height: 1; }

/* Mobile nav toggle — three bars morphing into a cross */
.nav-toggle { display: none; }

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.drawer__body { padding: var(--sp-6); flex: 1; }
.drawer__foot { padding: var(--sp-6); border-top: 1px solid var(--line-soft); }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-strong);
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}

.drawer__link:hover { color: var(--accent-text); padding-left: var(--sp-2); }
.drawer__link svg { width: 18px; height: 18px; opacity: 0.4; }
.drawer__link[aria-current="page"] { color: var(--accent-text); }

.drawer__sublist { padding: var(--sp-2) 0 var(--sp-4) var(--sp-4); }

.drawer__sublink {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.drawer__sublink:hover { color: var(--accent-text); }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-sunk);
  flex: none;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card__media img { transform: scale(1.06); }

.card__media-badges {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  z-index: 2;
}

.card__fav {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--tuff-700);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.card__fav:hover { color: var(--pom-600); background: var(--white); }
.card__fav svg { width: 16px; height: 16px; }
.card__fav[aria-pressed="true"] { color: var(--pom-600); }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: var(--sp-6);
}

.card__kicker {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: var(--tracking-snug);
  color: var(--text-strong);
  transition: color var(--dur-fast) var(--ease-out);
}

.card:hover .card__title { color: var(--accent-text); }

.card__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  /* Clamp to keep cards in a grid the same height regardless of copy length */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-soft);
}

/* Stretched link makes the whole card clickable while keeping semantics */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Interactive children must sit above the stretched link */
.card__fav,
.card__foot .btn { position: relative; z-index: 2; }

/* Price block */
.price { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }

.price__label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.price__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: var(--tracking-snug);
}

.price__unit { font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); }

.price__was {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  text-decoration: line-through;
  font-weight: 600;
}

.price--lg .price__value { font-size: var(--fs-3xl); }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; }

.rating__stars { display: inline-flex; gap: 1px; color: var(--apricot-500); }
.rating__stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.rating__count { color: var(--text-faint); font-weight: 600; }

/* Overlay card — image with copy laid over a gradient scrim */
.card-overlay {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.card-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(20, 16, 13, 0.88) 0%,
    rgba(20, 16, 13, 0.55) 34%,
    rgba(20, 16, 13, 0.08) 68%,
    rgba(20, 16, 13, 0.15) 100%
  );
}

.card-overlay:hover img { transform: scale(1.06); }

.card-overlay__body { position: relative; z-index: 1; width: 100%; }

.card-overlay__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
  letter-spacing: var(--tracking-snug);
  line-height: 1.15;
}

.card-overlay__meta {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
  margin-top: var(--sp-2);
}

.card-overlay--tall { min-height: 520px; }
.card-overlay--arch { border-radius: var(--r-arch-soft); }

.card-overlay__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Plain content tile (no image) */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  height: 100%;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.tile--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile--sunk { background: var(--surface-sunk); border-color: transparent; }
.tile--outline { background: transparent; }

.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tile__icon svg { width: 24px; height: 24px; stroke-width: 1.6; }

.tile__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: var(--tracking-snug);
}

.tile__text { font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted); }

/* Numbered step tile */
.tile__num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.42;
}

/* --------------------------------------------------------------------------
   6. Stats
   -------------------------------------------------------------------------- */

.stat { display: flex; flex-direction: column; gap: var(--sp-1); }

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}

.stat__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat--accent .stat__value { color: var(--accent); }

.section--deep .stat__value { color: var(--apricot-400); }
.section--deep .stat__label { color: var(--tuff-300); }

/* --------------------------------------------------------------------------
   7. Testimonials
   -------------------------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  height: 100%;
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.32;
}

.quote__text {
  font-size: var(--fs-md);
  line-height: 1.68;
  color: var(--text);
  flex: 1;
}

.quote__author { display: flex; align-items: center; gap: var(--sp-3); }

.quote__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--surface-sunk);
}

.quote__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.quote__name { font-weight: 700; font-size: var(--fs-sm); color: var(--text-strong); }
.quote__origin { font-size: var(--fs-xs); color: var(--text-faint); }

/* --------------------------------------------------------------------------
   8. Accordion (FAQ, itinerary days, inclusions)
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--line); }

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding: var(--sp-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: var(--tracking-snug);
  transition: color var(--dur-fast) var(--ease-out);
}

.accordion__trigger:hover { color: var(--accent-text); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.accordion__icon::before { width: 11px; height: 1.5px; }
.accordion__icon::after { width: 1.5px; height: 11px; }

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: rotate(180deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

/* Height is animated via inline max-height set by site.js */
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.accordion__content {
  padding-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 74ch;
}

.accordion__content > * + * { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   9. Itinerary timeline
   -------------------------------------------------------------------------- */

.timeline { position: relative; }

.timeline__item {
  position: relative;
  padding-left: clamp(var(--sp-10), 6vw, var(--sp-16));
  padding-bottom: var(--sp-10);
}

.timeline__item:last-child { padding-bottom: 0; }

/* Connector line between day markers */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line-soft));
}

.timeline__item:last-child::before { display: none; }

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  border: 1.5px solid transparent;
}

.timeline__marker strong { font-size: var(--fs-md); font-weight: 800; letter-spacing: 0; margin-top: 1px; }

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: var(--tracking-snug);
  line-height: 1.3;
}

.timeline__text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  max-width: 72ch;
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
}

/* --------------------------------------------------------------------------
   10. Inclusion / exclusion lists
   -------------------------------------------------------------------------- */

.ticks { display: flex; flex-direction: column; gap: var(--sp-3); }

.ticks__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

.ticks__item svg { width: 19px; height: 19px; flex: none; margin-top: 1px; stroke-width: 2.2; }
.ticks--in .ticks__item svg { color: var(--moss-600); }
.ticks--out .ticks__item svg { color: var(--pom-600); }

[data-theme="dark"] .ticks--in .ticks__item svg { color: #86ab81; }
[data-theme="dark"] .ticks--out .ticks__item svg { color: var(--pom-500); }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: var(--sp-5); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.form-grid--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }

.field__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__label .req { color: var(--pom-600); margin-left: 2px; }

.field__hint { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }

.field__error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--pom-600);
}

.field__error svg { width: 14px; height: 14px; flex: none; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--pom-600); }

[data-theme="dark"] .field__error { color: var(--pom-500); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.82em 1em;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-faint); opacity: 1; }

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-strong); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  /* Custom chevron; the SVG is inlined so no extra request is made */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c7a6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.6em;
  cursor: pointer;
}

/* Date inputs need explicit colour handling in dark mode */
[data-theme="dark"] .input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

.checkbox,
.radio {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input,
.radio input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__note { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.6; }

/* Non-blocking form status message */
.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status--ok { background: var(--moss-100); color: var(--moss-700); }
.form-status--warn { background: var(--accent-soft); color: var(--accent-text); }
.form-status--err { background: var(--plum-soft); color: var(--plum); }

[data-theme="dark"] .form-status--ok { background: rgba(86, 117, 83, 0.2); color: #a8c4a3; }

/* --------------------------------------------------------------------------
   12. Filter bar (tour catalogue)
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.filters__group { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 190px; min-width: 0; }
.filters__actions { display: flex; gap: var(--sp-2); flex: none; }

/* Scrollable pill row for category quick-filters */
.pill-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pill-row::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  padding: 0.58em 1.15em;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.pill:hover { border-color: var(--accent); color: var(--accent-text); }

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: var(--bg);
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block: var(--sp-8) var(--sp-6);
}

.results-count { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.results-count strong { color: var(--text-strong); font-weight: 800; }

.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-20) var(--sp-6);
  text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
}

.empty-state.is-visible { display: flex; }
.empty-state svg { width: 46px; height: 46px; color: var(--text-faint); stroke-width: 1.4; }

/* --------------------------------------------------------------------------
   13. Breadcrumbs & pagination
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  font-weight: 600;
}

.breadcrumbs a { transition: color var(--dur-fast) var(--ease-out); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

.breadcrumbs--on-dark { color: rgba(255, 255, 255, 0.62); }
.breadcrumbs--on-dark a:hover { color: var(--apricot-300); }
.breadcrumbs--on-dark [aria-current="page"] { color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   14. Sticky booking panel (tour detail sidebar)
   -------------------------------------------------------------------------- */

.booking {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.booking__price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line-soft);
}

.booking__rows { display: flex; flex-direction: column; gap: var(--sp-3); }

.booking__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
}

.booking__row dt { color: var(--text-faint); font-weight: 600; }
.booking__row dd { margin: 0; color: var(--text-strong); font-weight: 700; text-align: right; }

.booking__actions { display: flex; flex-direction: column; gap: var(--sp-3); }

.booking__assurance {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-faint);
}

.booking__assurance svg { width: 17px; height: 17px; flex: none; color: var(--moss-600); margin-top: 1px; }

/* Mobile: booking bar docks to the bottom of the viewport */
.booking-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(58, 46, 38, 0.14);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}

.booking-bar.is-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   15. Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 480px; }

.table th,
.table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table thead th {
  background: var(--surface-sunk);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.table tbody tr:hover { background: var(--surface-sunk); }
.table td strong { color: var(--text-strong); }

/* --------------------------------------------------------------------------
   16. Gallery & lightbox
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--sp-3);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  background: var(--surface-sunk);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery__item:hover img { transform: scale(1.07); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.2);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.gallery__item:hover::after { opacity: 1; }

/* Editorial variation: some tiles span two rows/columns */
.gallery__item--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: rgba(13, 10, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: min(1200px, 94vw);
  max-height: 84vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }

.lightbox__close { top: var(--sp-6); right: var(--sp-6); }
.lightbox__nav--prev { left: var(--sp-6); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-6); top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   17. Horizontal scroller
   -------------------------------------------------------------------------- */

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(320px, 82vw), 1fr);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: var(--sp-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* Bleeds to the viewport edge so cards run off-screen on mobile */
.scroller--bleed {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.scroller-nav { display: flex; gap: var(--sp-2); }

.scroller-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  color: var(--text-strong);
  transition: all var(--dur-fast) var(--ease-out);
}

.scroller-nav button:hover { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }
.scroller-nav button:disabled { opacity: 0.3; pointer-events: none; }
.scroller-nav svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Marquee (trust logos)
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-10), 6vw, var(--sp-24));
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  /* Track holds two copies of the list, so -50% is one seamless loop */
  to { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee__item svg { width: 22px; height: 22px; opacity: 0.7; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--bg-deep);
  color: var(--tuff-300);
  padding-top: var(--section-y);
  overflow: hidden;
}

.site-footer a { transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--apricot-400); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(var(--sp-8), 4vw, var(--sp-16));
  padding-bottom: var(--sp-16);
}

.footer__brand { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 38ch; }
.footer__brand .brand__name { color: var(--tuff-50); }
.footer__brand .brand__tag { color: var(--tuff-500); }
.footer__blurb { font-size: var(--fs-sm); line-height: 1.7; color: var(--tuff-400); }

.footer__title {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--tuff-500);
  margin-bottom: var(--sp-5);
}

.footer__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__list a { font-size: var(--fs-sm); color: var(--tuff-300); }

.footer__contact { display: flex; flex-direction: column; gap: var(--sp-4); }

.footer__contact-item { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); line-height: 1.6; }
.footer__contact-item svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--apricot-500); }

.socials { display: flex; gap: var(--sp-2); }

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--tuff-200);
  transition: all var(--dur-fast) var(--ease-out);
}

.socials a:hover {
  background: var(--apricot-500);
  border-color: var(--apricot-500);
  color: var(--tuff-950);
  transform: translateY(-3px);
}

.socials svg { width: 18px; height: 18px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: var(--tuff-500);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* Oversized wordmark bleeding off the footer base */
.footer__watermark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 15vw, 13rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.035);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.16em;
  padding-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   20. Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  display: flex;
  gap: var(--sp-2);
  max-width: 440px;
}

.newsletter .input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--tuff-50);
}

.newsletter .input::placeholder { color: var(--tuff-500); }
.newsletter .input:focus { border-color: var(--apricot-500); box-shadow: 0 0 0 3px rgba(238, 139, 60, 0.2); }

/* --------------------------------------------------------------------------
   21. Floating contact (WhatsApp)
   -------------------------------------------------------------------------- */

.floating-contact {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-pill);
  background: #25d366;
  color: #06331a;
  font-size: var(--fs-sm);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.36);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out);
}

.floating-contact:hover { transform: scale(1.05); box-shadow: 0 14px 38px rgba(37, 211, 102, 0.48); }
.floating-contact svg { width: 26px; height: 26px; flex: none; }

/* Label collapses to an icon-only pill once the user scrolls */
.floating-contact__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out), padding var(--dur) var(--ease-out);
}

.floating-contact:hover .floating-contact__label,
.floating-contact:focus-visible .floating-contact__label {
  max-width: 200px;
  opacity: 1;
  padding-right: var(--sp-3);
}

/* --------------------------------------------------------------------------
   22. Notices
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text);
}

.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent-text); }
.notice__title { font-weight: 800; color: var(--text-strong); display: block; margin-bottom: 2px; }

.notice--sky { background: var(--sky-100); border-left-color: var(--sky-600); }
.notice--sky svg { color: var(--sky-700); }
.notice--plum { background: var(--plum-soft); border-left-color: var(--plum); }
.notice--plum svg { color: var(--plum); }

[data-theme="dark"] .notice--sky { background: rgba(110, 157, 181, 0.14); }
[data-theme="dark"] .notice--sky svg { color: var(--sky-300); }

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.72s var(--ease-out),
    transform 0.72s var(--ease-out);
  /* Stagger index is set inline as --i on children of [data-reveal-group] */
  transition-delay: calc(var(--i, 0) * 85ms);
}

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

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; max-width: 52ch; }
}

@media (max-width: 980px) {
  .nav,
  .nav__actions .btn { display: none; }

  .nav-toggle { display: inline-flex; }
  .topbar__list--secondary { display: none; }
}

@media (max-width: 880px) {
  .booking { position: static; }
  .booking-bar { display: flex; }

  /* Clear the docked booking bar so it never covers page content */
  body.has-booking-bar { padding-bottom: 84px; }

  .floating-contact { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-booking-bar .floating-contact { display: none; }

  .card-overlay { min-height: 340px; }
  .card-overlay--tall { min-height: 420px; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
  .filters { padding: var(--sp-4); }
  .filters__group { flex-basis: 100%; }
  .filters__actions { width: 100%; }
  .filters__actions .btn { flex: 1; }
  .gallery__item--wide { grid-column: span 1; aspect-ratio: 1 / 1; }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 1 / 1; }
  .lightbox__nav--prev { left: var(--sp-2); }
  .lightbox__nav--next { right: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   25. Star rating input
   Radio buttons in reverse DOM order so the CSS sibling selector can light up
   the chosen star and everything before it. Works without JavaScript, and
   stays keyboard-navigable because the real inputs are still there.
   -------------------------------------------------------------------------- */

.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-input label {
  cursor: pointer;
  color: var(--line-strong);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
  line-height: 0;
}

.star-input label svg { width: 30px; height: 30px; fill: currentColor; }

/* Chosen star and every star before it */
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--apricot-500); }

.star-input label:hover { transform: scale(1.12); }

.star-input input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.field.is-invalid .star-input label { color: var(--pom-600); opacity: 0.5; }

/* Rating shown above a published review */
.quote .rating { margin-bottom: calc(var(--sp-2) * -1); }
.quote .rating__stars svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   26. Route maps (Leaflet)
   -------------------------------------------------------------------------- */

.route-map,
.map-embed { position: relative; }

/* Leaflet needs a height on the container it is given */
.route-map[data-map],
.map-embed[data-map] {
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface-sunk);
  z-index: 0;                    /* keeps tiles under the sticky header */
}

.map-embed[data-map] { aspect-ratio: 16 / 10; }

.leaflet-container {
  font-family: var(--font-body);
  background: var(--surface-sunk);
}

/* Numbered stop marker */
.map-pin__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(58, 46, 38, 0.35);
}

[data-theme="dark"] .map-pin__dot { border-color: var(--tuff-900); }

.leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  background: var(--surface);
  color: var(--text);
}

.leaflet-popup-tip { background: var(--surface); }
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(20, 16, 13, 0.82) !important;
  color: var(--tuff-300);
}

[data-theme="dark"] .leaflet-control-attribution a { color: var(--apricot-400); }

.leaflet-bar a {
  background: var(--surface);
  color: var(--text-strong);
  border-bottom-color: var(--line);
}

.leaflet-bar a:hover { background: var(--surface-sunk); }

/* Wide route map — sits outside the two-column grid, so it uses the whole
   container. Taller on desktop than the default 16:9 because a route strung
   across the country needs vertical room to read. */
.route-map--wide,
.map-embed--wide {
  aspect-ratio: 21 / 9;
  min-height: 420px;
}

@media (max-width: 880px) {
  .route-map--wide,
  .map-embed--wide {
    aspect-ratio: 4 / 3;
    min-height: 340px;
  }
}
