/* EMBERFARE experience system — Brand/UI V1.1
   Identity lives in styles.css; shared homepage/card presentation is finalized
   by assets/design-closure-v12.css. This layer keeps structural relationships
   and page-world styling, not duplicate card/filter geometry. */

.hero-kicker,.hero-lead,.home-filter-selects,.master-fare-select,.static-route-select{display:none}

/* Decorative routes are static by contract. */
.design-route-flight,.search-route-month,.content-route-network,.destinations-flight-route path{animation:none!important}
.prerender-all-deals{display:none!important}

/* Shared route language for generated/static pages. */
.static-deal-page,.miles-page{position:relative;isolation:isolate;overflow-x:hidden}
.page-route-atmosphere{position:absolute;z-index:0;inset:74px 0 0;overflow:hidden;pointer-events:none}
.page-route-atmosphere svg{display:block;width:100%;height:100%;min-height:2600px;overflow:visible}
.page-route-line{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;animation:none}
.page-route-line--primary{stroke:rgba(216,116,86,.46);stroke-width:1.35;stroke-dasharray:10 13}
.page-route-line--branch{stroke:rgba(244,99,63,.2);stroke-width:1.05;stroke-dasharray:4 14}
.page-route-stops circle{fill:var(--cream);stroke:rgba(244,99,63,.68);stroke-width:1.65;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 7px rgba(244,99,63,.24))}
.page-route-aircraft path{fill:rgba(244,99,63,.68);stroke:rgba(255,250,245,.82);stroke-width:.45;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 5px rgba(127,45,25,.18))}
.page-route-labels text{fill:rgba(20,29,51,.37);font:650 10px/1 var(--ui);letter-spacing:.16em}
.content-route-stops circle{fill:var(--cream);stroke:rgba(244,99,63,.75);stroke-width:1.5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 6px rgba(244,99,63,.22))}
.content-route-aircraft path,.destinations-route-aircraft path{fill:rgba(244,99,63,.74);stroke:rgba(255,250,245,.84);stroke-width:.45;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 5px rgba(127,45,25,.18))}
.destinations-route-stop{fill:var(--cream);stroke:rgba(244,99,63,.76);stroke-width:1.6;vector-effect:non-scaling-stroke}
.miles-article-page .page-route-atmosphere{display:none}
.static-deal-page>header,.static-deal-page>main,.static-deal-page>footer,.miles-page>header,.miles-page>main,.miles-page>footer{position:relative;z-index:1}

/* One compact select language for secondary filtering. */
.route-select-control{position:relative;min-width:210px;max-width:300px}
.route-select-control select{appearance:none;width:100%;height:42px;padding:0 43px 0 16px;border:1px solid rgba(20,29,51,.14);border-radius:999px;outline:0;background:rgba(255,250,245,.86);color:var(--ink);font:600 12px/1 var(--ui);letter-spacing:.015em;cursor:pointer;box-shadow:0 7px 18px rgba(20,29,51,.045);backdrop-filter:blur(10px)}
.route-select-control i{position:absolute;right:16px;top:50%;color:var(--coral);font:700 14px/1 var(--ui);transform:translateY(-58%);pointer-events:none}
.route-select-control select:hover{border-color:rgba(244,99,63,.34);background:rgba(255,253,249,.96)}
.route-select-control select:focus-visible{outline:2px solid var(--coral);outline-offset:2px}

/* The continuation CTA is a component, not a bridge/card. */
#loadMoreWrap.is-simple-continuation{grid-column:1/-1;display:flex;justify-content:center;align-items:center;width:100%;margin:clamp(14px,1.5vw,22px) 0 clamp(10px,1vw,16px);padding:0;border:0;background:transparent;box-shadow:none}
#loadMoreWrap.is-simple-continuation[hidden]{display:none!important}
#loadMoreWrap.is-simple-continuation:before{display:none!important}
#loadMoreWrap.is-simple-continuation .feed-bridge-copy,
#loadMoreWrap.is-simple-continuation .feed-low-cost-link,
#loadMoreWrap.is-simple-continuation #loadMoreCount{display:none!important}
#loadMoreWrap.is-simple-continuation .feed-bridge-actions{display:contents}
#loadMoreWrap.is-simple-continuation #loadMoreDeals{width:min(100%,470px);min-height:52px;margin:0}

.back-to-top{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}

/* Search route motif only. Card/filter presentation belongs to Design Closure. */
.master-search:before,.master-search:after,main>.hero .search-panel:after{content:"";position:absolute;z-index:1;width:10px;height:10px;border:1.5px solid rgba(244,99,63,.66);border-radius:50%;background:var(--cream);box-shadow:0 0 0 4px rgba(239,195,178,.16);pointer-events:none}
.master-search:before{left:-17px;top:58%}
.master-search:after{right:8%;top:-16px;width:8px;height:8px;border-color:rgba(224,143,116,.62);box-shadow:0 0 0 3px rgba(239,195,178,.12)}
main>.hero .search-panel:after{right:245px;top:-36px;width:9px;height:9px;background:rgba(247,240,231,.96)}

@media(hover:none),(pointer:coarse){
  .deal-card:hover{transform:none;box-shadow:0 7px 20px rgba(12,23,48,.065)}
  .low-cost-card:hover{transform:none}
}

/* Desktop structural chrome. Search/filter/card geometry is finalized later. */
@media(min-width:1101px){
  body#pageTop main>.deals-section>.home-mobile-filter-ledger,
  body#pageTop main>.deals-section>.fare-type-switcher{display:none!important}

  body#pageTop .master-nav{left:20.2%;right:auto;top:1.18vw;justify-content:flex-start;gap:clamp(18px,2vw,34px);max-width:60%;margin:0}
  .master-nav a{min-height:34px;display:inline-flex;align-items:center}

  body#pageTop main#top>.content-flight-route{opacity:.72}
  body#pageTop main#top>.content-flight-route .content-route-network{stroke:rgba(220,148,126,.62);stroke-width:1.2;stroke-dasharray:8 11;opacity:.62;animation:none}
  body#pageTop main#top>.content-flight-route .content-route-stops{opacity:.8}
  body#pageTop main#top>.content-flight-route .content-route-aircraft{opacity:.84}

  body#pageTop .master-clean-surface{
    top:auto!important;
    bottom:0!important;
    height:clamp(54px,5vw,84px)!important;
    background:linear-gradient(
      to bottom,
      rgba(247,240,231,0),
      rgba(247,240,231,.18) 45%,
      var(--cream) 100%
    )!important
  }

  body#pageTop .master-filters{
    bottom:18px!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important
  }

  body#pageTop .master-filter-row{
    background:transparent!important;
    box-shadow:none!important;
    border:0!important
  }

  body#pageTop .master-filters button{
    border-radius:999px!important;
    background:rgba(255,250,245,.9)!important;
    box-shadow:0 10px 28px rgba(12,23,48,.08)!important;
    backdrop-filter:blur(10px)
  }

  body#pageTop main>.deals-section>.deal-grid{
    margin-top:0
  }

  body#pageTop .low-cost-section{padding-top:clamp(28px,2.4vw,40px);padding-bottom:clamp(54px,4.3vw,74px)}
  body#pageTop .low-cost-section .section-heading{margin-top:0;margin-bottom:clamp(20px,1.7vw,26px)}
  body#pageTop .destinations{padding-top:clamp(66px,6vw,96px);padding-bottom:clamp(70px,6.5vw,104px)}
}

/* Light chapter -> Night editorial chapter. */
body#pageTop .miles-home{position:relative;isolation:isolate;color:var(--cream);border-top:0;background:transparent}
body#pageTop .miles-home:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:var(--night)}
body#pageTop .miles-home .index{color:var(--coral)}
body#pageTop .miles-home-intro h2,body#pageTop .miles-home-links b{color:var(--cream)}
body#pageTop .miles-home-intro>p:not(.index),body#pageTop .miles-home-links small{color:rgba(247,240,231,.66)}
body#pageTop .miles-home-links{border-top-color:rgba(239,195,178,.24)}
body#pageTop .miles-home-links a{color:var(--cream);border-bottom-color:rgba(239,195,178,.22)}
body#pageTop .miles-home-links a:hover b{color:var(--coral)}
body#pageTop .how{padding-left:6vw;padding-right:6vw;border-top:1px solid rgba(239,195,178,.16)}
body#pageTop .how h2{margin-bottom:clamp(32px,4vw,52px)}
body#pageTop footer{border-top:1px solid rgba(239,195,178,.12)}

@media(max-width:1100px){
  body#pageTop .deals-section{padding-bottom:clamp(28px,4vw,44px)!important}
  body#pageTop .low-cost-section{padding-top:clamp(26px,4vw,40px)!important}
  body#pageTop .low-cost-section .section-heading{margin-top:0!important;margin-bottom:clamp(18px,3vw,24px)!important}
  body#pageTop .miles-home{padding-top:clamp(56px,7vw,78px);padding-bottom:clamp(56px,7vw,78px)}
  body#pageTop .how{padding-left:clamp(22px,5vw,56px);padding-right:clamp(22px,5vw,56px)}
}

@media(max-width:650px){
  body#pageTop main#top>.content-flight-route{display:none!important}
  body#pageTop .miles-home{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  body#pageTop .how{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  #loadMoreWrap.is-simple-continuation #loadMoreDeals{min-height:52px;width:100%}
  main>.hero .search-panel:after{right:26px;top:-19px;width:7px;height:7px;box-shadow:0 0 0 3px rgba(239,195,178,.12)}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important}
  .page-route-line,.design-route-flight,.search-route-month,.content-route-network,.destinations-flight-route path{animation:none!important}
}
