/* ════════════════════════════════════════════════════════════════════
 * dive-trips.css — Curated Dive Trips module (idive.in)
 * Prefix: cdt-   ·   Loads on top of: /assets/css/styles.css (layer 1)
 * Owns: /dive-trips/ listing, /dive-trips/<id>/ detail, /dive-trips/terms/.
 * Self-contained crowdfunding UI: campaign cards, slot odometer, escrow
 * countdown, status badges, eligibility panels, reserve modal.
 * Per CSS-MODULES.md: never style another module's prefix; bump ?v= on edit.
 * ════════════════════════════════════════════════════════════════════ */

.cdt-body { background: var(--bg-soft, #f8fdff); }
.cdt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Section header (kicker → h2 → sub) ── */
.cdt-sechead { margin: 0 0 26px; text-align: center; }
.cdt-kicker {
  font-family: 'Josefin Sans', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary, #0d9488);
  margin: 0 0 8px;
}
.cdt-sechead h2 {
  font-family: 'Josefin Sans', sans-serif; font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 600; line-height: 1.14; letter-spacing: -0.015em;
  color: var(--deep, #164e63); margin: 0;
}
.cdt-sechead p {
  font-size: 14.5px; line-height: 1.6; color: var(--muted, #475569);
  margin: 10px auto 0; max-width: 760px; /* centered header: center the lede block too */
}

/* ════════════════ HERO ════════════════ */
.cdt-hero { position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 460px; padding: 100px 0 64px; isolation: isolate; }
/* vertically centered; width:100% forces the wrap to fill its max-width (the base
   .cdt-wrap margin:0 auto would otherwise shrink it to content + centre it in flex),
   and 1360px matches the header container so content left-aligns with the logo */
.cdt-hero > .cdt-wrap { width: 100%; max-width: 1360px; text-align: left; }
.cdt-hero-bg { position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; transform: scale(1.04); }
.cdt-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,63,83,.72) 0%, rgba(12,63,83,.38) 45%, rgba(12,63,83,.08) 70%); }
.cdt-hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: #a7f3ef; margin: 0 0 10px;
}
.cdt-hero h1 {
  font-family: 'Josefin Sans', sans-serif; font-size: 42px;
  font-weight: 600; line-height: 1.05; letter-spacing: -0.5px; margin: 0 0 12px; color: #fff;
}
.cdt-hero h1 em { font-style: normal; color: #67e8f9; }
.cdt-hero-lede { font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,.92); max-width: 680px; margin: 0 0 22px; }
.cdt-hero-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.cdt-hero-stats > div { display: flex; flex-direction: column; }
.cdt-hero-stats strong {
  font-family: 'Josefin Sans', sans-serif; font-size: 26px;
  font-weight: 600; color: #fff; line-height: 1;
}
.cdt-hero-stats span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-top: 5px; }

/* ════════════════ STICKY FILTER BAR ════════════════ */
.cdt-filterbar { position: sticky; top: 72px; z-index: 40; /* site header is 72px desktop / 60px mobile (see @media below) */
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, rgba(6,182,212,.16)); }
.cdt-filterbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cdt-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cdt-pill {
  font-family: 'Josefin Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em; color: var(--deep, #164e63);
  background: #fff; border: 1.5px solid var(--border, rgba(6,182,212,.18));
  padding: 8px 15px; border-radius: 100px; cursor: pointer; white-space: nowrap;
  transition: all .18s ease; display: inline-flex; align-items: center; gap: 7px;
}
.cdt-pill:hover { border-color: var(--primary, #06b6d4); }
.cdt-pill.is-active { background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(29,78,216,.24); }
.cdt-pill-count { font-size: 11px; font-weight: 700; opacity: .72; }
.cdt-pill.is-active .cdt-pill-count { opacity: .9; }

.cdt-tools { display: flex; align-items: center; gap: 10px; }
.cdt-sort { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--deep);
  background: #fff; border: 1.5px solid var(--border); border-radius: 100px;
  padding: 8px 14px; cursor: pointer; }

/* ─── Custom glassmorphic sort dropdown (mirrors the liveaboards menu) ─── */
select#cdt-sort.cdt-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cdt-sortmenu { position: relative; display: inline-flex; }
.cdt-sortmenu-btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--deep, #164e63);
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.62) 100%);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55); border-radius: 100px;
  box-shadow: 0 2px 8px rgba(6,95,120,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 9px 14px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.cdt-sortmenu-btn:hover { border-color: rgba(6,182,212,0.5); box-shadow: 0 4px 12px rgba(6,182,212,0.16), inset 0 1px 0 rgba(255,255,255,0.6); }
.cdt-sortmenu-caret { font-size: .7rem; color: var(--primary, #06b6d4); transition: transform .2s ease; margin-left: 2px; }
.cdt-sortmenu.open .cdt-sortmenu-caret { transform: rotate(180deg); }
.cdt-sortmenu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 230px; display: none; flex-direction: column; gap: 2px; padding: 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 100%);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 16px 44px rgba(6,95,120,0.20), 0 4px 12px rgba(6,182,212,0.08), inset 0 1px 0 rgba(255,255,255,0.7); }
.cdt-sortmenu.open .cdt-sortmenu-panel { display: flex; animation: cdtSortIn .16s ease; }
@keyframes cdtSortIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cdt-sortmenu-opt {
  text-align: left; background: transparent; border: 0; border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--deep, #164e63);
  cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.cdt-sortmenu-opt:hover { background: rgba(6,182,212,0.10); }
.cdt-sortmenu-opt.is-active {
  background: linear-gradient(135deg, rgba(16,185,129,0.16) 0%, rgba(6,182,212,0.16) 100%);
  color: var(--deep, #164e63); font-weight: 700; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cdt-sortmenu-btn, .cdt-sortmenu-panel { background: rgba(255,255,255,0.97); }
}
.cdt-mini-toggle { display: flex; gap: 6px; }
.cdt-chip {
  font-family: 'Roboto', sans-serif; font-size: 12.5px; font-weight: 500;
  color: var(--muted, #475569); background: var(--primary-soft, #ecfeff);
  border: 1px solid var(--border, rgba(6,182,212,.18)); padding: 6px 12px;
  border-radius: 100px; cursor: pointer; white-space: nowrap; transition: all .18s ease;
}
.cdt-chip:hover { border-color: var(--primary); color: var(--deep); }
.cdt-chip.is-active { background: var(--deep, #164e63); color: #fff; border-color: var(--deep); }

/* ════════════════ RESULTS + GRID ════════════════ */
.cdt-results { padding: 30px 0 16px; }
.cdt-count { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.cdt-count strong { color: var(--deep); }
.cdt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px; align-items: start; }
.cdt-empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.cdt-empty h3 { font-family: 'Josefin Sans', sans-serif; color: var(--deep); margin: 0 0 8px; }

/* ════════════════ CAMPAIGN CARD ════════════════ */
.cdt-card { display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 18px;
  text-decoration: none !important; color: var(--text, #0f172a);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; }
.cdt-card:hover { transform: translateY(-4px); border-color: var(--primary, #06b6d4);
  box-shadow: 0 18px 36px rgba(6,182,212,.16), 0 6px 14px rgba(15,23,42,.06); }

.cdt-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 18px 18px 0 0; background: var(--bg2, #f0fdff); }
.cdt-card-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; }
.cdt-card:hover .cdt-card-img img { transform: scale(1.05); }
.cdt-card-grad { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,42,56,.55) 0%, rgba(12,42,56,0) 42%); }

.cdt-card-month { position: absolute; top: 12px; left: 12px;
  font-family: 'Josefin Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(15,23,42,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 100px; }
.cdt-card-statuswrap { position: absolute; top: 12px; right: 12px; }
.cdt-card-fmt { position: absolute; bottom: 12px; left: 12px;
  font-family: 'Josefin Sans', sans-serif; font-size: 11px; font-weight: 600;
  color: #fff; display: inline-flex; align-items: center; gap: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.cdt-card-fmt i { font-size: 11px; }

.cdt-card-body { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px 18px; flex: 1; position: relative; }
.cdt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cdt-card-title { font-family: 'Josefin Sans', sans-serif; font-size: 20px; font-weight: 600;
  color: var(--deep, #164e63); line-height: 1.16; letter-spacing: -0.2px; margin: 0; }
.cdt-card-dest { font-size: 12.5px; color: var(--muted); margin: 3px 0 0;
  display: inline-flex; align-items: center; gap: 5px; }
.cdt-card-tag { font-size: 13px; }
.cdt-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15,23,42,.10); }

/* "How this works?" tooltip, inline beside the odometer note (card is overflow:hidden) */
.cdt-howtip { position: static; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--primary, #06b6d4); cursor: pointer; outline: none; white-space: nowrap; }
.cdt-howtip > i { font-size: 11px; }
/* Anchored to .cdt-card-body and centered, so it can never be clipped or overflow the card */
.cdt-howtip-pop { display: block; position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30;
  width: auto; padding: 13px 15px; border-radius: 12px; background: #fff;
  border: 1px solid var(--border, rgba(6,182,212,.18)); box-shadow: 0 14px 34px rgba(13,43,54,.18);
  color: var(--muted, #475569); font-size: 11.5px; font-weight: 400; line-height: 1.5; text-align: left;
  white-space: normal; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; }
.cdt-howtip-pop strong { display: block; color: var(--deep, #164e63); font-size: 12.5px; margin-bottom: 5px; padding-right: 18px; }
.cdt-howtip-close { position: absolute; top: 6px; right: 7px; width: 20px; height: 20px; display: flex;
  align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: var(--muted, #475569);
  cursor: pointer; border-radius: 50%; transition: background .15s ease, color .15s ease; }
.cdt-howtip-close:hover { background: rgba(15,23,42,.08); color: var(--deep, #164e63); }
.cdt-howtip.is-open .cdt-howtip-pop { visibility: visible; opacity: 1; pointer-events: auto; }
/* Desktop (hover-capable): open on hover, close on hover-out — no close button needed */
@media (hover: hover) {
  .cdt-howtip:hover .cdt-howtip-pop { visibility: visible; opacity: 1; pointer-events: auto; }
  .cdt-howtip-close { display: none; }
}
.cdt-howtip-link { display: inline-block; margin-top: 8px; color: var(--primary, #06b6d4); font-weight: 700; cursor: pointer; }
.cdt-howtip-link:hover { text-decoration: underline; }

.cdt-card-elig { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cdt-elig-label { font-size: 11.5px; font-weight: 700; color: var(--deep, #164e63); }

/* "You'll see" marine-sightings row (text pills; "+N more" reveals the rest) */
.cdt-card-see { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.cdt-see-label { font-size: 11.5px; font-weight: 700; color: var(--deep, #164e63); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding-top: 4px; }
.cdt-see-label i { color: var(--primary, #06b6d4); font-size: 11px; }
.cdt-see-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cdt-see-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px;
  background: rgba(6,182,212,.10); color: var(--deep, #164e63); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cdt-see-pill.is-extra { display: none; }
.cdt-card-see.is-expanded .cdt-see-pill.is-extra { display: inline-flex; }
.cdt-see-more { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px;
  background: rgba(15,23,42,.06); color: var(--primary, #06b6d4); font-size: 11.5px; font-weight: 700;
  border: 0; cursor: pointer; font-family: inherit; transition: background .15s ease; }
.cdt-see-more:hover { background: rgba(6,182,212,.16); }
.cdt-card-see.is-expanded .cdt-see-more { display: none; }

.cdt-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cdt-card-foot { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(6,182,212,.12); }
.cdt-card-price { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cdt-card-price strong { display: block; font-family: 'Josefin Sans', sans-serif;
  font-size: 21px; font-weight: 700; color: var(--deep); }
.cdt-card-price .cdt-dep { color: var(--secondary, #0d9488); font-weight: 600; font-size: 11.5px; }
.cdt-card-cta { font-family: 'Josefin Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  padding: 10px 16px; border-radius: 100px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 6px 16px rgba(29,78,216,.24);
  transition: transform .2s ease; }
.cdt-card:hover .cdt-card-cta { transform: translateY(-1px); }

/* ════════════════ SLOT ODOMETER (shared) ════════════════ */
.cdt-odo { display: flex; flex-direction: column; gap: 6px; }
.cdt-odo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cdt-odo-label { font-family: 'Roboto', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--deep, #164e63); display: inline-flex; align-items: center; gap: 6px; }
.cdt-odo-label i { color: var(--primary, #06b6d4); font-size: 12px; }
.cdt-odo-count { font-family: 'Josefin Sans', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--secondary, #0d9488); }
.cdt-odo-bar { position: relative; height: 9px; background: #e2e8f0; border-radius: 100px; overflow: hidden; }
.cdt-odo-fill { position: absolute; inset: 0 auto 0 0; height: 100%; width: 0;
  background: linear-gradient(90deg, #06b6d4 0%, #0d9488 100%); border-radius: 100px;
  transition: width .6s cubic-bezier(.4,0,.2,1); }
.cdt-odo-fill.is-confirmed { background: linear-gradient(90deg, #10b981 0%, #0d9488 100%); }
.cdt-odo-fill.is-full { background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%); }
/* milestone marker = minViable (guarantee line) */
.cdt-odo-mark { position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--accent, #f59e0b); border-radius: 2px; }
.cdt-odo-note { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.cdt-odo-note strong { color: var(--secondary, #0d9488); }

/* ════════════════ STATUS BADGE (shared) ════════════════ */
.cdt-status { font-family: 'Josefin Sans', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px 4px; border-radius: 100px;
  color: #fff; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.cdt-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cdt-status.is-pending { background: rgba(255,255,255,.96); color: var(--deep, #164e63); }
.cdt-status.is-confirmed { background: linear-gradient(135deg, #10b981 0%, #0d9488 100%); }
.cdt-status.is-confirmed .dot { animation: cdt-pulse 1.6s ease-in-out infinite; }
.cdt-status.is-full { background: #94a3b8; }
.cdt-status.is-closed { background: #64748b; }
@keyframes cdt-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }

/* ════════════════ COUNTDOWN (shared) ════════════════ */
.cdt-countdown { display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Roboto', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cdt-countdown i { color: var(--primary, #06b6d4); }
.cdt-countdown b { font-family: 'Roboto Mono', ui-monospace, monospace; font-weight: 700;
  font-size: 13px; color: var(--accent-hover, #d97706); letter-spacing: .01em; }
.cdt-countdown.is-closed b { color: #94a3b8; }

/* ════════════════ ELIGIBILITY CHIP (shared) ════════════════ */
.cdt-elig-chip { display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--deep, #164e63);
  background: var(--primary-soft, #ecfeff); border: 1px solid var(--border, rgba(6,182,212,.18));
  padding: 4px 10px; border-radius: 100px; }
.cdt-elig-chip i { color: var(--primary, #06b6d4); font-size: 10.5px; }

/* ════════════════ "HOW IT WORKS" BAND ════════════════ */
.cdt-how { padding: 64px 0; background: #fff; border-top: 1px solid var(--border); }
.cdt-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 14px; }
.cdt-how-step { position: relative; padding: 24px 20px; border-radius: var(--radius-lg, 18px);
  background: var(--bg-soft, #f8fdff); border: 1px solid var(--border); }
.cdt-how-num { width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%); color: #fff;
  font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cdt-how-step h3 { font-family: 'Josefin Sans', sans-serif; font-size: 16.5px; font-weight: 600;
  color: var(--deep); margin: 0 0 7px; }
.cdt-how-step p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.cdt-how-step .cdt-how-ico { position: absolute; top: 22px; right: 20px; color: var(--primary);
  opacity: .35; font-size: 18px; }

/* ── Final CTA — match the liveaboards "marine-cta" (dark-ocean banner + glass button) ── */
body.dive-trips-archive-body .final-cta {
  background:
    linear-gradient(135deg,
      rgba(15, 23, 42, 0.62) 0%,
      rgba(15, 23, 42, 0.38) 50%,
      rgba(6, 95, 120, 0.62) 100%),
    url('/marine-life/images/marine-cta-banner.webp?v=202605222345') center/cover no-repeat;
}
body.dive-trips-archive-body .final-cta::before { display: none; }
body.dive-trips-archive-body .final-cta .hero-cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.12) 100%) !important;
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: #fff !important; border: 1.5px solid rgba(255,255,255,0.42) !important;
  padding: 12px 22px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 10px; line-height: 1;
  box-shadow: 0 6px 18px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(255,255,255,0.10);
  transition: all .25s ease;
}
body.dive-trips-archive-body .final-cta .hero-cta:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.18) 100%) !important;
  border-color: rgba(255,255,255,0.62) !important; color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.26), inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(255,255,255,0.14);
}
body.dive-trips-archive-body .final-cta .hero-cta i { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; }
body.dive-trips-archive-body .final-cta .hero-cta .fa-whatsapp { font-size: 18px; color: #fff; }
body.dive-trips-archive-body .final-cta .hero-cta .cta-arrow { font-size: 12px; transition: transform .25s ease; opacity: .85; }
body.dive-trips-archive-body .final-cta .hero-cta:hover .cta-arrow { transform: translateX(3px); opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.dive-trips-archive-body .final-cta .hero-cta { background: rgba(255,255,255,0.22) !important; }
}

/* ════════════════ DETAIL PAGE ════════════════ */
.cdt-d-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: 104px 0 40px; /* clears the 72px fixed site header */ }
.cdt-d-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cdt-d-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(12,63,83,.92) 0%, rgba(13,148,136,.62) 60%, rgba(6,95,120,.45) 100%); }
.cdt-crumbs { font-size: 12.5px; color: rgba(255,255,255,.82); margin: 0 0 18px; }
.cdt-crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.cdt-crumbs a:hover { color: #fff; }
.cdt-crumbs span { margin: 0 7px; opacity: .6; }
.cdt-d-eyebrow { font-family: 'Josefin Sans', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #a7f3ef; margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cdt-d-hero h1 { font-family: 'Josefin Sans', sans-serif; font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; max-width: 760px; }
.cdt-d-tagline { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.5; color: rgba(255,255,255,.92);
  max-width: 640px; margin: 0 0 20px; }
.cdt-d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cdt-d-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 13px; border-radius: 100px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cdt-d-chip i { font-size: 11px; opacity: .9; }

/* layout: content + sticky book card */
.cdt-d-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 44px 0 20px; align-items: start; }
.cdt-d-main { min-width: 0; }
.cdt-d-side { min-width: 0; }
.cdt-section { margin: 0 0 40px; }
.cdt-section > h2 { font-family: 'Josefin Sans', sans-serif; font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600; color: var(--deep, #164e63); margin: 0 0 16px; letter-spacing: -0.01em; }

/* highlights */
.cdt-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.cdt-highlights li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px;
  line-height: 1.5; color: var(--deep); }
.cdt-highlights i { color: var(--secondary, #0d9488); font-size: 14px; margin-top: 3px; flex-shrink: 0; }

/* itinerary */
.cdt-itin { list-style: none; padding: 0; margin: 0; }
.cdt-itin li { display: flex; gap: 16px; padding: 0 0 18px; position: relative; }
.cdt-itin li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 2px; background: var(--border, rgba(6,182,212,.2)); }
.cdt-itin-day { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft, #ecfeff); border: 1.5px solid var(--primary, #06b6d4);
  color: var(--deep); font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; z-index: 1; }
.cdt-itin-body strong { display: block; font-family: 'Josefin Sans', sans-serif; font-size: 15.5px;
  font-weight: 600; color: var(--deep); margin: 7px 0 4px; }
.cdt-itin-body p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* marine chips */
.cdt-marine { display: flex; flex-wrap: wrap; gap: 9px; }
.cdt-marine a, .cdt-marine span { display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--deep); background: #fff;
  border: 1px solid var(--border, rgba(6,182,212,.2)); padding: 8px 14px; border-radius: 100px;
  text-decoration: none; transition: all .18s ease; }
.cdt-marine a::before { content: '\f578'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 10px; color: var(--primary); }
.cdt-marine a:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }

/* eligibility panel */
.cdt-elig { background: var(--bg-soft, #f8fdff); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px); padding: 22px 24px; }
.cdt-elig-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cdt-elig-row:last-of-type { border-bottom: 0; }
.cdt-elig-row > i { color: var(--primary, #06b6d4); font-size: 16px; margin-top: 2px; width: 22px; text-align: center; flex-shrink: 0; }
.cdt-elig-row b { font-family: 'Josefin Sans', sans-serif; font-size: 14.5px; color: var(--deep); display: block; }
.cdt-elig-row span { font-size: 13px; color: var(--muted); }
.cdt-elig-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; font-size: 12.5px; line-height: 1.5; color: #9a3412; }
.cdt-elig-note i { color: #ea580c; margin-top: 2px; }
.cdt-elig-note a { color: #c2410c; font-weight: 600; }

/* inclusions / exclusions */
.cdt-inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cdt-inc-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg, 18px); padding: 20px 22px; }
.cdt-inc-col h3 { font-family: 'Josefin Sans', sans-serif; font-size: 15.5px; font-weight: 600;
  color: var(--deep); margin: 0 0 13px; display: flex; align-items: center; gap: 9px; }
.cdt-inc-col.is-in h3 i { color: var(--green, #22c55e); }
.cdt-inc-col.is-out h3 i { color: var(--coral, #e84545); }
.cdt-inc-col ul { list-style: none; padding: 0; margin: 0; }
.cdt-inc-col li { position: relative; padding: 8px 0 8px 24px; font-size: 13.5px; color: var(--deep);
  border-bottom: 1px solid var(--border); line-height: 1.45; }
.cdt-inc-col li:last-child { border-bottom: 0; }
.cdt-inc-col.is-in li::before { content: '\f00c'; }
.cdt-inc-col.is-out li::before { content: '\f00d'; }
.cdt-inc-col li::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute;
  left: 0; top: 9px; font-size: 12px; }
.cdt-inc-col.is-in li::before { color: var(--green, #22c55e); }
.cdt-inc-col.is-out li::before { color: var(--coral, #e84545); }

/* faqs */
.cdt-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; }
.cdt-faq summary { padding: 16px 20px; font-family: 'Josefin Sans', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--deep); cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; }
.cdt-faq summary::-webkit-details-marker { display: none; }
.cdt-faq summary::after { content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 12px; color: var(--primary); transition: transform .2s ease; }
.cdt-faq details[open] summary::after { transform: rotate(45deg); }
.cdt-faq .cdt-faq-a { padding: 0 20px 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ════════════════ STICKY BOOK CARD (detail) ════════════════ */
.cdt-book { position: sticky; top: calc(72px + 16px); background: #fff;
  border: 1px solid var(--border-strong, rgba(6,182,212,.3)); border-radius: var(--radius-xl, 24px);
  box-shadow: var(--shadow-lg, 0 14px 40px rgba(6,95,120,.14)); padding: 22px 22px 24px; }
.cdt-book-status { margin-bottom: 14px; }
.cdt-book-price { display: flex; align-items: baseline; gap: 8px; }
.cdt-book-price .amt { font-family: 'Josefin Sans', sans-serif; font-size: 30px; font-weight: 700; color: var(--deep); }
.cdt-book-price .per { font-size: 12.5px; color: var(--muted); }
.cdt-book-dep { font-size: 13px; color: var(--secondary, #0d9488); font-weight: 600; margin: 6px 0 16px; }
.cdt-book-dep .free { color: var(--green, #22c55e); }
.cdt-book .cdt-odo { margin: 16px 0; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.cdt-book-clock { display: flex; flex-direction: column; gap: 2px; margin: 16px 0;
  padding: 13px 15px; background: var(--primary-soft, #ecfeff); border: 1px solid var(--border);
  border-radius: var(--radius, 10px); }
.cdt-book-clock .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cdt-book-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 15px 18px; border: 0; border-radius: var(--radius, 10px); cursor: pointer;
  font-family: 'Josefin Sans', sans-serif; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  box-shadow: 0 8px 22px rgba(29,78,216,.32); transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none; margin-bottom: 10px; }
.cdt-book-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(29,78,216,.42); }
.cdt-book-cta:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }
.cdt-book-wa { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 13px 16px; border-radius: var(--radius, 10px); font-family: 'Roboto', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--deep); background: #fff;
  border: 1px solid var(--border-strong, rgba(6,182,212,.3)); text-decoration: none; transition: all .2s ease; }
.cdt-book-wa:hover { background: var(--primary-soft); border-color: var(--primary); }
.cdt-book-wa i { color: #25d366; }
.cdt-book-trust { list-style: none; padding: 16px 0 0; margin: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.cdt-book-trust li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.cdt-book-trust i { color: var(--secondary, #0d9488); width: 16px; text-align: center; }

/* ════════════════ RESERVE MODAL ════════════════ */
.cdt-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.cdt-modal.is-open { display: block; }
.cdt-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.cdt-modal-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94vw, 520px); max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 22px; box-shadow: 0 24px 60px rgba(6,95,120,.3); padding: 26px; }
.cdt-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--bg-soft, #f8fdff); border: 1px solid var(--border);
  font-size: 15px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.cdt-modal h3 { font-family: 'Josefin Sans', sans-serif; font-size: 21px; font-weight: 600;
  color: var(--deep); margin: 0 30px 4px 0; line-height: 1.2; }
.cdt-modal-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.cdt-modal-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; background: var(--primary-soft, #ecfeff); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 18px; }
.cdt-modal-summary .dep { font-family: 'Josefin Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--deep); }
.cdt-modal-summary .lab { font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.cdt-field { margin-bottom: 13px; }
.cdt-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--deep); margin-bottom: 6px; }
.cdt-field input { width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong, rgba(6,182,212,.3));
  border-radius: 10px; font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--text); background: #fff; }
.cdt-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,182,212,.12); }
.cdt-field-row { display: flex; gap: 12px; }
.cdt-field-row .cdt-field { flex: 1; }
.cdt-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; width: max-content; }
.cdt-stepper button { width: 40px; height: 42px; border: 0; background: var(--bg-soft); color: var(--deep); font-size: 18px; cursor: pointer; }
.cdt-stepper button:hover { background: var(--primary-soft); }
.cdt-stepper input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 15px; padding: 11px 0; border-radius: 0; }

.cdt-elig-gate { background: var(--bg-soft, #f8fdff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 6px 0 16px; }
.cdt-elig-gate .req { font-size: 12.5px; color: var(--deep); margin: 0 0 11px; display: flex; gap: 9px; align-items: flex-start; }
.cdt-elig-gate .req i { color: var(--primary); margin-top: 2px; }
.cdt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--deep); cursor: pointer; }
.cdt-check input { margin-top: 2px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--primary); }
.cdt-upsell-link { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--accent-hover, #d97706); text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; }

.cdt-modal-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 15px; border: 0; border-radius: 10px; cursor: pointer; font-family: 'Josefin Sans', sans-serif;
  font-size: 15.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  box-shadow: 0 8px 22px rgba(29,78,216,.3); transition: transform .2s ease; }
.cdt-modal-submit:hover:not(:disabled) { transform: translateY(-1px); }
.cdt-modal-submit:disabled { opacity: .55; cursor: not-allowed; }
.cdt-modal-fine { font-size: 11px; color: var(--dim, #94a3b8); text-align: center; margin: 12px 0 0; line-height: 1.5; }
.cdt-modal-fine a { color: var(--muted); }
.cdt-modal-msg { font-size: 12.5px; padding: 10px 12px; border-radius: 8px; margin: 12px 0 0; display: none; }
.cdt-modal-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* success state */
.cdt-modal-done { text-align: center; padding: 14px 6px; }
.cdt-modal-done .ico { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center; }
.cdt-modal-done h3 { margin-right: 0; margin-bottom: 8px; }
.cdt-modal-done p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }

/* ════════════════ UPSELL MODAL ════════════════ */
.cdt-upsell-card { text-align: center; padding: 8px 4px; }
.cdt-upsell-card .ico { font-size: 30px; color: var(--accent, #f59e0b); margin-bottom: 12px; }
.cdt-upsell-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.cdt-upsell-card .cdt-book-cta { margin-bottom: 0; }

/* ════════════════ TERMS PAGE ════════════════ */
.cdt-terms { max-width: 820px; margin: 0 auto; padding: 104px 24px 70px; /* clears the 72px fixed site header */ }
.cdt-terms h1 { font-family: 'Josefin Sans', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--deep); margin: 0 0 8px; }
.cdt-terms .lead { font-size: 15px; color: var(--muted); margin: 0 0 30px; line-height: 1.6; }
.cdt-terms h2 { font-family: 'Josefin Sans', sans-serif; font-size: 21px; font-weight: 600; color: var(--deep);
  margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.cdt-terms p, .cdt-terms li { font-size: 14px; line-height: 1.7; color: #334155; }
.cdt-terms ul { padding-left: 22px; }
.cdt-terms li { margin-bottom: 8px; }
.cdt-terms .cdt-terms-note { background: var(--primary-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; font-size: 13px; color: var(--deep); margin: 24px 0; }

/* ════════════════ MOBILE RESERVE BAR (detail, <=980px) ════════════════ */
.cdt-mobilebar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border, rgba(6,182,212,.16)); box-shadow: 0 -6px 20px rgba(15,23,42,.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; gap: 14px; }
.cdt-mobilebar-price { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.cdt-mobilebar-price strong { display: block; font-family: 'Josefin Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--deep); }
.cdt-mobilebar-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font-family: 'Josefin Sans', sans-serif; font-size: 14.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%); padding: 12px 20px; border-radius: 100px;
  box-shadow: 0 6px 16px rgba(29,78,216,.28); }
.cdt-mobilebar-cta:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 980px) {
  .cdt-d-layout { grid-template-columns: 1fr; }
  .cdt-book { position: static; }
  .cdt-how-grid { grid-template-columns: repeat(2, 1fr); }
  .cdt-mobilebar { display: flex; }
  .cdt-detail-body { padding-bottom: 76px; } /* clear the fixed mobile reserve bar */
}
@media (max-width: 900px) {
  .cdt-filterbar { top: 60px; } /* mobile site header is 60px */
}
@media (max-width: 640px) {
  .cdt-wrap { padding: 0 16px; }
  .cdt-hero { padding: 84px 0 40px; }     /* clear the 60px mobile header + breathing room */
  .cdt-hero h1 { font-size: 30px; }       /* match liveaboards mobile heading size */
  .cdt-d-hero { padding: 84px 0 32px; }
  .cdt-terms { padding: 84px 16px 56px; }
  .cdt-grid { grid-template-columns: 1fr; }
  .cdt-inc-grid { grid-template-columns: 1fr; }
  .cdt-how-grid { grid-template-columns: 1fr; }
  .cdt-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
  .cdt-filterbar-inner { padding: 10px 16px; }
  .cdt-tools { width: 100%; justify-content: space-between; }
  .cdt-modal-dialog { padding: 22px 18px; }
}
