/* Polyana Travel v15 — homepage headlines, Alpine background fade, mobile hero. */
/* 1. Smooth, white centre without recolouring the original WebP. */
body {
  --pt-fade-1: clamp(30px, 6.5vw, 115px);
  --pt-fade-2: clamp(100px, 11.5vw, 210px);
  --pt-fade-3: clamp(185px, 20vw, 350px);
  background-color: #fff !important;
  background-image:
    linear-gradient(90deg,
      transparent 0,
      transparent var(--pt-fade-1),
      rgba(255,255,255,.34) var(--pt-fade-2),
      #fff var(--pt-fade-3),
      #fff calc(100% - var(--pt-fade-3)),
      rgba(255,255,255,.34) calc(100% - var(--pt-fade-2)),
      transparent calc(100% - var(--pt-fade-1)),
      transparent 100%
    ),
    url('/assets/site-bg-polyana-v13.webp') !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, cover !important;
  background-position: center center, center top !important;
  background-attachment: fixed, fixed !important;
}

/* 2. Home section headings: centred charcoal + crimson, not forest green/gold. */
body.pt-home-page .holiday-heading,
body.pt-home-page .today-heading,
body.pt-home-page .prices-heading,
body.pt-home-page .routes-heading {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
body.pt-home-page .today-heading-row,
body.pt-home-page .prices-heading-row,
body.pt-home-page .routes-heading-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  text-align: center !important;
}
body.pt-home-page .section-heading:is(.holiday-heading,.today-heading,.prices-heading,.routes-heading) .section-eyebrow {
  display: flex !important;
  justify-content: center !important;
  color: #b21b2c !important;
  text-align: center !important;
}
body.pt-home-page .section-heading:is(.holiday-heading,.today-heading,.prices-heading,.routes-heading) .section-eyebrow::before {
  background: #b21b2c !important;
}
body.pt-home-page :is(.holiday-display,.today-display,.prices-display,.routes-display),
body.pt-home-page :is(.holiday-display-dark,.today-display span,.prices-display span,.routes-display span) {
  color: #161616 !important;
  text-align: center !important;
}
body.pt-home-page :is(.holiday-display-accent,.today-display em,.prices-display em,.routes-display em) {
  color: #b51227 !important;
  font-style: normal !important;
}
body.pt-home-page .section-heading:is(.holiday-heading,.today-heading,.prices-heading,.routes-heading) p {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  color: #33353b !important;
}
body.pt-home-page .today-heading-row > .today-status,
body.pt-home-page .prices-heading-row > .prices-badges,
body.pt-home-page .routes-heading-row > .routes-update {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

/* 3. On phones: header -> navy text panel -> slide photo. No empty navy zone. */
@media (max-width: 720px) {
  body {
    --pt-fade-1: 8px;
    --pt-fade-2: 24px;
    --pt-fade-3: clamp(52px, 20vw, 96px);
    background-attachment: scroll, scroll !important;
  }
  .home-hero,
  .home-hero .hero-stage {
    background: #10192c !important;
  }
  .home-hero .hero-stage {
    height: clamp(630px, 165vw, 750px) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .home-hero .hero-slide {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden;
  }
  .home-hero .hero-slide-content {
    order: 0;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 107px 17px 24px !important;
    background: linear-gradient(180deg, #10192c, #111b30) !important;
    text-align: center !important;
    color: #fff !important;
    z-index: 1 !important;
  }
  .home-hero .hero-slide-content :is(h1,h2) {
    max-width: 580px;
    margin: 0 auto !important;
  }
  .home-hero .hero-slide-content p {
    max-width: 540px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .home-hero .hero-btn { margin-top: 15px !important; }
  .home-hero .hero-slide-image {
    order: 1;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center 45% !important;
  }
  .home-hero .hero-shade { display: none !important; }
}
