/* Brand polish — cross-page alignment, spacing, and premium travel-site consistency */

:root {
  --brand-page-bg: #f4f6fb;
  --brand-container-max: 1280px;
  --brand-section-gap: 3rem;
  --brand-radius-lg: 14px;
  --brand-shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --brand-shadow-elevated: 0 12px 40px rgba(72, 8, 148, 0.12);
}

/* ── Page shells ── */

.product-landing-page,
.product-search-page,
.booking-flow-page,
.search-results-page {
  background: var(--brand-page-bg);
}

.product-landing-page .site-footer-wrap,
.product-search-page .site-footer-wrap,
.booking-flow-page .site-footer-wrap {
  margin-top: 0;
}

.product-results-layout {
  max-width: var(--brand-container-max);
  padding-bottom: 3rem;
}

/* ── Product landings: brand-aligned heroes ── */

.product-landing-hero {
  position: relative;
  padding: 3.25rem 0 0;
  color: #fff;
  background: linear-gradient(135deg, #480894 0%, #6309C5 52%, #7C0BF4 100%);
}

.product-landing-hero--hotel,
.product-landing-hero--car,
.product-landing-hero--yacht {
  background: linear-gradient(135deg, #480894 0%, #6309C5 52%, #7C0BF4 100%);
}

.product-landing-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.product-landing-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  max-width: 720px;
}

.product-landing-hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 1.35rem;
  max-width: 640px;
}

.product-landing-hero__card {
  background: #fff;
  border-radius: var(--brand-radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--brand-shadow-elevated);
  color: #0f172a;
  max-width: 100%;
}

.product-landing-hero__card .product-search-form label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.product-landing-hero__card .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
  min-height: 46px;
  font-weight: 600;
  color: #0f172a;
}

.product-landing-hero__card .form-control:focus {
  border-color: #B56CF9;
  box-shadow: 0 0 0 3px rgba(124, 11, 244, 0.14);
}

.product-landing-hero__card .product-search-form__actions {
  margin-top: 1.1rem;
}

.product-landing-hero__card .btn-search-submit {
  min-width: 180px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
}

/* ── Unified feature cards (home + product landings) ── */

.product-feature-card,
.feature-card {
  border-radius: var(--brand-radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-feature-card {
  background: #fff;
  border: 1px solid #e8edf3;
  padding: 1.65rem 1.5rem;
  height: 100%;
  box-shadow: var(--brand-shadow-card);
  text-align: center;
}

.product-feature-card .material-symbols-outlined {
  font-size: 2.25rem;
  color: #7C0BF4;
  margin-bottom: 0.85rem;
  display: block;
}

.product-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.55rem;
}

.product-feature-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.product-feature-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(72, 8, 148, 0.1);
}

.product-landing-features {
  max-width: var(--brand-container-max);
}

/* ── Product search results (shared with flight summary styles) ── */

.product-search-summary.search-summary {
  background-color: #2e1065;
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, 0.72) 0%, rgba(49, 16, 102, 0.62) 48%, rgba(76, 29, 149, 0.55) 100%),
    var(--search-summary-bg, url('../img/home/hero-bgg2.jpg'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #0f172a;
  padding: 1.15rem 0 1.35rem;
  box-shadow: none;
}

.product-search-summary__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #0f172a;
}

.product-results-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.25rem 0 1rem;
}

.product-results-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #475569;
}

.product-results-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-results-trust .zmdi,
.product-results-trust .material-symbols-outlined {
  color: #7C0BF4;
  font-size: 1rem;
}

.product-result-card {
  border-radius: var(--brand-radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-result-card:hover {
  border-color: #D4A8FC;
  box-shadow: 0 10px 28px rgba(72, 8, 148, 0.1);
  transform: translateY(-1px);
}

.product-result-card__select {
  border-radius: 10px;
  font-weight: 700;
}

/* ── Product booking hero ── */

.booking-hero--product .booking-hero__route {
  justify-content: flex-start;
  gap: 0.75rem;
}

.booking-hero--product .booking-hero__city {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-hero--product .booking-hero__city .material-symbols-outlined {
  font-size: 1.75rem;
  opacity: 0.9;
}

.booking-hero--product .booking-hero__arrow {
  display: none;
}

.booking-hero--product .booking-hero__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  opacity: 0.88;
  font-weight: 600;
}

/* ── Airline / compact hero ── */

.hero-section--compact {
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
}

.hero-section--compact .hero-promo {
  margin-bottom: 2rem;
}

.hero-section--compact .hero-promo__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.hero-section--compact .unified-search-card,
.hero-section--compact .search-card {
  margin-top: 0.5rem;
}

/* ── Header nav polish ── */

@media (min-width: 992px) and (max-width: 1399px) {
  .site-navbar__nav .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .site-navbar__nav .nav-link span:not(.site-navbar__icon) {
    font-size: 0.84rem;
  }

  .site-navbar__icon {
    font-size: 1.15rem !important;
  }

  .site-navbar__cta-phone {
    font-size: 0.88rem;
  }
}

.site-navbar__link-secondary {
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ── Section typography rhythm ── */

.container > .text-center.mb-4 > h2,
.container > .text-center.mb-4 > h3 {
  letter-spacing: -0.02em;
}

.container.py-5,
.container.pb-5 {
  padding-top: clamp(2.5rem, 5vw, 3.5rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem) !important;
}

/* ── Company pages on gray canvas ── */

.company-page-body {
  background: var(--brand-page-bg);
}

/* ── Portal / my booking ── */

.my-booking-page {
  background: var(--brand-page-bg);
}

/* ── 404 polish ── */

.page-not-found {
  background: var(--brand-page-bg);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.page-not-found__card {
  background: #fff;
  border-radius: var(--brand-radius-lg);
  border: 1px solid #e8edf3;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  box-shadow: var(--brand-shadow-card);
}

/* ── Footer tablet alignment ── */

@media (min-width: 768px) and (max-width: 1199px) {
  .site-footer__grid > .site-footer__links {
    text-align: left;
  }

  .site-footer__brand {
    text-align: left;
  }
}

/* ── Search results empty on product pages ── */

.product-search-page .search-results-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--brand-radius-lg);
  text-align: center;
  padding: 2rem 1.5rem;
}

.product-search-page .search-results-empty .zmdi {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* ── Newsletter + trust on home ── */

.trust-badges {
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1.5rem 0;
}

.newsletter-box {
  border-radius: var(--brand-radius-lg);
}

/* ── Mobile product search form grid ── */

@media (max-width: 767.98px) {
  .product-landing-hero__card .row > [class*="col-"] {
    margin-bottom: 0.75rem;
  }

  .product-landing-hero {
    padding-top: 2rem;
  }

  .unified-search-card__products {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .unified-search-card__products::-webkit-scrollbar {
    display: none;
  }
}

/* ── Legacy teal overrides (cheapskydeal_v2.css) ── */

.bg-modify,
.modify-search-xs .btn,
.route-tabs .nav-link.active,
.search-card__tabs .nav-link.active {
  background-color: #7C0BF4 !important;
  border-color: #7C0BF4 !important;
}

.route-tabs .nav-link.active,
.search-card__tabs .nav-link.active {
  color: #fff !important;
}

.text-success-modify,
.modify-search-xs h3 i,
.route-list a:hover {
  color: #6309C5 !important;
}
