.hero-nowrap {
  white-space: nowrap;
  display: inline-block;
}
@media (max-width: 768px) {
  .hero-nowrap {
    white-space: normal;
    display: block;
  }
}
/* --- La Tortue Diving - New Design System (Corrected) --- */

/* 1. Fonts loaded via head links */

/* 2. CSS Variables (Color Palette) */
:root {
  --color-primary: #152040; /* Dark Blue */
  --color-secondary: #C6A87D; /* Beige/Gold */
  --color-accent: #A6C2EE; /* Light Blue */
  --color-dark-accent: #8B4513; /* Brown */
  --color-bg: #FFFFFF; /* Page/section background (white) */
  --color-surface: #FFFFFF; /* Section surface (white) */
  --color-block: #F7F3ED; /* Card/block background */
  --color-border-soft: #e0d6c9;
  --card-radius: 0px;
  --color-text-main: #152040; /* Dark Blue */
  --color-text-light: #FFFFFF;
  --color-text-muted: #6E748A; /* Muted Blue/Grey */

  --font-family-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --border-radius: 0px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.07);
  --transition-speed: 0.3s ease;
}

/* 3. Global Resets & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--cookie-banner-space, 0px);
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}

/* Subtle scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  animation: reveal-in 0.8s cubic-bezier(0.21, 0.61, 0.35, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* 4. Typography */
h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-accent);
}
/* If a section header is centered, center the underline */
section[style*="text-align:center"] h2::after,
.section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}
section h2 {
  text-align: center;
}
section h2::after {
  left: 50%;
  transform: translateX(-50%);
}
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }
strong { font-weight: 700; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}
p.muted {
  color: var(--color-text-muted) !important;
}
section .container > p:first-of-type,
section > p:first-of-type {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.section-left h2 {
  text-align: left;
}
.section-left h2::after {
  left: 0;
  transform: none;
}
.section-left .container > p:first-of-type,
.section-left > p:first-of-type {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: 780px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-primary);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img, .ph {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  min-height: 150px;
  transition: transform 0.75s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
  background: linear-gradient(135deg, rgba(21,32,64,0.12), rgba(198,168,125,0.12));
}
img:hover,
.ph:hover {
  transform: scale(1.02);
}
.slider img:hover,
.slider .ph:hover {
  transform: none;
}
.hero .ph:hover,
.slide .hero.ph:hover {
  transform: none;
}
.section-banner img:hover {
  transform: none;
}
.gallery-modal img:hover {
  transform: none;
}
/* Hide placeholder text */
.ph label {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  img, .ph {
    transition: none;
  }
  img:hover,
  .ph:hover {
    transform: none;
  }
}
.slide .hero.ph {
  background-image: url('assets/Pictures/Backgrounds/diving-bg.webp');
  background-size: cover;
  background-position: center;
}

section {
  padding: 4rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}
section.ocean, section.sand {
  padding: 4rem 1rem !important;
}
.section-banner {
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.section-banner img {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
}
.section-banner img:hover { transform: none !important; }
section.has-banner {
  padding-top: 0 !important;
}
section.has-banner .container {
  margin-top: 2.5rem;
}
section.ocean.has-banner {
  padding-top: 0 !important;
}
@media (max-width: 640px) {
  .section-banner {
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    height: 200px;
    overflow: hidden;
  }
  .section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

.map-figure {
  margin: 1.5rem auto;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  background: #000;
}
.map-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

section.ocean { background-color: var(--color-surface); }
section.sand { background-color: var(--color-bg); }


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 5. Header & Navigation */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(21, 32, 64, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
header.nav.nav-transparent {
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.55) 0%, rgba(5, 8, 20, 0.15) 80%, rgba(5, 8, 20, 0) 100%);
  box-shadow: none;
  border-bottom-color: transparent;
}
body.has-fixed-nav {
  padding-top: 76px;
}
body.has-fixed-nav .slider,
body.has-fixed-nav section.hero:first-of-type {
  margin-top: -76px;
}

.nav-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px; /* Balanced height for logo */
}

#menu-placeholder .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  max-height: 60px;
  width: auto;
  display: none;
  object-fit: contain;
  background: none !important;
  background-image: none !important;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}
.brand-logo:hover {
  transform: none !important;
}
.brand-logo-colored {
  display: block;
}
.brand-logo-white {
  display: none;
}
@media (max-width: 640px) {
  .brand-logo {
    height: 52px;
    max-height: 56px;
  }
}
header.nav.nav-transparent .brand-logo-colored {
  display: none;
}
header.nav.nav-transparent .brand-logo-white {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-title {
  font-size: 1rem; /* Smaller font size */
  font-weight: 800; /* Match original */
  margin-bottom: 0;
  line-height: 1.2; /* Adjust line height */
}
.nav-subtitle {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: -2px;
}
.nav-partner {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-soft);
  background: rgba(21, 32, 64, 0.04);
  white-space: nowrap;
}
.nav-partner-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-partner-logo {
  max-height: 18px;
  width: auto;
  min-height: 0;
  background: none !important;
  background-image: none !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  object-fit: contain;
  transform: none !important;
}
.nav-partner-logo.ffessm-logo {
  max-height: 16px;
}
.nav-partner-note {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
@media (min-width: 1024px) {
  .nav-partner {
    display: inline-flex;
  }
}
header.nav.nav-transparent .nav-partner {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
header.nav.nav-transparent .nav-partner-note {
  color: rgba(255,255,255,0.92);
}
header.nav.nav-transparent .nav-partner .nav-partner-logo {
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.28));
}

.nav-links {
  display: none; /* Hidden on mobile */
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
    gap: 10px; /* Smaller gap */
  }
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 15px; /* Match original */
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0 5px 4px; /* Add some padding and space for underline */
  border-bottom: none;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Dropdown menu */
.nav-dropdown {
  position: static;
}
.nav-dropdown > a {
  position: relative;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
header.nav.nav-transparent .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}
header.nav.nav-transparent .dropdown-menu::before {
  border-bottom-color: rgba(255, 255, 255, 0.98);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #ffffff;
  box-shadow: 0 22px 60px rgba(0,0,0,0.16), 0 0 0 1px rgba(21,32,64,0.06);
  border: 1px solid rgba(21,32,64,0.08);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  width: min(1100px, calc(100vw - 2rem));
  max-width: 1100px;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  z-index: 1000;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--color-bg);
  filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.05));
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  padding: 0.6rem 0.35rem;
  border-radius: 6px;
  background: #f8f8f5;
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
}
.dropdown-item:hover {
  transform: translateY(-6px);
  color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  background: #ffffff;
}
.dropdown-image {
  width: 100%;
  aspect-ratio: 1.15;
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 6px;
}
.dropdown-item:hover .dropdown-image {
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  transform: translateY(-4px);
}
.dropdown-image .ph.tile {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-item:hover .dropdown-image .ph.tile {
  transform: scale(1.08);
}
.dropdown-item:hover .dropdown-image img {
  transform: scale(1.08);
}
.dropdown-item span {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
  display: block;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}
.dropdown-item:hover span {
  color: var(--color-primary);
}
.dropdown-locale-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.05rem 0 0.1rem;
  font-size: 1.55rem;
  font-weight: 1000;
  letter-spacing: 0.12rem;
  color: var(--color-text-muted);
  line-height: 1.2;
  gap: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(21, 32, 64, 0.06);
  border: 1px solid rgba(21, 32, 64, 0.08);
  border-radius: 10px;
}
.dropdown-locale-row .flag-icon {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(21,32,64,0.12);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.dropdown-locale-row .flag-icon + .flag-icon {
  margin-left: 0.9rem;
}
.flag-gb { background-image: url('assets/Pictures/Icons/Optimized/GB.webp'); }
.flag-fr { background-image: url('assets/Pictures/Icons/Optimized/FR.webp'); }
.flag-ph { background-image: url('assets/Pictures/Icons/Optimized/PH.webp'); }
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 1200px) {
  .dropdown-menu {
    width: min(1000px, calc(100vw - 1.5rem));
    padding: 1.6rem 1.1rem;
    gap: 0.7rem;
  }
  .dropdown-grid {
    gap: 1.25rem;
  }
}
@media (max-width: 1024px) {
  .dropdown-menu {
    width: calc(100vw - 1.25rem);
    padding: 1.45rem 1rem;
    gap: 0.65rem;
  }
  .dropdown-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.1rem;
  }
}
@media (max-width: 860px) {
  .dropdown-menu {
    display: none;
  }
}

.nav-cta {
  display: none; /* Hidden on mobile */
}
@media (min-width: 860px) {
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Make CTA buttons smaller in the nav */
.nav-cta .btn {
    padding: 0.4rem 0.8rem;
    font-size: 14px;
    border-radius: 0;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
header.nav.nav-transparent .nav-links a,
header.nav.nav-transparent .nav-cta .btn,
header.nav.nav-transparent .burger i,
header.nav.nav-transparent .burger i::before,
header.nav.nav-transparent .burger i::after {
  color: var(--color-text-light);
  border-color: rgba(255,255,255,0.4);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
header.nav.nav-transparent .nav-links a {
  color: rgba(255,255,255,0.85);
}
header.nav.nav-transparent .nav-links a::after {
  background: rgba(255,255,255,0.9);
}
header.nav.nav-transparent .nav-links a:hover,
header.nav.nav-transparent .nav-links a.active {
  color: #fff;
}
header.nav.nav-transparent .nav-cta .btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
}
header.nav.nav-transparent .nav-cta .btn.btn-primary {
  background: rgba(255,255,255,0.14);
  border-color: transparent;
  color: #fff;
}
header.nav.nav-transparent .burger i,
header.nav.nav-transparent .burger i::before,
header.nav.nav-transparent .burger i::after {
  background: rgba(255,255,255,0.85);
}

/* Language switch */
.nav-locale {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding-bottom: 4px; /* space for the dropdown so hover stays active */
}
.lang-current,
.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.lang-current {
  pointer-events: none;
}
.lang-option {
  display: none;
  position: absolute;
  top: 18px;
  left: 0;
  padding-top: 6px;
  z-index: 5;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  box-shadow: none;
}
.nav-locale:hover .lang-option,
.nav-locale:focus-within .lang-option {
  display: inline-flex;
}
header.nav.nav-transparent .nav-locale .lang-current,
header.nav.nav-transparent .nav-locale .lang-option {
  color: #fff;
}
.lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: transparent !important;
  min-height: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
@media (min-width: 860px) {
  .nav-locale {
    display: inline-flex;
  }
}
.mpanel .nav-locale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 4px 0;
  width: auto;
  margin: 4px auto 2px;
  border: none;
  background: transparent;
}
.mpanel .lang-option {
  display: inline-flex;
  position: static;
  padding-top: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.mpanel .lang-current {
  font-weight: 800;
  border-bottom: none;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(21, 32, 64, 0.08);
}
.mpanel .lang-option {
  font-weight: 700;
  opacity: 0.9;
}
.mpanel .lang-current,
.mpanel .lang-option {
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

/* Tighten spacing in mobile menu actions and partner logos */
.mpanel .actions.container {
  gap: 8px;
  margin: 4px 0 4px;
  padding: 0 12px;
}
.menu-partner.container {
  margin: 6px auto 4px;
  padding: 0;
  text-align: center;
}
.menu-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}
.menu-partner .nav-partner-logo {
  max-height: 20px;
  width: auto;
}
.menu-partner .nav-partner-logo.ffessm-logo {
  max-height: 18px;
}

/* Mobile menu partner logos side-by-side and smaller */
.mpanel .menu-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 0 0;
}
.mpanel .menu-partner .nav-partner-logo {
  max-height: 18px;
}
.mpanel .menu-partner .nav-partner-logo.ffessm-logo {
  max-height: 16px;
}

/* 6. Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: var(--card-radius);
  font-weight: 700;
  font-family: var(--font-family-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: 2px solid transparent;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.btn.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.btn.btn-primary:hover {
  background-color: #0f1a36;
  color: var(--color-text-light);
}

.btn.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: #d7c4a4;
}
.btn.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

/* Mobile dive CTA bar */
.mobile-dive-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1400;
  background: #0f1a33;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
.mobile-dive-bar .btn {
  flex: 1;
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.mobile-dive-bar .btn.btn-primary {
  background: #0a1329;
  color: #fff;
}
.mobile-dive-bar .btn.btn-primary:hover {
  background: #070f22;
}
.btn.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.btn.btn-whatsapp:hover {
  background: #1eae52;
  border-color: #1eae52;
  color: #fff;
}
@media (max-width: 768px) {
  body.has-mobile-dive-bar {
    padding-bottom: var(--cookie-banner-combined-space, 96px);
  }
}
@media (min-width: 769px) {
  .mobile-dive-bar {
    display: none;
  }
}

html.cookie-pending {
  --cookie-banner-space: 120px;
}
@media (max-width: 768px) {
  html.cookie-pending {
    --cookie-banner-space-mobile: 180px;
    --cookie-banner-combined-space: 260px;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1500;
  background: rgba(21,32,64,0.97);
  border-top: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.2);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cookie-banner__text {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  flex: 1 1 auto;
  min-width: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner__btn {
  text-transform: none;
  letter-spacing: 0.02em;
}
.cookie-banner__btn--accept {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}
.cookie-banner__btn--params {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}
body.has-mobile-dive-bar.has-cookie-banner .cookie-banner {
  bottom: 96px;
}
@media (max-width: 768px) {
  body {
    padding-bottom: var(--cookie-banner-space-mobile, var(--cookie-banner-space, 0px));
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-wrap: nowrap;
  }
  .cookie-banner__btn--accept {
    flex: 0 0 auto;
  }
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.7);
}
.cookie-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 3rem);
  background: var(--color-bg);
  border: 1px solid rgba(21,32,64,0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
.cookie-modal__header {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-modal__title {
  margin: 0;
  color: var(--color-text-light);
  font-size: 1.35rem;
}
.cookie-modal__close {
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cookie-modal__intro {
  margin: 0;
  color: var(--color-text-muted);
}
.cookie-modal__section {
  background: #fff;
  border: 1px solid rgba(21,32,64,0.12);
  padding: 1rem 1.25rem;
}
.cookie-modal__section--essential {
  background: var(--color-block);
}
.cookie-modal__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.cookie-modal__section-title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal__section-text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}
.cookie-modal__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  border: 1px solid rgba(21,32,64,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(21,32,64,0.08);
}
.cookie-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px dashed rgba(21,32,64,0.18);
}
.cookie-modal__row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.cookie-modal__row-info strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.cookie-modal__row-info span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.cookie-modal__status {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  white-space: nowrap;
}
.cookie-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(21,32,64,0.1);
}
.cookie-toggle {
  border: 1px solid rgba(21,32,64,0.2);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cookie-toggle__track {
  width: 34px;
  height: 18px;
  background: #c5ceda;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.cookie-toggle__thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.cookie-toggle__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.cookie-toggle.is-on {
  border-color: var(--color-secondary);
  background: rgba(198,168,125,0.12);
}
.cookie-toggle.is-on .cookie-toggle__track {
  background: var(--color-secondary);
}
.cookie-toggle.is-on .cookie-toggle__thumb {
  transform: translateX(16px);
}
@media (max-width: 768px) {
  .cookie-modal {
    padding: 1rem;
  }
  .cookie-modal__header {
    padding: 0.85rem 1rem;
  }
  .cookie-modal__body {
    padding: 1rem;
  }
  .cookie-modal__section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-modal__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cookie-modal__actions .btn {
    width: 100%;
  }
}

/* Special button overrides */
a.btn[style*="background:#25D366"] {
  background-color: var(--color-secondary) !important;
  color: var(--color-text-light) !important;
  border-color: transparent !important; /* Ensure no border is applied */
}
a.btn[style*="background:#25D366"]:hover {
  background-color: #b3956a !important; /* A slightly darker beige */
  color: var(--color-text-light) !important;
}


/* 7. Hero / Slider */
.slider {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide .hero.ph {
  min-height: 70vh;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}
/* All slider hero sections will now use diving-bg.webp */
.slide .hero.ph {
  background-image: url('assets/Pictures/Backgrounds/diving-bg.webp');
  background-size: cover;
  background-position: center;
}


.slide .caption {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
  color: var(--color-text-light);
}
.slide .caption .box {
  padding: 2rem;
  max-width: 650px;
  color: var(--color-text-light);
  backdrop-filter: blur(2px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.slide .caption .box * {
  color: var(--color-text-light);
  text-shadow: 0 6px 15px rgba(0,0,0,0.5);
  margin: 0;
}
.hero-badge {
  height: 75px;
  width: auto;
  max-height: 75px;
  min-height: 0;
  display: block;
  margin: 0.75rem auto 0;
  object-fit: contain;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none !important;
}
.slide .caption p,
.slide .caption .muted {
  color: #FFFFFF !important;
  font-weight: 500;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.26rem 0.64rem 0.26rem 0.48rem;
  color: var(--color-text-light);
  background: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 14px rgba(21,32,64,0.35);
  width: fit-content;
}

.cta {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .slide .caption .box {
    padding: 1.5rem 1rem;
    max-width: 90%;
  }
  .slide .caption .cta {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .slide .caption .box h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .slide .caption .box p {
    font-size: 0.9rem;
  }
  .cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .cta .btn {
    width: 100%;
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}
.slider-nav {
  z-index: 5;
}
@media (max-width: 768px) {
  .slider-nav {
    top: 42%;
  }
}
.slider-btn {
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.slider-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  transform: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: white;
}


/* 8. Cards & Sections */
.row {
  display: grid;
  gap: 2rem;
  margin-top: 2rem !important;
  align-items: start;
}
.row.row-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 640px) {
  .row.row-2 { grid-template-columns: 1fr; }
}
.row.row-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row.row-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.row.row-4.dining-gallery {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow: hidden;
}
.row.row-4.dining-gallery .ph.tile {
  height: 220px;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
}
.row.row-4.dining-gallery .ph.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dining-showcase {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid rgba(21,32,64,0.04);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}
.dining-showcase-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
.dining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.dining-tile {
  position: relative;
  overflow: hidden;
  background: #f9f9f7;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}
.dining-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.dining-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  color: #f9fbff;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: transparent;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45);
}
.dining-tile:hover img {
  transform: scale(1.05);
  filter: saturate(1.04);
}
.dining-tile:hover .dining-caption {
  background: transparent;
}
@media (max-width: 640px) {
  .dining-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dining-tile {
    aspect-ratio: 1;
  }
}
@media (max-width: 900px) {
  .row.row-4.dining-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .row.row-4.dining-gallery .ph.tile {
    height: 180px;
    min-height: 180px;
  }
}
/* Menu gallery specific styles */
.menu-gallery.row-4 {
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .menu-gallery.row-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .menu-gallery.row-4 .menu-thumb {
    max-width: 100%;
  }
}

/* Fun dives gallery */
.fun-gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.fun-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(21,32,64,0.1);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}
.fun-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.fun-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.04);
}
.fun-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, rgba(4,10,30,0) 0%, rgba(4,10,30,0.65) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
@media (max-width: 540px) {
  .fun-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
}

.card {
  background-color: var(--color-block);
  border: 1px solid var(--color-border-soft);
  transition: all var(--transition-speed);
  padding: 1.75rem;
  border-radius: var(--card-radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: transparent;
}
.card .ph.tile {
  margin-bottom: 1rem;
}
.card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.card .muted {
  font-size: 0.9rem;
}
.card .btn {
  margin-top: 1rem;
}
.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px dashed rgba(21,32,64,0.15);
  padding-bottom: 0.5rem;
}
.price-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.price-name {
  font-weight: 700;
  color: var(--color-primary);
}
.price-note {
  display: block;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.price-value {
  font-weight: 800;
  color: var(--color-primary);
}
.price-list-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.price-list-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-text-muted);
}
.price-addons {
  padding-top: 0.4rem;
  border-top: 1px solid rgba(21,32,64,0.12);
}
.price-addons .price-line {
  border-color: rgba(21,32,64,0.1);
}
.price-addons .price-value {
  color: var(--color-secondary);
}
.package-box {
  margin-top: 1.2rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: linear-gradient(145deg, #0f1a33 0%, #13254b 52%, #0b162d 100%);
  border: 2px solid rgba(198,168,125,0.55);
  border-radius: 0;
  box-shadow: 0 18px 38px rgba(0,0,0,0.24);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.package-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.3);
  border-color: rgba(198,168,125,0.75);
}
.package-box::before {
  content: '';
  position: absolute;
  top: -32px;
  right: -32px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(198,168,125,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.package-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 35%), radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 30%);
  opacity: 0.9;
  pointer-events: none;
}
.package-box .badge {
  display: block;
  margin: 0 auto 0.15rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: 0;
  font-weight: 800;
  box-shadow: none;
}
.package-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.95rem 1.45rem;
  width: 100%;
}
.package-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-weight: 800;
  color: var(--color-text-light);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--color-secondary);
  border-radius: 0;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  text-shadow: none;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.package-rate:last-child {
  align-items: center;
  text-align: center;
}
.package-rate:hover {
  transform: translateY(-2px);
  border-color: #d4bc97;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
}
.package-percent {
  letter-spacing: 0.01em;
  font-size: 1.3rem;
}
.package-note {
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .package-box {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .package-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .package-rate {
    width: 100%;
  }
}
.price-footnote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(21,32,64,0.04);
  border-left: 4px solid var(--color-accent);
}
.price-footnote-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(166,194,238,0.35);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
}
.price-footnote-title {
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}
.price-footnote .muted {
  margin-bottom: 0.2rem;
  color: var(--color-text-muted);
}
.price-footnote-date {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.day-pass-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(120deg, #152040, #0f1a33);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  color: var(--color-text-light);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.day-pass-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(198,168,125,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.day-pass-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.day-pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.12);
  color: var(--color-text-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  width: fit-content;
}
.day-pass-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.day-pass-card p {
  margin: 0;
  color: rgba(255,255,255,0.9);
}
.day-pass-card .muted {
  color: rgba(255,255,255,0.7) !important;
}
.day-pass-card .btn {
  margin: 0;
  white-space: nowrap;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
}
.day-pass-card .btn:hover {
  background-color: #b3956a;
  color: var(--color-primary);
}
.day-pass-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .day-pass-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .day-pass-card .btn {
    width: 100%;
    text-align: center;
  }
  .day-pass-price {
    font-size: 1.6rem;
  }
}
.course-details {
  margin-top: 0;
  display: flex;
  gap: 0.35rem;
  flex-direction: column;
  font-size: 0.95rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.32s ease;
}
.course-details.open {
  max-height: 4000px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.75rem;
}
.course-details p {
  margin: 0;
  color: var(--color-text-main);
}
.course-details ul {
  margin: 0 0 0.4rem 1.25rem;
  padding: 0;
}
.course-details ul li {
  margin-bottom: 0.25rem;
}
.course-details .prereq {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text-muted);
}
.course-subheading {
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}
.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.25rem;
}
@media (max-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
}
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}
.course-grid .card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f7f3ed 100%);
  border: 1px solid rgba(21,32,64,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 1.25rem;
  overflow: hidden;
}
.course-grid .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198,168,125,0.25);
  pointer-events: none;
}
.course-grid .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-secondary), #152040);
}
.course-grid .card strong,
.course-grid .card .muted,
.course-grid .card .course-details,
.course-grid .card img {
  position: relative;
  z-index: 1;
}
.course-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: transparent;
}
.course-meta-card {
  margin-top: 0.85rem;
  background: linear-gradient(120deg, #152040, #0f1a33);
  border: 2px solid var(--color-secondary);
  box-shadow: none;
  color: var(--color-text-light);
  padding: 1rem 1.15rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.course-meta-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(198,168,125,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.course-meta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.course-meta-grid .meta-row {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}
.course-meta-grid .meta-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.76);
  font-weight: 700;
  text-align: left;
}
.course-meta-grid .meta-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-light);
  text-align: left;
}
@media (max-width: 768px) {
  .course-meta-grid .meta-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-items: center;
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
  }
  .course-meta-grid .meta-row + .meta-row {
    margin-top: 0.6rem;
  }
  .course-meta-grid .meta-label,
  .course-meta-grid .meta-value {
    text-align: center;
  }
  .course-meta-grid .meta-label {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }
  .course-meta-grid .meta-value {
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 900;
    max-width: 92%;
  }
}
.ssi-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-grid.nav-cards {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.feature-grid.nav-cards .feature-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  width: 240px;
  flex: 0 0 240px;
}
.feature-grid.nav-cards .feature-card .media {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.feature-grid.nav-cards .feature-card .media img {
  height: 100%;
  min-height: 0;
}
.feature-grid.nav-cards .feature-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(21,32,64,0) 0%, rgba(21,32,64,0.72) 72%);
}
.feature-grid.nav-cards .feature-content h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
@media (max-width: 560px) {
  .feature-grid.nav-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .feature-grid.nav-cards .feature-card {
    width: 100%;
    flex: 1 1 auto;
  }
}
.feature-card {
  background: var(--color-block);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.feature-card .media {
  position: relative;
  min-height: 180px;
  background: rgba(21, 32, 64, 0.05);
}
.feature-card .media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.feature-card .media img.logo-placeholder {
  object-fit: contain;
  height: auto;
  max-height: 180px;
  min-height: 0;
  padding: 1.25rem;
  background: #fff;
}
.feature-card .media .ph {
  min-height: 220px;
  border-radius: 0;
}
.feature-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.feature-content h3 {
  margin-bottom: 0.25rem;
}
.feature-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--color-text-main);
}
.feature-list strong {
  color: var(--color-primary);
}

.section-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.section-cta.split-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.card.card-wide {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 1.75rem 0 2.25rem;
  flex-wrap: wrap;
}
.card-wide-image {
  flex: 1 1 260px;
  min-height: 320px;
  margin-bottom: 0.25rem;
}
.card-wide-content {
  flex: 2 1 340px;
}
.card-wide-content .muted {
  margin-top: 0.25rem;
}
.card-points {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.25rem;
}
.card-points li {
  position: relative;
  padding-left: 1.15rem;
}
.card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translateY(-50%);
}
.card-wide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.card-wide-cta .btn {
  flex: 1 1 160px;
  min-width: 160px;
}
@media (max-width: 640px) {
  .section-cta.split-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .section-cta.split-cta .btn {
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 768px) {
  .card.card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 1.25rem 0;
  }
  .card-wide-image, .card-wide-content {
    flex: 1 1 100%;
  }
.card-wide-image {
  min-height: 0;
  margin-bottom: 0.2rem;
}
}

/* 9. Reviews */
.reviews {
  position: relative;
  padding: 4.5rem 1rem;
  color: #fff;
  background-image: url('/assets/Pictures/Backgrounds/optimized/Home-review-la-tortue-diving-center-1200.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,28,0.78), rgba(10,14,28,0.86));
  z-index: 0;
}
.reviews .container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  text-align: center;
}
.reviews h2 {
  color: #fff;
}
.review-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
  margin: 0 auto 0.25rem;
  text-align: center;
}
.review-rating .rating-stars {
  color: rgba(198,168,125,0.85);
  letter-spacing: 0.02em;
  font-size: 1em;
}
.reviews .muted {
  color: rgba(255,255,255,0.8);
}
.review-slider {
  position: relative;
  margin: 1.75rem auto 0;
  overflow: hidden;
  max-width: 880px;
}
.review-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-slide {
  min-width: 100%;
  padding: 1.6rem;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 0;
  display: grid;
  gap: 0.9rem;
  backdrop-filter: blur(4px);
  position: relative;
  text-align: center;
  justify-items: center;
}
.review-quote {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #fff;
  letter-spacing: 0.01em;
}
.review-meta {
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-align: center;
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.review-dot {
  width: 32px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.22s ease;
  padding: 0;
}
.review-dot.active,
.review-dot:focus-visible {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.16);
}
.review-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .reviews {
    padding: 3.4rem 1rem;
    background-image: url('/assets/Pictures/Backgrounds/optimized/Home-review-la-tortue-diving-center-768.webp');
  }
  .review-slide {
    padding: 1.25rem;
  }
  .review-quote {
    font-size: 1rem;
  }
}

@media (min-width: 1400px) {
  .reviews {
    background-image: url('/assets/Pictures/Backgrounds/optimized/Home-review-la-tortue-diving-center.webp');
  }
}

/* About page */
.about-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}
.about-photo {
  position: relative;
  padding-top: 65%;
  background: linear-gradient(135deg, rgba(21,32,64,0.1), rgba(198,168,125,0.15));
  overflow: hidden;
}
.about-photo--story {
  align-self: stretch;
}
.about-photo .ph {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}
@media (max-width: 768px) {
  .about-photo--story {
    padding-top: 0;
  }
  .about-photo--story .ph {
    position: static;
  }
  .about-photo--story img {
    height: auto !important;
    object-fit: contain !important;
  }
}
@media (min-width: 768px) {
  .about-photo--story {
    padding-top: 0;
  }
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.team-grid-dogs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.team-grid-dogs .ph.tile img {
  display: block;
  width: 70%;
  height: auto;
  margin: 0 auto;
}
.team-grid-dogs .ph.tile {
  background: none;
}
.team-card {
  background: var(--color-block);
  border: 1px solid var(--color-border-soft);
  border-radius: 0;
  padding: 1.25rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.team-card strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.team-card .ph.tile {
  border-radius: 0;
  background: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.team-card .ph.tile img {
  width: 100%;
  height: auto;
  display: block;
}
.team-subheading {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0.25rem;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.team-photo-pair .ph.tile {
  aspect-ratio: 4 / 3;
}
.team-photo-pair .ph.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card.team-feature {
  grid-column: span 2;
  padding: 1.5rem;
  gap: 0.75rem;
}
.team-card.team-wide {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .team-card.team-feature {
    grid-column: span 1;
  }
  .team-card.team-wide {
    grid-column: span 1;
  }
}

/* 9. Footer */
footer {
  background: linear-gradient(140deg, #0f172f 0%, #152040 60%, #1f2d52 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 1rem 0rem 0rem 1rem;
  border-top: 4px solid var(--color-secondary);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0.8;
  pointer-events: none;
}
footer .container {
  max-width: 1100px;
  padding: 0 1rem;
}
footer .footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
footer .footer-left {
  margin-right: 2.5rem;
}
footer .footer-left,
footer .footer-right {
  flex: 1 1 280px;
}
footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-right: 3.5rem;
}
footer .brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
footer .footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
footer .footer-social-label {
  margin-bottom: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--color-text-light);
}
footer .footer-social-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  align-items: center;
}
footer .footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
}
footer .social-icon-img {
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  display: inline-block;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}
footer .social-icon-fb {
  background-image: url('assets/Pictures/Icons/Optimized/Facebook-la-tortue-diving-center.webp');
}
footer .social-icon-ig {
  background-image: url('assets/Pictures/Icons/Optimized/Instagram-la-tortue-diving-center-dauin.webp');
}
footer .social-text {
  color: inherit;
}
@media (max-width: 640px) {
  footer .footer-social {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .footer-social-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}
footer .footer-social-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.3s ease, border-bottom-color 0.3s ease, transform 0.3s ease;
}
footer .footer-social-links a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  transform: translateX(4px);
}
footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
  margin-left: auto;
  position: relative;
  z-index: 1;
  flex: 0 0 430px;
}
footer .footer-map-label {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--color-text-light);
}
footer .footer-right iframe {
  width: 100%;
  max-width: 420px;
  height: 250px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}
@media (max-width: 640px) {
  footer .footer-right {
    flex: 1 1 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    margin-left: 0;
  }
  footer .footer-right iframe {
    width: 92%;
    max-width: 320px;
    margin: 0 auto;
    height: 180px;
  }
}
footer .footer-legal {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
footer .footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
footer .footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
footer .footer-links-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.4rem;
}
footer .footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
footer .footer-links a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}
footer .footer-bottom {
  margin-top: 0.75rem;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  position: relative;
  z-index: 1;
}
footer .footer-legal {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
footer .footer-legal a.footer-cookie-settings {
  color: inherit;
  text-decoration: none;
}
footer .footer-legal a.footer-cookie-settings:hover {
  color: var(--color-accent);
}

/* 10. Mobile Menu */
.burger {
  display: block;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1010;
}
@media (min-width: 768px) {
  .burger { display: none; }
}
.burger i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
  transition: transform 0.3s, background 0.3s;
}
.burger i::before, .burger i::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  left: 0;
  transition: transform 0.3s;
}
.burger i::before { top: -7px; }
.burger i::after { bottom: -7px; }

.mpanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-block);
  z-index: 1005;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding-top: 6rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--color-border-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mpanel.open {
    transform: translateX(0);
}
.mpanel::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}
.mpanel.open::before {
  opacity: 1;
  pointer-events: auto;
}
.mpanel .links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
}
.mpanel .links a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 2.2rem;
}
.mpanel .mpanel-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.mpanel .mpanel-group.open {
  gap: 0.6rem;
}
.mpanel-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: inherit;
  line-height: 2.2rem;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0 1.75rem;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
}
.mpanel-toggle .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
  position: absolute;
  right: 0.75rem;
  top: 50%;
}
.mpanel-group.open .mpanel-toggle .chevron {
  transform: translateY(-50%) rotate(-135deg);
}
.mpanel-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  margin: 0;
  border: none;
  background: transparent;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.mpanel-submenu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.35rem 0.5rem;
}
.mpanel-group.open .mpanel-submenu {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  margin: 0 1.25rem;
  padding: 0.75rem 0.25rem;
  background: rgba(21, 32, 64, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(21, 32, 64, 0.08);
}
.mpanel-locale-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0.25rem 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(21, 32, 64, 0.55);
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(21, 32, 64, 0.06);
  border: 1px solid rgba(21, 32, 64, 0.08);
  border-radius: 8px;
}
.mpanel-locale-label {
  display: inline-block;
  margin-right: 0.25rem;
}
.mpanel-locale-row .flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mpanel-locale-row .flag-icon + .flag-icon {
  margin-left: 0.55rem;
}
.mpanel .actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
  max-width: 300px;
}
.mpanel .actions .btn {
  width: 100%;
}
.menu-partner {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--color-text-muted);
}
.menu-partner .nav-partner-logo {
  max-height: 44px;
}
.menu-partner .nav-partner-logo.ffessm-logo {
  max-height: 36px;
}
.menu-partner .nav-partner-note {
  color: var(--color-primary);
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Form styles */
input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-family-base);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23152040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.6rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-accent);
}
form .row {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  form .row {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.contact-form .form-row.form-dates {
  grid-column: 1 / -1;
}
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-form .phone-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.contact-form .phone-group select {
  flex: 0 0 200px;
  width: 200px;
  min-width: 180px;
  background-position: right 0.65rem center;
}
.contact-form .phone-group input {
  flex: 1 1 140px;
  min-width: 0;
}
@media (max-width: 640px) {
  .contact-form .phone-group {
    flex-direction: column;
  }
  .contact-form .phone-group select,
  .contact-form .phone-group input {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}
.contact-form label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .contact-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-form .phone-field,
  .contact-form .interest-field {
    grid-column: 1 / -1;
  }
  .contact-form .form-row.form-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.contact-actions .btn {
  width: 100%;
}
@media (min-width: 640px) {
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-actions .btn {
    flex: 1 1 160px;
  }
}
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-social .btn {
  margin-top: 0;
}
  .form-status {
    display: block;
    margin-top: 0.35rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--border-radius);
    font-weight: 700;
    background: #f9f5ee;
    color: var(--color-primary);
  }
  .form-status[hidden] {
    display: none !important;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .form-status.pending {
    color: #0c5460;
    background: #cff4fc;
    border-color: #b6effb;
  }
.form-status.success {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}
.form-status.error {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-height: 800px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, visibility 0.45s ease, padding 0.35s ease;
}
.contact-form .form-row.is-hidden {
  display: grid !important;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  visibility: hidden;
}
@media (min-width: 640px) {
  .contact-form .form-row.form-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.is-hidden {
  display: none !important;
}

/* 11. Page-specific adjustments */

/* Dining Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* --- Hero Section for Inner Pages --- */
section.hero {
  position: relative;
  padding: 0;
  color: var(--color-text-light);
  min-height: 40vh; /* Set min-height on the section itself */
  display: flex; /* Make section a flex container */
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  text-align: center;
}
.hero .banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
}
.hero .banner .ph.hero {
    background-image: url('assets/Pictures/Backgrounds/diving-bg.webp'); /* Use the local image */
    background-size: cover;
    background-position: center;
    /* Override conflicting .ph styles */
    display: block; /* Ensure it's a block element */
    min-height: 100%; /* Take full height of parent */
    height: 100%;
    width: 100%;
    opacity: 0.3;
    border-radius: 0;
}
.hero .inner.container {
  position: relative;
  z-index: 2;
  /* The flex properties are now on the section.hero */
  /* Remove display: flex, flex-direction, justify-content, align-items from here */
  padding: 3rem 1rem;
}
.hero .inner h1 {
  color: var(--color-text-light);
}
.hero .inner .muted {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .hero .inner.container {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
  body.has-fixed-nav section.hero:first-of-type {
    margin-top: -76px;
  }
}

/* Compact hero variant for shorter headers */
.hero.hero-compact {
  min-height: 32vh;
}
.hero.hero-compact .inner.container {
  padding: 2.5rem 1rem;
}

.menu-gallery {
  gap: 1rem;
}
.menu-thumb {
  position: relative;
  padding: 0;
  border: 2px solid var(--color-border-soft);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-radius: 4px;
  overflow: hidden;
}
.menu-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.2);
  border-color: var(--color-secondary);
}
.menu-thumb:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.menu-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-thumb-cta {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(21,32,64,0.92) 100%);
  color: #fff;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.25s ease;
}
.menu-thumb:hover .menu-thumb-cta {
  background: linear-gradient(180deg, transparent 0%, rgba(198,168,125,0.95) 100%);
  color: var(--color-primary);
}
.menu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.menu-lightbox[hidden] {
  display: none;
}
.menu-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.84);
  backdrop-filter: blur(10px);
}
.menu-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(900px, 92vw);
  width: min(880px, 92vw);
  background: rgba(6,10,18,0.94);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  padding: 1.25rem;
  display: grid;
  gap: 0.6rem;
  max-height: 90vh;
}
.menu-lightbox-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  display: block;
  background: #04070f;
  object-fit: contain;
  margin: 0 auto;
}
.menu-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(4, 6, 10, 0.68);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 2;
  transition: background 0.2s ease;
}
.menu-lightbox-close:hover {
  background: rgba(4, 6, 10, 0.82);
}
.menu-lightbox-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.contact__recaptcha {
  margin: 1rem 0;
  max-width: 100%;
}
.contact__recaptcha > div,
.contact__recaptcha iframe {
  max-width: 100%;
}
@media (max-width: 640px) {
  .menu-lightbox-content {
    width: 94vw;
    max-width: 94vw;
    padding: 0.9rem;
    max-height: 88vh;
  }
  .menu-lightbox-img {
    max-height: 70vh;
  }
  .menu-lightbox-nav .btn {
    flex: 1;
    width: 100%;
  }
}

/* Fun dive gallery lightbox */
.fun-tile {
  padding: 0;
  cursor: pointer;
}
.fun-tile:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.fun-lightbox-caption {
  display: grid;
  gap: 0.25rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fun-lightbox-title {
  font-size: 1rem;
}
.fun-lightbox-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.fun-lightbox-subtitle.is-empty {
  display: none;
}


@media (max-width: 480px) {
  body.page-contact section.sand {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  body.page-contact section.sand .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  body.page-contact section.sand .card {
    padding: 0.75rem;
  }
}
