/* ==========================================================================
   Homepage (index.php)
   ========================================================================== */

.hm {
  --hm-brand: var(--brand, #03488d);
  --hm-brand-deep: #022f63;
  --hm-night: #061a33;
  --hm-book: #c2410c;
  --hm-ink: #13202e;
  --hm-muted: #5b6878;
  --hm-line: #e2e8f0;
  --hm-soft: #f3f6fa;
  --hm-head: var(--font-head, "Poppins", system-ui, sans-serif);
}
.hm main { font-family: var(--font-base, "Mulish", system-ui, sans-serif); color: var(--hm-ink); }
.hm main h1, .hm main h2, .hm main h3 { font-family: var(--hm-head); color: var(--hm-ink); text-wrap: balance; }

.hm-section { padding-block: clamp(48px, 6vw, 84px); }
.hm-section--soft { background: var(--hm-soft); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.hm-eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-book); }
.hm-title { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.hm-sub { margin: 8px 0 0; max-width: 62ch; color: var(--hm-muted); font-size: 1.02rem; line-height: 1.6; }
.hm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--hm-brand); text-decoration: none; white-space: nowrap; }
.hm-link:hover { color: var(--hm-brand-deep); text-decoration: underline; }

/* ---------- Hero ---------- */
.hm-hero { position: relative; isolation: isolate; color: #fff; background: var(--hm-night); overflow: hidden; }
.hm-hero__bg, .hm-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-hero__bg img { object-fit: cover; object-position: center 40%; }
.hm-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 51, .92) 0%, rgba(6, 26, 51, .72) 42%, rgba(6, 26, 51, .2) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, .7) 0%, rgba(6, 26, 51, 0) 40%);
}
.hm-hero__inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: end; padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 52px); }
@media (min-width: 992px) { .hm-hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.hm-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: .82rem; font-weight: 700; }
.hm-hero__eyebrow i { color: #fbbf24; }
.hm .hm-hero h1 { margin: 0 0 14px !important; color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 700; line-height: 1.08; text-align: left; max-width: 18ch; }
.hm-hero__lead { margin: 0 0 24px; max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.18rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }

.hm-search { position: relative; max-width: 560px; margin: 0 0 16px; }
.hm-search__control { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.hm-search__control i { align-self: center; padding-left: 10px; color: var(--hm-muted); }
.hm-search input { flex: 1; min-width: 0; border: 0; padding: 10px 6px; font-size: 1rem; color: var(--hm-ink); background: transparent; }
.hm-search input:focus { outline: none; }
.hm-search__control:focus-within { box-shadow: 0 0 0 3px rgba(251, 191, 36, .7), 0 18px 40px rgba(0, 0, 0, .25); }
.hm-search button { border: 0; border-radius: 10px; padding: 10px 20px; background: var(--hm-book); color: #fff; font-weight: 800; }
.hm-search button:hover { background: #9a3412; }
.hm-search .site-search-suggestions { color: var(--hm-ink); text-align: left; }

.hm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.hm-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; }
.hm-chips a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.hm-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.hm-proof li { display: flex; flex-direction: column; }
.hm-proof strong { font-family: var(--hm-head); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-proof span { font-size: .84rem; color: rgba(255, 255, 255, .78); }
.hm-proof i { color: #fbbf24; font-size: 1rem; }

/* Featured trip on the hero */
.hm-feature { justify-self: stretch; background: rgba(255, 255, 255, .97); color: var(--hm-ink); border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); max-width: 440px; }
@media (min-width: 992px) { .hm-feature { justify-self: end; } }
.hm-feature__label { margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-book); }
.hm-feature__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.hm-feature__img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #dbe7f5; }
.hm-feature h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.hm-feature h2 a { color: var(--hm-ink); text-decoration: none; }
.hm-feature h2 a:hover { color: var(--hm-brand); }
.hm-feature__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: var(--hm-muted); }
.hm-feature__meta i { color: #f59e0b; }
.hm-feature__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hm-line); }
.hm-feature__price { margin: 0; line-height: 1.15; }
.hm-feature__price span { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hm-muted); }
.hm-feature__price strong { font-family: var(--hm-head); font-size: 1.4rem; color: var(--hm-brand-deep); font-variant-numeric: tabular-nums; }
.hm-feature__price small { color: var(--hm-muted); font-weight: 600; }

.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 11px; border: 2px solid transparent; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hm-btn--book { background: var(--hm-book); color: #fff !important; }
.hm-btn--book:hover { background: #9a3412; }
.hm-btn--light { background: #fff; color: var(--hm-brand-deep) !important; }
.hm-btn--light:hover { background: #fde68a; }
.hm-btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.hm-btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hm-btn:focus-visible, .hm-tab:focus-visible, .hm-chips a:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

/* ---------- Explore by type (tabs) ---------- */
.hm-tabs { display: flex; gap: 6px; margin: 0 0 24px; padding: 5px; overflow-x: auto; border-radius: 14px; background: #fff; border: 1px solid var(--hm-line); scrollbar-width: none; }
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: none; color: var(--hm-muted); font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.hm-tab span { padding: 1px 7px; border-radius: 999px; background: var(--hm-soft); font-size: .75rem; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.hm-tab:hover { color: var(--hm-ink); background: var(--hm-soft); }
.hm-tab[aria-selected="true"] { background: var(--hm-brand); color: #fff; }
.hm-tab[aria-selected="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
.hm-panel[hidden] { display: none; }
.hm-panel__foot { margin-top: 22px; text-align: center; }

/* ---------- How booking works ---------- */
.hm-steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hm-step { counter-increment: step; position: relative; padding: 22px 20px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--hm-line); }
.hm-step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: #fff1e6; color: var(--hm-book); font-family: var(--hm-head); font-weight: 700; }
.hm-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hm-step p { margin: 0; color: var(--hm-muted); line-height: 1.55; font-size: .95rem; }

/* ---------- Reviews ---------- */
.hm-score { display: flex; align-items: center; gap: 12px; }
.hm-score strong { font-family: var(--hm-head); font-size: 2.4rem; line-height: 1; color: var(--hm-ink); }
.hm-score .stars { color: #f59e0b; letter-spacing: 2px; }
.hm-score span { display: block; color: var(--hm-muted); font-size: .9rem; }
.hm-reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.hm-review { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--hm-line); }
.hm-review__stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.hm-review h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.hm-review blockquote { margin: 0; color: #2a3647; line-height: 1.6; }
.hm-review figcaption { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hm-line); font-size: .88rem; color: var(--hm-muted); }
.hm-review figcaption strong { display: block; color: var(--hm-ink); }
.hm-review figcaption a { color: var(--hm-brand); font-weight: 700; text-decoration: none; }

/* ---------- About ---------- */
.hm-about { display: grid; gap: 32px; align-items: start; }
@media (min-width: 992px) { .hm-about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.hm-about__copy { color: #2a3647; line-height: 1.75; font-size: 1.02rem; }
.hm-about__copy p { margin: 0 0 1em; }
.hm-about__copy a { color: var(--hm-brand); }
.hm-about__side { position: sticky; top: 90px; }
.hm-about__side .hm-sub { margin-bottom: 20px; }
.hm-facts { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; }
.hm-facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hm-facts i { margin-top: 4px; color: #15803d; }

/* ---------- Call to action ---------- */
.hm-cta { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(120deg, var(--hm-brand-deep) 0%, var(--hm-brand) 100%); color: #fff; display: grid; gap: 20px; align-items: center; }
@media (min-width: 992px) { .hm-cta { grid-template-columns: minmax(0, 1.4fr) auto; } }
.hm-cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hm .hm-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.hm-cta p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 58ch; line-height: 1.6; }
.hm-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 575.98px) {
  /* Compact hero on phones: search and the featured trip stay near the top */
  .hm-hero__inner { padding-block: 28px 28px; gap: 20px; }
  .hm-hero__eyebrow { margin-bottom: 10px; font-size: .76rem; }
  .hm .hm-hero h1 { font-size: 1.8rem; margin-bottom: 10px !important; }
  .hm-hero__lead { margin-bottom: 16px; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 2px; scrollbar-width: none; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chips a { white-space: nowrap; }
  .hm-proof { gap: 10px 20px; }
  .hm-proof strong { font-size: 1.25rem; }
  .hm-search { margin-bottom: 12px; }
  .hm-search button { padding: 10px 14px; }
  .hm-feature__row { grid-template-columns: 76px minmax(0, 1fr); }
  .hm-feature__img { width: 76px; height: 76px; }
  .hm-about__side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-btn { transition: none; }
}

/* Speed: the browser skips layout and paint for these sections until they are near the screen */
#explore, #how-it-works, #reviews, #about {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ---------- Homepage FAQ (2026-09-15) ---------- */
.hm main h4 { font-family: var(--hm-head); color: var(--hm-ink); }
.hm-faq { display: grid; gap: 10px; max-width: 880px; }
.hm-faq__item { border: 1px solid var(--hm-line); border-radius: 14px; background: #fff; }
.hm-faq__item[open] { border-color: #c9d6e6; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
.hm-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.hm-faq__item summary::-webkit-details-marker { display: none; }
.hm-faq__item summary::after { content: "+"; flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-soft); color: var(--hm-brand); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.hm-faq__item[open] summary::after { content: "−"; background: var(--hm-brand); color: #fff; }
.hm-faq__item summary:focus-visible { outline: 3px solid rgba(3, 72, 141, .35); outline-offset: 2px; border-radius: 14px; }
.hm main .hm-faq__item summary h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.hm-faq__answer { padding: 0 20px 18px; }
.hm-faq__answer p { margin: 0 0 10px; max-width: 70ch; color: #34445a; line-height: 1.65; }
@media (max-width: 575.98px) { .hm-faq__item summary { padding: 14px 16px; } .hm-faq__answer { padding: 0 16px 16px; } }
