/* =======================
   Global Reset & Defaults
   ======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto; /* keep aspect ratio + avoid layout shift */
  display: block;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =======================
   HEADER
   ======================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-left img {
  height: 44px;
  width: auto;
}

.nav-left span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  border-bottom-color: #0284c7;
}

/* =======================
   FULL-WIDTH HERO (HOME)
   ======================= */
.hero-full {
  position: relative;
  min-height: clamp(400px, 70vh, 520px);
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.45)),
    url("../../images/hero_tropical_beach_boardwalk.png");
  background-size: cover;
  background-position: center;
  color: #f9fafb;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
}

.hero-inner {
  padding: 3rem 0 3rem;
}

.hero-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
  color: #a5f3fc;
}

.hero-title {
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-subtitle {
  margin-top: 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.4rem;
}

.hero-badges-center {
  justify-content: center;
}

.badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions-center {
  justify-content: center;
}

/* =======================
   BUTTONS
   ======================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #22c55e);
  color: #ffffff;
  font-weight: 600;
  border: none;
}

.btn-secondary {
  border: 1px solid #cbd5f5;
  background: #ffffff;
  color: #0f172a;
}

.hero-trust-row {
  margin-top: 1rem;
}

.hero-trust-center {
  display: flex;
  justify-content: center;
}

.hero-trust-text {
  font-size: 0.88rem;
  color: #bae6fd;
}

/* =======================
   GENERIC HERO (OTHER PAGES)
   ======================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
}

.hero img {
  border-radius: 1.5rem;
  object-fit: cover;
  height: 100%;
}

/* =======================
   PAGE-SPECIFIC HERO – TOURS
   ======================= */
.tours-hero {
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94)),
    url("../../images/tourhero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tours-hero .hero-title {
  color: #0f172a;
}

.tours-hero .hero-subtitle {
  color: #1e293b;
}

/* =======================
   SECTIONS
   ======================= */
.section {
  padding: 2.7rem 0;
}

.section-soft {
  background: #f9fafb;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 1.6rem;
}

/* =======================
   CARDS & GRIDS
   ======================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-soft .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.section-soft .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.card img {
  border-radius: 1rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.card-link {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
}

/* =======================
   HOME – BLOG STRIP
   ======================= */
.home-blog {
  background: #f9fafb;
}

.home-blog .blog-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* image wrapper */
.blog-thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* square image with fade in/out */
.blog-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: blogFade 6s ease-in-out infinite alternate;
}

/* stagger animation for each card */
.blog-card:nth-child(2) .blog-thumb {
  animation-delay: 0.6s;
}
.blog-card:nth-child(3) .blog-thumb {
  animation-delay: 1.1s;
}
.blog-card:nth-child(4) .blog-thumb {
  animation-delay: 1.7s;
}

/* overlay text on bottom */
.blog-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0));
  color: #e5e7eb;
}

.blog-meta-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.blog-read {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5f3fc;
  text-decoration: none;
}

.blog-read:hover {
  text-decoration: underline;
}

/* "View all" button centered and small */
.blog-view-all {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.btn-blog-all {
  width: auto !important;
  padding: 0.55rem 1.3rem !important;
  font-size: 0.88rem !important;
  border-radius: 999px;
}

/* fade in/out + subtle zoom */
@keyframes blogFade {
  0% {
    opacity: 0.8;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1.07);
  }
}

/* mobile tweaks */
@media (max-width: 640px) {
  .blog-meta-title {
    font-size: 0.9rem;
  }
}

/* =======================
   VEHICLE LAYOUT
   ======================= */
.vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.2rem;
}

.vehicle-photo img {
  border-radius: 1.25rem;
  object-fit: cover;
}

.vehicle-text-card {
  position: relative;
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 1.5rem;
  background: #ecfdf5;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.vehicle-text-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.28), transparent 60%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.25), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.vehicle-text-inner {
  position: relative;
}

.vehicle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vehicle-list {
  margin: 0.5rem 0 0.7rem;
  padding-left: 1.1rem;
  color: #374151;
  font-size: 0.95rem;
}

/* =======================
   MAURITIUS COLLAGE
   ======================= */
.mauritius-collage {
  max-width: 1000px;
  width: 100%;
  margin: 0.8rem auto 1.8rem;
}

.mauritius-collage img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* Mobile: full-width inside container */
@media (max-width: 768px) {
  .mauritius-collage {
    max-width: 100%;
    margin: 0.8rem 0 1.5rem;
  }

  .mauritius-collage img {
    border-radius: 1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
  }
}

/* =======================
   GALLERY – 3 ROWS CONTINUOUS
   ======================= */
.gallery-section {
  background: #ffffff;
}

.gallery-section .gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gallery-link {
  font-size: 0.88rem;
}

.gallery-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.gallery-row {
  overflow: hidden;
}

.gallery-strip {
  display: flex;
  animation: galleryScroll 45s linear infinite;
}

.gallery-row:nth-child(2) .gallery-strip {
  animation-duration: 55s;
}

.gallery-row:nth-child(3) .gallery-strip {
  animation-duration: 65s;
}

.gallery-item {
  flex: 0 0 20%;
  min-width: 160px;
  padding: 0.25rem;
}

.gallery-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  animation: galleryFade 3.5s ease-in-out infinite alternate;
}

.gallery-row:nth-child(2) .gallery-img {
  height: 130px;
}

.gallery-row:nth-child(3) .gallery-img {
  height: 120px;
}

/* Scroll and fade keyframes */
@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes galleryFade {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}

/* =======================
   TESTIMONIALS – CONTINUOUS STRIP
   ======================= */
.testimonials {
  background: #f8fafc;
}

.testi-marquee {
  overflow: hidden;
  margin-top: 1.2rem;
}

.testi-strip {
  display: flex;
  animation: testiScroll 55s linear infinite;
}

@keyframes testiScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testi-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 25%;
  min-width: 220px;
  margin: 0 0.45rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  animation: testiFade 4s ease-in-out infinite alternate;
}

.testi-card:nth-child(2n) {
  animation-delay: 0.7s;
}

.testi-card:nth-child(3n) {
  animation-delay: 1.1s;
}

@keyframes testiFade {
  0%   { opacity: 0.9; transform: translateY(0); }
  100% { opacity: 1;   transform: translateY(-3px); }
}

.testi-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.testi-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.flag-chip {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.testi-rating {
  color: #fbbf24;
  font-size: 0.85rem;
  margin: 0.1rem 0 0.25rem;
}

.testi-text {
  font-size: 0.86rem;
  color: #475569;
  text-align: center;
}

/* ==========================
   FINAL CTA SECTION (HOME)
   ========================== */
.final-cta {
  padding: 3rem 0;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  align-items: stretch;
}

/* LEFT IMAGE BLOCK */
.final-cta-image {
  position: relative;
}

.final-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT TEXT BLOCK */
.final-cta-box {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  text-align: center;
}

.final-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.final-cta-text {
  color: #475569;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  line-height: 1.55rem;
}

/* SMALL BUTTON – home CTA */
.small-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.88rem !important;
  border-radius: 999px;
  width: auto !important;
  margin-top: 0.4rem;
}

/* Mobile – Final CTA */
@media (max-width: 850px) {
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-image img {
    max-height: 240px;
  }

  .final-cta-box {
    padding: 1.6rem 1.5rem;
    text-align: center;
  }

  .final-cta-title {
    font-size: 1.4rem;
  }
}

/* Small CTA Button (Tours Page Final Section) */
.btn-cta-small {
  width: auto !important;
  display: inline-flex !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.9rem !important;
  border-radius: 999px;
  margin-top: 0.4rem;
}

/* **Key override for the Tours final card button** */
.final-itinerary-cta .btn-primary {
  width: auto !important;
  display: inline-flex !important;
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* =======================
   FOOTER
   ======================= */
footer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.footer-top {
  background: #0f172a;
  padding: 2.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.footer-text {
  color: #9ca3af;
  line-height: 1.45;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #e2e8f0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: #020617;
  border-top: 1px solid #111827;
  padding: 0.65rem 0;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .footer-bottom-row {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* =======================
   FLOATING WHATSAPP
   ======================= */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  z-index: 60;
}

/* =======================
   RESPONSIVE (GLOBAL)
   ======================= */
@media (max-width: 900px) {
  .vehicle-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  /* NOTE: nav-links are no longer hidden here to keep the menu visible */

  .hero-full {
    padding: 3rem 0;
  }

  .hero-centered {
    padding: 0 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    height: 110px;
  }

  .testi-card {
    flex: 0 0 70%;
    min-width: 230px;
  }
}

/* Global mobile spacing + hero tweaks */
@media (max-width: 768px) {
  .section {
    padding: 2.1rem 0;
  }

  .hero-full {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero-inner {
    padding: 2.3rem 0 2.3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .card {
    padding: 0.9rem;
  }

  /* force 1-column on mobile for two-column blocks */
  .vehicle-layout,
  .hero,
  .final-cta-grid {
    grid-template-columns: 1fr !important;
  }

  .final-cta-image img {
    max-height: 240px;
  }
}

/* Slow down strips or disable if needed on very small screens */
@media (max-width: 640px) {
  .gallery-strip,
  .testi-strip {
    animation-duration: 80s;
  }

  /* If you ever want to completely stop animations:
  .gallery-strip,
  .testi-strip {
    animation: none;
  }
  */
}

/* ============================================================
   PERFORMANCE HELPERS – LAZY IMAGES
   ============================================================ */

/* Use class="lazy-img" in HTML for images that are lazy-loaded via JS */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-img.is-loaded {
  opacity: 1;
}

/* ============================================================
   WHATSAPP CHAT POP-UP (AUTO POPUP)
   ============================================================ */

.whatsapp-popup {
  position: fixed;
  bottom: 86px; /* just above the main WhatsApp float button */
  right: 18px;
  width: 280px;
  max-width: calc(100% - 40px);
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  padding: 0.85rem 0.9rem 0.9rem;
  z-index: 59;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.whatsapp-popup-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.whatsapp-popup-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}

.whatsapp-popup-text {
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.45;
}

.whatsapp-popup-cta {
  margin-top: 0.15rem;
}

.whatsapp-popup-cta .btn-primary {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
}

/* Smaller on mobiles */
@media (max-width: 480px) {
  .whatsapp-popup {
    width: 260px;
    bottom: 80px;
    right: 12px;
  }
}

/* ============================================================
   COOKIE / PRIVACY BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #020617;
  color: #e5e7eb;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 70;
  font-size: 0.8rem;
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.45);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1120px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}

.cookie-banner-text {
  color: #cbd5f5;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #a5f3fc;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.cookie-btn-primary {
  background: #22c55e;
  color: #022c22;
}

.cookie-btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

/* Mobile layout for cookie banner */
@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- Mobile menu: keep links visible --- */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-left {
    margin-bottom: 0.25rem;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    row-gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.35rem 0.5rem;
  }
}
