/* FlyingFish — Destination hub page (per-destination)
 * Layered on top of /assets/css/styles.css and /courses/courses.css.
 * Section-by-section styles for the hub: compact hero → trips grid →
 * when-to-go → marine life → about → FAQs.
 *
 * NO buy-box, NO booking modal, NO travel widgets. The hub aggregates
 * products and routes to /dive-trips/<id>/ — the product page handles
 * actual booking.
 */

body.destination-hub-body {
  background: #fff;
  color: var(--text);
}

/* ─── Hero ──────────────────────────────────── */
.dest-hero {
  position: relative;
  min-height: 460px;
  height: 52vh;
  max-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.dest-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.dest-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.20) 0%,
    rgba(15, 23, 42, 0.05) 35%,
    rgba(15, 23, 42, 0.55) 80%,
    rgba(15, 23, 42, 0.78) 100%);
  z-index: 2;
}
.dest-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 110px 24px 28px;
  color: #fff;
}

.dest-crumbs {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 18px;
}
.dest-crumbs a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: all .2s ease;
}
.dest-crumbs a:hover { color: #fff; border-bottom-color: #fff; }
.dest-crumbs .sep { margin: 0 7px; opacity: .55; }

.dest-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 0 0 12px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.dest-eyebrow .dest-flag { font-size: 18px; margin-right: 4px; vertical-align: -2px; }

.dest-h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.32);
}

.dest-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: rgba(255,255,255,0.94);
  margin: 0 0 22px;
  max-width: 780px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.28);
}

.dest-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dest-hero-stats li {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.dest-hero-stats li i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}
.dest-hero-stats li strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ─── Sticky anchor pill row ───────────────────── */
.dest-anchors-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);
}
.dest-anchors {
  display: flex;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dest-anchors::-webkit-scrollbar { display: none; }
.dest-anchors a {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.dest-anchors a:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Section wrapper ──────────────────────────── */
.dest-section { padding: 56px 24px; }
.dest-section .section-wrap { max-width: 1400px; margin: 0 auto; }
.dest-section + .dest-section { padding-top: 24px; }
.dest-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.dest-section .section-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
  line-height: 1.55;
}

/* ─── Trips grid (the primary payload) ─────────── */
.dest-trips-section { padding-top: 48px; padding-bottom: 24px; }
.dest-trips-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -4px 0 22px;
  padding: 4px 0;
}
.dest-trips-cats::-webkit-scrollbar { display: none; }
.dest-trips-cat {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
  border-radius: 100px;
  padding: 8px 15px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.dest-trips-cat:hover { border-color: var(--primary); color: var(--primary); }
.dest-trips-cat.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);
}
.dest-trips-cat-count {
  font-size: 11px;
  opacity: .75;
  font-weight: 500;
  padding: 1px 7px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 100px;
  margin-left: 4px;
}
.dest-trips-cat.active .dest-trips-cat-count { background: rgba(255, 255, 255, 0.22); opacity: 1; }

.dest-trips-section .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.dest-trips-section .dest-card.is-hidden { display: none; }

.dest-trips-empty {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}
.dest-trips-empty h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #78350f;
  margin: 0 0 8px;
}
.dest-trips-empty p {
  color: #92400e;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.dest-trips-empty .notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32);
  transition: all .2s ease;
}
.dest-trips-empty .notify-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.42);
}

/* ─── When to go (12-month season bar) ─────────── */
.season-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 0 0 14px;
}
.season-month {
  text-align: center;
  padding: 16px 4px 12px;
  border-radius: 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.season-month.peak     { background: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%); color: #fff; }
.season-month.shoulder { background: #cffafe; color: #0e7490; }
.season-month.off      { background: #f1f5f9; color: #94a3b8; }
.season-month .season-prob {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  margin-top: 2px;
  opacity: .85;
}

.season-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.season-legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 6px;
}
.season-legend-dot.peak     { background: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%); }
.season-legend-dot.shoulder { background: #cffafe; }
.season-legend-dot.off      { background: #f1f5f9; }

.season-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.5;
}
.season-callout i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 2px;
}
.season-callout strong { color: var(--deep); font-weight: 600; }

/* ─── Marine life grid ─────────────────────────── */
.marine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.marine-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: #f8fdff;
  border: 1px solid var(--border);
  transition: all .25s ease;
  aspect-ratio: 1 / 1;
}
.marine-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.18);
}
.marine-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.marine-card:hover img { transform: scale(1.05); }
.marine-card-body {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
  color: #fff;
}
.marine-card-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.2;
}
.marine-card-prob {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.85;
}
.marine-card-prob.high     { color: #6ee7b7; }
.marine-card-prob.seasonal { color: #fcd34d; }

/* ─── About / spec list ────────────────────────── */
.dest-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.dest-about-copy p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}
.dest-about-copy p:last-child { margin-bottom: 0; }

.dest-spec-card {
  background: var(--bg-soft, #f8fdff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.dest-spec-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.dest-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  gap: 14px;
}
.dest-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.dest-spec-label { color: var(--muted); flex-shrink: 0; }
.dest-spec-value { color: var(--text); font-weight: 500; text-align: right; }

.dest-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.dest-persona {
  font-family: 'Roboto', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--deep);
  background: var(--primary-soft);
  border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.22));
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* ─── FAQs ─────────────────────────────────────── */
.dest-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}
.dest-faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: all .2s ease;
}
.dest-faq-item:hover { border-color: var(--border-strong, rgba(6, 182, 212, 0.32)); }
.dest-faq-q {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 8px;
  letter-spacing: -0.1px;
}
.dest-faq-a {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ─── Mobile ───────────────────────────────────── */
@media (max-width: 720px) {
  .dest-hero { min-height: 380px; height: 48vh; }
  .dest-hero-inner { padding: 86px 16px 22px; }
  .dest-h1 { font-size: 32px; }
  .dest-tagline { font-size: 14.5px; }
  .dest-hero-stats { gap: 6px; }
  .dest-hero-stats li { font-size: 11.5px; padding: 7px 11px; }

  .dest-anchors-wrap { top: 64px; }
  .dest-anchors { padding: 10px 16px; }
  .dest-anchors a { padding: 7px 13px; font-size: 12px; }

  .dest-section { padding: 36px 16px; }
  .dest-section + .dest-section { padding-top: 16px; }
  .dest-section h2 { font-size: 24px; }

  .season-bar { gap: 3px; }
  .season-month { padding: 12px 2px 10px; font-size: 10px; }
  .season-month .season-prob { display: none; }

  .dest-about-grid { grid-template-columns: 1fr; gap: 22px; }
  .marine-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
