/* T147 — Mobile homepage glass parity.
   Scope: homepage only, screens up to 920px. Keeps the single continuous scene
   introduced in T145/T146 and makes every lower-home surface read as real
   transparent glass instead of an opaque navy panel. Desktop and NFC are untouched. */

@media (max-width: 920px) {
  body.nile-home-active #home .home-after-hero-content {
    isolation: auto !important;
    background: transparent !important;
  }

  body.nile-home-active #home .home-after-hero-content > .booking-policies-lux,
  body.nile-home-active #home .home-after-hero-content > .atmosphere-highlight,
  body.nile-home-active #home .home-after-hero-content > .gallery-showcase,
  body.nile-home-active #home .home-after-hero-content > .identity-section,
  body.nile-home-active #home .home-after-hero-content > .stats-strip,
  body.nile-home-active #home .home-after-hero-content > .feature-strip,
  body.nile-home-active #home .home-after-hero-content > .guest-reviews-section,
  body.nile-home-active #home .home-after-hero-content > .partner-promo {
    isolation: auto !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  body.nile-home-active #home .home-after-hero-content > .booking-policies-lux {
    overflow: visible !important;
  }

  /* One shared mobile glass recipe. The low alpha preserves architecture and
     lighting behind the cards, while the edge/highlight keeps text readable. */
  body.nile-home-active #home .booking-policies-lux .booking-policy-card,
  body.nile-home-active #home .home-after-hero-content .gallery-card,
  body.nile-home-active #home .home-after-hero-content .identity-section,
  body.nile-home-active #home .home-after-hero-content .stats-strip,
  body.nile-home-active #home .home-after-hero-content .feature-strip,
  body.nile-home-active #home .home-after-hero-content .reviews-list-card,
  body.nile-home-active #home .home-after-hero-content .review-form-card,
  body.nile-home-active #home .home-after-hero-content .review-card,
  body.nile-home-active #home .home-after-hero-content .partner-promo,
  body.nile-home-active #home .home-after-hero-content .partner-promo-copy,
  body.nile-home-active #home .home-after-hero-content .atmosphere-highlight .section-copy {
    border-color: rgba(232, 197, 110, .38) !important;
    background:
      radial-gradient(circle at 16% 4%, rgba(210, 236, 255, .13), transparent 34%),
      linear-gradient(145deg,
        rgba(93, 137, 176, .16) 0%,
        rgba(34, 73, 108, .105) 42%,
        rgba(2, 13, 26, .27) 100%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(150%) brightness(1.055) !important;
    backdrop-filter: blur(9px) saturate(150%) brightness(1.055) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .20),
      inset 0 -1px 0 rgba(255, 255, 255, .035),
      0 16px 38px rgba(0, 0, 0, .17) !important;
  }

  body.nile-home-active #home .booking-policies-lux .booking-policy-card::after {
    opacity: .72 !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.028) 36%, transparent 62%),
      radial-gradient(circle at 12% 5%, rgba(214,239,255,.14), transparent 31%) !important;
  }

  /* Inner cells must stay clear so the parent glass remains visible. */
  body.nile-home-active #home .home-after-hero-content .feature-strip > div,
  body.nile-home-active #home .home-after-hero-content .stat-item,
  body.nile-home-active #home .home-after-hero-content .approved-reviews,
  body.nile-home-active #home .home-after-hero-content .partner-promo-copy {
    background-color: transparent !important;
  }

  /* Keep image-led cards cinematic without turning their text areas opaque. */
  body.nile-home-active #home .gallery-showcase .gallery-card-evening > div,
  body.nile-home-active #home .gallery-showcase .gallery-card-heritage > div {
    background: linear-gradient(145deg, rgba(21, 49, 74, .14), rgba(2, 13, 26, .24)) !important;
  }

  body.nile-home-active #home .gallery-showcase .gallery-card-outdoor > div {
    background: linear-gradient(180deg, transparent, rgba(2, 10, 22, .76) 62%) !important;
  }

  /* Slightly stronger glass on compact phones, where each card covers a larger
     percentage of the background image. */
  @media (max-width: 480px) {
    body.nile-home-active #home .booking-policies-lux .booking-policy-card,
    body.nile-home-active #home .home-after-hero-content .gallery-card,
    body.nile-home-active #home .home-after-hero-content .identity-section,
    body.nile-home-active #home .home-after-hero-content .stats-strip,
    body.nile-home-active #home .home-after-hero-content .feature-strip,
    body.nile-home-active #home .home-after-hero-content .reviews-list-card,
    body.nile-home-active #home .home-after-hero-content .review-form-card,
    body.nile-home-active #home .home-after-hero-content .review-card,
    body.nile-home-active #home .home-after-hero-content .partner-promo,
    body.nile-home-active #home .home-after-hero-content .partner-promo-copy,
    body.nile-home-active #home .home-after-hero-content .atmosphere-highlight .section-copy {
      background:
        radial-gradient(circle at 16% 4%, rgba(210, 236, 255, .14), transparent 34%),
        linear-gradient(145deg,
          rgba(93, 137, 176, .17) 0%,
          rgba(34, 73, 108, .11) 42%,
          rgba(2, 13, 26, .29) 100%) !important;
      -webkit-backdrop-filter: blur(8px) saturate(155%) brightness(1.06) !important;
      backdrop-filter: blur(8px) saturate(155%) brightness(1.06) !important;
    }
  }
}
