/* ============================================================
   In Depth Watersports — Site Stylesheet
   Palette: deep ocean navy, Caribbean teal, sand, coral CTA
   Edit the variables below to tune the whole site's look.
   ============================================================ */

:root {
  --navy: #072a40;        /* primary dark — headers, footer */
  --navy-deep: #041824;   /* darkest — top bar, gradients */
  --teal: #0fa3b1;        /* primary accent */
  --teal-dark: #0b7f8a;   /* hover state */
  --aqua: #7ad9e0;        /* light accent — on dark backgrounds */
  --sand: #f7f3ea;        /* warm light background */
  --white: #ffffff;
  --ink: #16333f;         /* body text */
  --ink-soft: #4c6572;    /* secondary text */
  --coral: #cc4426;       /* call-to-action */
  --coral-dark: #b4361c;
  --line: #dfe7ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 42, 64, 0.10);
  --shadow-lg: 0 18px 50px rgba(7, 42, 64, 0.18);
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* v1.72: consistent rendering across phones. Without this, Chrome on
   Android applies "font boosting" - it selectively inflates text based on
   each device's screen and font settings, so the same page looks fine on
   one phone and broken on another. We size our own text responsively. */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container { width: min(1160px, 92%); margin: 0 auto; }
section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.section-intro { max-width: 720px; color: var(--ink-soft); margin-top: 14px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfe4ec;
  font-size: 0.83rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--aqua); }
.topbar-right { display: flex; gap: 18px; }

/* ---------- Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.nav {
  background: var(--navy);
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
/* Dive dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--navy);
  list-style: none;
  min-width: 185px;
  padding: 10px 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}
.nav-drop:hover .dropdown,
.nav-drop:focus-within .dropdown { display: block; }
.nav-drop .dropdown a { display: block; padding: 9px 20px; border-bottom: none; }
@media (max-width: 960px) {
  .nav-drop { width: 100%; }
  .nav-drop .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    padding: 4px 0 4px 18px;
    min-width: 0;
  }
}
.nav .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 17px; list-style: none; }
.nav-links a {
  color: #e8f4f8;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--aqua); border-bottom-color: var(--aqua); }
.nav-links .nav-cta {
  background: var(--coral);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--coral-dark); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4,24,36,0.55) 0%, rgba(7,42,64,0.65) 60%, rgba(4,24,36,0.85) 100%),
    var(--hero-image, linear-gradient(160deg, #0b3a52 0%, #0fa3b1 120%));
  background-size: cover;
  background-position: center;
  padding: 64px 0;
}
.hero-inner { max-width: 780px; }
.hero-award {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  background: rgba(4,24,36,0.45);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 99px;
  padding: 8px 20px 8px 10px;
  backdrop-filter: blur(4px);
}
.hero-award img { height: 46px; width: 46px; display: block; }
.hero-award .t { font-size: 0.82rem; line-height: 1.35; color: #cfe8ee; }
.hero-award .t b { display: block; font-family: var(--font-head); color: #fff; font-size: 0.95rem; letter-spacing: 0.01em; }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero .hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #dff2f6;
  margin-bottom: 30px;
  max-width: 640px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  background:
    linear-gradient(180deg, rgba(4,24,36,0.6), rgba(7,42,64,0.75)),
    var(--hero-image, linear-gradient(160deg, #0b3a52, #0fa3b1));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 0 64px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8edf2; max-width: 680px; margin-top: 12px; font-size: 1.1rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-deep); color: #fff; padding: 26px 0; }
.trustbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .big {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1;
}
.trust-item .small { font-size: 0.82rem; color: #b9d6e0; line-height: 1.35; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 26px; margin-top: 40px; }
.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: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { height: 210px; background-size: cover; background-position: center; position: relative; }
.card-img .price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--navy);
  color: var(--aqua);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-body .card-link { margin-top: 16px; font-family: var(--font-head); font-weight: 600; }

/* Placeholder image blocks — replace with real photos */
.ph {
  background: linear-gradient(150deg, #0b3a52, #0fa3b1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 44px;
}
.feature-row > div:not(.feature-img) { align-self: center; }
.feature-row .feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.feature-row ul { margin: 16px 0 0 18px; color: var(--ink-soft); }
.feature-row li { margin-bottom: 8px; }

/* ---------- Check list ---------- */
.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist strong { color: var(--ink); }
.bg-navy .checklist li { color: #b9d6e0; }
.bg-navy .checklist strong { color: var(--aqua); }

/* ---------- Alternate section backgrounds ---------- */
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: #d8edf2; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .kicker { color: var(--aqua); }
.bg-navy .section-intro { color: #b9d6e0; }

/* ---------- Rates tables ---------- */
.rates-note {
  display: inline-block;
  background: var(--navy);
  color: var(--aqua);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 26px;
  font-size: 0.9rem;
}
.rate-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rate-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  text-align: left;
  padding: 14px 20px;
  font-size: 0.95rem;
}
.rate-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: #f6fafb; }
.rate-table .price { font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-wrap { overflow-x: auto; margin-top: 26px; }
.table-title { margin: 40px 0 0; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.quote-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.quote-card blockquote { font-size: 0.98rem; color: var(--ink); flex: 1; }
.quote-card cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.88rem;
}

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--aqua); line-height: 1; }
.stat .label { font-size: 0.88rem; color: #b9d6e0; margin-top: 8px; }

/* ---------- Staff grid ---------- */
.staff-card { text-align: left; }
.staff-card .card-img { height: 260px; background-position: center 22%; }
.staff-card .role {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details {
  background: #eef5f8; /* v1.84: light tint so questions pop against the white page (Kelly) */
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq details[open] { background: #fff; border: 1px solid var(--line); }
.faq h3 { scroll-margin-top: 96px; }
/* v1.84: FAQ section jump menu (Kelly) */
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.faq-nav a {
  display: inline-block;
  background: var(--navy);
  color: #e8f4f8;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.faq-nav a:hover { background: var(--teal); color: #fff; text-decoration: none; }
.faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--teal);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 20px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdfd;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,163,177,0.15);
}
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 600; font-family: var(--font-head); }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: var(--coral-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d8edf2; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #9fbecb; padding: 60px 0 30px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #9fbecb; }
.footer-grid a:hover { color: var(--aqua); }
.footer-logo img { height: 60px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #6e8d9b;
}

/* ---------- Badges / pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  background: rgba(15,163,177,0.12);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
}
.bg-navy .pill { background: rgba(122,217,224,0.15); color: var(--aqua); }

/* Highlight callout */
.callout {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 34px 38px;
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.callout h3 { color: #fff; font-size: 1.5rem; }
.callout p { color: #e2f6f8; max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6%;
    gap: 14px;
    box-shadow: 0 14px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 52vh; padding: 48px 0; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* ---------- Mobile sticky action bar ---------- */
.action-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--navy-deep);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.3);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.action-bar a {
  flex: 1;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.action-bar a.ab-book { background: var(--coral); }
@media (max-width: 720px) {
  .action-bar { display: flex; }
  footer { padding-bottom: 96px; }
}

/* ---------- v1.74: compact phone header & tighter phone spacing ----------
   On phones the topbar's phone/WhatsApp/email row duplicated the sticky
   action bar at the bottom of the screen, wrapped mid-phone-number, and
   (with the nav) kept a ~190px header glued to the top. The contact row
   now hides on phones, only the menu bar stays sticky, and desktop-sized
   section padding is reduced so pages don't have big empty gaps. */
.topbar a { white-space: nowrap; }
@media (max-width: 720px) {
  .topbar-right { display: none; }
  .topbar { font-size: 0.78rem; }
  /* On phones the header scrolls away instead of sticking - the bottom
     action bar keeps Call / WhatsApp / Contact always in reach. */
  .site-header { position: static; }
  section { padding: 44px 0; }
  .section-tight { padding: 30px 0; }
  .feature-row { gap: 26px; margin-top: 30px; }
  .callout { padding: 26px 22px; margin-top: 30px; }
  /* Footer: one column on phones - two squeezed columns clipped the
     address and email off the right edge of the screen. */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid a { overflow-wrap: anywhere; }
  /* v1.75: banner images stay clean on phones - the descriptive
     paragraph is hidden, keeping just the kicker, headline and buttons.
     The paragraphs still show on tablets and desktops. */
  .hero .hero-sub,
  .page-hero > .container > p { display: none; }
  .page-hero { padding: 60px 0 46px; }
}

/* ---------- Accessibility: skip link & focus states ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coral);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
  font-family: var(--font-head);
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Print (rates page etc.) ---------- */
@media print {
  .topbar, .nav, .action-bar, .cta-band, footer, .btn { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 10px 0; }
  .page-hero h1, .page-hero p { color: #000; }
  body { font-size: 12px; }
}


/* ============================================================
   Mobile & Cross-Browser Optimization (Chrome, iOS, Android)
   ============================================================ */
a, button, input, select, textarea, label {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: clip;
  width: 100%;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea,
.filter-input,
.filter-select,
.comment-input {
  font-size: 16px !important; /* Prevents iOS forced viewport zoom */
  -webkit-appearance: none;
  appearance: none;
}

/* Checkboxes keep their native look with a clear checked state */
.checkbox-row input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.form-field select,
.filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2072a40' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px !important;
}

.btn, .nav-toggle, .action-bar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* v1.83: the 500px minimum forced sideways scrolling on phones - the
   tables are simple two-column lists, so on phones they fit the screen
   with the item name wrapping and the price pinned right. */
@media (min-width: 721px) {
  .rate-table { min-width: 500px; }
}
@media (max-width: 720px) {
  .rate-table th, .rate-table td { padding: 12px 14px; }
}

@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
  .btn-secondary:hover { background: var(--teal-dark); transform: translateY(-2px); }
  .btn-ghost:hover { background: rgba(255,255,255,0.12); }
  .btn-outline:hover { background: var(--teal); color: #fff; }
}

.action-bar {
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
}

@media (max-width: 720px) {
  .checkbox-row label {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    min-height: 44px;
    width: 100%;
  }
  .checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--teal);
  }
}

/* Hide mobile hamburger toggle on desktop screens */
.nav-toggle { display: none !important; }

@media (max-width: 960px) {
  .nav-toggle {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
  }
}


/* ======= Boat photo carousels (About page) ======= */
.carousel { position: relative; margin-top: 16px; }
.carousel-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; border-radius: 12px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; height: 230px; background-size: cover; background-position: center; border-radius: 12px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(7,42,64,0.65); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.carousel-btn:hover { background: var(--teal); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* ---------- Review strip ---------- */
.review-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:30px; }
.review-card { background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:24px 22px; text-align:left; }
.review-card .stars { color:#f0a500; letter-spacing:2px; font-size:1rem; }
.review-card blockquote { margin:12px 0 10px; font-size:1.02rem; color:var(--ink); font-style:italic; }
.review-card cite { color:var(--ink-soft); font-style:normal; font-size:0.88rem; }
@media (max-width: 860px) { .review-strip { grid-template-columns:1fr; } }

/* ---------- Stacked feature images (tall text columns) ---------- */
.feature-img-stack { display: flex; flex-direction: column; gap: 18px; }
.feature-img-stack .feature-img { flex: 1 1 0; min-height: 240px; }
/* .fill: stack stretches to match the text column height (larger panes) */
.feature-row > .feature-img-stack.fill { align-self: stretch; }

/* ---------- Live availability card (hidden until the booking API answers) ---------- */
.live-strip { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 14px; padding: 16px 20px; margin: 22px auto 4px; max-width: 720px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.live-strip[hidden] { display: none; }
.live-strip .live-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(15,163,177,0.5); animation: livepulse 2s infinite; }
.live-strip.urgent { border-left-color: var(--coral); }
.live-strip.urgent .live-dot { background: var(--coral); box-shadow: 0 0 0 0 rgba(204,68,38,0.45); }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(15,163,177,0.45); } 70% { box-shadow: 0 0 0 10px rgba(15,163,177,0); } 100% { box-shadow: 0 0 0 0 rgba(15,163,177,0); } }
@media (prefers-reduced-motion: reduce) { .live-strip .live-dot { animation: none; } }
.live-strip .live-copy { flex: 1; min-width: 180px; }
.live-strip .live-copy strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.live-strip .live-copy span { color: var(--ink-soft); font-size: 0.82rem; }
.live-strip .btn { margin: 0; flex: 0 0 auto; }
@media (max-width: 560px) { .live-strip { flex-wrap: wrap; } .live-strip .btn { width: 100%; text-align: center; } }

/* ---------- Booking overlay (boat dives only, appears when booking is live) ---------- */
.booking-overlay { position: fixed; inset: 0; background: rgba(4,24,36,0.72); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 18px; }
.booking-overlay[hidden] { display: none; }
.booking-box { position: relative; width: min(760px, 100%); height: min(86vh, 900px); background: var(--sand); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.booking-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.booking-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.4rem; cursor: pointer; }
.booking-close:hover { background: var(--coral); }
@media (max-width: 640px) { .booking-overlay { padding: 0; } .booking-box { width: 100%; height: 100%; border-radius: 0; } }
/* ---------- DEMO box (internal, remove before launch) ---------- */
[data-demo-box] { max-width: 1080px; margin: 10px auto 0; padding: 10px 16px; border: 2px dashed var(--coral); border-radius: 12px; background: #fff8f4; color: var(--ink); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
[data-demo-box][hidden] { display: none; }
[data-demo-box] input, [data-demo-box] button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 0.8rem Inter, sans-serif; cursor: pointer; }
[data-demo-box] button:hover { background: var(--sand); }

/* Un-dimmed banners (v1.44) + corner scrim (v1.47): hero images show at full
   brightness; a soft radial scrim darkens only the area around the text and
   fades to fully bright, so the water and reef colors stay vivid. */
.hero h1, .hero p, .hero .eyebrow,
.page-hero h1, .page-hero p, .page-hero .eyebrow,
.hero-badges span, .breadcrumbs, .breadcrumbs a {
  text-shadow: 0 1px 6px rgba(4,24,36,0.5);
}
.hero .btn, .page-hero .btn { box-shadow: 0 4px 18px rgba(4,24,36,0.45); }
.hero, .page-hero { position: relative; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(95% 130% at 16% 62%,
    rgba(3,18,28,0.78) 0%, rgba(3,18,28,0.45) 42%, rgba(3,18,28,0) 70%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }

/* v1.49: callout descriptions read across more of the banner (Kelly);
   v1.73: centered as a block so multi-line text no longer sits left of the heading */
.callout p { max-width: 900px; margin-left: auto; margin-right: auto; }

/* v1.50: phone-specific photo focal points - on narrow screens some banner
   subjects sit right of center and were cropped out; --mbp sets the focus. */
@media (max-width: 720px) {
  [data-mobile-bg-pos] { background-position: var(--mbp) !important; }
}

/* v1.55: perfectly align all top-level nav items - the two dropdown links
   (Dive, About) rendered taller/higher than their plain siblings. */
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
