/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --font-primary: "Urbanist", sans-serif;

  /* Premium Color Palette (Warm Pyrenees Lodge) */
  --color-primary: #b4905a;
  --color-primary-light: #cfa86e;
  --color-primary-dark: #917142;
  --color-accent-sand: #f7e5c9;
  --color-accent-sand-light: #fdf5e8;
  --color-bg-cream: #fbf7ef;
  --color-text-dark: #2c2216;
  --color-text-muted: #6b5a45;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Semantic Colors */

  /* Layout & Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 34, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 34, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 34, 22, 0.12);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-optical-sizing: auto;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-cream);
  letter-spacing: 0.5px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 1px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--color-white);
}

h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Center h2 line in centered text containers */
.section-break-text-container h2 {
  text-align: left;
}

p {
  margin: 0;
  font-weight: 400;
  color: var(--color-text-dark);
}

ul {
  list-style-type: none;
  padding-inline-start: 0;
  margin: 0;
}

/* Helper Utilities */
.beige-bg {
  background-color: var(--color-accent-sand-light);
}

.brown-bg {
  background-color: var(--color-primary);
}

/* ==========================================
   NAVIGATION & HEADER
   ========================================== */
.header-class {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem 0.5rem 1rem;
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-class img {
  transition: var(--transition-smooth);
  object-fit: contain;
  max-width: 100%;
}

.header-class div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.contact-icons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
}

.contact-icons li {
  transition: var(--transition-smooth);
}

.contact-icons li a:hover i {
  transform: scale(1.15);
  color: var(--color-accent-sand) !important;
}

/* Navbar container */
.navbar {
  display: none;
}

@media (min-width: 850px) {
  .header-class div {
    flex-direction: row;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
  }

  .header-class {
    padding: 1.5rem 2rem 0 2rem;
  }

  .contact-icons {
    flex: 0 0 auto;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    flex: 1;
    justify-content: center;
  }

  .language-switcher {
    margin-left: 0;
    flex: 0 0 auto;
  }
}

.navbar a button {
  color: var(--color-accent-sand);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  background: transparent;
  border: 0;
  padding: 0.75rem 1.25rem;
  border-top: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.navbar a button:hover,
.navbar a button.active {
  border-top: 3px solid var(--color-white);
  color: var(--color-white);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.language-switcher a {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.45rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.language-switcher a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.language-switcher a.active-lang {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-lang-switcher {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(247, 229, 201, 0.2);
}

.sidebar-lang-switcher a {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.3rem 0.5rem;
  min-width: 2rem;
  text-align: center;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.sidebar-lang-switcher a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-lang-switcher a.active-lang {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 849px) {
  .header-class {
    padding: 3.5rem 1rem 0.5rem 1rem;
    gap: 0;
  }

  .header-class div {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  /* Hide logo image on mobile — takes too much space */
  .header-class > img {
    display: none;
  }

  /* Hide contact icons on mobile */
  .header-class .contact-icons {
    display: none;
  }

  /* Hide main header language switcher on mobile — sticky nav handles it */
  .header-class .language-switcher {
    display: none !important;
  }

  /* Hide hamburger in main header on mobile — sticky nav handles it */
  .header-class #phone-navigation {
    display: none !important;
  }
}

/* Mobile Hamburger Menu */
#phone-navigation {
  display: block;
}

@media (min-width: 850px) {
  #phone-navigation {
    display: none;
  }
}

.menu-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.menu-button:hover {
  transform: scale(1.1);
}

/* Mobile Sidebar Drawer (slides from left to match hamburger position) */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px; /* Hidden offscreen by default */
  background: var(--color-primary);
  color: var(--color-white);
  width: 300px;
  height: 100vh;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar.open {
  left: 0;
}

/* Backdrop overlay for sidebar opening */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 34, 22, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar a {
  width: 100%;
}

.sidebar a button {
  width: 100%;
  color: var(--color-accent-sand);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 2px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(247, 229, 201, 0.2);
  padding: 1rem 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sidebar a button:hover,
.sidebar a button.active {
  color: var(--color-white);
  border-bottom: 2px solid var(--color-white);
  padding-left: 0.5rem;
}

/* ==========================================
   STICKY NAV BAR (appears on scroll)
   ========================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: rgba(180, 144, 90, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Hidden by default, flex on desktop */
}

.sticky-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  min-height: 50px;
}

.sticky-nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.sticky-nav-logo img {
  object-fit: contain;
}

.sticky-nav-menu {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}

.sticky-nav-menu a button {
  color: var(--color-accent-sand);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  background: transparent;
  border: 0;
  padding: 0.5rem 1rem;
  border-top: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.sticky-nav-menu a button:hover,
.sticky-nav-menu a button.active {
  border-top: 3px solid var(--color-white);
  color: var(--color-white);
}

.sticky-nav-lang {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.sticky-nav-lang a {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.sticky-nav-lang a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.sticky-nav-lang a.active-lang {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile sticky nav — always visible on mobile so language buttons are accessible */
.sticky-nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: rgba(180, 144, 90, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 50px;
}

.sticky-nav-mobile-lang {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
}

.sticky-nav-mobile-lang a {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.sticky-nav-mobile-lang a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.sticky-nav-mobile-lang a.active-lang {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Show/hide sticky navs based on screen width */
@media (min-width: 850px) {
  .sticky-nav {
    display: block;
  }
  .sticky-nav-mobile {
    display: none;
  }
}

@media (max-width: 849px) {
  .sticky-nav {
    display: none;
  }
  .sticky-nav-mobile {
    display: flex;
  }
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero-banner {
  margin: 0;
  width: 100%;
  min-height: 60vh;
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
}

/* Parallax effect for desktop */
@media (min-width: 1024px) {
  .hero-banner {
    background-attachment: fixed;
  }
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(44, 34, 22, 0.6),
    rgba(44, 34, 22, 0.2)
  );
}

.hero-banner div {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem 1.5rem;
  width: 100%;
  max-width: 600px;
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
}

@media (min-width: 768px) {
  .hero-banner div {
    padding: 6rem 3rem;
    margin-left: 5%;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  .hero-banner div {
    margin-left: 10%;
  }
}

.navigation-buttons {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.navigation-buttons:hover {
  background-color: transparent;
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navigation-buttons:active {
  transform: translateY(0);
}

/* ==========================================
   LAYOUT SECTIONS (SECTION BREAK)
   ========================================== */
.section-break {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 768px) {
  .section-break {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-break {
    flex-direction: row;
    gap: 4rem;
    padding: 5rem 2rem;
  }

  .section-break > * {
    flex: 1;
    width: 50%;
  }
}

.image-container {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.image-container:hover {
  box-shadow: var(--shadow-lg);
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.image-container:hover img {
  transform: scale(1.03);
}

.section-break-text-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.section-break-text-container p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.section-break-text-container span {
  font-weight: 600;
  color: var(--color-text-dark);
}

.section-break-text-container h3 {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-top: 0.5rem;
}

/* Dotted list details or checklist rows */
.section-break-text-container div {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  background: var(--color-white);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.section-break-text-container div p {
  font-weight: 500;
  color: var(--color-text-dark);
}

/* Optional image rule */
.optional-image {
  display: block; /* Show always, but control width cleanly */
}

/* ==========================================
   IMAGE GRIDS & COLLAGES
   ========================================== */
.image-panel-grid {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, 1fr);
}

.garden-images {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.garden-images:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .garden-images {
    height: 100px;
  }
}

/* Room section */
.rooms-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .rooms-section {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 3rem;
  }

  .rooms-section > .pricing-section-container {
    flex: 1.5;
    width: 62%;
    min-width: 0;
  }

  .rooms-section > .image-collection {
    flex: 1;
    width: 38%;
    min-width: 0;
  }
}

.image-collection {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
}

@media (min-width: 600px) {
  .image-collection {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

.rooms-images {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.rooms-images:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ==========================================
   INTERACTIVE ROOM PRICES HTML COMPONENT
   ========================================== */
.pricing-section-container {
  width: 100%;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.pricing-table-title {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-accent-sand);
  padding-bottom: 0.5rem;
}

.pricing-promo-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-sand-light) 0%,
    var(--color-accent-sand) 100%
  );
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.pricing-promo-banner i {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.pricing-promo-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-dark);
}

.pricing-promo-banner strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.pricing-promo-banner a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-promo-banner a:hover {
  color: var(--color-primary);
}

.room-price-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.room-card {
  border: 1px solid rgba(180, 144, 90, 0.15);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  background: var(--color-bg-cream);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  transition: var(--transition-smooth);
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(180, 144, 90, 0.1);
  padding-bottom: 0.75rem;
}

.room-card-title h3 {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.room-capacity {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
}

.room-price-box {
  text-align: right;
}

.room-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.room-price-period {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.room-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.room-feature-item {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.room-feature-item i {
  color: var(--color-primary);
  font-size: 0.85rem;
}

.room-amenities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.amenity-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(180, 144, 90, 0.1);
  color: var(--color-primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.pricing-footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Desktop layout for pricing: Table view */
@media (min-width: 768px) {
  .pricing-section-container {
    padding: 2.5rem;
  }

  .room-card {
    grid-template-columns: 2fr 0.85fr 1.4fr;
    align-items: center;
    gap: 1.25rem;
  }

  .room-card-header {
    border-bottom: none;
    padding-bottom: 0;
    flex-direction: column;
  }

  .room-price-box {
    text-align: center;
    border-left: 1px solid rgba(180, 144, 90, 0.1);
    border-right: 1px solid rgba(180, 144, 90, 0.1);
    padding: 0 1rem;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .room-price {
    font-size: 1.6rem;
  }
}

/* ==========================================
   IMAGE LIGHTBOX / CAROUSEL
   ========================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(44, 34, 22, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--color-accent-sand);
  font-size: 0.9rem;
  text-align: center;
  max-width: 640px;
  line-height: 1.4;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* ==========================================
   HIKING ROUTES SECTION
   ========================================== */
.rutas-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rutas-section h2 {
  text-align: center;
}

.rutas-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.card-info-main {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .card-info-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-info-side {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  border-bottom: 4px solid transparent;
}

.card-info-side:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--color-primary);
}

.card-info-side h4 {
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(180, 144, 90, 0.15);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-info-side p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.rutas-images {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-top: auto; /* Push images to the bottom of cards to keep them aligned */
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   FINAL HERO BOOKING BANNER
   ========================================== */
.final-banner {
  margin: 0;
  width: 100%;
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .final-banner {
    background-attachment: fixed;
    flex-direction: row;
    justify-content: center;
  }
}

.final-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 34, 22, 0.6);
}

.final-banner div {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 5rem 1.5rem;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  width: 100%;
}

.final-banner div h2 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 300;
}

.final-banner div h2::after {
  display: none;
}

.final-banner div span {
  font-weight: 700;
  color: var(--color-accent-sand);
}

.final-banner aside {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 400px;
  margin: 0 0 3rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .final-banner div {
    width: 50%;
    padding: 8rem 4rem;
    align-items: flex-start;
    text-align: left;
  }

  .final-banner aside {
    width: 35%;
    margin: 4rem 4rem 4rem 0;
  }
}

.booking-button {
  padding: 1rem 2.5rem;
  background-color: var(--color-accent-sand);
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.booking-button a {
  color: var(--color-primary-dark);
}

.booking-button:hover {
  background-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.booking-button:hover a {
  color: var(--color-primary);
}

/* ==========================================
   FOOTER SECTION & SUBFOOTER
   ========================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.05);
}

footer .image-container {
  max-width: 250px;
  box-shadow: none;
  background: transparent;
}

footer .image-container:hover {
  box-shadow: none;
}

footer .image-container img {
  filter: brightness(0.95);
  background: transparent;
}

/* Footer layout inside section-break class styling */
footer.section-break {
  align-items: center;
  text-align: center;
}

footer div ul.contact-icons li i {
  color: var(--color-accent-sand) !important;
}

footer div ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

footer div ul li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

footer div ul li a:hover {
  color: var(--color-accent-sand);
  text-decoration: underline;
}

.sub-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .sub-footer {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* ==========================================
   FLOATING BUTTONS (SCROLL)
   ========================================== */
#scrollButton {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollButton i {
  color: var(--color-primary) !important;
}

#scrollButton:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#scrollButton:hover i {
  color: var(--color-white) !important;
}

/* ==========================================
   PRIVACY & TERMS PAGES (LEGAL COPY)
   ========================================== */
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.privacy-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.privacy-list li span {
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Cookie Policy tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

th,
td {
  padding: 1rem;
  text-align: left;
}

th {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--color-white);
}

tr:nth-child(odd) {
  background-color: rgba(180, 144, 90, 0.05);
}
