/* load webfonts with font-display for better mobile behavior */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

/* Consolidated color variables */
:root {
  --eden-green: #113816;
  --eden-green-dark: #0a2a12;
  --eden-green-light: #3f8f2f;
  --eden-text-on-green: #ffffff;
}

/* === FONT STANDARDS === */
/* Headings use Playfair Display */
h1, h2, h3, h4, h5, h6, .wooden-heading, .display-4 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Body uses Lato */
body, p, li, .lead, .card-text, .form-control, .form-select, .btn, .nav-link {
  font-family: 'Lato', Arial, sans-serif !important;
  font-weight: 400;
}

/* Remove Trochut and Comic Sans from all font-family rules */
.wooden-heading,
.display-4.wooden-heading,
#highlights-section .display-4,
#about .display-4 {
  font-family: 'Playfair Display', serif !important;
}

/* Green theme for headings and buttons */
h1, h2, h3, .wooden-heading {
  color: var(--eden-green-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.wooden-heading {
  color: var(--eden-green) !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}
.btn-primary {
      background: linear-gradient(90deg, var(--eden-green-light) 0%, var(--eden-green) 100%) !important;
      color: var(--eden-text-on-green) !important;
      border: none !important;
      border-radius: 50px;
      font-weight: 700;
      box-shadow: 0 6px 20px rgba(10,40,18,0.18);
}
.btn-outline-primary {
      color: #1e5128;
      border-color: #1e5128;
      border-radius: 50px;
      font-weight: 600;
}
.btn-outline-primary:hover {
      background: linear-gradient(90deg, #4e9f3d 0%, #1e5128 100%);
      border-color: #1e5128;
}
/* Removed duplicate .custom-header and related rules; see below for the single definition */
/* Floating logo styling and animation */
#floating-logo {
      display: none !important;
}
/* Hero Section & Carousel Fixes */
.hero-section {
      position: relative;
      height: 100vh;
      overflow: hidden;
}
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
      height: 100%;
}
#heroCarousel .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
}
#heroCarousel .carousel-caption {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      text-align: center;
      width: 100%;
      color: #fff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
      max-width: 700px;
      padding: 2rem 1rem;
}
#heroCarousel .carousel-item::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      z-index: 1;
}
#heroCarousel .carousel-caption h1,
#heroCarousel .carousel-caption p,
#heroCarousel .carousel-caption a {
      position: relative;
      z-index: 2;
}
.carousel-control-prev,
.carousel-control-next {
      z-index: 20;
}
/* Loading screen styles */
.page-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
}
.loader-spinner {
      width: 50px;
      height: 50px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
}
@keyframes spin {
      0% { transform: rotate(0deg);}
      100% { transform: rotate(360deg);}
}
body.loaded .page-loader {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s, visibility 0.5s;
}
/* Removed duplicate #heroCarousel .carousel-item::after; see below for the single definition */

.card {
      border-radius: 20px;
      background: #f8f9fa;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.gallery-img {
      width: 300px;
      height: 200px;
      object-fit: cover;
      border-radius: 15px;
}
.form-control, .form-select {
      border-radius: 10px;
      padding: 12px 15px;
}
.testimonial-card {
      border-radius: 20px;
      overflow: hidden;
}
/* Carousel main heading (landing page) */
#heroCarousel .carousel-caption h1 {
      font-family: 'Playfair Display', serif !important;
}
/* Discover Eden Resort and Experience Eden Resort headings */
.wooden-heading,
.display-4.wooden-heading,
#highlights-section .display-4,
#about .display-4 {
      font-family: 'Comic Sans MS', 'Comic Sans', cursive !important;
}
/* (Removed duplicate/invalid variable declarations; all variables should be inside :root) */

/* Duplicate heading styles removed to avoid conflicts. */

/* Custom header styles to match the second design */
.custom-header {
  background: rgba(255, 255, 255, 0.85) !important; /* semi-transparent white */
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1200px; /* Prevents overflow on large screens */
  min-height: 90px;
  padding: 0 32px;
  transition: all 0.3s ease;
  width: 98vw;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  left: auto;
  right: auto;
  transform: none;
  opacity: 1;
  z-index: 1000;
}
/* If you want it to overlay the carousel: */
.custom-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: rgba(255,255,255,0.85) !important;
  z-index: 1001;
}
.custom-header .navbar-brand {
  position: relative;
  left: auto;
  transform: none;
  background: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 1;
  margin-right: auto;
  font-family: 'Playfair Display', cursive, 'Lato', serif;
}
.custom-header .navbar-brand img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}
.custom-header .nav-link {
  color: var(--eden-green-light) !important;
  font-family: 'Playfair Display', cursive, 'Lato', serif;
  font-weight: 600;
  padding: 18px 32px !important;
  border-radius: 50px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  font-size: 1.35rem; /* Larger nav link font */
  padding: 20px 36px !important;
}
.custom-header .nav-link:hover,
.custom-header .nav-link:focus,
.custom-header .nav-link.active {
  background: linear-gradient(90deg, var(--earth-brown, #92400E) 0%, var(--eden-gold, #D4AF37) 100%);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(93,39,45,0.10);
}
.custom-header .btn-primary {
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 1.15rem;
  font-weight: 600;
}
/* --- Overlay header: full width, larger font, with top padding on mobile --- */
.custom-header {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0;
  max-width: 100vw;
  min-height: 90px;
  padding: 0 48px;
  transition: all 0.3s ease;
  width: 100vw;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  opacity: 1;
  z-index: 1001;
}

/* Add top padding on mobile/narrow screens so logo/navbar aren't stuck to the top */
@media (max-width: 992px) {
  .custom-header {
    padding: 16px 10px 0 10px; /* 16px top padding, 0 bottom */
    min-height: 70px;
  }
  .custom-header .navbar-brand {
    font-size: 1.2rem;
    padding: 8px 16px;
  }
  .custom-header .nav-link {
    font-size: 1.1rem;
    padding: 12px 18px !important;
  }
}

/* Optionally, add a little top padding on all screens for a less "stuck" look */
@media (min-width: 993px) {
  .custom-header {
    padding-top: 12px;
    padding-bottom: 0;
  }
}
@media (max-width: 1200px) {
  .custom-header {
    padding: 0 10px;
    max-width: 100vw;
  }
  .custom-header .nav-link {
    padding: 12px 12px !important;
    font-size: 1.1rem;
  }
  .custom-header .btn-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 992px) {
  .custom-header {
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
    padding: 10px 10px;
    min-height: 70px;
  }
  .custom-header .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 10px;
    padding: 15px;
  }
  .custom-header .nav-link {
    padding: 12px 18px !important;
    font-size: 1rem;
  }
  .custom-header .navbar-brand {
    margin-right: 0;
    padding: 8px 16px;
  }
  .custom-header .navbar-nav {
    margin-left: 0;
  }
  .custom-header .navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 80vw;
  }
}
.hero-section .hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.7;
}
.hero-section .carousel-caption {
  position: relative;
  z-index: 2;
  min-height: 70vh;
}
.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

/* Carousel fixes */
#heroCarousel {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
  width: 100%;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-item {
  position: relative;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* Keep text shadow for readability */
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 2rem 1rem;
  text-align: center;
  /* background: rgba(0,0,0,0.15); REMOVED - this was creating the dark overlay */
}

/* Alternative: If you want even stronger text shadow for better readability */
.carousel-caption h1 {
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
}

.carousel-caption p {
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Keep the button readable */
.carousel-caption .btn {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Remove any other overlay elements that might exist */
#heroCarousel .carousel-item::after {
  display: none; /* Remove any pseudo-element overlays */
}

/* Ensure text stays visible and above images */
#heroCarousel .carousel-caption h1,
#heroCarousel .carousel-caption p,
#heroCarousel .carousel-caption a {
  position: relative;
  z-index: 2;
  color: #fff !important;
}

/* Ensure carousel controls are visible */
.carousel-control-prev,
.carousel-control-next {
  z-index: 20;
}
/* Ensure body takes full height */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Smooth in-page scroll for anchor links */
html { scroll-behavior: smooth; }

/* Loading screen styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide loading screen when page loads */
body.loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.highlight-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #f7f3e9;
  margin-bottom: 1rem;
  display: block;
}

/* Uniform gallery card and image sizing, images shrink to fit without cropping */
.gallery-card {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding-bottom: 1rem;
}
.gallery-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}
.gallery-card .mt-3 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 767.98px) {
  /* Keep the same font families as desktop and use responsive font sizing */
  h1, h2, h3, .wooden-heading, .display-4 {
    font-family: 'Playfair Display', 'Playfair Display', serif !important;
    font-size: clamp(1.6rem, 4.2vw, 2.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em;
    text-shadow: none;
    word-break: break-word;
  }

  .display-4 {
    font-size: clamp(1.8rem, 5.0vw, 2.4rem) !important;
  }

  /* keep header/logo sizing but preserve font family */
  .custom-header {
    padding: 0 10px;
    min-height: 60px;
  }
  .custom-header .navbar-brand {
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
  }
  .custom-header .navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 80vw;
  }
  .custom-header .navbar-brand {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 10px;
  }
  .custom-header .navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 80vw;
  }
  .custom-header .navbar-brand img {
    height: 50px !important;
    width: auto !important;
    max-width: 80vw;
  }
}

/* Make sure the navbar-brand and nav links adapt on mobile */
@media (max-width: 991.98px) {
  .custom-header {
    padding: 10px 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .custom-header .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* Remove circular/white background */
    box-shadow: none !important;
    border-radius: 0 !important;
    height: 60px; /* Ensure vertical centering */
  }
  .custom-header .navbar-brand img {
    height: 60px !important;   /* Make logo large as on other pages */
    width: auto !important;
    max-width: 90vw;
    margin: 0 !important;
    object-fit: contain;
    display: block;
  }
}

/* Vertically center the logo in the navbar */
.custom-header {
  display: flex;
  align-items: center;      /* Vertically center children */
  min-height: 90px;         /* Ensure enough height for vertical centering */
  padding-top: 0;
  padding-bottom: 0;
}

.custom-header .navbar-brand {
  display: flex;
  align-items: center;      /* Vertically center logo inside brand */
  height: 100%;             /* Take full navbar height */
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.custom-header .navbar-brand img {
  display: block;
  height: 60px;             /* Adjust as needed for your design */
  width: auto;
  margin-top: auto;
  margin-bottom: auto;
  object-fit: contain;
}

/* Lower the navbar from the top on all screens */
.custom-header {
  top: 32px !important; /* Adjust this value for more/less space */
}

/* If you want a different offset for mobile, add: */
@media (max-width: 992px) {
  .custom-header {
    top: 20px !important; /* Example: slightly less space on mobile */
  }
}
.gallery-img-train {
  height: 220px; /* or your preferred size */
  width: auto;
  max-width: none;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.28s, box-shadow 0.28s;
  cursor: pointer;
  margin-left: 18px;
  margin-right: 18px;
  /* Remove display: inline-block; */
}

.gallery-img-train:first-child {
  margin-left: 0;
}
.gallery-img-train:last-child {
  margin-right: 0;
}

@media (max-width: 767.98px) {
  .gallery-img-train {
    height: 120px;
    border-radius: 10px;
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* Lightbox overlay styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.95;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2;
}
.gallery-train-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}
.gallery-train {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;      /* Prevent wrapping */
  align-items: center;
}
.gallery-train-wrapper::-webkit-scrollbar {
  display: none;
}
.gallery-train-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Highlight all primary and outline buttons in red on hover */
.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #d32f2f !important;   /* Material Red 700 */
  color: #fff !important;
  border-color: #d32f2f !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Scrolling Marquee Section (reworked to prevent overlapping) */
.marquee-section {
  height: 48px;                    /* thin strip */
  padding: 0;                      /* remove vertical padding */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(12,47,29,0.95), rgba(28,121,70,0.95));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) inset;
}

.marquee-section .container-fluid {
  padding: 0 1rem;
}

/* Container that holds the repeated items — animate this */
.loop-container {
  display: flex;
  align-items: center;
  gap: 3.5rem;                 /* increase gap between repeats */
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: marquee-loop 40s linear infinite; /* slowed from 20s -> 40s */
}

/* make sure the visible wrapper hides overflow */
.marquee-section > .container-fluid > .loop-container {
  min-width: 100%;
}

/* individual items — keep them from shrinking and ensure spacing */
.marquee-section .item {
  flex: 0 0 auto;              /* prevent shrinking */
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  white-space: nowrap;
  box-sizing: border-box;
}

/* Remove per-item animation and delays (handled on container) */
.marquee-section .item:nth-child(2) {
  opacity: 0.99;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* animate the loop-container from 0 -> -50% so duplicated items flow seamlessly */
@keyframes marquee-loop {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); } /* assumes you have two identical items */
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loop-container {
    animation: none;
  }
}

/* responsive tweaks */
@media (max-width: 768px) {
  .marquee-section { height: 42px; }
  .loop-container { gap: 1.5rem; animation-duration: 28s; } /* slowed from 14s -> 28s */
  .marquee-section .item { font-size: 0.85rem; padding: 0 1rem; letter-spacing: 0.6px; }
}
