/* ════════════════════════════════════════════════════════════════════════
   liveaboards.css — SELF-CONTAINED listing styles for the /liveaboards/ module.
   The block below is a FROZEN COPY of courses.css + dive-trips.css so that edits
   to those shared files can NEVER corrupt the liveaboards listing. The listing
   page now loads ONLY /assets/css/styles.css (global chrome) + this file.
   ⚠️  DO NOT hand-edit the frozen block. Put liveaboard-specific styles BELOW the
       "LIVEABOARDS OWN STYLES" marker near the end of this file.
   ════════════════════════════════════════════════════════════════════════ */

/* ─────────────── FROZEN: courses.css ─────────────── */
/* ─── Courses overview hero strip ─── */
/* The site header is position:fixed glass-morphic — hero needs top padding to
 * clear it. Matches the homepage hero convention (140px desktop / 84px mobile). */
.courses-hero {
  background: linear-gradient(135deg, #ecfeff 0%, #f8fdff 50%, #ffffff 100%);
  padding: 156px 24px 36px;
  border-bottom: 1px solid var(--border);
}
.courses-hero .section-wrap { max-width: 1400px; margin: 0 auto; }
.courses-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 500;
}
.courses-hero h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 42px;
  line-height: 1.05;
  color: var(--deep);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.courses-lede {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 0 22px;
}
.courses-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.courses-hero-stats > div { display: flex; flex-direction: column; }
.courses-hero-stats strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 26px;
  color: var(--deep);
  font-weight: 600;
  line-height: 1;
}
.courses-hero-stats span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 5px;
  font-family: 'Josefin Sans', sans-serif;
}

/* ─── Top category pill row (sticky below header) ─── */
.cat-tabs-wrap {
  position: sticky;
  top: 78px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.cat-tabs {
  display: flex;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
  border-radius: 100px;
  padding: 9px 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition, all .25s ease);
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.32);
}
.cat-tab-count {
  font-size: 11px;
  opacity: .75;
  font-weight: 500;
  padding: 1px 7px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 100px;
  letter-spacing: 0;
}
.cat-tab.active .cat-tab-count { background: rgba(255, 255, 255, 0.22); opacity: 1; }

/* ─── Courses-specific layout tweaks ─── */
.courses-main-layout { padding-top: 8px; }
.courses-archive-body .results-bar { padding: 18px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.courses-archive-body .content { padding: 0 24px 48px; min-width: 0; flex: 1; }

/* ─── Card-as-link fixes ─── */
/* The whole card is an <a>, so anchor underlines and link-blue would otherwise
 * leak into title/subtitle/price. Reset and re-apply text colour. */
.courses-archive-body .dest-card,
.courses-archive-body .dest-card:hover,
.courses-archive-body .dest-card:focus,
.courses-archive-body .dest-card:visited,
.courses-archive-body .dest-card * {
  text-decoration: none !important;
}
.courses-archive-body .dest-card { color: var(--text); }
.courses-archive-body .dest-card .card-name { color: var(--text); }
.courses-archive-body .dest-card .card-sub  { color: var(--muted); }
.courses-archive-body .dest-card .price-amount { color: var(--text); }
.courses-archive-body .dest-card .price-srp    { color: var(--dim); }
.courses-archive-body .dest-card .price-per    { color: var(--dim); }

/* Tighten the title → subtitle gap.
 * styles.css gives .card-name min-height for 2 lines (alignment) and .card-sub
 * margin-top: 4px — together that creates a wide gap when title is 1 line. */
.courses-archive-body .dest-card .card-name {
  margin: 0;
  min-height: 0;
  -webkit-line-clamp: 2;
  line-height: 1.18;
}
.courses-archive-body .dest-card .card-sub {
  margin-top: 2px;
  min-height: 0;
  line-height: 1.4;
}

/* Book button — uses the brand logo gradient (green → cyan → blue) like the
 * homepage hero "Plan with Laila" CTA. */
.courses-archive-body .dest-card .card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.96) 0%,
    rgba(6, 182, 212, 0.96) 50%,
    rgba(29, 78, 216, 0.96) 100%);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow:
    0 6px 18px rgba(29, 78, 216, 0.30),
    0 3px 10px rgba(16, 185, 129, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: var(--transition, all .2s ease);
}
.courses-archive-body .dest-card:hover .card-cta {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0ea371 0%, #0891b2 50%, #1e40af 100%);
  box-shadow:
    0 12px 26px rgba(29, 78, 216, 0.42),
    0 5px 14px rgba(16, 185, 129, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Special card badge variants */
.dest-card .card-season-badge.badge-school {
  background: #dbeafe; border-color: #93c5fd; color: #1e40af;
}
.dest-card .card-season-badge.badge-refresher {
  background: #fef3c7; border-color: #fcd34d; color: #92400e;
}
.dest-card .card-season-badge.badge-bestseller {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-color: #fcd34d;
  color: #78350f;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  font-family: 'Josefin Sans', sans-serif;
}
.no-results h3 {
  font-size: 22px;
  color: var(--deep);
  margin: 0 0 8px;
  font-weight: 600;
}
.no-results p { margin: 0 0 16px; font-size: 14px; }
.no-results .clear-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Range slider */
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); }
.range-val {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  min-width: 60px;
  text-align: right;
}

/* Mobile filter button */
.filter-btn-mobile { display: none; }

@media (max-width: 720px) {
  .courses-hero { padding: 100px 18px 24px; }
  .courses-hero h1 { font-size: 30px; }
  .courses-lede { font-size: 14.5px; }
  .courses-hero-stats { gap: 22px; }
  .courses-hero-stats strong { font-size: 22px; }
  .cat-tabs-wrap { top: 64px; }
  .cat-tabs { padding: 10px 16px; }
  .cat-tab { padding: 8px 14px; font-size: 12.5px; }

  .filter-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-soft);
    border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
    color: var(--deep);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
  }
  .filter-btn-mobile:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

  .courses-archive-body .content { padding: 0 16px 32px; }
}

/* ─── Archive hero banner (scoped to /courses/ only) ─── */
body.courses-only-archive-body .courses-hero {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.62) 0%,
      rgba(15, 23, 42, 0.30) 45%,
      rgba(15, 23, 42, 0.05) 70%),
    url('/assets/img/courses/archive-banner.webp') center/cover no-repeat;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}
body.courses-only-archive-body .courses-hero h1,
body.courses-only-archive-body .courses-hero .courses-eyebrow,
body.courses-only-archive-body .courses-hero .courses-lede,
body.courses-only-archive-body .courses-hero-stats strong,
body.courses-only-archive-body .courses-hero-stats span { color: #fff; }
body.courses-only-archive-body .courses-hero .courses-eyebrow { color: rgba(255,255,255,0.92); }
body.courses-only-archive-body .courses-hero .courses-lede,
body.courses-only-archive-body .courses-hero-stats span { color: rgba(255,255,255,0.85); }

/* ─────────────── FROZEN: dive-trips.css ─────────────── */
/* FlyingFish — Dive Trips archive page tweaks
 * Layered on top of /courses/courses.css. Only the deltas live here:
 *   - region-grouped destination filter
 *   - per-checkbox count chips
 *   - price slider note
 */

.filter-subgroup { margin-bottom: 14px; }
.filter-subgroup:last-child { margin-bottom: 0; }
.filter-subgroup-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #6b7c8a);
  margin: 0 0 6px;
}

.check-count {
  color: var(--muted, #8a98a4);
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 2px;
}

.range-note {
  font-size: 11.5px;
  color: var(--muted, #8a98a4);
  margin-top: 8px;
  line-height: 1.4;
}

/* Destination filter list is long (20+ entries grouped by region) — cap and scroll */
.dive-trips-archive-body .filter-section .filter-body { max-height: 480px; overflow-y: auto; }
.dive-trips-archive-body .filter-section.collapsed .filter-body { display: none; }

/* ─── Archive hero banner (scoped to /dive-trips/ only) ─── */
body.dive-trips-archive-body .courses-hero {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.62) 0%,
      rgba(15, 23, 42, 0.30) 45%,
      rgba(15, 23, 42, 0.05) 70%),
    url('/assets/img/dive-trips/archive-banner.webp') center/cover no-repeat;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}
body.dive-trips-archive-body .courses-hero h1,
body.dive-trips-archive-body .courses-hero .courses-eyebrow,
body.dive-trips-archive-body .courses-hero .courses-lede,
body.dive-trips-archive-body .courses-hero-stats strong,
body.dive-trips-archive-body .courses-hero-stats span { color: #fff; }
body.dive-trips-archive-body .courses-hero .courses-eyebrow { color: rgba(255,255,255,0.92); }
body.dive-trips-archive-body .courses-hero .courses-lede,
body.dive-trips-archive-body .courses-hero-stats span { color: rgba(255,255,255,0.85); }

/* ════════════════════════════════════════════════════════════════════════
   LIVEABOARDS OWN STYLES — edit below this line only.
   ════════════════════════════════════════════════════════════════════════ */
/* FlyingFish — Liveaboards feature styles
 * Layered on top of styles.css (tokens) + courses.css + dive-trips.css (listing
 * layout, filters) + destinations.css/destination.css (detail hero & sections).
 * Only liveaboard-specific deltas live here.
 */

/* ─── Listing hero banner (scoped to /liveaboards/) ─── */
body.liveaboards-archive-body .courses-hero {
  background:
    linear-gradient(90deg,
      rgba(12, 63, 83, 0.72) 0%,
      rgba(12, 63, 83, 0.38) 45%,
      rgba(12, 63, 83, 0.08) 70%),
    url('/liveaboards/images/liveaboards-banner.webp') center/cover no-repeat;
}

/* ─── Liveaboard cards use a 3:2 landscape image (match liveaboard.com; no dead
   space). Scoped to the liveaboards listing only — dive-trips/courses stay 1:1. ─── */
body.liveaboards-archive-body .cards-grid .card-hero { aspect-ratio: 3 / 2; }

/* ─── Tab bar as a contained rounded "box" like marine-life (.species-tabs-wrap),
   instead of the full-width strip. Scoped to liveaboards. ─── */
body.liveaboards-archive-body .cat-tabs-wrap {
  width: calc(100% - 48px);
  max-width: 1400px;
  margin: 16px auto 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.66) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(6, 95, 120, 0.08),
    0 2px 8px rgba(6, 182, 212, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
}
body.liveaboards-archive-body .cat-tabs {
  padding: 0 0 8px; max-width: none; margin: 0;
  scrollbar-width: thin;                                   /* visible thin scrollbar (Firefox) */
  scrollbar-color: rgba(6, 182, 212, 0.35) transparent;
}
body.liveaboards-archive-body .cat-tabs::-webkit-scrollbar { display: block; height: 6px; }
body.liveaboards-archive-body .cat-tabs::-webkit-scrollbar-track { background: transparent; }
body.liveaboards-archive-body .cat-tabs::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.35); border-radius: 100px; }
body.liveaboards-archive-body .cat-tabs::-webkit-scrollbar-thumb:hover { background: rgba(6, 182, 212, 0.6); }

/* ─── Category pills styled like the marine-life tabs (scoped to liveaboards) ─── */
body.liveaboards-archive-body .cat-tab {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(6, 182, 212, 0.18);
  box-shadow: 0 1px 3px rgba(6, 95, 120, 0.04);
}
body.liveaboards-archive-body .cat-tab:hover {
  border-color: var(--primary, #06b6d4);
  color: var(--deep, #164e63);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.18);
}
body.liveaboards-archive-body .cat-tab.active {
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.96) 0%,
    rgba(6, 182, 212, 0.96) 50%,
    rgba(29, 78, 216, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(29, 78, 216, 0.16),
    0 2px 6px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
body.liveaboards-archive-body .cat-tab.active:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(29, 78, 216, 0.22),
    0 3px 8px rgba(16, 185, 129, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* ─── "Why liveaboard" band on the listing page ─── */
.lb-why {
  background: var(--bg2, #f0fdff);
  border-top: 1px solid var(--border, rgba(6,182,212,0.16));
  padding: 48px 0 56px;
}
.lb-why h2 {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--deep, #164e63);
}
.lb-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lb-why-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(6,182,212,0.16));
  border-radius: var(--radius-lg, 18px);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(6,95,120,0.06));
}
.lb-why-item i {
  font-size: 1.6rem;
  color: var(--primary, #06b6d4);
  margin-bottom: 10px;
}
.lb-why-item h3 { margin: 6px 0 6px; font-size: 1.02rem; color: var(--text, #0f172a); }
.lb-why-item p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted, #475569); }
@media (max-width: 900px) { .lb-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .lb-why { padding: 36px 16px 42px; }          /* side spacing so cards don't touch edges */
  .lb-why h2 { margin-bottom: 18px; }
  .lb-why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }   /* 2×2 on mobile */
  .lb-why-item { padding: 18px 12px; border-radius: 14px; }
  .lb-why-item i { font-size: 1.35rem; margin-bottom: 7px; }
  .lb-why-item h3 { font-size: .9rem; }
  .lb-why-item p { font-size: .76rem; line-height: 1.4; }
}

/* ─── Detail page: spec-card rows ─── */
.dest-spec-card .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border, rgba(6,182,212,0.14));
  font-size: 0.92rem;
}
.dest-spec-card .spec-row:last-of-type { border-bottom: 0; }
.dest-spec-card .spec-k { color: var(--muted, #475569); }
.dest-spec-card .spec-v { color: var(--text, #0f172a); font-weight: 600; text-align: right; }
.lb-spec-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
  padding: 11px 14px;
  border-radius: var(--radius, 10px);
  background: var(--primary, #06b6d4);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition, all .25s ease);
}
.lb-spec-cta:hover { background: var(--primary-hover, #0891b2); }

/* ─── Detail page: highlights ─── */
.lb-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.lb-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text, #0f172a);
  line-height: 1.45;
}
.lb-highlights li i { color: var(--secondary, #0d9488); margin-top: 3px; }
@media (max-width: 640px) { .lb-highlights { grid-template-columns: 1fr; } }

/* ─── Detail page: itinerary ─── */
.lb-subhead { margin: 28px 0 12px; font-size: 1.1rem; color: var(--deep, #164e63); }
.lb-itinerary { margin: 0; padding-left: 0; list-style: none; counter-reset: itin; }
.lb-itin-item {
  position: relative;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--border, rgba(6,182,212,0.16));
  border-radius: var(--radius, 10px);
  margin-bottom: 10px;
  background: var(--bg-soft, #f8fdff);
}
.lb-itin-item::before {
  counter-increment: itin;
  content: counter(itin);
  position: absolute;
  left: 12px; top: 12px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary, #06b6d4);
  color: #fff; font-weight: 700; font-size: 0.8rem;
}
.lb-itin-item strong { display: block; color: var(--text, #0f172a); }
.lb-itin-item span { display: block; margin-top: 3px; font-size: 0.9rem; color: var(--muted, #475569); }

/* ─── Detail page: marine chips ─── */
.lb-marine-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-marine-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft, #ecfeff);
  border: 1px solid var(--border-strong, rgba(6,182,212,0.3));
  color: var(--deep, #164e63);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition, all .25s ease);
}
a.lb-marine-chip:hover { background: var(--primary, #06b6d4); color: #fff; border-color: var(--primary, #06b6d4); }
.lb-marine-chip.is-static { background: var(--bg3, #e0f7fa); cursor: default; }

/* ─── Detail page: affiliate book box ─── */
.lb-book-section { padding-bottom: 8px; }
.lb-book {
  background: linear-gradient(135deg, var(--deep, #164e63), var(--secondary, #0d9488));
  border-radius: var(--radius-xl, 24px);
  padding: 34px 30px;
  color: #fff;
  box-shadow: var(--shadow-lg, 0 14px 40px rgba(6,95,120,0.14));
}
.lb-book h2 { margin: 0 0 8px; color: #fff; }
.lb-book-copy p { margin: 0 0 16px; color: rgba(255,255,255,0.9); max-width: 60ch; line-height: 1.55; }
.lb-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: var(--radius-lg, 18px);
  background: var(--accent, #f59e0b);
  color: #1a1205;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: var(--transition, all .25s ease);
}
.lb-book-btn:hover { background: var(--accent-hover, #d97706); transform: translateY(-1px); }
.lb-book-note { font-size: 0.82rem; color: rgba(255,255,255,0.78); margin: 14px 0 0; }
.lb-book-note a { color: #fff; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════
   DETAIL PAGE v2 — premium liveaboard layout (gallery, facilities,
   specs, cabins, itineraries, included). Layered on destination.css.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Hero: rating badge, price/day, quick amenity chips ─── */
.lb-hero-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.lb-rating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.88rem; color: #fff;
}
.lb-rating-badge i { color: #fcd34d; }
.lb-rating-badge strong { font-weight: 800; }
.lb-rating-count { color: rgba(255, 255, 255, 0.82); font-weight: 500; }

.lb-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.lb-hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 13px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: #fff;
}
.lb-hero-chip i { font-size: 0.85rem; color: #a5f3fc; }

/* ─── Gallery ─── */
.lb-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lb-gallery-item {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius, 12px); overflow: hidden;
  aspect-ratio: 3 / 2; background: var(--bg2, #f0fdff);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(6,95,120,0.06));
}
.lb-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lb-gallery-item:hover img { transform: scale(1.07); }
/* First image spans 2×2 for a hero-grid feel */
.lb-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.lb-gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px; text-align: left;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0; transition: opacity .25s ease;
}
.lb-gallery-item:hover .lb-gallery-cap { opacity: 1; }
@media (max-width: 760px) {
  .lb-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

/* ─── Lightbox ─── */
.lb-lightbox {
  position: fixed; inset: 0; z-index: 4000;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 18, 26, 0.92); padding: 4vh 4vw;
}
.lb-lightbox.is-open { display: flex; }
.lb-lb-figure { margin: 0; max-width: 100%; max-height: 92vh; text-align: center; }
.lb-lb-img { max-width: 100%; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-lb-cap { color: #fff; margin-top: 12px; font-size: 0.95rem; }
.lb-lb-close, .lb-lb-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .2s ease;
}
.lb-lb-close { top: 18px; right: 22px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-lb-prev { left: 18px; } .lb-lb-next { right: 18px; }
.lb-lb-close:hover, .lb-lb-nav:hover { background: rgba(255,255,255,0.26); }
@media (max-width: 640px) { .lb-lb-nav { width: 42px; height: 42px; font-size: 1.6rem; } .lb-lb-prev { left: 6px; } .lb-lb-next { right: 6px; } }

/* ─── On-board facilities grid ─── */
.lb-facilities {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.lb-fac {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius, 12px);
  background: var(--card-bg, #fff); border: 1px solid var(--border, rgba(6,182,212,0.16));
  font-size: 0.94rem; font-weight: 600; color: var(--text, #0f172a);
}
.lb-fac i { font-size: 1.1rem; color: var(--primary, #06b6d4); width: 22px; text-align: center; flex-shrink: 0; }
.lb-fac-tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lb-fac-tag.is-free { background: #dcfce7; color: #15803d; }
.lb-fac-tag.is-paid { background: #f1f5f9; color: #64748b; }

/* ─── Boat: spec tiles ─── */
.lb-spec-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  margin: 4px 0 8px;
}
.lb-spec-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  padding: 18px 12px; border-radius: var(--radius, 12px);
  background: var(--bg-soft, #f8fdff); border: 1px solid var(--border, rgba(6,182,212,0.16));
}
.lb-spec-tile i { font-size: 1.25rem; color: var(--secondary, #0d9488); margin-bottom: 4px; }
.lb-spec-tile strong { font-size: 1.05rem; color: var(--deep, #164e63); }
.lb-spec-tile span { font-size: 0.78rem; color: var(--muted, #475569); text-transform: uppercase; letter-spacing: 0.02em; }

/* ─── Boat: feature columns ─── */
.lb-feat-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 6px; }
.lb-feat-col h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; color: var(--deep, #164e63); }
.lb-feat-col h4 i { color: var(--primary, #06b6d4); }
.lb-feat-col ul { list-style: none; margin: 0; padding: 0; }
.lb-feat-col li { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-size: 0.9rem; color: var(--text, #0f172a); line-height: 1.4; }
.lb-feat-col li i { color: var(--secondary, #0d9488); font-size: 0.8rem; margin-top: 4px; }
@media (max-width: 760px) { .lb-feat-cols { grid-template-columns: 1fr; gap: 18px; } }

/* ─── Boat: cabins ─── */
.lb-cabins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lb-cabin {
  border-radius: var(--radius-lg, 16px); overflow: hidden;
  background: var(--card-bg, #fff); border: 1px solid var(--border, rgba(6,182,212,0.16));
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(6,95,120,0.06));
}
.lb-cabin-img { aspect-ratio: 4 / 3; overflow: hidden; }
.lb-cabin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-cabin-body { padding: 14px 16px 16px; }
.lb-cabin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lb-cabin-head strong { font-size: 1.02rem; color: var(--deep, #164e63); }
.lb-cabin-deck { font-size: 0.75rem; color: var(--muted, #475569); background: var(--bg2, #f0fdff); padding: 2px 8px; border-radius: 999px; }
.lb-cabin-body p { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted, #475569); }
@media (max-width: 760px) { .lb-cabins { grid-template-columns: 1fr; } }

/* ─── Itineraries ─── */
.lb-itin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lb-itin-card {
  padding: 20px 20px 18px; border-radius: var(--radius-lg, 16px);
  background: var(--card-bg, #fff); border: 1px solid var(--border, rgba(6,182,212,0.16));
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(6,95,120,0.06));
  border-top: 3px solid var(--primary, #06b6d4);
}
.lb-itin-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lb-itin-card-head h3 { margin: 0; font-size: 1.08rem; color: var(--deep, #164e63); }
.lb-itin-meta { font-size: 0.8rem; font-weight: 700; color: var(--primary-hover, #0891b2); white-space: nowrap; }
.lb-itin-route { margin: 8px 0 10px; font-size: 0.86rem; color: var(--muted, #475569); display: flex; align-items: center; gap: 7px; }
.lb-itin-route i { color: var(--secondary, #0d9488); }
.lb-itin-hi { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--border, rgba(6,182,212,0.12)); }
.lb-itin-hi li { position: relative; padding: 4px 0 4px 18px; font-size: 0.88rem; color: var(--text, #0f172a); line-height: 1.45; }
.lb-itin-hi li::before { content: "›"; position: absolute; left: 2px; color: var(--primary, #06b6d4); font-weight: 700; }

/* ─── What's included ─── */
.lb-inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lb-inc-col {
  padding: 20px 22px; border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border, rgba(6,182,212,0.16)); background: var(--card-bg, #fff);
}
.lb-inc-yes { background: #f0fdf4; border-color: #bbf7d0; }
.lb-inc-no  { background: var(--bg-soft, #f8fafc); }
.lb-inc-col h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1rem; }
.lb-inc-yes h4 { color: #15803d; } .lb-inc-yes h4 i { color: #16a34a; }
.lb-inc-no h4  { color: var(--deep, #164e63); } .lb-inc-no h4 i { color: var(--muted, #64748b); }
.lb-inc-col ul { list-style: none; margin: 0; padding: 0; }
.lb-inc-col li { padding: 5px 0; font-size: 0.9rem; color: var(--text, #0f172a); line-height: 1.45; }
.lb-inc-yes li { padding-left: 20px; position: relative; }
.lb-inc-yes li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
@media (max-width: 640px) { .lb-inc-grid { grid-template-columns: 1fr; gap: 14px; } }

.lb-fx-note { font-size: 0.78rem; color: var(--muted, #64748b); margin: 10px 0 0; line-height: 1.45; }

/* ─── Listing: sort control in the results bar ───────────────────────
   Scoped to the archive body so it can't touch the detail page or any
   other listing element. Appended last; safe to relocate if you prefer. */
body.liveaboards-archive-body .results-tools { display: flex; align-items: center; gap: 10px; }
body.liveaboards-archive-body .sort-control { display: inline-flex; align-items: center; gap: 8px; }
body.liveaboards-archive-body .sort-control .sort-label { font-size: .85rem; font-weight: 600; color: var(--muted, #475569); }

/* Glassmorphic sort select — matches the cat-tabs box + homepage/mobile-menu glass */
body.liveaboards-archive-body #lb-sort {
  appearance: none; -webkit-appearance: none; font: inherit;
  font-size: .88rem; font-weight: 600; color: var(--deep, #164e63);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230891b2' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 12px center,
    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: 12px;
  box-shadow: 0 2px 8px rgba(6,95,120,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 9px 32px 9px 12px; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.liveaboards-archive-body #lb-sort: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); }
body.liveaboards-archive-body #lb-sort:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,0.15); }

/* Filters pill — same glass so the pair reads as one control set */
body.liveaboards-archive-body .filter-btn-mobile {
  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);
  box-shadow: 0 2px 8px rgba(6,95,120,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  color: var(--deep, #164e63);
}

/* Mobile: count on its own line, sort fills the row, Filters beside it */
@media (max-width: 720px) {
  body.liveaboards-archive-body .results-bar { flex-wrap: wrap; }
  body.liveaboards-archive-body .results-count { flex: 1 1 100%; }
  body.liveaboards-archive-body .results-tools { flex: 1 1 100%; }
  body.liveaboards-archive-body .sort-control { flex: 1; }
  body.liveaboards-archive-body .sort-control .sort-label { display: none; }
  body.liveaboards-archive-body #lb-sort { flex: 1; width: 100%; padding: 10px 30px 10px 12px; font-size: .85rem; }
}

/* ─── Card CTA arrow icon (FA, sized to sit centered with the label) ─── */
body.liveaboards-archive-body .dest-card .card-cta i { font-size: .8em; line-height: 1; }

/* ─── Cost/day line on liveaboard cards ─── */
body.liveaboards-archive-body .dest-card .price-cpd {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted, #475569);
  margin-top: 1px;
}

/* ─── Custom glassmorphic sort dropdown (replaces the native <select> menu) ─── */
body.liveaboards-archive-body select#lb-sort.lb-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;
}
body.liveaboards-archive-body .lb-sortmenu { position: relative; display: inline-flex; }
body.liveaboards-archive-body .lb-sortmenu-btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit;
  font-size: .88rem; 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: 12px;
  box-shadow: 0 2px 8px rgba(6,95,120,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 9px 12px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
body.liveaboards-archive-body .lb-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); }
body.liveaboards-archive-body .lb-sortmenu-caret { font-size: .7rem; color: var(--primary, #06b6d4); transition: transform .2s ease; margin-left: 2px; }
body.liveaboards-archive-body .lb-sortmenu.open .lb-sortmenu-caret { transform: rotate(180deg); }

body.liveaboards-archive-body .lb-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.88) 0%, rgba(255,255,255,0.72) 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);
}
body.liveaboards-archive-body .lb-sortmenu.open .lb-sortmenu-panel { display: flex; animation: lbSortIn .16s ease; }
@keyframes lbSortIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
body.liveaboards-archive-body .lb-sortmenu-opt {
  text-align: left; background: transparent; border: 0; border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: .86rem; font-weight: 500; color: var(--deep, #164e63);
  cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
body.liveaboards-archive-body .lb-sortmenu-opt:hover { background: rgba(6,182,212,0.10); }
body.liveaboards-archive-body .lb-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))) {
  body.liveaboards-archive-body .lb-sortmenu-btn,
  body.liveaboards-archive-body .lb-sortmenu-panel { background: rgba(255,255,255,0.97); }
}
@media (max-width: 720px) {
  body.liveaboards-archive-body .lb-sortmenu { flex: 1; }
  body.liveaboards-archive-body .lb-sortmenu-btn { width: 100%; justify-content: space-between; }
  body.liveaboards-archive-body .lb-sortmenu-panel { left: 0; right: 0; min-width: 0; }
}

/* ─── Mobile filter sheet "Show results" button → brand gradient (matches the
   header "Plan with Laila" CTA), instead of the flat cyan. Scoped to liveaboards. ─── */
@media (max-width: 720px) {
  body.liveaboards-archive-body .sidebar.mobile-open .sheet-apply {
    background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.96) 0%,
      rgba(6, 182, 212, 0.96) 50%,
      rgba(29, 78, 216, 0.96) 100%);
    box-shadow:
      0 8px 22px rgba(29, 78, 216, 0.32),
      0 4px 12px rgba(16, 185, 129, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  body.liveaboards-archive-body .sidebar.mobile-open .sheet-apply:active { transform: scale(.98); }
}

/* ─── Final CTA → matches the marine-life CTA (dark-ocean banner + glass WhatsApp button) ─── */
body.liveaboards-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.liveaboards-archive-body .final-cta::before { display: none; }
body.liveaboards-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.liveaboards-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.liveaboards-archive-body .final-cta .hero-cta i { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; }
body.liveaboards-archive-body .final-cta .hero-cta .fa-whatsapp { font-size: 18px; color: #fff; }
body.liveaboards-archive-body .final-cta .hero-cta .cta-arrow { font-size: 12px; transition: transform .25s ease; opacity: .85; }
body.liveaboards-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.liveaboards-archive-body .final-cta .hero-cta { background: rgba(255,255,255,0.22) !important; }
}
