/* BookingNile homepage: two visible sailing-type cards, each 50% of the row.
   Hide Lake Nasser in Razor (not deleted from the master data).
   The two local card images are manually supplied in /images/uploads/.
   All changes are scoped to the homepage sailing-types section. */
body.bn-home-page #sailing-types .bn-home-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.bn-home-page #sailing-types .bn-home-type-grid > .bn-home-type-card {
  grid-column: auto;
}
@media (max-width: 720px) {
  body.bn-home-page #sailing-types .bn-home-type-grid {
    grid-template-columns: 1fr;
  }
}

/* Home brand showcase: isolated carousel, uses the existing homepage arrow behavior. */
body.bn-home-page #cruise-brands .bn-home-section-head {
  align-items: end;
}
body.bn-home-page #cruise-brands .bn-home-brand-track {
  grid-auto-columns: minmax(150px, calc((100% - 72px) / 5));
  /* Center a short row without clipping the first logo when the carousel overflows. */
  justify-content: start;
  justify-content: safe center;
  gap: 18px;
  padding: 2px 2px 15px;
}
body.bn-home-page #cruise-brands .bn-home-brand-card {
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e9f3;
  border-radius: 14px;
  background: #fff;
  padding: 20px 18px;
  box-shadow: 0 5px 18px rgba(13, 45, 97, .045);
  overflow: hidden;
}
body.bn-home-page #cruise-brands .bn-home-brand-card img {
  display: block;
  max-width: 100%;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
}
body.bn-home-page #cruise-brands .bn-home-brand-no-logo {
  color: #284774;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
body.bn-home-page #cruise-brands .bn-home-brand-placeholder {
  border-style: dashed;
  background: #f8fafd;
  color: #8c9fb7;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .1px;
  text-align: center;
}
body.bn-home-page #cruise-brands .bn-home-brand-placeholder i {
  font-size: 21px;
  color: #a6b6ca;
}
@media (max-width: 980px) {
  body.bn-home-page #cruise-brands .bn-home-brand-track {
    grid-auto-columns: minmax(170px, calc((100% - 36px) / 3));
  }
}
@media (max-width: 720px) {
  body.bn-home-page #cruise-brands .bn-home-brand-track {
    grid-auto-columns: minmax(150px, 70%);
    gap: 12px;
  }
  body.bn-home-page #cruise-brands .bn-home-brand-card {
    height: 112px;
  }
}


/* Why Book + dynamic numbers: fully scoped, polished navy treatment. */
body.bn-home-page #why-book-bookingnile { background: #fff; }
body.bn-home-page #why-book-bookingnile .bn-home-advantage-title { text-align: center; margin: 0 auto 34px; max-width: 720px; }
body.bn-home-page #why-book-bookingnile .bn-home-advantage-title h2 {
  margin: 8px 0 11px; font-size: clamp(28px, 3.05vw, 38px); font-weight: 800;
  color: #102e60; letter-spacing: -.04em; line-height: 1.2;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-title p {
  margin: 0; color: #61758e; font-size: 15px; line-height: 1.65;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-card {
  position: relative; min-width: 0; overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, #f7faff 100%);
  border: 1px solid #e3eaf3; border-radius: 16px;
  padding: 27px 22px 26px; box-shadow: 0 8px 26px rgba(17, 50, 100, .035);
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-card::before {
  content: ''; position: absolute; top: 0; left: 22px; width: 39px;
  height: 3px; background: #4ca7e8; border-radius: 0 0 5px 5px;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-icon {
  width: 49px; height: 49px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: #e9f3ff; color: #175da2;
  margin-bottom: 19px; font-size: 20px;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-card h3 {
  margin: 0 0 11px; color: #112f60; font-size: 16px;
  font-weight: 750; line-height: 1.4; letter-spacing: -.012em;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-card p {
  margin: 0; color: #65788e; font-size: 13px; line-height: 1.78;
}
body.bn-home-page #why-book-bookingnile .bn-home-advantage-stats {
  position: relative; isolation: isolate; margin-top: 27px;
  color: #fff; border-radius: 20px; overflow: hidden;
  padding: 38px 28px 37px;
  background:
    radial-gradient(ellipse at 8% 9%, rgba(86, 163, 230, .24), transparent 38%),
    radial-gradient(ellipse at 96% 95%, rgba(12, 113, 198, .21), transparent 45%),
    linear-gradient(115deg, #0b2a58 0%, #123b76 52%, #0a2b5c 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 38px rgba(14, 47, 98, .15);
}
body.bn-home-page #why-book-bookingnile .bn-home-stats-intro {
  max-width: 660px; margin: 0 auto 29px; text-align: center;
}
body.bn-home-page #why-book-bookingnile .bn-home-stats-eyebrow {
  display: block; margin-bottom: 8px; color: #a4d5ff;
  font-size: 10px; letter-spacing: .17em; font-weight: 800;
}
body.bn-home-page #why-book-bookingnile .bn-home-stats-heading {
  margin: 0 0 9px; color: #fff;
  font-size: clamp(22px, 2.7vw, 31px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.24;
}
body.bn-home-page #why-book-bookingnile .bn-home-stats-intro p {
  margin: 0; color: #cadaec; font-size: 13px; line-height: 1.65;
}
body.bn-home-page #why-book-bookingnile .bn-home-stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
}
body.bn-home-page #why-book-bookingnile .bn-home-stat {
  display: flex; flex-direction: column; align-items: center;
  min-width: 0; padding: 9px 18px 7px; gap: 0; text-align: center;
}
body.bn-home-page #why-book-bookingnile .bn-home-stat + .bn-home-stat {
  border-left: 1px solid rgba(255, 255, 255, .17);
}
body.bn-home-page #why-book-bookingnile .bn-home-stat-icon {
  display: block; width: 59px; height: 59px; object-fit: contain;
  margin: 0 0 15px; filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .11));
}
body.bn-home-page #why-book-bookingnile .bn-home-stat strong {
  display: block; color: #fff; font-size: clamp(34px, 3.7vw, 49px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.12;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.bn-home-page #why-book-bookingnile .bn-home-stat span {
  display: block; margin-top: 12px; color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.42;
}
body.bn-home-page #why-book-bookingnile .bn-home-stat small {
  display: block; max-width: 180px; margin-top: 8px;
  font-size: 11px; line-height: 1.55; font-weight: 450; color: #b5cce7;
}
@media (max-width: 980px) {
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.bn-home-page #why-book-bookingnile .bn-home-stat { padding-inline: 11px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat span { font-size: 12px; }
}
@media (max-width: 650px) {
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-title { margin-bottom: 24px; }
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-grid { grid-template-columns: 1fr; gap: 12px; }
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-card { padding: 20px; }
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-icon { width: 43px; height: 43px; margin-bottom: 12px; }
  body.bn-home-page #why-book-bookingnile .bn-home-advantage-stats { padding: 31px 12px 30px; border-radius: 17px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stats-intro { margin-bottom: 25px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 25px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat { padding: 10px 6px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat + .bn-home-stat { border-left: 0; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .17); }
  body.bn-home-page #why-book-bookingnile .bn-home-stat-icon { width: 52px; height: 52px; margin-bottom: 11px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat strong { font-size: clamp(32px, 8vw, 42px); }
  body.bn-home-page #why-book-bookingnile .bn-home-stat span { font-size: 12px; margin-top: 9px; }
  body.bn-home-page #why-book-bookingnile .bn-home-stat small { font-size: 10px; }
}
