/* ============================================================
   London Bike Tours — Design System CSS
   Charlie (P5-Generation)
   Source: design-system.md
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --parchment: #fbfdf8;
  --stone: #f4f9f0;
  --charcoal: #243320;

  /* Text */
  --slate: #445a3c;
  --mist-text: rgba(255,255,255,0.6);

  /* Accents */
  --forest: #5a9962;
  --accent: #4d9962;
  --fern: #7bbf72;
  --moss: #c8e0b5;
  --gold: #a8cc88;
  --mist: #d8eacc;

  /* Semantic */
  --success: #4d9962;
  --warning: #b45309;
  --error: #dc2626;
  --info: #1d4ed8;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --px: clamp(24px, 6vw, 120px);
  --py: clamp(64px, 8vw, 120px);
  --nav-h: 290px;
  --ease: 0.2s ease;
  --ease-nav: 0.4s ease;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.06);
  --shadow-nav: 0 2px 20px rgba(0,0,0,0.15);
  --shadow-dropdown: 0 12px 40px rgba(0,0,0,0.4);
}

/* --- Font Face (self-hosted, font-display: swap) --- */
@font-face {
  font-family: 'Syne';
  src: url('/fonts/Syne-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Variable.woff2') format('woff2');
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Italic-Variable.woff2') format('woff2');
  font-weight: 200 500;
  font-style: italic;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--fern); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Containers --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--px); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--px); }

/* --- Section --- */
.section { padding: var(--py) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--charcoal); color: white; }
.text-centre { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: white;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-style: italic;
  color: white;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-header {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate);
  margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); }
.lead {
  font-size: 16px; font-weight: 300; max-width: 600px;
  color: var(--slate); margin-top: 20px;
}
.section--dark .lead { color: rgba(255,255,255,0.8); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: var(--radius-xs);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 44px; min-width: 44px;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--fern); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent); border-color: var(--accent); color: white;
}
.btn-primary:hover { background: #3d7a50; border-color: #3d7a50; color: white; }

.btn-outline {
  background: transparent; border-color: rgba(255,255,255,0.6); color: white;
}
.btn-outline:hover { background: white; color: var(--charcoal); }

.btn-forest {
  background: var(--forest); border-color: var(--forest); color: white;
}
.btn-forest:hover { background: var(--charcoal); border-color: var(--charcoal); color: white; }

.btn-muted {
  background: var(--stone); border: 1px solid var(--mist); color: var(--slate);
}
.btn-muted:hover { background: var(--moss); }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  transition: background var(--ease-nav), box-shadow var(--ease-nav);
}
.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(36,51,32,0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-nav);
}
.nav__inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); height: 100%;
}
.nav__logo { color: white; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.nav__logo-sub { font-size: 9px; font-weight: 300; letter-spacing: 0.1em; opacity: 0.6; display: block; }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__link {
  color: white; font-family: var(--font-body);
  font-size: 10.5px; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: opacity var(--ease);
}
.nav__link:hover { opacity: 0.7; color: white; }
.nav__link[aria-current="page"] { font-weight: 500; }
.btn-nav-cta {
  background: var(--accent); color: white; border: none;
  padding: 10px 20px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  border-radius: var(--radius-xs); cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center;
}
.btn-nav-cta:hover { background: var(--forest); color: white; }

/* Mobile nav toggle */
.nav__hamburger {
  display: none; background: none; border: none; color: white;
  width: 44px; height: 44px; cursor: pointer;
}
@media (max-width: 767px) {
  :root { --nav-h: 160px; }
  .nav__logo img { max-height: 130px !important; height: 130px !important; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; align-items: center; justify-content: center; }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--charcoal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; }
.nav-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px); font-weight: 300;
  color: white; text-decoration: none;
}
.nav-overlay__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: white;
  width: 44px; height: 44px; font-size: 24px; cursor: pointer;
}

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--charcoal);
}
.hero__bg {
  position: absolute;
  top: -30%; left: 0; right: 0; bottom: -30%;
  background-size: cover; background-position: center 50%;
  opacity: 0.6;
  will-change: transform;
}
.hero__content {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 40px) var(--px) 60px;
  max-width: 720px;
}
.hero__content > * + * { margin-top: 24px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero__stats {
  display: flex; gap: 0; margin-top: 48px;
}
.hero__stat {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }
.hero__stat-number {
  font-family: var(--font-display); font-size: 40px; font-weight: 300; color: white;
}
.hero__stat-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero__stat { border-right: none; border-bottom: none; padding: 0; }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--stone); padding: 20px 0; text-align: center;
  font-size: 12px; font-weight: 300; color: var(--slate);
}
.trust-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* --- Tour Card --- */
.tour-card {
  background: white; border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tour-card__image {
  height: 200px; overflow: hidden; position: relative;
}
.tour-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.tour-card:hover .tour-card__image img { transform: scale(1.05); }
.tour-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; font-size: 9px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--radius-xs); color: white;
}
.tour-card__badge--popular { background: var(--forest); }
.tour-card__badge--seasonal { background: rgba(36,51,32,0.8); }
.tour-card__body { padding: 28px 32px; }
.tour-card__meta {
  display: flex; gap: 16px; margin-bottom: 12px;
  font-size: 11px; color: var(--slate);
}
.tour-card__title { margin-bottom: 8px; }
.tour-card__desc {
  font-size: 14px; font-weight: 300; color: var(--slate);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tour-card__highlights {
  list-style: none; margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  font-size: 13px; color: var(--slate);
}
.tour-card__highlights li::before { content: "•"; color: var(--forest); margin-right: 6px; }
.tour-card__footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 20px;
}
.tour-card__price {
  font-family: var(--font-display); font-size: 36px; font-weight: 300;
  line-height: 1; color: var(--charcoal);
}
.tour-card__price-label { font-size: 12px; font-weight: 300; color: var(--slate); }
.tour-card__cta {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--forest);
}
.tour-card__cta:hover { color: var(--charcoal); }

/* --- Features Grid (Why Us) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border: 1px solid rgba(255,255,255,0.1);
}
.features-grid__item {
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.features-grid__icon { font-size: 32px; margin-bottom: 16px; }
.features-grid__title {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  color: white; margin-bottom: 8px;
}
.features-grid__desc { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.7); }

/* --- Steps (How It Works) --- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.step__number {
  font-family: var(--font-display); font-size: 40px; font-weight: 300;
  color: var(--forest); margin-bottom: 12px;
}
.step__title {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  margin-bottom: 8px;
}
.step__desc { font-size: 14px; color: var(--slate); }

/* --- Review Card --- */
.review-card {
  background: white; border: 1px solid var(--mist);
  border-radius: var(--radius-md); padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.review-card__stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.review-card__quote {
  font-size: 15px; font-weight: 300; font-style: italic;
  color: var(--slate);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--moss); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--forest);
}
.review-card__name { font-size: 13px; font-weight: 500; }
.review-card__location { font-size: 11px; font-weight: 300; color: var(--slate); }

/* --- CTA Strip --- */
.cta-strip {
  background: var(--charcoal); color: white;
  padding: var(--py) 0; text-align: center;
}
.cta-strip .section-title { color: white; }
.cta-strip .lead { color: rgba(255,255,255,0.7); margin: 20px auto 0; }
.cta-strip .btn { margin-top: 32px; }

/* --- Footer --- */
.footer {
  background: #283822; color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 0 var(--px);
}
.footer__col-head {
  font-family: var(--font-body); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 16px;
}
.footer__link {
  display: block; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em; line-height: 1.5; padding: 4px 0;
}
.footer__link:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding: 20px var(--px);
  max-width: 1200px; margin-left: auto; margin-right: auto;
  font-size: 10px; font-weight: 300; letter-spacing: 0.05em;
  display: flex; justify-content: space-between; align-items: center;
}
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Form Inputs --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--slate); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--parchment);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--charcoal);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus {
  border-color: var(--fern);
  box-shadow: 0 0 0 3px rgba(123,191,114,0.15);
  outline: none;
}
.form-input--error { border-color: var(--error); }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }

/* --- Tags/Badges --- */
.tag {
  display: inline-block; padding: 4px 10px;
  font-size: 9px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.1em; border-radius: var(--radius-xs);
}
.tag--default { background: var(--moss); color: var(--forest); }
.tag--available { background: var(--success); color: white; }
.tag--limited { background: var(--warning); color: white; }
.tag--sold-out { background: var(--error); color: white; }

/* --- Accordion --- */
.accordion__trigger {
  width: 100%; background: none; border: none;
  border-bottom: 1px solid var(--mist);
  padding: 20px 0;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  color: var(--charcoal); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
}
.accordion__trigger:focus-visible { outline: 2px solid var(--fern); outline-offset: -2px; }
.accordion__chevron { transition: transform var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }
.accordion__panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__panel[aria-hidden="false"] { max-height: 500px; }
.accordion__content {
  padding: 16px 0 24px;
  font-size: 15px; font-weight: 300; color: var(--slate);
}

/* --- Inner Page Hero --- */
.page-hero {
  background: var(--charcoal); color: white;
  padding: calc(var(--nav-h) + 48px) 0 48px;
  text-align: center;
}

/* --- Booking Widget Host --- */
.widget-host {
  min-height: 600px;
  padding: 32px 0;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 350; background: var(--charcoal); color: white;
  padding: 20px var(--px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-banner__text { font-size: 13px; font-weight: 300; flex: 1; min-width: 300px; }
.cookie-banner__actions { display: flex; gap: 12px; align-items: center; }
.cookie-banner__link { color: var(--mist-text); font-size: 12px; cursor: pointer; background: none; border: none; }
.cookie-banner__link:hover { color: white; }

/* --- Footer Social Icons --- */
.footer__social { display: flex; gap: 16px; align-items: center; }
.footer__social-link {
  color: rgba(255,255,255,0.5); transition: color var(--ease);
  display: flex; align-items: center;
}
.footer__social-link:hover { color: white; }

/* --- Footer Cookie Button --- */
.footer__cookie-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 4px 0;
  text-align: left;
}

/* --- Cookie Preference Modal (vanilla JS fallback) --- */
.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-modal-backdrop.is-open { opacity: 1; pointer-events: all; }
.cookie-modal {
  background: white; border-radius: var(--radius-md);
  max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto;
  padding: 32px; box-shadow: var(--shadow-dropdown);
}
.cookie-modal__title {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  margin-bottom: 8px;
}
.cookie-modal__desc {
  font-size: 14px; color: var(--slate); margin-bottom: 24px;
}
.cookie-modal__category {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--mist);
}
.cookie-modal__category-info { flex: 1; }
.cookie-modal__category-name {
  font-weight: 500; font-size: 15px; margin-bottom: 4px;
}
.cookie-modal__category-desc {
  font-size: 13px; color: var(--slate);
}
/* Toggle switch */
.cookie-toggle {
  position: relative; width: 48px; height: 26px; flex-shrink: 0; margin-left: 16px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--mist); border-radius: 26px;
  transition: background 0.2s;
}
.cookie-toggle__slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; background: white;
  border-radius: 50%; transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(22px); }
.cookie-toggle input:disabled + .cookie-toggle__slider { opacity: 0.5; cursor: not-allowed; }
.cookie-toggle input:focus-visible + .cookie-toggle__slider { outline: 2px solid var(--fern); outline-offset: 2px; }
.cookie-modal__actions {
  display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end;
}

/* ============================================================
   Tour Card — Skeleton Loading Placeholders
   ============================================================ */
.tour-card--skeleton { pointer-events: none; }
.tour-card__skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, var(--mist) 25%, var(--stone) 50%, var(--mist) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
}
.tour-card__skeleton-line {
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--mist) 25%, var(--stone) 50%, var(--mist) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tour Card — Availability Badges */
.tour-card__badge--available { background: var(--forest); }
.tour-card__badge--limited   { background: var(--warning); }
.tour-card__badge--sold-out  { background: var(--error); }

/* Tour Card — Image link reset */
.tour-card__image-link { display: block; text-decoration: none; color: inherit; }

/* ============================================================
   Tour Detail — Hero
   ============================================================ */
.tour-detail__hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.tour-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36,51,32,0.85) 0%, rgba(36,51,32,0.3) 50%, transparent 100%);
}
.tour-detail__hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--px) 48px;
  max-width: 800px;
}
.tour-detail__hero-content .hero-title {
  font-size: clamp(36px, 6vw, 72px);
}
.tour-detail__hero-content .hero-subtitle {
  margin-top: 12px;
}

/* ============================================================
   Tour Detail — Meta Bar
   ============================================================ */
.tour-detail__meta-bar {
  background: var(--charcoal);
  padding: 14px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}
.tour-detail__meta-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tour-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.tour-detail__meta-item svg { opacity: 0.7; }
.tour-detail__meta-cta {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 10px;
}
@media (max-width: 767px) {
  .tour-detail__meta-bar-inner {
    justify-content: center;
    gap: 12px 20px;
  }
  .tour-detail__meta-cta {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================
   Tour Detail — Breadcrumb
   ============================================================ */
.tour-detail__breadcrumb {
  padding-top: 20px;
  padding-bottom: 8px;
}
.tour-detail__breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--slate);
}
.tour-detail__breadcrumb-list li { display: flex; align-items: center; }
.tour-detail__breadcrumb-list li + li::before {
  content: ">";
  margin: 0 8px;
  color: var(--mist);
}
.tour-detail__breadcrumb-list a { color: var(--forest); }
.tour-detail__breadcrumb-list a:hover { color: var(--charcoal); }
.tour-detail__breadcrumb-list [aria-current="page"] { color: var(--charcoal); font-weight: 400; }

/* ============================================================
   Tour Detail — Two-Column Body
   ============================================================ */
.tour-detail__body {
  display: grid;
  grid-template-columns: 1fr clamp(260px, 25vw, 340px);
  gap: clamp(32px, 4vw, 64px);
  padding-top: 24px;
  padding-bottom: var(--py);
}
@media (max-width: 899px) {
  .tour-detail__body {
    grid-template-columns: 1fr;
  }
}

/* ---- Main column ---- */
.tour-detail__main { min-width: 0; }
.tour-detail__section { margin-bottom: 48px; }
.tour-detail__description {
  font-size: 15px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
}
.tour-detail__description p + p { margin-top: 16px; }

/* Highlights */
.tour-detail__highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
}
.tour-detail__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tour-detail__highlights li::before {
  content: "\2713";
  color: var(--forest);
  font-weight: 500;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .tour-detail__highlights { grid-template-columns: 1fr; }
}

/* Included grid */
.tour-detail__included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 480px) {
  .tour-detail__included-grid { grid-template-columns: 1fr; }
}
.tour-detail__checklist {
  list-style: none;
  font-size: 14px;
  color: var(--slate);
}
.tour-detail__checklist li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-detail__checklist li::before {
  content: "\2713";
  color: var(--forest);
  font-weight: 500;
}
.tour-detail__checklist--extras li::before {
  content: "+";
  color: var(--warning);
}

/* Accordions container */
.tour-detail__accordions { border-top: 1px solid var(--mist); }

/* Reviews grid */
.tour-detail__reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============================================================
   Tour Detail — Sticky Sidebar
   ============================================================ */
.tour-detail__sidebar {
  position: relative;
}
.tour-detail__sidebar-card {
  position: sticky;
  top: calc(var(--nav-h) + 60px);
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tour-detail__sidebar-image {
  height: 180px;
  overflow: hidden;
}
.tour-detail__sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-detail__sidebar-body {
  padding: 24px;
}
.tour-detail__sidebar-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

/* Key facts */
.tour-detail__facts {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
}
.tour-detail__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  padding: 6px 0;
}
.tour-detail__fact svg {
  flex-shrink: 0;
  color: var(--forest);
}

/* Related tours — limit to 2 cols */
.tour-detail__related {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .tour-detail__related { grid-template-columns: 1fr; }
}

/* ============================================================
   Tour Detail — Mobile: Sidebar becomes fixed bottom bar
   ============================================================ */
@media (max-width: 899px) {
  .tour-detail__sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
  }
  .tour-detail__sidebar-card {
    position: static;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    border: none;
    border-top: 1px solid var(--mist);
  }
  .tour-detail__sidebar-image { display: none; }
  .tour-detail__sidebar-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .tour-detail__sidebar-body .card-title { display: none; }
  .tour-detail__sidebar-body .btn {
    margin-top: 0;
    flex: 1;
    min-width: 160px;
  }
  .tour-detail__facts { display: none; }
  /* Add bottom padding to main so content isn't hidden behind fixed bar */
  .tour-detail__main { padding-bottom: 80px; }
}

/* ============================================================
   Page Transition Animations
   Uses CSS View Transitions API (MPA mode) for modern browsers.
   JS fade fallback in /js/transitions.js handles the rest.
   ============================================================ */

/* MPA View Transitions — Chrome 126+, Edge 126+, Safari 18.2+ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 250ms ease-in page-fade-out;
}

::view-transition-new(root) {
  animation: 300ms ease-out page-fade-in;
}

@keyframes page-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

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

/* ============================================================
   Nav Logo Animation
   Fades in with a gentle drift down on every page load.
   ============================================================ */

.nav__logo img {
  animation: logo-appear 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logo-appear {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* On page-exit (View Transitions), logo fades out upward */
::view-transition-old(root) .nav__logo img {
  animation: logo-disappear 250ms ease-in both;
}

@keyframes logo-disappear {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.94); }
}

/* Language switcher */
.nav__lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,0.15);
  margin-left: 4px;
}
.nav--solid .nav__lang-switcher {
  border-left-color: rgba(36,51,32,0.15);
}
.nav__lang {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--ease);
  padding: 4px 2px;
}
.nav--solid .nav__lang {
  color: var(--slate);
}
.nav__lang:hover {
  color: white;
}
.nav--solid .nav__lang:hover {
  color: var(--charcoal);
}
.nav__lang--active {
  color: white !important;
  font-weight: 600;
}
.nav--solid .nav__lang--active {
  color: var(--charcoal) !important;
}
.nav__lang-sep {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  user-select: none;
}
.nav--solid .nav__lang-sep {
  color: rgba(36,51,32,0.2);
}
/* Mobile overlay language switcher */
.nav-overlay__lang {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-overlay__lang a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.nav-overlay__lang a.active {
  color: white;
  font-weight: 600;
}
