/* ============================================================
   SECTION: Root Theme Variables
   PURPOSE: Central design tokens for colors, typography, spacing
   TO EDIT: Update brand colors and font families here
   ============================================================ */
:root {
  --primary: #2C4A2E;
  --accent: #C4892A;
  --dark: #1A1A1A;
  --light: #F5F0E8;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --transition: 0.3s ease;
}

/* ============================================================
   SECTION: Base Reset and Typography
   PURPOSE: Provide consistent styles across all pages
   TO EDIT: Global text size and spacing defaults
   ============================================================ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Jost", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

p {
  margin: 0 0 1rem;
}

main {
  min-height: 60vh;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(1.8rem, 6vw, 3.5rem) 0;
}

/* ============================================================
   SECTION: Buttons
   PURPOSE: Shared button styles for links and actions
   TO EDIT: Button shape and color interactions
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.2rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--shadow);
}

.btn:focus-visible,
.social-btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.close-modal:focus-visible,
.tour-carousel-nav:focus-visible {
  outline: 3px solid rgba(196, 137, 42, 0.8);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

/* ============================================================
   SECTION: Header and Navigation
   PURPOSE: Sticky header, desktop nav, and mobile hamburger menu
   TO EDIT: Navigation spacing or logo dimensions
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.header-scrolled {
  background: rgba(245, 240, 232, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  border: 1px solid rgba(26, 26, 26, 0.12);
}

.nav-toggle {
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: rgba(255, 255, 255, 0.96);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-toggle:hover {
  background: var(--white);
  border-color: rgba(44, 74, 46, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--dark);
  display: block;
  position: absolute;
  left: 12px;
  border-radius: 999px;
  transform-origin: center;
  transition: top var(--transition), transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 22px;
}

.nav-toggle span:nth-child(3) {
  top: 29px;
}

.nav-toggle.is-open {
  background: var(--primary);
  border-color: rgba(44, 74, 46, 0.85);
}

.nav-toggle.is-open span {
  background: var(--white);
}

.nav-toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.15);
}

.nav-toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: var(--light);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), max-height var(--transition), padding var(--transition);
}

.nav-links.open {
  opacity: 1;
  pointer-events: auto;
  max-height: 320px;
  transform: translateY(0);
  padding: 0.75rem 1rem 1rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(44, 74, 46, 0.12);
}

/* ============================================================
   SECTION: Hero Blocks
   PURPOSE: Full-height seasonal hero banners
   TO EDIT: Overlay intensity and text alignment
   ============================================================ */
.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: 56% center;
  transition: background-image 0.8s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* ============================================================
   SECTION: Card Components
   PURPOSE: Shared card UI for features, tours, reviews, recommendations
   TO EDIT: Card corner radius and hover behavior
   ============================================================ */
.grid-3 {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.tour-card-clickable {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tour-card-clickable:focus-visible {
  outline: 3px solid rgba(196, 137, 42, 0.6);
  outline-offset: 2px;
}

.tour-card-clickable h3 {
  margin-bottom: 0.45rem;
  min-height: calc(1.15em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-clickable > p:not(.price-tag) {
  min-height: calc(1.6em * 2);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-clickable .hero-actions {
  margin-top: auto;
}

.icon-card {
  text-align: center;
}

.icon-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 85%);
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.scroll-row .card {
  scroll-snap-align: start;
}

.tour-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.price-tag {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}

.price-tag.compact {
  font-size: 1.05rem;
}

.price-per-person {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  white-space: nowrap;
}

.placeholder-hero {
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(44, 74, 46, 0.18), rgba(196, 137, 42, 0.26));
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.tour-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  background: rgba(0, 0, 0, 0.06);
}

.includes-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1rem;
}

.includes-list li {
  margin-bottom: 0.25rem;
}

.tour-detail-card {
  padding: 1.2rem;
}

.tour-detail-grid {
  display: grid;
  gap: 1rem;
}

.tour-carousel {
  position: relative;
  margin-bottom: 1rem;
}

.tour-image-wrapper {
  position: relative;
  width: 100%;
}

.tour-carousel-track {
  position: relative;
  min-height: clamp(280px, 55vh, 560px);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  touch-action: pan-y;
}

.tour-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: clamp(280px, 55vh, 560px);
  object-fit: cover;
  object-position: center;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.tour-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tour-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

.tour-carousel-nav.prev {
  left: 10px;
}

.tour-carousel-nav.next {
  right: 10px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SECTION: Reviews and Social Buttons
   PURPOSE: Homepage reviews carousel and social link presentation
   TO EDIT: Social button sizing and spacing
   ============================================================ */
.stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.review-text {
  margin-bottom: 0.55rem;
}

.review-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  margin: 0 0 0.4rem;
}

.review-toggle:hover {
  opacity: 0.8;
}

.review-date {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.65rem;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recommendation-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recommendation-icon-actions {
  gap: 0.6rem;
}

.recommendation-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(44, 74, 46, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(44, 74, 46, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.recommendation-link-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--shadow);
  background: rgba(44, 74, 46, 0.12);
}

.recommendation-link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.social-section {
  text-align: center;
}

.social-btn {
  text-align: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition);
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.social-btn.social-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--platform-color, var(--primary));
}

.social-btn.social-icon:hover {
  transform: translateY(-2px) scale(1.06);
}

.social-btn-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.social-btn-icon.is-threads {
  width: 30px;
  height: 30px;
}

/* ============================================================
   SECTION: Modal Booking UI
   PURPOSE: Book Now popup with date, people count, WhatsApp action
   TO EDIT: Modal width and form control styling
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(500px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.close-modal {
  border: 0;
  background: rgba(26, 26, 26, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-row {
  margin: 1rem 0;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  font: inherit;
  font-size: 1rem; /* prevents iOS auto-zoom on focus */
}

.booking-total {
  width: 100%;
  margin: 0;
  padding: 0.7rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: rgba(44, 74, 46, 0.04);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ============================================================
   SECTION: Footer
   PURPOSE: Shared footer with social links and copyright
   TO EDIT: Footer spacing and text content
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 0;
}

.pre-footer-anpc {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.pre-footer-anpc .container {
  display: flex;
  justify-content: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.footer-inner > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
}

.footer-inner > div > p {
  margin: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-social a:hover {
  background: rgba(196, 137, 42, 0.5);
}

.site-footer a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity var(--transition);
}

.site-footer a:hover {
  opacity: 0.8;
}

.anpc-pictograms {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.anpc-pictograms a {
  display: inline-block;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.anpc-pictograms a:hover {
  opacity: 0.8;
}

.anpc-pictograms img {
  display: block;
  height: auto;
  max-width: 110px;
  width: 100%;
}

/* ============================================================
   SECTION: Utility Helpers
   PURPOSE: Reusable helper classes for spacing and badges
   TO EDIT: Badge colors and helper naming if needed
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(44, 74, 46, 0.14);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ============================================================
   SECTION: Discount Ribbon
   PURPOSE: Visual badge for direct booking discount offer
   TO EDIT: Color, positioning, and text styling
   ============================================================ */
.tour-image-wrapper {
  position: relative;
  width: 100%;
}

.discount-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), #A0711F);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 90px;
}

.highlight-grid {
  display: grid;
  gap: 1rem;
}

.highlight {
  background: var(--white);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 18px var(--shadow);
}

/* ============================================================
   SECTION: Desktop Responsiveness
   PURPOSE: Adapt mobile-first layout to larger screens
   TO EDIT: Breakpoint-based grid behavior
   ============================================================ */

/* Intermediate: 2-column layout for tablets and large phones in landscape */
@media (min-width: 540px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-self: center;
    border: 0;
    background: transparent;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scroll-row.desktop-grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

}

@media (max-width: 767px) {
  .hero {
    background-position: 64% center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .price-tag {
    font-size: 1.05rem;
  }

  .price-tag.compact {
    font-size: 0.9rem;
  }

  .discount-ribbon {
    top: 8px;
    right: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
  }
}

/* ============================================================
   SECTION: Cookie Consent Banner and Modal
   PURPOSE: EU-compliant cookie consent notification UI
   TO EDIT: Banner positioning and modal appearance
   ============================================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1rem;
  z-index: 900;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent-content {
  width: min(1100px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  margin: 0 0 0.3rem;
  color: var(--white);
  font-size: 1.1rem;
}

.cookie-consent-text p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-details-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline;
  margin: 0;
}

.cookie-details-link:hover {
  opacity: 0.85;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.cookie-consent-buttons .btn {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.cookie-sections {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cookie-section {
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  background: rgba(245, 240, 232, 0.5);
}

.cookie-section h3 {
  margin-top: 0;
}

.cookie-section ul {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
}

.cookie-section li {
  margin-bottom: 0.35rem;
}

.cookie-modal {
  display: none;
}

.cookie-modal.open {
  display: flex;
}

.cookie-modal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

@media (max-width: 767px) {
  .footer-inner > div {
    min-height: 0;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .anpc-pictograms {
    position: static;
    transform: none;
    align-self: center;
    align-items: center;
  }

  .cookie-consent-banner {
    padding: 1rem 0.75rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-buttons {
    justify-content: stretch;
  }

  .cookie-consent-buttons .btn {
    flex: 1;
  }

  .cookie-details-link {
    display: block;
    margin-top: 0.5rem;
  }
}

