/* Homepage v2 — faithful implementation of the selected Rihla reference. */
.rd-home { --rd-shell: 1640px; --rd-gutter: 38px; --rd-blue: #0962df; --rd-navy: #082b60; --rd-navy-deep: #032b59; --rd-border: #dce6f2; --rd-surface: #f5f9fe; }
.rd-home__shell { max-width: var(--rd-shell); }
.rd-sec { padding: 34px 0; }
.rd-sec__title { color: #062b61; font-size: 34px; font-weight: 700; letter-spacing: -.035em; }
.rd-sec__sub { color: #65758c; font-size: 15px; margin-top: 2px; }
.rd-sec__head { margin-bottom: 20px; align-items: center; }
.rd-sec__link { min-height: 44px; padding: 0 20px; border: 1px solid #bfd5f3; border-radius: 24px; color: #075fcf; }
.rd-sec__link::after { content: '→'; margin-left: 10px; }

body.rd-home-page .header { min-height: 96px; background: #063875; }
body.rd-home-page .header .header__container { max-width: 1640px; padding-inline: 38px; }
body.rd-home-page .header .header-logo img { max-height: 62px; }
body.rd-home-page .header .menu__nav > li > a { font-size: 14px; font-weight: 500; }

.rd-hero { min-height: 760px; justify-content: center; overflow: visible; margin-bottom: 32px; }
.rd-hero__media, .rd-hero__scrim { overflow: hidden; }
.rd-hero__media img, .rd-hero__media video { object-position: center 52%; }
.rd-hero__scrim { background: rgba(3, 24, 55, .34); }
.rd-hero__inner, body.header-normal .rd-hero__inner, body.header-normal_white .rd-hero__inner { padding: 60px var(--rd-gutter) 0; position: relative; }
.rd-hero__copy { max-width: 760px; }
.rd-hero__eyebrow { padding: 0; margin-bottom: 12px; background: transparent; backdrop-filter: none; border-radius: 0; font-size: 13px; letter-spacing: .16em; }
.rd-hero__eyebrow svg { display: none; }
.rd-hero__title { font-family: var(--rd-font-display); font-size: clamp(58px, 5.2vw, 86px); line-height: .98; font-weight: 700; letter-spacing: -.045em; text-shadow: 0 3px 26px rgba(0,0,0,.35); }
.rd-hero__sub { max-width: 760px; font-size: 18px; line-height: 1.42; margin-top: 12px; }
.rd-hero__note { position: absolute; right: 58px; top: 270px; color: #fff; font-family: cursive; font-size: 23px; font-style: italic; transform: rotate(-5deg); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.rd-hero__searchwrap { margin-top: 76px; padding-bottom: 0; }
.rd-search { border-radius: 16px; border: 1px solid rgba(255,255,255,.55); box-shadow: 0 22px 50px rgba(3,27,62,.28); }
.rd-search__tabs { padding: 0 18px; }
.rd-search__tab { min-height: 66px; padding: 16px 18px; font-size: 15px; }
.rd-search__tab svg { width: 22px; height: 22px; }
.rd-search__panel { padding: 14px 18px 18px; }
.rd-search__panel .gotrip_form_search .field-items .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; }
.rd-search__panel .gotrip_form_search .field-items .row > [class*="col-"] { width: auto; max-width: none; min-height: 66px; display: flex; align-items: center; padding: 10px 20px !important; background: #f3f7fc; border-radius: 9px; }
.rd-search__panel .gotrip_form_search .button-item { min-width: 230px; padding-left: 10px; }
.rd-search__panel .gotrip_form_search .button-item .button { height: 66px; border-radius: 9px !important; font-size: 16px; }
.rd-search__panel .gotrip_form_search h4 { color: #173d70; font-size: 13px; }
.rd-search__panel .text-light-1 { color: #667790 !important; }
.rd-hero__playback { top: 38px; }
.rd-shortcuts { display: none !important; }

.rd-stays { padding-top: 22px; }
.rd-property-groups { display: grid; gap: 26px; }
.rd-property-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rd-property-group__head h3 { display: flex; align-items: center; gap: 8px; color: #103b70; font-family: var(--rd-font-body); font-size: 18px; font-weight: 700; }
.rd-property-group__head h3 svg { width: 19px; height: 19px; color: #0862df; }
.rd-property-group__head a { color: #0962df; font-size: 13px; font-weight: 700; }
.rd-cards { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.rd-card { min-width: 0; padding: 0 0 12px; border: 1px solid #dce6f2; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(7,42,88,.045); overflow: hidden; }
.rd-card__media { aspect-ratio: 1.52; border-radius: 9px 9px 0 0; }
.rd-card__body { padding: 10px 12px 0; min-height: 155px; display: flex; flex-direction: column; align-items: flex-start; }
.rd-card__title { font-size: 13px; line-height: 1.25; min-height: 32px; }
.rd-card__loc { margin-top: 1px; color: #62728a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.rd-card__rating { display: flex; align-items: center; gap: 5px; margin-top: 6px; min-height: 16px; font-size: 10px; color: #69788f; }
.rd-card__rating b { color: #143862; }
.rd-card__stars { margin: 0; font-size: 9px; }
.rd-card__type { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 7px; padding: 3px 7px; border-radius: 5px; background: #e6f6ec; color: #178444; font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-card__type--space { background: #eee9ff; color: #6241c7; }
.rd-card__foot { width: 100%; margin-top: auto; padding-top: 8px; border: 0; }
.rd-card__price { text-align: left; }
.rd-card__price small { display: block; color: #8793a4; font-size: 10px; line-height: 1.1; }
.rd-card__price b { font-size: 15px; }
.rd-card__wish { top: 9px; right: 9px; }
.rd-card__wish .button { width: 34px; height: 34px; min-height: 34px; }
.rd-card__no-photo { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #6f7e92; font-size: 12px; }

#rd-destinations { background: #f5f9fe; padding-top: 42px; }
.rd-destinations__head { margin-bottom: 26px; }
.rd-destination-groups { gap: 28px; }
.rd-destination-group__head { margin-bottom: 12px; }
.rd-destination-group__head h3 { color: #082f64; font-size: 22px; }
.rd-destination-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 128px; gap: 10px; grid-template-areas: "a b c" "a d e" "f g h"; }
.rd-destination-group--international .rd-destination-grid { grid-template-areas: "a b c" "a d e" "f g h"; }
.rd-destination-grid[data-count="1"] { grid-template-areas: "a a a" "a a a"; }
.rd-destination-grid[data-count="2"] { grid-template-areas: "a a b" "a a b"; }
.rd-destination-grid[data-count="3"] { grid-template-areas: "a a b" "a a c"; }
.rd-destination-grid[data-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "a b" "a c" "a d"; }
.rd-destination-grid[data-count="5"] { grid-template-areas: "a a b" "c d e"; }
.rd-destination-grid[data-count="6"] { grid-template-areas: "a a b" "a a c" "d e f"; }
.rd-destination-grid[data-count="7"] { grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-areas: "a a b c" "d e f g"; }
.rd-destination-grid[data-count="8"] { grid-template-areas: "a b c" "a d e" "f g h"; }
.rd-destination-card:nth-child(7) { grid-area: g; }
.rd-destination-card:nth-child(8) { grid-area: h; }
.rd-destination-card { border-radius: 9px; box-shadow: 0 4px 14px rgba(4,33,72,.12); }
.rd-destination-card span { font-size: 13px; padding: 26px 11px 10px; }
.rd-destination-card:first-child span { font-size: 22px; }
.rd-destination-more__link { background: #fff; }

.rd-experiences { margin-top: 42px; }
.rd-mosaic { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rd-tile { min-height: 278px; border-radius: 11px; box-shadow: 0 7px 22px rgba(4,33,72,.12); }
.rd-tile::after { background: rgba(3,23,51,.36); }
.rd-tile__body { padding: 24px; }
.rd-tile__title { font-size: 23px; }
.rd-tile__text { font-size: 13px; }
.rd-tile__cta { min-height: 36px; padding: 0 14px; border-radius: 6px; background: #fff; color: #0962df; font-size: 12px; }

.rd-insights { padding-top: 0; }
.rd-band { gap: 18px; }
.rd-panel { border-radius: 10px; padding: 20px; }
.rd-panel--reviews { background: #fff; }
.rd-news { background: #f1f7ff; }
.rd-trust { border: 1px solid #e1eaf5; border-radius: 10px; background: #f4f8fd; }
.rd-reassurance { padding: 0 0 34px; }
body.rd-home-page .footer { background: #032b59; }
body.rd-home-page .footer .container { max-width: 1640px; padding-inline: 38px; }

@media (max-width: 1399px) {
  .rd-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rd-card:nth-child(n+9) { display: none; }
}
@media (max-width: 991px) {
  .rd-home { --rd-gutter: 24px; }
  .rd-hero { min-height: 740px; margin-bottom: 18px; }
  .rd-hero__inner, body.header-normal .rd-hero__inner, body.header-normal_white .rd-hero__inner { padding-top: 34px; }
  .rd-hero__searchwrap { margin-top: 42px; }
  .rd-hero__note { display: none; }
  .rd-search__panel .gotrip_form_search .field-items .row { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rd-search__panel .gotrip_form_search .button-item { padding-left: 0; min-width: 100%; }
  .rd-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .rd-destination-groups { grid-template-columns: 1fr; }
  .rd-destination-grid { grid-auto-rows: 148px; }
}
@media (max-width: 767px) {
  .rd-home { --rd-gutter: 16px; }
  body.rd-home-page .header { min-height: 72px; }
  .rd-hero { min-height: 760px; }
  .rd-hero__title { font-size: 43px; }
  .rd-hero__sub { font-size: 15px; }
  .rd-hero__searchwrap { margin-top: 34px; }
  .rd-search__tabs { padding: 0 5px; }
  .rd-search__tab { min-width: 120px; min-height: 54px; }
  .rd-search__panel .gotrip_form_search .field-items .row { display: grid; grid-template-columns: 1fr; }
  .rd-search__panel .gotrip_form_search .field-items .row > [class*="col-"] { min-height: 58px; }
  .rd-search__panel .gotrip_form_search .button-item .button { height: 56px; }
  .rd-sec__title { font-size: 28px; }
  .rd-sec__head { flex-direction: row; align-items: center; }
  .rd-property-group__head { margin-bottom: 10px; }
  .rd-property-groups, .rd-property-group { min-width: 0; width: 100%; }
  .rd-cards { display: flex; width: calc(100% + (var(--rd-gutter) * 2)); max-width: 100vw; gap: 12px; margin-inline: calc(var(--rd-gutter) * -1); padding-inline: var(--rd-gutter); overflow-x: auto; }
  .rd-cards > * { flex: 0 0 min(74vw, 290px); }
  .rd-card__body { min-height: 145px; }
  .rd-destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 104px; grid-template-areas: "a a" "a a" "b c" "d e" "f g" "h h"; }
  .rd-destination-group--international .rd-destination-grid { grid-template-areas: "a a" "a a" "b c" "d e" "f g" "h h"; }
  .rd-destination-grid[data-count="1"] { grid-template-areas: "a a" "a a"; }
  .rd-destination-grid[data-count="2"] { grid-template-areas: "a a" "a a" "b b"; }
  .rd-destination-grid[data-count="3"] { grid-template-areas: "a a" "a a" "b c"; }
  .rd-destination-grid[data-count="4"] { grid-template-areas: "a a" "a a" "b c" "d d"; }
  .rd-destination-grid[data-count="5"] { grid-template-areas: "a a" "a a" "b c" "d e"; }
  .rd-destination-grid[data-count="6"] { grid-template-areas: "a a" "a a" "b c" "d e" "f f"; }
  .rd-destination-grid[data-count="7"] { grid-template-areas: "a a" "a a" "b c" "d e" "f g"; }
  .rd-destination-grid[data-count="8"] { grid-template-areas: "a a" "a a" "b c" "d e" "f g" "h h"; }
  .rd-mosaic { display: flex; }
  .rd-tile { flex: 0 0 86%; }
  .rd-band { grid-template-columns: 1fr; }
  .rd-trust { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.rd-home-page .footer .container { padding-inline: 16px; }
}
