/* ───────────────────────────────────────────────────────────────────────────
 *  home.css (v2) — homepage module ONLY (loaded by / alone).
 *  Layers on styles.css (header, hero, smart-bar, sidebar/filter chrome,
 *  cards-grid, how-it-works, final-cta, laila modal, whatsapp float).
 *  Every class here is prefixed `home-` so edits can never leak into another
 *  page — and no other module may style `home-*`.
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── Shared section chrome (marine strip + reviews) ── */
.home-section { padding: 72px 0; }
.home-section-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.home-kicker {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 8px;
}
.home-section-head h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.12;
}
.home-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  max-width: 560px;
  margin: 0;
}
.home-see-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
  padding: 11px 20px 9px;
  border: 1.5px solid rgba(13, 148, 136, 0.35);
  border-radius: 100px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.home-see-all:hover { background: #0d9488; border-color: #0d9488; color: #fff; }
.home-see-all i { font-size: 12px; transition: transform .2s ease; }
.home-see-all:hover i { transform: translateX(3px); }

/* ── Aggregator grid cards (destinations + courses + liveaboards) ── */
.home-grid { padding-bottom: 8px; }
.home-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(6, 182, 212, 0.16);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-card * { text-decoration: none !important; }
.home-card:hover {
  transform: translateY(-4px);
  border-color: #06b6d4;
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.16), 0 6px 14px rgba(15, 23, 42, 0.06);
}
.home-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0fdff;
}
.home-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.home-card:hover .home-card-img img { transform: scale(1.05); }
.home-card-kind {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 11px 4px;
  border-radius: 100px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
}
.home-card-kind-d { background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%); }
.home-card-kind-f { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); }
.home-card-kind-c { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); }
.home-card-kind-t { background: linear-gradient(135deg, #db2777 0%, #f97316 100%); }
.home-card-kind-l { background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%); }
.home-card-rating {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 10px 4px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.home-card-rating i { color: #f59e0b; font-size: 11px; }
.home-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 16px;
  flex: 1;
}
.home-card-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 19.5px;
  font-weight: 600;
  color: #164e63;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.home-card-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-card-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 9px 3px;
  border-radius: 100px;
  white-space: nowrap;
}
.home-card .visibility-btn { align-self: flex-start; margin-top: 2px; }
.home-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(6, 182, 212, 0.12);
}
.home-card-price { font-size: 12px; color: #64748b; white-space: nowrap; }
.home-card-price strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #0d9488;
  margin-left: 2px;
}
.home-card-price-na { font-style: italic; }
.home-card-months,
.home-card-cta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0e7490;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-card-months i { font-size: 10.5px; color: #06b6d4; }
.home-card:hover .home-card-cta { color: #0d9488; }

/* Month select in the sidebar (native select, filter-chrome look) */
.home-month-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font: 500 13.5px/1.2 'Roboto', sans-serif;
  color: var(--text, #0f172a);
  background: #fff;
  cursor: pointer;
}
.home-month-select:focus { outline: none; border-color: var(--primary, #06b6d4); }

/* ── Marine life strip ── */
.home-marine { background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%); }
.home-marine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.home-marine-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-marine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.2);
}
.home-marine-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}
.home-marine-card:hover .home-marine-img { transform: scale(1.07); }
.home-marine-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 33, 0) 45%, rgba(8, 27, 33, 0.85) 100%);
}
.home-marine-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-marine-body strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.home-marine-body span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Reviews ── */
.home-reviews { background: #fff; padding-bottom: 80px; }
.home-reviews-body { min-height: 120px; }
.home-reviews-body > div + div { margin-top: 28px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .home-marine-grid { grid-template-columns: repeat(3, 1fr); }
  .home-marine-card:nth-child(4),
  .home-marine-card:nth-child(5) { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .home-section { padding: 52px 0; }
  .home-section-wrap { padding: 0 20px; }
  .home-section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .home-card-title { font-size: 17px; }
  .home-card-body { padding: 13px 14px; }
  .home-marine-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home-marine-card { aspect-ratio: 4 / 3; }
  .home-marine-card:nth-child(4),
  .home-marine-card:nth-child(5) { aspect-ratio: 4 / 3; }
  .home-marine-card:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* ── Load more (grid pagination) ── */
.home-load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}
.home-load-more {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0d9488;
  background: #fff;
  border: 1.5px solid rgba(13, 148, 136, 0.35);
  border-radius: 100px;
  padding: 13px 30px 11px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-load-more span { font-size: 12px; font-weight: 500; opacity: .75; }
.home-load-more:hover { background: #0d9488; border-color: #0d9488; color: #fff; transform: translateY(-1px); }

/* ── Hero glass dropdown — per-option Font Awesome icon (homepage only).
   The dropdown component + glass panel styles live in styles.css; this only
   styles the FA icon prefix added to each option/trigger value. ──────────── */
.hero-opt-ico {
  color: var(--primary);
  width: 18px; text-align: center; flex-shrink: 0;
  margin-right: 8px; vertical-align: middle;
}
.hero-sheet-option .hso-label {
  display: inline-flex; align-items: center; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-sheet-option .hso-label .hero-opt-ico { font-size: 15px; margin-right: 11px; }
.hero-sheet-option[aria-selected="true"] .hero-opt-ico,
.hero-select-trigger .hero-opt-ico { color: var(--primary); }

/* ── Brand gradient border on the active field + selected option ─────────────
   Matches the course configurator's selected cards (emerald→cyan→blue) instead
   of the flat blue border, via the padding-box/border-box double-background. */
.hero-select-trigger[aria-expanded="true"],
.hero-select-trigger:focus-visible {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%) border-box;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
.hero-sheet-option[aria-selected="true"] {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(236, 254, 255, 0.62), rgba(236, 254, 255, 0.62)) padding-box,
    linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%) border-box;
  color: var(--primary);
}

/* ── Anchored-dropdown mode (.hero-dd) ──────────────────────────────────────
   Keeps the glass-morphic look from styles.css but anchors the panel directly
   under the field (JS sets top/left/width) instead of sliding up from the
   bottom of the screen. Overrides win on mobile too via the extra .hero-dd
   class (higher specificity than the bare .hero-sheet media-query rules). */
.hero-sheet.hero-dd {
  left: auto; right: auto; bottom: auto;          /* JS sets top/left/width */
  width: auto; max-width: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translateY(-6px) scale(.99);
  transform-origin: top center;
  opacity: 0;
  transition: opacity .15s ease, transform .16s cubic-bezier(.4, 0, .2, 1);
  padding-bottom: 8px;
  box-shadow: 0 18px 44px rgba(6, 95, 120, 0.28);
}
.hero-sheet.hero-dd.open { transform: translateY(0) scale(1); opacity: 1; }
.hero-sheet.hero-dd .hero-sheet-grabber,
.hero-sheet.hero-dd .hero-sheet-header { display: none; }
.hero-sheet.hero-dd .hero-sheet-list { padding-top: 8px; }
/* transparent click-catcher — no page dimming for a dropdown */
.hero-sheet-overlay.hero-dd {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
