/* ============================================================
   RIHLA DISCOVERY — Home Page Design System
   Typography + tokens inherited from the Hotel Detail redesign
   (Syne display / DM Sans body, --rd-* palette) so the home page
   and the detail pages read as one product.

   Consumed by the "Rihla Home:" page-builder blocks in
   themes/GoTrip/Template/Blocks/Home. Every value here is either a
   token or a layout rule — all copy/images come from the builder.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Tokens ── */
.rd-home {
  --rd-navy:        #1a2b4e;
  --rd-navy-deep:   #12203c;
  --rd-blue:        #1255CC;
  --rd-blue-hover:  #0f47ac;
  --rd-blue-light:  #5191fa;
  --rd-blue-pale:   #e8f0fe;
  --rd-gold:        #D4A843;
  --rd-green:       #00875A;
  --rd-red:         #C0392B;
  --rd-surface:     #f8f9fc;
  --rd-surface-2:   #eef2f9;
  --rd-border:      #e4e8ef;
  --rd-text:        #1a2b4e;
  --rd-muted:       #6b7a8f;
  --rd-white:       #ffffff;
  --rd-shadow-sm:   0 1px 4px rgba(26,43,78,.06);
  --rd-shadow-md:   0 4px 20px rgba(26,43,78,.10);
  --rd-shadow-lg:   0 8px 40px rgba(26,43,78,.14);
  --rd-radius-sm:   8px;
  --rd-radius-md:   14px;
  --rd-radius-lg:   20px;
  --rd-radius-xl:   28px;
  --rd-transition:  .22s cubic-bezier(.4,0,.2,1);
  --rd-font-display:'Syne', sans-serif;
  --rd-font-body:   'DM Sans', sans-serif;

  --rd-shell:       1440px;
  --rd-gutter:      32px;

  font-family: var(--rd-font-body);
  color: var(--rd-text);
}

/* The home page is edge-to-edge: kill the theme's page padding/box. */
.page-template-content:has(> .rd-home),
body.rd-home-page .page-template-content { padding: 0; max-width: none; }

.rd-home * { box-sizing: border-box; }
.rd-home img, .rd-home video, .rd-home svg { max-width: 100%; }
.rd-home input, .rd-home select, .rd-home button { max-width: 100%; }

.rd-home__shell {
  width: 100%;
  max-width: var(--rd-shell);
  margin-inline: auto;
  padding-inline: var(--rd-gutter);
}
.rd-home__shell--wide { max-width: 1600px; }

.rd-home section { position: relative; }

/* ── Shared typography ── */
.rd-home h1, .rd-home h2, .rd-home h3, .rd-home h4,
.rd-sec__title, .rd-hero__title {
  font-family: var(--rd-font-display);
  margin: 0;
  letter-spacing: -.01em;
}
/* Colour is inherited from .rd-home rather than set here, so a single-class
   rule (.rd-hero__title, .rd-builder__title) can still repaint a heading white
   on the dark sections. */
.rd-home p { margin: 0; }
/* Only strip the underline globally — a blanket `color: inherit` on `a` would
   out-specify every single-class link rule below it (.rd-btn, .rd-sec__link…).
   Links that really should take the surrounding colour opt in explicitly. */
.rd-home a { text-decoration: none; }
.rd-home a:hover { text-decoration: none; }
.rd-card__link,
.rd-dest,
.rd-tile,
.rd-post,
.rd-step,
.rd-trust__item { color: inherit; }

.rd-sec { padding: 46px 0; }
.rd-sec--tight { padding: 36px 0; }
.rd-sec--surface { background: var(--rd-surface); }

.rd-sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.rd-sec__title { font-size: 30px; line-height: 1.2; font-weight: 700; }
.rd-sec__sub { color: var(--rd-muted); font-size: 15px; margin-top: 6px; }
.rd-sec__link {
  font-size: 14px; font-weight: 600; color: var(--rd-blue);
  white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: color var(--rd-transition);
}
.rd-sec__link:hover { color: var(--rd-blue-hover); }

/* ── Buttons ── */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--rd-font-body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--rd-radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--rd-transition), color var(--rd-transition), border-color var(--rd-transition), transform var(--rd-transition);
}
.rd-btn--primary { background: var(--rd-blue); color: #fff; }
.rd-btn--primary:hover { background: var(--rd-blue-hover); color: #fff; transform: translateY(-1px); }
.rd-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.rd-btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.rd-btn--outline { background: #fff; color: var(--rd-navy); border-color: var(--rd-border); }
.rd-btn--outline:hover { border-color: var(--rd-blue); color: var(--rd-blue); }
.rd-btn--block { width: 100%; }
.rd-btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   1 — HERO (full-bleed, background video)
   ============================================================ */
.rd-hero {
  position: relative;
  min-height: var(--rd-hero-h, 590px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--rd-navy-deep);
  isolation: isolate;
}
.rd-hero--md { --rd-hero-h: 520px; }
.rd-hero--tall { --rd-hero-h: 720px; }

.rd-hero__media { position: absolute; inset: 0; z-index: -2; }
/* Poster and video are stacked in the same box; the video only fades in over the
   still once it is actually playing, so a blocked or slow autoplay is invisible. */
.rd-hero__media img,
.rd-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rd-hero__poster { z-index: 0; }
.rd-hero__media video { z-index: 1; opacity: 0; transition: opacity .8s ease; }
.rd-hero__media video.is-playing { opacity: 1; }
/* Until a video is set (or while it loads) the still gets a very slow drift, so
   the hero never reads as a flat screenshot. Disabled under reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .rd-hero__poster { animation: rdHeroDrift 28s ease-in-out infinite alternate; transform-origin: 50% 60%; }
  .rd-hero__media:has(video.is-playing) .rd-hero__poster { animation: none; }
}
@keyframes rdHeroDrift { from { transform: scale(1.02); } to { transform: scale(1.09); } }

.rd-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,32,60,.72) 0%, rgba(18,32,60,.30) 34%, rgba(18,32,60,.20) 55%, rgba(18,32,60,.55) 100%),
    linear-gradient(90deg, rgba(18,32,60,var(--rd-hero-scrim, .45)) 0%, rgba(18,32,60,0) 62%);
}

.rd-hero__inner { padding: 96px 0 0; }
/* With a solid header the theme already reserves space above the hero
   (`.header-margin`), so the copy does not need to clear it a second time. */
body.header-normal .rd-hero__inner,
body.header-normal_white .rd-hero__inner { padding-top: 64px; }
.rd-hero__copy { max-width: 650px; }
.rd-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.rd-hero__title {
  color: #fff; font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(44px, 4.5vw, 68px); line-height: .98; font-weight: 400;
  letter-spacing: -.025em;
  text-shadow: 0 2px 30px rgba(9,18,36,.35);
}
.rd-hero__sub {
  color: rgba(255,255,255,.94); font-size: 17px; line-height: 1.5; margin-top: 14px; max-width: 620px;
}
.rd-hero__badges { display: none; }
.rd-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 14px; border-radius: 100px; backdrop-filter: blur(4px);
}
.rd-hero__badge svg { width: 15px; height: 15px; flex: none; }

/* Search panel */
.rd-hero__searchwrap { margin-top: 24px; padding-bottom: 34px; }
.rd-search {
  background: #fff;
  border-radius: var(--rd-radius-lg);
  box-shadow: 0 20px 60px rgba(9,18,36,.28);
  overflow: hidden;
  max-width: 1240px;
}
.rd-search__tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--rd-border);
  overflow-x: auto; scrollbar-width: none;
}
.rd-search__tabs::-webkit-scrollbar { display: none; }
.rd-search__tab {
  flex: 1 1 0; min-width: 130px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--rd-font-body); font-size: 15px; font-weight: 500; color: var(--rd-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--rd-transition), border-color var(--rd-transition);
  white-space: nowrap;
}
.rd-search__tab svg { width: 19px; height: 19px; flex: none; }
.rd-search__tab:hover { color: var(--rd-navy); }
.rd-search__tab.is-active { color: var(--rd-blue); border-bottom-color: var(--rd-blue); font-weight: 600; }
.rd-search__panel { display: none; padding: 16px 18px 18px; }
.rd-search__panel.is-active { display: block; }

/* Neutralise the GoTrip form chrome so the theme's real search forms
   drop straight into the panel without a second white card. */
.rd-search__panel .mainSearch,
.rd-search__panel .form-search-all-service {
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100%;
}
.rd-search__panel .mainSearch .button-item .button { border-radius: var(--rd-radius-sm) !important; }
/* Give the submit a real footprint: the theme sizes it from its container, and
   this container is narrower than the search page's. */
.rd-search__panel .gotrip_form_search .button-item { flex: 0 0 auto; min-width: 170px; }
.rd-search__panel .gotrip_form_search .button-item .button { height: 50px; }
@media (max-width: 991px) {
  .rd-search__panel .gotrip_form_search { flex-wrap: wrap; }
  .rd-search__panel .gotrip_form_search .button-item { flex: 1 0 100%; min-width: 0; margin-top: 12px; }
}

/* Transport uses the same form skeleton, typography and submit component as
   Hotels and Packs; only its route-dependent native controls are custom. */
.rd-transfer-search { display: flex; align-items: stretch; width: 100%; }
.rd-transfer-search .field-items { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.rd-transfer-field { min-width: 0; }
.rd-transfer-field label { display: block; margin: 0 0 7px; color: var(--rd-navy); }
.rd-transfer-control {
  display: block; width: 100%; height: 22px; min-height: 22px; padding: 0 24px 0 0;
  border: 0; border-radius: 0; outline: 0; background-color: transparent;
  font-family: var(--rd-font-body); cursor: pointer;
}
.rd-transfer-control:focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 5px; border-radius: 2px; }
.rd-transfer-control:disabled { cursor: not-allowed; opacity: .6; }
.rd-transfer-field .select2-container { display: block; width: 100% !important; }
.rd-transfer-field .select2-container .select2-selection--single {
  height: 22px; min-height: 22px; border: 0; border-radius: 0; background: transparent;
}
.rd-transfer-field .select2-container .select2-selection--single .select2-selection__rendered {
  height: 22px; padding: 0 24px 0 0; color: var(--rd-muted); line-height: 22px;
  font-family: var(--rd-font-body); font-size: 15px;
}
.rd-transfer-field .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--rd-muted); }
.rd-transfer-field .select2-container .select2-selection--single .select2-selection__arrow {
  width: 18px; height: 22px; top: 0; right: 0;
}
.rd-transfer-field .select2-container--focus .select2-selection--single,
.rd-transfer-field .select2-container--open .select2-selection--single {
  outline: 2px solid var(--rd-blue); outline-offset: 5px;
}
body.rd-home-page .select2-dropdown { border-color: #e4e8ef; border-radius: 8px; box-shadow: 0 4px 20px rgba(26,43,78,.10); overflow: hidden; }
body.rd-home-page .select2-results__option { padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
body.rd-home-page .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #1255cc; }
.rd-transfer-search .button-item { display: flex; align-items: stretch; padding-left: 10px; }
.rd-transfer-search .mainSearch__submit { min-width: 170px; height: 50px; align-self: center; }
.rd-transfer-search .mainSearch__submit:focus-visible { outline: 3px solid rgba(18,85,204,.28); outline-offset: 2px; }

/* eSIM native panel */
.rd-field__label {
  display: block; font-size: 13px; font-weight: 600; color: var(--rd-navy); margin-bottom: 6px;
}
.rd-field__control {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--rd-border); border-radius: var(--rd-radius-sm);
  background: #fff; font-family: var(--rd-font-body); font-size: 15px; color: var(--rd-text);
  transition: border-color var(--rd-transition), box-shadow var(--rd-transition);
}
.rd-field__control:focus {
  outline: none; border-color: var(--rd-blue); box-shadow: 0 0 0 3px var(--rd-blue-pale);
}
.rd-search__note { font-size: 13px; color: var(--rd-muted); margin-top: 14px; }

/* eSIM panel inside hero search */
.rd-esimpanel { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.rd-esimpanel__title { font-size: 22px; font-weight: 700; }
.rd-esimpanel__text { color: var(--rd-muted); font-size: 15px; margin-top: 8px; max-width: 560px; }
.rd-esimpanel__feats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.rd-esimpanel__feat { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--rd-navy); }
.rd-esimpanel__feat svg { width: 16px; height: 16px; color: var(--rd-green); flex: none; }

/* ============================================================
   2 — STAY FINDER
   ============================================================ */
.rd-finder__layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: stretch; }
.rd-finder__layout--full { grid-template-columns: minmax(0,1fr); }

.rd-tabs {
  display: flex; gap: 6px; border-bottom: 1px solid var(--rd-border);
  margin-bottom: 22px; overflow-x: auto; scrollbar-width: none;
}
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: none; border: 0; cursor: pointer;
  font-family: var(--rd-font-body); font-size: 14.5px; font-weight: 500; color: var(--rd-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--rd-transition), border-color var(--rd-transition);
}
.rd-tab svg { width: 18px; height: 18px; flex: none; }
.rd-tab:hover { color: var(--rd-navy); }
.rd-tab.is-active { color: var(--rd-blue); border-bottom-color: var(--rd-blue); font-weight: 600; }

.rd-tabpane { display: none; }
.rd-tabpane.is-active { display: block; }

.rd-cards {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 20px;
}
.rd-cards--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.rd-cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Property card — the title link stretches over the whole card so the wishlist
   button stays independently clickable. */
.rd-card { display: block; position: relative; }
.rd-card__link { color: inherit; }
.rd-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.rd-card__media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 10px;
  overflow: hidden; background: var(--rd-surface-2);
}
.rd-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.rd-card:hover .rd-card__media img { transform: scale(1.05); }
.rd-card__flag {
  position: absolute; top: 10px; left: 0; z-index: 0;
  background: var(--rd-gold); color: #1a1a1a;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 0 6px 6px 0;
}
.rd-card__wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  line-height: 0;
}
.rd-card__wish .button { box-shadow: var(--rd-shadow-sm); }
.rd-card__body { padding-top: 12px; }
.rd-card__stars { display: inline-flex; gap: 2px; color: var(--rd-gold); font-size: 11px; margin-bottom: 4px; }
.rd-card__title {
  font-family: var(--rd-font-body);
  font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--rd-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rd-card:hover .rd-card__title,
.rd-card:hover .rd-card__link { color: var(--rd-blue); }
.rd-card__loc { font-size: 13px; color: #596a82; margin-top: 3px; }
.rd-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rd-border);
}
.rd-card__score { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--rd-navy); }
.rd-card__score b { font-weight: 700; }
.rd-card__score span { color: var(--rd-muted); }
.rd-card__price { font-size: 13px; color: var(--rd-muted); text-align: right; }
.rd-card__price b { display: block; font-size: 15px; font-weight: 700; color: var(--rd-navy); font-family: var(--rd-font-display); }

.rd-empty {
  grid-column: 1 / -1; padding: 40px; text-align: center;
  color: var(--rd-muted); font-size: 15px;
  border: 1px dashed var(--rd-border); border-radius: var(--rd-radius-md);
}

/* eSIM aside card */
.rd-esim {
  background: #eef4ff;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  padding: 24px 22px;
  position: relative; overflow: hidden;
}
.rd-esim__title { font-size: 20px; font-weight: 700; }
.rd-esim__text { font-size: 14px; color: var(--rd-muted); margin-top: 6px; }
.rd-esim__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.rd-esim__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--rd-navy); }
.rd-esim__list svg { width: 16px; height: 16px; color: var(--rd-green); flex: none; margin-top: 2px; }
.rd-esim__art { display: block; width: 112px; min-height: 94px; object-fit: contain; margin: 16px auto 2px; }
.rd-esim .rd-btn { margin-top: 18px; }

/* ============================================================
   3 — DESTINATIONS + SHOWCASE MOSAIC
   ============================================================ */
.rd-explore__layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: stretch; }

.rd-destlist {
  background: #fff; border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg); padding: 22px 20px;
  box-shadow: var(--rd-shadow-sm);
}
.rd-destlist__title { font-size: 24px; font-weight: 700; line-height: 1.15; }
.rd-destlist__link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--rd-blue); margin-top: 8px; }
.rd-destlist__items { display: grid; gap: 4px; margin-top: 18px; }
.rd-dest {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--rd-radius-sm);
  transition: background var(--rd-transition);
}
.rd-dest:hover { background: var(--rd-surface); }
.rd-dest__thumb {
  width: 62px; height: 46px; flex: none; border-radius: var(--rd-radius-sm);
  overflow: hidden; background: var(--rd-surface-2);
}
.rd-dest__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-dest__name { font-size: 14.5px; font-weight: 600; color: var(--rd-text); }
.rd-dest__meta { font-size: 12.5px; color: var(--rd-muted); margin-top: 2px; }

.rd-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.rd-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; min-height: 286px;
  background: var(--rd-navy);
}
.rd-tile--wide { grid-column: span 2; }
.rd-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.rd-tile:hover .rd-tile__img { transform: scale(1.05); }
.rd-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,32,60,0) 32%, rgba(18,32,60,.78) 100%);
}
.rd-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 24px 22px; }
.rd-tile__kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #fff; background: rgba(255,255,255,.2);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 10px; backdrop-filter: blur(4px);
}
.rd-tile__title { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.15; }
.rd-tile__text { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 6px; }
.rd-tile__cta {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 14px; font-weight: 600; margin-top: 12px;
}
.rd-tile__cta svg { width: 15px; height: 15px; transition: transform var(--rd-transition); }
.rd-tile:hover .rd-tile__cta svg { transform: translateX(3px); }

/* ============================================================
   4 — TRUST BAR
   ============================================================ */
.rd-trust {
  background: var(--rd-blue-pale);
  border-radius: var(--rd-radius-lg);
  padding: 22px 28px;
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 26px;
  align-items: center;
}
.rd-trust__item { display: flex; align-items: center; gap: 13px; }
.rd-trust__icon {
  width: 40px; height: 40px; flex: none; color: var(--rd-navy);
}
.rd-trust__icon img, .rd-trust__icon svg { width: 100%; height: 100%; object-fit: contain; }
.rd-trust__title { font-size: 14.5px; font-weight: 700; font-family: var(--rd-font-body); color: var(--rd-navy); }
.rd-trust__text { font-size: 12.5px; color: var(--rd-muted); line-height: 1.4; margin-top: 2px; }
.rd-trust__stars { display: inline-flex; gap: 2px; color: var(--rd-gold); font-size: 12px; margin-top: 4px; }

/* ============================================================
   5 — TRIP BUILDER (assemble your trip)
   ============================================================ */
.rd-builder {
  background: linear-gradient(135deg, var(--rd-navy) 0%, #24406f 100%);
  color: #fff; border-radius: var(--rd-radius-xl);
  padding: 38px 40px;
  display: grid; grid-template-columns: minmax(0,340px) minmax(0,1fr); gap: 44px; align-items: center;
  overflow: hidden; position: relative;
}
.rd-builder::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(81,145,250,.35) 0%, rgba(81,145,250,0) 70%);
}
.rd-builder__title { color: #fff; font-size: 32px; line-height: 1.15; font-weight: 700; }
.rd-builder__text { color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; margin-top: 14px; }
.rd-builder .rd-btn { margin-top: 22px; }
.rd-builder__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; position: relative; z-index: 1; }
.rd-step {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--rd-radius-md); padding: 22px 20px;
  transition: background var(--rd-transition), transform var(--rd-transition);
}
.rd-step:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.rd-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  font-family: var(--rd-font-display); font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.rd-step__title { color: #fff; font-size: 16px; font-weight: 700; }
.rd-step__text { color: rgba(255,255,255,.75); font-size: 13.5px; line-height: 1.5; margin-top: 6px; }

/* ============================================================
   6 — INSIGHT BAND (reviews · journal · newsletter)
   ============================================================ */
.rd-band { display: grid; grid-template-columns: 3fr 4fr 3.4fr; gap: 22px; align-items: stretch; }
.rd-panel {
  background: #fff; border: 1px solid var(--rd-border);
  border-radius: 12px; padding: 22px; height: 100%;
}

/* The insight band already contains the homepage newsletter. Avoid presenting
   the visitor with a second, identical email form in the global footer banner. */
body.rd-home-page .bravo_wrap > .mailchimp,
body.rd-home-page .footer > .py-20:first-child { display: none; }
.rd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rd-panel__title { font-size: 19px; font-weight: 700; }

/* Reviews */
.rd-quotes { position: relative; }
.rd-quote { display: none; }
.rd-quote.is-active { display: block; animation: rdFade .35s ease; }
@keyframes rdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rd-quote__stars { display: inline-flex; gap: 2px; color: var(--rd-gold); font-size: 12px; margin-bottom: 10px; }
.rd-quote__text { font-size: 14.5px; line-height: 1.6; color: var(--rd-text); font-style: italic; }
.rd-quote__author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.rd-quote__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--rd-surface-2); }
.rd-quote__name { font-size: 14px; font-weight: 600; }
.rd-quote__meta { font-size: 12.5px; color: var(--rd-muted); }
.rd-quotes__nav { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.rd-dot {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--rd-border); transition: background var(--rd-transition), width var(--rd-transition);
}
.rd-dot.is-active { background: var(--rd-blue); width: 18px; border-radius: 100px; }

/* Journal */
.rd-posts { display: grid; gap: 14px; }
.rd-post { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 13px; align-items: center; }
.rd-post__thumb { aspect-ratio: 4/3; border-radius: var(--rd-radius-sm); overflow: hidden; background: var(--rd-surface-2); }
.rd-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rd-post:hover .rd-post__thumb img { transform: scale(1.06); }
.rd-post__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-post:hover .rd-post__title { color: var(--rd-blue); }
.rd-post__meta { font-size: 12.5px; color: var(--rd-muted); margin-top: 4px; }

/* Newsletter */
.rd-news {
  background: linear-gradient(150deg, #eef4ff 0%, #f8fbff 100%);
  border-color: transparent;
}
.rd-news__text { font-size: 14px; color: var(--rd-muted); margin-top: 6px; }
.rd-news form { margin-top: 18px; }
.rd-news .rd-field__control { height: 48px; }
.rd-news .rd-btn { margin-top: 10px; }
.rd-news__small { font-size: 12px; color: var(--rd-muted); margin-top: 10px; }
.rd-news .form-mess { font-size: 13px; margin-top: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .rd-home { --rd-gutter: 28px; }
  .rd-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rd-finder__layout { grid-template-columns: minmax(0,1fr); }
  .rd-esim {
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(210px,auto);
    gap: 18px 26px; align-items: center;
  }
  .rd-esim__title { grid-column: 1; grid-row: 1; align-self: end; }
  .rd-esim__text { grid-column: 1; grid-row: 2; align-self: start; }
  .rd-esim__art { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .rd-esim__list { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .rd-esim .rd-btn { grid-column: 3; margin-top: 0; }
  .rd-explore__layout { grid-template-columns: minmax(0,1fr); }
  .rd-destlist__items { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rd-trust { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rd-band { grid-template-columns: 1fr 1fr; }
  .rd-band .rd-panel--news { grid-column: 1 / -1; }
  .rd-builder { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 38px 30px; }
}

@media (max-width: 991px) {
  .rd-home { --rd-gutter: 24px; }
  .rd-sec { padding: 40px 0; }
  .rd-hero { --rd-hero-h: auto; min-height: 620px; }
  .rd-hero__inner { padding-top: 100px; }
  body.header-normal .rd-hero__inner,
  body.header-normal_white .rd-hero__inner { padding-top: 52px; }
  .rd-transfer-search { display: block; }
  .rd-transfer-search .field-items { display: block; }
  .rd-transfer-search .button-item { padding-left: 0; margin-top: 10px; }
  .rd-transfer-search .mainSearch__submit { width: 100%; }
  .rd-search__panel .gotrip_form_search .field-items .row > [class*="col-"] {
    padding: 14px 18px !important;
  }
  .rd-search__panel .gotrip_form_search .field-items .row > [class*="col-"] + [class*="col-"] {
    border-top: 1px solid var(--rd-border);
  }
  .rd-esim { display: block; }
  .rd-esim__art { margin: 16px auto 2px; }
  .rd-esim__list { margin-top: 18px; }
  .rd-esim .rd-btn { margin-top: 18px; }
  .rd-destlist__items { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rd-mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rd-tile--wide { grid-column: span 2; }
  .rd-esimpanel { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .rd-home { --rd-gutter: 16px; }
  .rd-hero { --rd-hero-h: auto; min-height: 610px; }
  .rd-hero__inner { padding-top: 88px; }
  body.header-normal .rd-hero__inner,
  body.header-normal_white .rd-hero__inner { padding-top: 40px; }
  .rd-hero__title { font-size: clamp(36px, 10vw, 46px); }
  .rd-hero__sub { font-size: 15.5px; }
  .rd-hero__searchwrap { margin-top: 20px; padding-bottom: 24px; }
  .rd-search { border-radius: var(--rd-radius-md); }
  .rd-search__tab { min-width: 96px; padding: 12px 8px; font-size: 13px; }
  .rd-search__panel { padding: 16px; }
  .rd-search__panel .gotrip_form_search .button-item .button,
  .rd-transfer-search .mainSearch__submit { min-height: 48px; }
  .rd-transfer-field { padding-block: 2px; }
  .rd-sec__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rd-sec__title { font-size: 23px; }

  /* Horizontal snap-scroll rails on phones — matches the mobile mock */
  .rd-cards {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--rd-gutter) * -1);
    padding-inline: var(--rd-gutter);
    scrollbar-width: none;
  }
  .rd-cards::-webkit-scrollbar { display: none; }
  .rd-cards > * { flex: 0 0 48%; scroll-snap-align: start; }
  .rd-mosaic { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .rd-tile--wide { grid-column: span 1; }
  .rd-tile { min-height: 210px; }
  .rd-tile__title { font-size: 21px; }
  .rd-trust { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 20px; }
  .rd-band { grid-template-columns: 1fr; }
  .rd-builder { padding: 30px 22px; border-radius: var(--rd-radius-lg); }
  .rd-builder__title { font-size: 25px; }
  .rd-hero__badges { display: none; }
  .rd-card__title { font-size: 15px; }
  .rd-explore__layout { gap: 16px; }
  .rd-tabs { margin-bottom: 18px; scroll-snap-type: x proximity; }
  .rd-tab { min-height: 44px; scroll-snap-align: start; }
  .rd-search__tab { min-height: 48px; }
  .rd-btn, .rd-sec__link, .rd-destlist__link { min-height: 44px; align-items: center; }
  .rd-card__wish .button { width: 40px; height: 40px; }
  .rd-step { min-height: 128px; }
  body.rd-home-page .select2-dropdown { max-width: calc(100vw - 32px); }
}

/* Small phones */
@media (max-width: 575px) {
  .rd-home { --rd-gutter: 16px; }
  .rd-sec { padding: 34px 0; }
  .rd-hero { min-height: 600px; }
  .rd-hero__inner,
  body.header-normal .rd-hero__inner,
  body.header-normal_white .rd-hero__inner { padding-top: 32px; }
  .rd-hero__copy { max-width: 100%; }
  .rd-hero__title { font-size: clamp(34px, 11vw, 44px); line-height: 1; }
  .rd-hero__sub { font-size: 14.5px; line-height: 1.45; }
  .rd-search__tabs { scroll-snap-type: x mandatory; }
  .rd-search__tab { flex: 0 0 25%; min-width: 82px; flex-direction: column; gap: 4px; scroll-snap-align: start; }
  .rd-search__tab svg { width: 18px; height: 18px; }
  .rd-search__panel { padding: 12px; }
  .rd-search__panel .gotrip_form_search .field-items .row > [class*="col-"] { padding: 12px !important; }
  .rd-transfer-search .button-item,
  .rd-search__panel .gotrip_form_search .button-item { margin-top: 8px; }
  .rd-sec__head { margin-bottom: 18px; }
  .rd-sec__title { font-size: 22px; }
  .rd-cards > * { flex-basis: 78%; }
  .rd-card__media { aspect-ratio: 16 / 10; }
  .rd-destlist { padding: 18px 14px; }
  .rd-destlist__items { grid-template-columns: 1fr 1fr; gap: 2px; }
  .rd-dest { padding: 7px 4px; gap: 8px; }
  .rd-dest__thumb { width: 52px; height: 42px; }
  .rd-tile { min-height: 180px; }
  .rd-tile__body { padding: 18px; }
  .rd-tile__text { display: none; }
  .rd-trust { grid-template-columns: 1fr 1fr; gap: 16px 10px; padding: 18px 14px; }
  .rd-trust__item { align-items: flex-start; gap: 9px; }
  .rd-trust__icon { width: 32px; height: 32px; }
  .rd-trust__title { font-size: 13px; }
  .rd-trust__text { font-size: 11.5px; }
  .rd-builder { padding: 26px 18px; gap: 22px; }
  .rd-builder__steps { grid-template-columns: 1fr; gap: 10px; }
  .rd-step { min-height: 0; padding: 17px 16px; }
  .rd-panel { padding: 18px 16px; }
  .rd-panel__head { align-items: flex-start; }
  .rd-post { grid-template-columns: 82px minmax(0,1fr); }
  .rd-mobilenav__item { min-height: 58px; }
  body:has(.rd-mobilenav) .bravo_wrap { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* Very narrow phones and browser split-screen */
@media (max-width: 380px) {
  .rd-home { --rd-gutter: 12px; }
  .rd-hero__title { font-size: 32px; }
  .rd-hero__sub { font-size: 14px; }
  .rd-search__tab { min-width: 76px; font-size: 11.5px; }
  .rd-cards > * { flex-basis: 86%; }
  .rd-destlist__items, .rd-trust { grid-template-columns: 1fr; }
  .rd-dest__thumb { width: 58px; }
  .rd-panel__head { display: block; }
  .rd-panel__head .rd-sec__link { margin-top: 6px; }
}

/* Short landscape phones: content, not viewport height, determines the hero. */
@media (max-height: 520px) and (orientation: landscape) {
  .rd-hero { min-height: 560px; }
  .rd-hero__inner { padding-top: 28px; }
  .rd-hero__title { font-size: 38px; }
  .rd-hero__sub { font-size: 14px; }
}

/* Ultrawide screens retain readable line lengths instead of stretching cards. */
@media (min-width: 1800px) {
  .rd-home { --rd-shell: 1520px; --rd-gutter: 40px; }
  .rd-hero__copy { max-width: 680px; }
}

/* Motion & print hygiene */
@media (prefers-reduced-motion: reduce) {
  .rd-home *, .rd-home *::before, .rd-home *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  .rd-hero__media video { display: none; }
}

/* RTL */
.is-rtl .rd-hero__scrim {
  background:
    linear-gradient(180deg, rgba(18,32,60,.72) 0%, rgba(18,32,60,.30) 34%, rgba(18,32,60,.20) 55%, rgba(18,32,60,.55) 100%),
    linear-gradient(270deg, rgba(18,32,60,var(--rd-hero-scrim, .45)) 0%, rgba(18,32,60,0) 62%);
}
.is-rtl .rd-card__flag { left: auto; right: 0; border-radius: 6px 0 0 6px; }
.is-rtl .rd-card__wish { right: auto; left: 10px; }

/* ============================================================
   7 — MOBILE BOTTOM NAV (phones only)
   ============================================================ */
.rd-mobilenav { display: none; }

@media (max-width: 767px) {
  .rd-mobilenav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    display: flex; align-items: stretch;
    background: var(--rd-white);
    border-top: 1px solid var(--rd-border);
    box-shadow: 0 -2px 16px rgba(26,43,78,.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .rd-mobilenav__item {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 4px 8px;
    font-size: 11px; font-weight: 500; color: var(--rd-muted);
    transition: color var(--rd-transition);
  }
  .rd-mobilenav__item svg { width: 21px; height: 21px; }
  .rd-mobilenav__item span {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .rd-mobilenav__item.is-current,
  .rd-mobilenav__item:active { color: var(--rd-blue); }

  /* Keep the bar from covering the end of the page. */
  body:has(.rd-mobilenav) .bravo_wrap { padding-bottom: 64px; }
}
