/* ==========================================================================
   HUSKY SAILING — Design System V2
   Dark/Light Theme · Plus Jakarta Sans · Micro-animations · Performance
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---------- Light Theme (default) ---------- */
:root {
  /* Palette */
  --bg: #FAFAF8;
  --bg-alt: #F0EEEA;
  --surface: #FFFFFF;
  --charcoal: #1A1A1A;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --stone: #B8A99A;
  --arctic: #4A7C8F;
  --arctic-dark: #3A6270;
  --arctic-glow: rgba(74, 124, 143, 0.15);
  --frost: #E8E4DF;
  --accent: #C4956A;
  --danger: #B94A48;
  --success: #4A8F5C;
  --overlay: rgba(26, 26, 26, 0.55);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
  --transition-fast: 0.15s var(--ease);

  /* Nav colors (for theme switching) */
  --nav-bg: rgba(250, 250, 248, 0.95);
  --nav-border: rgba(0, 0, 0, 0.06);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg: #0F1115;
  --bg-alt: #1A1D23;
  --surface: #22262E;
  --charcoal: #F5F5F5;
  --text: #E0E0E0;
  --text-muted: #9CA3AF;
  --stone: #8B7D6B;
  --arctic: #6AADBE;
  --arctic-dark: #8BC5D3;
  --arctic-glow: rgba(106, 173, 190, 0.2);
  --frost: #2D3139;
  --accent: #D4A574;
  --danger: #E06060;
  --success: #5CB870;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(15, 17, 21, 0.92);
  --nav-border: rgba(255, 255, 255, 0.06);
}

/* Smooth theme transitions */
body,
.nav,
.trip-card,
.booking-card,
.packing-category,
.admin-login__card,
.admin-table,
.modal__content,
.form-input,
.footer {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page fade-in */
body {
  animation: pageIn 0.5s var(--ease) forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  max-width: 65ch;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--nav-border);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  z-index: 1001;
}

.nav--transparent .nav__brand {
  color: #fff;
}

.nav--scrolled .nav__brand {
  color: var(--charcoal);
}

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

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav--transparent .nav__link {
  color: rgba(255, 255, 255, 0.85);
}

.nav--scrolled .nav__link {
  color: var(--text-muted);
}

.nav__link:hover {
  color: var(--arctic);
}

/* Nav link underline from center */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--arctic);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
  left: 0;
}

/* Theme toggle in nav */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--frost);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--arctic);
  color: var(--arctic);
  transform: rotate(30deg);
}

.theme-toggle:active {
  transform: scale(0.9) rotate(30deg);
}

.nav--transparent .theme-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  position: absolute;
  left: 0;
  transition: all 0.35s var(--ease-out);
}

.nav--transparent .nav__toggle span {
  background: #fff;
}

.nav--scrolled .nav__toggle span {
  background: var(--charcoal);
}

.nav__toggle span:nth-child(1) {
  top: 2px;
}

.nav__toggle span:nth-child(2) {
  top: 11px;
}

.nav__toggle span:nth-child(3) {
  top: 20px;
}

.nav__toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
  background: var(--charcoal);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
  background: var(--charcoal);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    transition: right 0.5s var(--ease-out);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal) !important;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 1rem 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s var(--ease);
  }

  /* Staggered mobile link reveal */
  .nav__links.open .nav__link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav__links.open .nav__link:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav__links.open .nav__link:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav__links.open .nav__link:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav__links.open .nav__link:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav__links.open .nav__link:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav__links.open .nav__link:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav__links.open .nav__link:nth-child(7) {
    transition-delay: 0.4s;
  }

  .nav__links .theme-toggle {
    margin-top: 1rem;
    margin-left: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
  }

  .nav__links.open .theme-toggle {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.45s;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(26, 26, 26, 0.25) 0%,
      rgba(26, 26, 26, 0.4) 50%,
      rgba(26, 26, 26, 0.65) 100%);
  z-index: -1;
}

.hero__content {
  color: #fff;
  z-index: 1;
  padding: 0 2rem;
}

.hero__content h1 {
  color: #fff;
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
  letter-spacing: -0.03em;
}

.hero__content .subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Button click feedback */
.btn:active {
  transform: scale(0.96) !important;
  transition-duration: 0.1s;
}

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}

.btn:active::before {
  opacity: 1;
  transform: scale(2.5);
  transition-duration: 0s;
}

.btn--primary {
  background: var(--arctic);
  color: #fff;
}

.btn--primary:hover {
  background: var(--arctic-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--arctic-glow);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--dark {
  background: var(--charcoal);
  color: var(--bg);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--arctic);
  padding: 0.5rem 0;
  letter-spacing: 0.04em;
}

.btn--ghost:hover {
  color: var(--arctic-dark);
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition);
  display: inline-block;
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

/* ---------- Trip Cards ---------- */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.trip-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  contain: layout style;
}

.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.trip-card__image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.trip-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.trip-card:hover .trip-card__image img {
  transform: scale(1.05);
}

.trip-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--arctic);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trip-card__badge--few {
  background: var(--accent);
}

.trip-card__body {
  padding: 1.5rem;
}

.trip-card__duration {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--arctic);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.trip-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.trip-card__dates {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.trip-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--frost);
}

.trip-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
}

.trip-card__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1rem;
}

.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  contain: layout style;
}

.gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid__item:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 200px 200px;
  }

  .gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ---------- About Teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-teaser__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-teaser:hover .about-teaser__image img {
  transform: scale(1.03);
}

.about-teaser__content h2 {
  margin-bottom: 1.5rem;
}

.about-teaser__content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr;
  }
}

/* ---------- Boat Showcase (scroll-driven) ---------- */
.boat-showcase {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}

.boat-showcase__track {
  position: relative;
  height: 400vh;
}

.boat-showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boat-showcase__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.boat-showcase__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.boat-showcase__slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.boat-showcase__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.boat-showcase__slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

.boat-showcase__overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--arctic);
  margin-bottom: 1rem;
  display: block;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s var(--ease-out) 0.1s;
}

.boat-showcase__slide.active .boat-showcase__overline {
  opacity: 1;
  transform: translateY(0);
}

.boat-showcase__slide-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s var(--ease-out) 0.2s;
}

.boat-showcase__slide.active .boat-showcase__slide-content h2 {
  opacity: 1;
  transform: translateY(0);
}

.boat-showcase__slide-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out) 0.35s;
}

.boat-showcase__slide.active .boat-showcase__slide-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Showcase progress dots */
.boat-showcase__dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.boat-showcase__dots.visible {
  opacity: 1;
  pointer-events: auto;
}

.boat-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.boat-showcase__dot.active {
  background: var(--arctic);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .boat-showcase__dots {
    right: 1rem;
  }
}

/* ---------- 3D Boat Viewer ---------- */
.boat-viewer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.boat-viewer model-viewer {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  --poster-color: transparent;
}

.boat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.boat-spec {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.boat-spec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.boat-spec__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.boat-spec__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .boat-viewer {
    grid-template-columns: 1fr;
  }

  .boat-viewer model-viewer {
    height: 350px;
  }
}

/* ---------- Map Section ---------- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-md);
}

#map,
#tripMap {
  height: 100%;
  width: 100%;
}

/* ---------- Testimonial / Quote ---------- */
.quote-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.quote-section cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer {
  background: #0A0C0F;
  border-top: 1px solid var(--frost);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

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

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
  background: var(--bg-alt);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Content Sections ---------- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.content-block h2 {
  margin-bottom: 1.5rem;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--frost);
}

.faq-item__question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--arctic);
}

.faq-item__icon {
  font-size: 1.5rem;
  transition: transform 0.35s var(--ease-out);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-item__answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--frost);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--arctic);
  box-shadow: 0 0 0 3px var(--arctic-glow);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

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

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Trip Detail ---------- */
.trip-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.trip-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
}

.trip-hero__content {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  color: #fff;
  z-index: 1;
}

.trip-hero__content h1 {
  color: #fff;
}

.trip-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.trip-detail__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
}

.booking-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.booking-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.booking-card__price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.booking-card__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem 0;
  border-bottom: 1px solid var(--frost);
  margin-bottom: 1.5rem;
}

.booking-card__meta span {
  display: block;
  margin-bottom: 0.3rem;
}

.booking-card .btn {
  width: 100%;
  justify-content: center;
}

.trip-highlights {
  padding: 1.5rem 0;
}

.trip-highlights li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.trip-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--arctic);
  font-weight: 600;
}

@media (max-width: 768px) {
  .trip-detail {
    grid-template-columns: 1fr;
  }

  .trip-detail__sidebar {
    position: static;
  }
}

/* ---------- Guest Counter ---------- */
.guest-counter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guest-counter__btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--frost);
  border-radius: 50%;
  background: transparent;
  font-size: 1.3rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.guest-counter__btn:hover {
  border-color: var(--arctic);
  color: var(--arctic);
}

.guest-counter__btn:active {
  transform: scale(0.9);
}

.guest-counter__value {
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

/* ---------- Packing List ---------- */
.packing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.packing-category {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.packing-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.packing-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.packing-category li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--frost);
}

.packing-category li:last-child {
  border-bottom: none;
}

.packing-category li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--stone);
}

/* ---------- Admin ---------- */
.admin-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-alt);
}

.admin-login__card {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-login__card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.admin-login__card .subtitle {
  margin-bottom: 2rem;
}

.admin-panel {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--bg-alt);
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table td {
  border-bottom: 1px solid var(--frost);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
}

.admin-table .actions button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-table .actions .edit-btn {
  background: var(--frost);
  color: var(--charcoal);
}

.admin-table .actions .edit-btn:hover {
  background: var(--stone);
  color: #fff;
}

.admin-table .actions .delete-btn {
  background: #fce4e4;
  color: var(--danger);
}

[data-theme="dark"] .admin-table .actions .delete-btn {
  background: rgba(185, 74, 72, 0.15);
}

.admin-table .actions .delete-btn:hover {
  background: var(--danger);
  color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__content {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

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

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.modal__close:hover {
  color: var(--charcoal);
  transform: rotate(90deg);
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--frost);
}

.admin-tab {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.admin-tab:hover {
  color: var(--charcoal);
}

.admin-tab.active {
  color: var(--arctic);
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--arctic);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* ---------- Toast notifications ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--success);
}

.toast--error {
  background: var(--danger);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-children.visible>*:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.visible>*:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.visible>*:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.visible>*:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.visible>*:nth-child(5) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-children.visible>*:nth-child(6) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section-header .overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--arctic);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
}

.section-header p {
  max-width: 550px;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

/* ---------- Booking success overlay ---------- */
.booking-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.booking-success.active {
  display: block;
}

.booking-success .check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* ---------- Loading spinner ---------- */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--frost);
  border-top-color: var(--arctic);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Interactive link hover (all a tags inside content) ---------- */
.content-block a,
.faq-item__answer a {
  color: var(--arctic);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-block a:hover,
.faq-item__answer a:hover {
  color: var(--arctic-dark);
}