/* Sections are separated by snow/ice surfaces and the supplied artwork, not darker rails. */
:root{--section-white:#fff;--section-ice:#eff5fa;--section-pattern-opacity:.16}
body.home-page :is(#paketler,#hakkimizda,#sponsorlar,#deneyimler,#sss){background-color:var(--section-white)}
body.home-page :is(#festival-filmi,#galeri,#konaklama,#guven,#junior){background-color:var(--section-ice)}
/* Keep gallery photos and captions on a white inset surface against the ice section. */
body.home-page #galeri .authentic-gallery{border:1px solid #e6eef5;border-radius:10px;overflow:hidden}
body.home-page #sss{position:relative;isolation:isolate}
body.home-page #sss::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/pattern-mountain-map.png') left center/780px;opacity:.1;mask-image:linear-gradient(120deg,#000,transparent 63%);-webkit-mask-image:linear-gradient(120deg,#000,transparent 63%)}

body.inner-page main :is(.soft-section,.stay-rooms,.contact-topics-section,.shop-details,.market-closing),
body.inner-page.page-paketler main #sayfa-detaylari{background-color:var(--section-ice)}
body.inner-page main :is(.market-recommendations,.shop-complements,.direct-gallery,.contact-direct){background-color:var(--section-white)}
body.inner-page main .home-film{background-color:var(--section-ice)}
/* Reuse the three original patterns in sections where their subject makes sense. */
body.inner-page main :is(.soft-section,.stay-rooms,.contact-topics-section,.shop-details),
body.inner-page.page-paketler main #sayfa-detaylari,
body.inner-page.page-deneyimler main #cocuklar,
body.inner-page.page-konaklama main #konaklama{position:relative;isolation:isolate}
body.inner-page main :is(.soft-section,.stay-rooms,.contact-topics-section,.shop-details)::before,
body.inner-page.page-paketler main #sayfa-detaylari::before,
body.inner-page.page-deneyimler main #cocuklar::before,
body.inner-page.page-konaklama main #konaklama::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:url('assets/pattern-mountain-map.png');background-size:760px;background-repeat:repeat;background-position:right center;
  opacity:var(--section-pattern-opacity);mask-image:linear-gradient(110deg,transparent 20%,#000 100%);-webkit-mask-image:linear-gradient(110deg,transparent 20%,#000 100%);
}
body.inner-page.page-hakkimizda main .soft-section::before,
body.inner-page main .stay-rooms::before,
body.inner-page.page-deneyimler main #cocuklar::before{background-image:url('assets/pattern-family-winter.png');background-size:690px}
body.inner-page.page-kayak-okulu main .soft-section::before,
body.inner-page.page-sponsorlar main .soft-section::before,
body.inner-page.page-paketler main #sayfa-detaylari::before,
body.inner-page main .shop-details::before{background-image:url('assets/pattern-winter-gear.png');background-size:640px}
/* A quiet white comparison surface keeps detailed information easy to scan. */
body.inner-page .comparison-wrap{background:#fff}

/* Low snowbanks sit inside the section's bottom whitespace. Static, decorative, non-interactive. */
:root{
  --snowbank-edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 17C160 2 260 34 420 22S720 2 900 17S1230 35 1440 10V40H0Z' fill='black'/%3E%3C/svg%3E");
  --snowbank-ridge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 25C110 24 180 11 280 13C350 14 380 22 470 20C590 17 665 3 780 9C905 16 920 30 1070 26C1210 22 1300 8 1440 18V40H0Z' fill='black'/%3E%3C/svg%3E");
}
/* The generator assigns each inner boundary once, including the footer edge. */
body.inner-page main>[data-inner-surface]{position:relative;isolation:isolate;border:0}
body.inner-page main>[data-inner-surface="white"]{background-color:var(--section-white)}
body.inner-page main>[data-inner-surface="ice"]{background-color:var(--section-ice)}
body.inner-page main>.market-opening{padding-bottom:14px}
body.inner-page main>.page-subnav[data-inner-surface]{padding-bottom:28px}
body.inner-page main>.shop-cart-opening{padding-bottom:42px}
body.inner-page.page-program main>#program{padding-block:42px 48px}
body.inner-page .inner-section-transition{
  position:absolute;display:block;left:0;right:0;bottom:-1px;height:38px;z-index:3;pointer-events:none;
  background:var(--transition-surface);mask:var(--snowbank-edge) center/100% 100% no-repeat;
  -webkit-mask:var(--snowbank-edge) center/100% 100% no-repeat;
}
body.inner-page .inner-section-transition--top{top:-1px;bottom:auto;transform:rotate(180deg)}
body.inner-page main>section:nth-of-type(even)>.inner-section-transition{mask-image:var(--snowbank-ridge);-webkit-mask-image:var(--snowbank-ridge)}
/* Every homepage boundary, including hero, navy program, trust band and footer. */
body.home-page main>section{position:relative;isolation:isolate}
/* The last snowbank meets the footer without a translucent border exposing navy underneath. */
body main>section:last-child{border-bottom:0}
/* When the optional recommendations block is absent, flow directly into the final ice CTA. */
body.inner-page main>section:has(+.market-closing)>.inner-section-transition:not(.inner-section-transition--top){background:var(--section-ice)}
/* Editorial blocks can be reordered in ACF: join the actual next surface, not a stale saved color. */
body main>section:has(+[data-inner-surface="ice"])>.if-season-transition:not(.if-season-transition--top){background:var(--section-ice)}
body main>section:has(+[data-inner-surface="white"])>.if-season-transition:not(.if-season-transition--top){background:var(--section-white)}
body main>.if-season-section:last-child>.if-season-transition:not(.if-season-transition--top){background:#f7f9fb}
body.home-page .home-section-transition{
  position:absolute;display:block;left:0;right:0;bottom:-1px;height:38px;z-index:3;pointer-events:none;
  background:var(--transition-surface);mask:var(--snowbank-edge) center/100% 100% no-repeat;
  -webkit-mask:var(--snowbank-edge) center/100% 100% no-repeat;
}
body.home-page .home-section-transition--top{top:-1px;bottom:auto;transform:rotate(180deg)}
body.home-page :is(#hakkimizda,#konaklama,#deneyimler,#sonraki-bulusma)>.home-section-transition{mask-image:var(--snowbank-ridge);-webkit-mask-image:var(--snowbank-ridge)}
body.home-page #junior>.home-section-transition{transform:scaleX(-1)}
body.home-page #program .program-shell{padding-block:24px 22px}
body.home-page #guven{padding-bottom:28px}
@media(max-width:680px){
  body.home-page .heritage-hero .hero-facts{padding-block:28px 48px}
  :root{--section-pattern-opacity:.11}
  body.inner-page main :is(.soft-section,.stay-rooms,.contact-topics-section,.shop-details)::before,
  body.inner-page.page-paketler main #sayfa-detaylari::before,
  body.inner-page.page-deneyimler main #cocuklar::before,
  body.inner-page.page-konaklama main #konaklama::before{background-size:470px;mask-image:linear-gradient(120deg,transparent 30%,#000);-webkit-mask-image:linear-gradient(120deg,transparent 30%,#000)}
  body.home-page #sss::before{opacity:.07;background-size:500px}
  body.home-page .home-section-transition,
  body.inner-page .inner-section-transition{height:22px}
  body.inner-page main>.market-opening{padding-bottom:8px}
  body.inner-page main>.page-subnav[data-inner-surface]{padding-bottom:18px}
  body.inner-page main>.shop-cart-opening{padding-bottom:28px}
  body.inner-page.page-program main>#program{padding-block:24px 30px}
}
@media(forced-colors:active){
  body.inner-page main :is(.soft-section,.stay-rooms,.contact-topics-section,.shop-details)::before,
  body.inner-page.page-paketler main #sayfa-detaylari::before,
  body.inner-page.page-deneyimler main #cocuklar::before,
  body.inner-page.page-konaklama main #konaklama::before,
  body.home-page #sss::before{display:none}
  body.home-page .home-section-transition,
  body.inner-page .inner-section-transition{display:none}
}
