/* ============================================================
   Agadir Nomad Trips — homepage marketplace system (v2, 2026-10)
   Search-first hero, quick pills, universal ProductCard grid,
   category + destination cards, transfers, trust, FAQ, CTA.
   Built on the shared tokens in premium-2026.css / index.css.
   Uses logical properties so RTL languages lay out correctly.
   ============================================================ */

:root {
  --hp-container: 1240px;
  --hp-ink: var(--brand-black, #172333);
  --hp-muted: var(--color-gray, #667085);
  --hp-line: var(--brand-border, #E5E9F0);
  --hp-blue: var(--brand-primary, #0B4BAF);
  --hp-blue-dark: var(--brand-primary-dark, #073B8C);
  --hp-orange: var(--brand-accent, #F79426);
  --hp-radii: 16px;
  --hp-radii-lg: 20px;
  --hp-shadow: 0 10px 28px rgba(12, 42, 70, 0.10);
  --hp-shadow-soft: 0 2px 10px rgba(25, 51, 75, 0.06);
}

body.home-page {
  background: #fff;
}

.hp-wrap {
  width: 100%;
  max-width: var(--hp-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* ------------------------------------------------ Section scaffolding */
.hp-sec {
  padding-block: clamp(44px, 6.5vw, 76px);
}

.hp-sec--alt {
  background: var(--background-secondary, #F5F7FA);
}

.hp-sec--tight {
  padding-block: clamp(28px, 4vw, 44px);
}

/* Section header: title + optional lead on the left, "View all" on the end. */
.hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.hp-head__text {
  max-width: 62ch;
}

.hp-eyebrow {
  margin: 0 0 8px;
  color: var(--hp-blue);
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hp-h2 {
  margin: 0;
  color: var(--hp-ink);
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.hp-lead {
  margin: 10px 0 0;
  color: var(--hp-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

.hp-viewall {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--hp-line);
  border-radius: 999px;
  color: var(--hp-blue);
  background: #fff;
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.hp-viewall:hover {
  border-color: var(--hp-blue);
  background: rgba(11, 75, 175, 0.06);
}

.hp-viewall i {
  font-size: 0.72rem;
  transition: transform 180ms ease;
}

.hp-viewall:hover i {
  transform: translateX(3px);
}

[dir="rtl"] .hp-viewall:hover i {
  transform: scaleX(-1) translateX(3px);
}

/* ============================================================
   1. HERO — search first, no carousel, no full-screen cinema
   ============================================================ */
.hp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(430px, 52vw, 620px);
  padding-top: calc(var(--header-height, 76px) + var(--header-utility-height, 34px) + clamp(28px, 5vw, 56px));
  color: #fff;
  overflow: hidden;
}

.hp-hero__media,
.hp-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hp-hero__veil {
  background:
    linear-gradient(180deg, rgba(6, 31, 63, 0.66) 0%, rgba(6, 31, 63, 0.28) 42%, rgba(6, 31, 63, 0.72) 100%);
}

.hp-hero__inner {
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
  padding-bottom: clamp(28px, 4.5vw, 52px);
}

.hp-hero__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFD9A8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hp-hero__kicker i {
  font-size: 0.8rem;
}

.hp-hero__title {
  margin: 0;
  max-width: 21ch;
  color: #fff;
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hp-hero__copy {
  margin: 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.6;
}

.hp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.85rem;
  font-weight: 600;
}

.hp-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hp-hero__trust i {
  color: #7EE2A8;
  font-size: 0.8rem;
}

/* ------------------------------------------------ Search box */
.hp-search {
  position: relative;
  max-width: 780px;
}

.hp-search__panel {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 31, 63, 0.35);
}

.hp-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-inline: 18px;
}

.hp-search__field > i {
  color: var(--hp-blue);
  font-size: 1rem;
  flex: 0 0 auto;
}

.hp-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--hp-ink);
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

.hp-search__input::placeholder {
  color: #8A94A6;
  font-weight: 400;
}

.hp-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-navy, #073B8C);
  color: #fff;
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.hp-search__submit:hover {
  background: var(--brand-navy-deep, #062F70);
}

/* --- Suggestions dropdown (desktop) --- */
.hp-suggest {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: none;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radii-lg);
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 42, 70, 0.22);
}

.hp-suggest.is-open {
  display: block;
}

.hp-suggest__scroll {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hp-suggest__group {
  padding: 14px 0 6px;
}

.hp-suggest__group + .hp-suggest__group {
  border-top: 1px solid var(--hp-line);
}

.hp-suggest__label {
  padding-inline: 18px;
  margin: 0 0 6px;
  color: var(--hp-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--hp-ink);
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.92rem;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.hp-option:hover,
.hp-option.is-active {
  background: rgba(11, 75, 175, 0.07);
}

.hp-option__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(11, 75, 175, 0.09);
  color: var(--hp-blue);
  font-size: 0.9rem;
}

.hp-option__icon--transfer {
  background: rgba(247, 148, 38, 0.14);
  color: var(--hp-orange);
}

.hp-option__icon--place {
  background: rgba(18, 133, 90, 0.12);
  color: #12855A;
}

.hp-option__text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hp-option__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}

.hp-option__sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--hp-muted);
  font-size: 0.78rem;
}

.hp-suggest__foot {
  padding: 10px 18px 12px;
  border-top: 1px solid var(--hp-line);
  background: var(--background-secondary, #F5F7FA);
  color: var(--hp-muted);
  font-size: 0.75rem;
}

.hp-suggest__foot kbd {
  padding: 1px 6px;
  border: 1px solid var(--hp-line);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.7rem;
}

.hp-suggest__empty {
  display: none;
  padding: 18px;
  color: var(--hp-muted);
  font-size: 0.9rem;
  text-align: center;
}

.hp-suggest__empty.is-visible {
  display: block;
}

body.hp-no-scroll {
  overflow: hidden;
}

/* --- Popular searches under the search box --- */
.hp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-hero__chips-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
}

.hp-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.hp-chip:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
}

/* --- Mobile: search collapses into a big trigger + full-screen sheet --- */
.hp-search-trigger {
  display: none;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #8A94A6;
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 1rem;
  text-align: start;
  box-shadow: 0 18px 44px rgba(6, 31, 63, 0.35);
  cursor: pointer;
}

.hp-search-trigger i {
  color: var(--hp-blue);
  font-size: 1.05rem;
}

/* --- Mobile sheet header (hidden until the sheet opens) --- */
.hp-search__head {
  display: none;
}

.hp-search-close {
  display: none;
}

/* ============================================================
   2. QUICK CATEGORY PILLS
   ============================================================ */
.hp-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 18px;
  border: 1.5px solid var(--hp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hp-ink);
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.hp-pill i {
  color: var(--hp-blue);
  font-size: 0.95rem;
}

.hp-pill:hover {
  border-color: var(--hp-blue);
  background: rgba(11, 75, 175, 0.06);
  color: var(--hp-blue);
}

/* ============================================================
   3. POPULAR EXPERIENCES — universal ProductCard grid
   ============================================================ */
.hp-card-grid.market-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ============================================================
   4. EXPLORE BY EXPERIENCE — image category cards (3:2)
   ============================================================ */
.hp-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hp-cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--hp-radii);
  background: var(--brand-sand, #EDF1F7);
  text-decoration: none;
  box-shadow: var(--hp-shadow-soft);
}

.hp-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.hp-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 31, 63, 0) 38%, rgba(6, 31, 63, 0.78) 100%);
  transition: opacity 200ms ease;
}

.hp-cat:hover img,
.hp-cat:focus-visible img {
  transform: scale(1.05);
}

.hp-cat__label {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}

.hp-cat__name {
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(6, 31, 63, 0.55);
}

.hp-cat__go {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  font-size: 0.72rem;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hp-cat:hover .hp-cat__go {
  background: var(--hp-orange);
  transform: translateX(2px);
}

[dir="rtl"] .hp-cat__go i {
  transform: scaleX(-1);
}

/* ============================================================
   5. DESTINATIONS
   ============================================================ */
.hp-dests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hp-dest {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--hp-radii-lg);
  background: var(--brand-sand, #EDF1F7);
  text-decoration: none;
  box-shadow: var(--hp-shadow-soft);
}

.hp-dest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hp-dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 31, 63, 0.10) 22%, rgba(6, 31, 63, 0.62) 55%, rgba(6, 31, 63, 0.94) 92%);
}

.hp-dest:hover img {
  transform: scale(1.04);
}

.hp-dest__body {
  position: absolute;
  inset-inline: 22px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(6, 31, 63, 0.55);
}

.hp-dest__kicker {
  color: #FFD9A8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hp-dest__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.hp-dest__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
}

.hp-dest__meta .hp-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.hp-dest__meta .hp-go i {
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.hp-dest:hover .hp-go i {
  transform: translateX(3px);
}

[dir="rtl"] .hp-dest__meta .hp-go i {
  transform: scaleX(-1);
}

/* ============================================================
   6. TRANSFERS — dedicated, visually separate from experiences
   ============================================================ */
.hp-transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hp-transfer__media {
  position: relative;
  border-radius: var(--hp-radii-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-sand, #EDF1F7);
  box-shadow: var(--hp-shadow);
}

.hp-transfer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-transfer__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--hp-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hp-transfer__body h2 {
  margin-bottom: 4px;
}

.hp-routes {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hp-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border: 1.5px solid var(--hp-line);
  border-radius: var(--hp-radii);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.hp-route:hover {
  border-color: var(--hp-blue);
  box-shadow: var(--hp-shadow-soft);
  transform: translateY(-2px);
}

.hp-route__path {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hp-route__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-weight: 700;
  color: var(--hp-ink);
  font-size: 0.98rem;
}

.hp-route__name i {
  color: var(--hp-blue);
  font-size: 0.8rem;
}

.hp-route__sub {
  color: var(--hp-muted);
  font-size: 0.8rem;
}

.hp-route__price {
  flex: 0 0 auto;
  text-align: end;
  display: grid;
  gap: 1px;
}

.hp-route__amount {
  color: var(--hp-blue);
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}

.hp-route__unit {
  color: var(--hp-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.hp-transfer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--hp-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.hp-transfer__facts i {
  color: #12855A;
  margin-inline-end: 6px;
}

.hp-transfer__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ============================================================
   7. WHY BOOK WITH US
   ============================================================ */
.hp-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hp-why__card {
  padding: 24px 22px;
  border: 1.5px solid var(--hp-line);
  border-radius: var(--hp-radii-lg);
  background: #fff;
}

.hp-why__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(11, 75, 175, 0.09);
  color: var(--hp-blue);
  font-size: 1.05rem;
}

.hp-why__card h3 {
  margin: 0 0 6px;
  color: var(--hp-ink);
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
}

.hp-why__card p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   8. FAQ
   ============================================================ */
.hp-faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.hp-faq details {
  border: 1.5px solid var(--hp-line);
  border-radius: var(--hp-radii);
  background: #fff;
  overflow: hidden;
}

.hp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 20px;
  color: var(--hp-ink);
  font-family: var(--font-ui, 'Poppins', sans-serif);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.hp-faq summary::-webkit-details-marker {
  display: none;
}

.hp-faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--hp-blue);
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.hp-faq details[open] summary::after {
  transform: rotate(180deg);
}

.hp-faq__a {
  padding: 0 20px 16px;
  color: var(--hp-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hp-faq__a p {
  margin: 0;
}

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.hp-cta {
  background: #0B4AAE;
  color: #fff;
  text-align: center;
}

.hp-cta__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}

.hp-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
}

.hp-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

.hp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hp-cta .btn {
  min-height: 50px;
}

.hp-cta .btn-whatsapp,
.hp-cta [data-brand-whatsapp] {
  background: #1FA855;
  border-color: #1FA855;
  color: #fff;
}

.hp-cta .btn-whatsapp:hover,
.hp-cta [data-brand-whatsapp]:hover {
  background: #178a45;
  border-color: #178a45;
  color: #fff;
}

/* ============================================================
   CTA COLOR — primary buttons use the footer's deep navy so every
   call-to-action reads as one family; royal blue stays for links,
   icons and accents only.
   ============================================================ */
.home-page .btn.btn-primary {
  background: var(--brand-navy, #073B8C);
  border-color: var(--brand-navy, #073B8C);
}

.home-page .btn.btn-primary:hover {
  background: var(--brand-navy-deep, #062F70);
  border-color: var(--brand-navy-deep, #062F70);
}

.hp-card-grid .market-card[data-discovery-category="tour"] .market-card__cta {
  background: var(--brand-navy, #073B8C);
  border-color: var(--brand-navy, #073B8C);
}

.hp-card-grid .market-card[data-discovery-category="tour"] .market-card__cta:hover {
  background: var(--brand-navy-deep, #062F70);
  border-color: var(--brand-navy-deep, #062F70);
}

/* ============================================================
   10. REVEAL — subtle, cheap, reduced-motion aware
   ============================================================ */
.hp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: var(--hp-delay, 0ms);
}

.hp-reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hp-cat img,
  .hp-dest img,
  .hp-cat__go,
  .hp-route,
  .hp-viewall i,
  .hp-dest__meta .hp-go i {
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE — tablet first, then mobile
   ============================================================ */
@media (max-width: 1100px) {
  .hp-card-grid.market-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Narrow cards: let the pricing unit drop under the amount instead of clipping. */
  .hp-card-grid .market-card__price { white-space: normal; }

  .hp-card-grid .market-card__price-unit { display: block; }

  .hp-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hp-transfer {
    grid-template-columns: 1fr;
  }

  .hp-transfer__media {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .hp-dests {
    gap: 14px;
  }

  .hp-dest {
    min-height: 250px;
  }
}

@media (max-width: 760px) {
  /* Mobile section order: search → pills → popular → categories →
     transfers → trust → destinations → FAQ → CTA. Every section gets an
     explicit order so nothing lands after the CTA. */
  .home-page main {
    display: flex;
    flex-direction: column;
  }

  .home-page main > .hp-hero { order: 0; }
  .home-page main > .hp-sec--tight { order: 1; }
  .home-page main > [data-hp-popsec] { order: 2; }
  .home-page main > .hp-sec--categories { order: 3; }
  .home-page main > .hp-sec--transfers { order: 4; }
  .home-page main > .hp-sec--why { order: 5; }
  .home-page main > .hp-sec--destinations { order: 6; }
  .home-page main > .hp-sec--faq { order: 7; }
  .home-page main > .hp-cta { order: 8; }

  /* Hero search becomes a big trigger that opens a full-screen sheet */
  .hp-hero {
    min-height: clamp(430px, 78vw, 540px);
  }

  .hp-search__panel,
  .hp-suggest {
    display: none;
  }

  .hp-search-trigger {
    display: flex;
  }

  /* Full-screen search sheet (above the header shell) */
  .hp-search.is-open {
    position: fixed;
    inset: 0;
    z-index: 2400;
    max-width: none;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hp-search.is-open .hp-search__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hp-line);
    background: #fff;
  }

  .hp-search.is-open .hp-search__panel {
    display: flex;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 16px 4px;
    gap: 8px;
    background: #fff;
  }

  .hp-search.is-open .hp-search__field {
    border: 1.5px solid var(--hp-line);
    border-radius: 999px;
    min-height: 50px;
    padding-inline: 16px;
  }

  .hp-search.is-open .hp-search__input {
    font-size: 16px; /* stops iOS zoom-on-focus */
  }

  .hp-search.is-open .hp-search__submit {
    padding: 12px 20px;
  }

  .hp-search.is-open .hp-suggest {
    display: block;
    position: static;
    margin: 8px 16px 0;
    border: 0;
    box-shadow: none;
    border-radius: var(--hp-radii);
  }

  .hp-search.is-open .hp-suggest__scroll {
    max-height: none;
    overflow: visible;
  }

  .hp-search.is-open .hp-suggest__foot {
    display: none;
  }

  .hp-search-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--hp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hp-ink);
    font-size: 1rem;
    cursor: pointer;
  }

  .hp-search__label-title {
    flex: 1;
    margin: 0;
    font-family: var(--font-heading, 'Baloo 2', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-ink);
  }

  /* Sheet header only exists while open */
  .hp-search:not(.is-open) .hp-search__head {
    display: none;
  }

  /* Pills: single swipeable row */
  .hp-pills-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .hp-pills-row::-webkit-scrollbar {
    display: none;
  }

  .hp-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Popular experiences: swipe cards, ~78% viewport, peek of next card */
  .hp-card-grid.market-card-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 14px;
    margin-inline: -4px;
    scrollbar-width: none;
  }

  .hp-card-grid.market-card-grid::-webkit-scrollbar {
    display: none;
  }

  .hp-card-grid .market-card {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
  }

  .hp-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hp-dests {
    grid-template-columns: 1fr;
  }

  .hp-why {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hp-why__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }

  .hp-why__icon {
    margin-bottom: 0;
  }

  .hp-why__card h3 {
    margin-bottom: 4px;
  }

  /* Section header stacks; "view all" moves under the title */
  .hp-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-route {
    padding: 13px 14px;
  }

  .hp-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .hp-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hp-cats {
    grid-template-columns: 1fr;
  }

  .hp-cat {
    aspect-ratio: 16 / 9;
  }

  .hp-card-grid .market-card {
    flex-basis: 84vw;
  }
}

/* Wide screens: keep line lengths humane */
@media (min-width: 1500px) {
  .hp-hero__title {
    font-size: 3.6rem;
  }
}
