/* ==========================================================================
   Prasa Boat Safari - CSS Stylesheet
   Color Palette: Deep Navy Blue, Ocean Teal, Soft Gold & Sand, Crisp White
   Typography: Playfair Display / Cormorant Garamond & Plus Jakarta Sans
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #0b1e36;
  --primary-navy-dark: #05101d;
  --primary-navy-light: #162f52;
  --ocean-teal: #008080;
  --ocean-teal-dark: #006666;
  --ocean-teal-light: #e8f6f6;
  --accent-gold: #c5a059;
  --accent-gold-hover: #b08b44;
  --accent-sand: #f4efe6;
  --text-dark: #1c2635;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --bg-white: #ffffff;
  --bg-offwhite: #f8fafc;
  --border-light: #e2e8f0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-serif-accent: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 30, 54, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(11, 30, 54, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
}

.section-tag {
  font-family: var(--font-serif-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-body);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.45);
}

.btn-secondary {
  background-color: var(--ocean-teal);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--ocean-teal-dark);
  transform: translateY(-2px);
}

.btn-blue {
  background-color: #0f52ba;
  /* Sapphire/Royal Blue */
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
}

.btn-blue:hover {
  background-color: #0c4399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 82, 186, 0.4);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--bg-white);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: var(--bg-white);
  color: var(--primary-navy);
  border-color: var(--bg-white);
}

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

.btn-outline-navy:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold);
}

.currency-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.currency-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.currency-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-navy-dark);
}

/* Main Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.navbar.navbar-home {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  box-shadow: none;
  border-bottom: none;
}

.navbar.navbar-home.navbar-scrolled {
  position: fixed;
  background-color: var(--primary-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bg-white);
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--ocean-teal), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--bg-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation Dropdowns */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--primary-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--primary-navy-dark);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
}

.dropdown-item:hover {
  color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 1.75rem;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link.dropdown-toggle::after {
  content: '▾';
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 950px;
  background-image: url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--bg-white);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Subtle dark gradient overlay (left side darker, fading to transparent right) */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 16, 29, 0.65) 0%, rgba(5, 16, 29, 0.25) 50%, rgba(5, 16, 29, 0.02) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #a5f3fc;
  /* subtle light blue tint */
  margin-bottom: 1rem;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

/* Stats Bar */
.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.2;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Floating Image Card */
.hero-floating-card {
  justify-self: end;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 360px;
  transform: translateY(50px);
  /* Hangs over section below */
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.floating-card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.floating-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card:hover .floating-card-img-wrapper {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Smooth fadeInUp Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Page Header Banner (Subpages) */
.page-header {
  position: relative;
  padding: 9rem 0 5rem;
  background-color: var(--primary-navy-dark);
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  text-align: center;
}

@media (min-width: 769px) {
  .page-header {
    background-attachment: fixed;
  }
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 30, 54, 0.8) 0%, rgba(5, 16, 29, 0.9) 100%);
}

.page-header-content {
  position: relative;
  z-index: 10;
}

.page-title {
  font-size: 3rem;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.breadcrumb a {
  color: var(--accent-gold);
}

/* Feature Cards & Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.3);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-navy);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.boat-badge-motorized {
  background: var(--ocean-teal-dark) !important;
  color: var(--bg-white) !important;
}

.boat-badge-sailboat {
  background: var(--accent-gold) !important;
  color: var(--primary-navy-dark) !important;
}

.boat-badge-tuktuk {
  background: #d97706 !important;
  color: #ffffff !important;
}

.card-price-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(11, 30, 54, 0.9);
  color: var(--bg-white);
  backdrop-filter: blur(5px);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-features-list {
  margin-bottom: 1.5rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.card-feature-item svg {
  color: var(--ocean-teal);
  flex-shrink: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-offwhite);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  color: var(--bg-white);
  border-color: var(--primary-navy);
}

/* Destinations Cards */
.destination-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 16, 29, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--bg-white);
}

.destination-title {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.destination-sub {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* CTA Banner Section */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  background-color: var(--primary-navy-dark);
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  text-align: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(11, 30, 54, 0.75) 0%, rgba(5, 16, 29, 0.92) 100%);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
  margin: 0 auto;
}

.cta-title {
  color: var(--bg-white);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* About & Highlights Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--primary-navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--bg-white);
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* Testimonials Carousel / Grid */
.testimonial-card {
  background: var(--bg-offwhite);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  color: var(--primary-navy);
}

.user-country {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-stars {
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

/* Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

/* Bento/Masonry Layout grid spans for desktop */
@media (min-width: 769px) {
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(7) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:nth-child(9) {
    grid-column: span 1;
    grid-row: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 54, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--bg-white);
  font-size: 1.8rem;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 16, 29, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--bg-white);
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Page Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-info-box {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  color: var(--bg-white);
  font-size: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-offwhite);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--ocean-teal);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.alert-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
}

/* Footer */
.footer {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-heading {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent-gold);
  color: var(--primary-navy-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Modal Popup for Package Details & Booking */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 29, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--primary-navy);
  color: var(--bg-white);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--bg-white);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-floating-card {
    display: none;
    /* Hide on mobile/tablet */
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats-bar {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar-info {
    display: none;
  }

  .top-bar-content {
    justify-content: center;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-navy-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .gallery-item {
    width: 100% !important;
    height: 280px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Mobile dropdown layout */
  .nav-item.dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    box-shadow: none;
    margin-top: 0.5rem;
    width: 100%;
    min-width: 0;
    display: none;
    /* Toggle with active class in JS */
    padding-left: 1rem;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-item.dropdown::before {
    display: none;
  }

  .nav-link.dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-item.dropdown.active .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Hero modifications for mobile screens */
  .hero-section {
    padding: 100px 0 60px;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-stats-bar {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .hero-stat-divider {
    display: none;
  }
}

/* ==========================================================================
   Destinations Carousel Slideshow CSS
   ========================================================================== */
.destinations-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  /* padding to avoid clipping box-shadow */
}

.destinations-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 2rem;
}

.destinations-carousel-slide {
  flex: 0 0 calc(25% - 1.5rem);
  /* Default: 4 slides visible on large screens */
  min-width: 250px;
  box-sizing: border-box;
}

/* Control Buttons styling */
.carousel-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--primary-navy);
  background: transparent;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-control-btn:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
  transform: scale(1.05);
}

.carousel-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: transparent;
  color: var(--primary-navy);
}

.carousel-control-btn svg {
  transition: transform 0.3s ease;
}

.carousel-control-btn:hover svg {
  transform: scale(1.1);
}

/* Dots Styling */
.dest-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(5, 16, 29, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dest-dot:hover {
  background: rgba(5, 16, 29, 0.4);
}

.dest-dot.active {
  background: var(--accent-gold);
  width: 25px;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .destinations-carousel-slide {
    flex: 0 0 calc(33.333% - 1.33rem);
    /* 3 slides on medium desktops */
  }
}

@media (max-width: 992px) {
  .destinations-carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    /* 2 slides on tablets */
  }
}

@media (max-width: 576px) {
  .destinations-carousel-slide {
    flex: 0 0 100%;
    /* 1 slide on mobile */
  }

  .carousel-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1.5rem;
  }

  .carousel-controls {
    align-self: flex-end;
  }

  .gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
}

/* ==========================================================================
   Gallery Header Slideshow CSS
   ========================================================================== */
.gallery-hero-slideshow {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  box-sizing: border-box;
}

.gallery-slides-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 16, 29, 0.6) 0%, rgba(5, 16, 29, 0.85) 100%);
  z-index: 1;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* Controls style */
.gallery-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 16, 29, 0.4);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.gallery-hero-slideshow:hover .gallery-slide-btn {
  opacity: 1;
}

.gallery-slide-btn.prev-btn {
  left: 2rem;
}

.gallery-slide-btn.next-btn {
  right: 2rem;
}

.gallery-slide-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-50%) scale(1.05);
}

/* Dots indicator style */
.gallery-slides-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.gallery-dot.active {
  background: var(--accent-gold);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .gallery-hero-slideshow {
    height: 45vh;
    min-height: 300px;
  }

  .gallery-slide-btn {
    opacity: 0.7;
    width: 40px;
    height: 40px;
  }

  .gallery-slide-btn.prev-btn {
    left: 1rem;
  }

  .gallery-slide-btn.next-btn {
    right: 1rem;
  }
}

/* Package Details Responsive Layout */
.details-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-form-box {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.booking-card {
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-image-wrapper {
  position: relative;
}

.intro-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: var(--transition);
}

.intro-image.captain-image {
  height: 460px;
}

.intro-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary-navy);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.intro-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1.1;
}

.intro-badge .badge-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

.details-sidebar {
  position: sticky;
  top: 110px;
}

@media (max-width: 992px) {
  .details-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {

  .contact-info-box,
  .contact-form-box {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .booking-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .intro-image {
    height: 320px !important;
  }

  .intro-badge {
    left: 10px;
    bottom: 10px;
    padding: 1rem 1.5rem;
  }

  .intro-badge .badge-number {
    font-size: 1.6rem;
  }

  .intro-badge .badge-text {
    font-size: 0.75rem;
  }

  .cta-banner .cta-content div {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner .cta-content div .btn {
    width: 100%;
    max-width: 320px;
  }

  .cta-title {
    font-size: 2rem !important;
  }

  .page-title {
    font-size: 2.2rem !important;
  }
}