/* Task 37 brand, collection and layout. Task 35 owns the mobile drawer. */
:root{--eh37-ink:#1b3228;--eh37-dark:#142921;--eh37-gold:#e9bf65;--eh37-line:#d0d9ce;--eh37-wide:min(94vw,1300px)}
.site-header[data-eh18-header] .eh37-header-wa{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:.38rem;order:2;flex:none;color:#243c30;text-decoration:none;font-weight:700;white-space:nowrap}
.site-header[data-eh18-header] .eh37-header-wa svg{flex:none}
.site-header[data-eh18-header] .eh37-header-wa:hover{text-decoration:underline}
.site-header[data-eh18-header] > .tagline-bar{font-size:13px;line-height:1.4;padding:.4rem .7rem;color:#fff;background:#203b30;text-align:center}
.eh37-flag{flex:none;font-size:1.06rem;line-height:1}
#eh18-country{background:#17382b;color:#fbf8e8;border-color:#587062;max-width:24rem}
#eh18-country .eh18-country-list button{display:flex;gap:.45rem;align-items:center;background:#244738;color:#fff;border-color:#567264;min-height:44px;font-weight:600}
#eh18-country .eh18-country-list button[aria-pressed=true],#eh18-country .eh18-country-list button:hover{background:#e8c478;color:#1c3329;border-color:#e8c478}
#eh18-country .eh18-country-close,#eh18-country .eh18-rand{color:#fcf6e6;background:transparent}
@media(min-width:1025px){
  .site-header[data-eh18-header]{gap:clamp(.45rem,.8vw,.95rem);padding:10px 2.5% 0}
  .site-header[data-eh18-header] .brand-logo{width:150px;max-width:150px;height:auto;aspect-ratio:180/70}
  .site-header[data-eh18-header] nav.task16-nav{font-size:15px;gap:clamp(.45rem,1vw,1rem);overflow:visible}
  .site-header[data-eh18-header] nav.task16-nav :is(a,summary){font-size:15px;line-height:1.4}
  .site-header[data-eh18-header] nav.task16-nav summary{list-style:none;display:flex;gap:.42rem;align-items:center;padding:.4rem 0;cursor:pointer;}
  .site-header[data-eh18-header] nav.task16-nav summary::-webkit-details-marker{display:none}
  .site-header[data-eh18-header] nav.task16-nav summary::marker{content:''}
  .site-header[data-eh18-header] nav.task16-nav summary::after{content:'';width:.4rem;height:.4rem;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg) translateY(-2px)}
  .site-header[data-eh18-header] nav.task16-nav details[open] summary::after{transform:rotate(225deg) translate(-1px,-1px)}
  .site-header[data-eh18-header] nav.task16-nav .task16-nav-group>div{position:absolute;inset:100% auto auto 0;z-index:5;min-width:13rem;padding:.45rem;background:#fff;box-shadow:0 12px 30px #17372a30;border:1px solid #cfdbd1;border-radius:.6rem}
  .site-header[data-eh18-header] nav.task16-nav .task16-nav-group:last-child>div{inset-inline-start:auto;inset-inline-end:0}
  .site-header[data-eh18-header] .task16-nav-group>div a:hover,.site-header[data-eh18-header] .task16-nav-group>div a:focus-visible{background:#edf2ec}
  .site-header[data-eh18-header] .eh18-country-trigger{display:inline-flex;align-items:center;gap:.35rem;font-size:14px;font-weight:650;background:#264737;color:#fff;border-color:#264737;}
  .site-header[data-eh18-header] > .tagline-bar{margin:0 -2.7%;width:105.4%;flex-basis:105.4%}
}
@media(min-width:1025px) and (max-width:1279px){
 .site-header[data-eh18-header]{flex-wrap:wrap}
 .site-header[data-eh18-header] nav.task16-nav{flex-basis:100%;order:4;justify-content:center;padding:.15rem 0}
 .site-header[data-eh18-header] > .tagline-bar{order:5}
 .site-header[data-eh18-header] .eh37-header-wa{margin-inline-start:auto}
}
@media(max-width:1024px){
 .site-header[data-eh18-header] .eh37-header-wa{order:2;width:44px;min-width:44px;border:1px solid #a5a69e;border-radius:.4rem;margin-inline-start:auto}
 .site-header[data-eh18-header] .eh37-header-wa span{display:none}
 .site-header[data-eh18-header] > .button.small{margin-inline-start:0;order:2}
 .eh35-open .site-header[data-eh18-header] .eh37-header-wa{color:#fbf5e4;border-color:#f6f0e86b;z-index:2}
}
@media(max-width:379px){
 .site-header[data-eh18-header]{gap:.3rem;padding-inline:.65rem}
 .site-header[data-eh18-header] .brand-logo{max-width:85px}
 .site-header[data-eh18-header] > .button.small{padding-inline:.36rem}
}
.eh37-hero-lead{position:relative;z-index:2;background:var(--eh37-dark);color:#faf7ec;text-align:center;padding:.65rem 3%;line-height:1.24}
.eh37-hero-lead h1{margin:0 auto;color:inherit;font-size:clamp(.92rem,2vw,1.38rem);line-height:1.25;font-weight:700;letter-spacing:.02em}
.eh18-carousel:has(.eh37-hero-lead){display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;min-height:clamp(29rem,47vw,40rem)}
.eh18-carousel:has(.eh37-hero-lead) .eh18-slides{position:relative;inset:auto;min-height:33rem}
.eh18-carousel:has(.eh37-hero-lead) .eh18-carousel-controls{position:relative;inset:auto}
.eh18-carousel:has(.eh37-hero-lead) .eh18-slide-copy{padding:clamp(1.2rem,3.2vw,3.2rem)}
.eh37-slide-actions{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;margin-top:.6rem}
.eh18-slide-copy .eh37-slide-actions .button{margin:0}
.eh18-slide-copy .eh37-see-all{color:#fff;background:none;border:1px solid #dce4d9;}
.eh18-slide-copy .eh37-see-all:hover{color:var(--eh37-dark);background:#fff}
.eh37-home-countries{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem .75rem;padding:.75rem 3%;background:#142921;color:#fff}
.eh37-home-countries a{color:inherit;display:inline-flex;align-items:center;gap:.26rem;font-size:.875rem;text-decoration:none}
.eh37-home-countries a:hover{text-decoration:underline}
@media(max-width:900px){
 .eh18-carousel:has(.eh37-hero-lead){min-height:0;grid-template-rows:auto auto auto auto}
 .eh18-carousel:has(.eh37-hero-lead) .eh18-slides{min-height:0}
 .eh18-carousel:has(.eh37-hero-lead) .eh18-slide{grid-template-rows:clamp(10rem,52vw,24rem) minmax(0,1fr)}
 .eh18-carousel:has(.eh37-hero-lead) .eh18-slide-copy{padding:1.15rem 5%}
 .eh18-carousel:has(.eh37-hero-lead) .eh18-slide-copy h2{font-size:clamp(1.8rem,6vw,2.8rem)}
}
.eh37-finder,.eh37-addons{width:var(--eh37-wide);max-width:none;margin-inline:auto;padding:clamp(2rem,4.3vw,3.5rem) 0!important}
.eh37-finder-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.6rem;margin-bottom:.9rem}
.eh37-finder-head h2{color:var(--eh37-ink);font-size:clamp(1.5rem,3vw,2.25rem);margin:0}
.eh37-finder-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.65rem,1.6vw,1rem)}
.eh37-category{display:flex;flex-direction:column;min-width:0;border:1px solid var(--eh37-line);border-radius:.72rem;overflow:hidden;color:var(--eh37-ink);background:#fff;text-decoration:none;box-shadow:0 4px 18px #1a332a0a}
.eh37-category:hover{border-color:#856c37;box-shadow:0 6px 16px #1a332a18}
.eh37-category img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;background:#e2e8e0}
.eh37-category > span{display:grid;gap:.24rem;padding:.68rem .62rem}
.eh37-category strong{font-size:clamp(.84rem,1.2vw,1.04rem);line-height:1.3}
.eh37-category small{font-size:.84rem;color:#425947}
.eh37-category .fx-price{display:inline!important;min-width:0!important}
.eh37-category .fx-estimate{display:none}
.eh37-collection-group{margin-top:2rem}
.eh37-collection-group h3{font-size:clamp(1.38rem,2.4vw,2rem);margin:0 0 1rem;color:var(--eh37-ink)}
.eh37-collection-grid.product-grid{display:flex!important;flex-wrap:wrap!important;gap:clamp(.85rem,1.6vw,1.35rem)!important}
.eh37-collection-grid > .product-card{flex:1 0 23%;min-width:0;height:auto!important;max-width:none}
.eh37-collection-grid[data-items="1"] > .product-card{flex-basis:100%}
.eh37-collection-grid[data-items="1"] .product-photo{aspect-ratio:4/3;max-height:23rem}
.eh37-collection-grid .product-copy,.product-grid .lc-card > .product-copy{padding:clamp(.8rem,1.65vw,1.25rem);gap:.32rem}
.eh37-collection-grid .product-copy > *, .product-grid .lc-card > .product-copy > *{margin-block:0!important;min-height:0!important}
.eh37-collection-grid .product-copy > h3,.product-grid .lc-card > .product-copy > h3{font-size:clamp(1rem,1.65vw,1.3rem);line-height:1.22}
.eh37-collection-grid .product-copy > p,.product-grid .lc-card > .product-copy > p{font-size:.925rem;line-height:1.34;margin-bottom:.4rem!important}
.eh37-collection-grid .product-copy > strong,.product-grid .lc-card > .product-copy > strong{margin-top:auto!important}
.eh37-collection-grid .product-copy > small,.product-grid .lc-card > .product-copy > small{font-size:.82rem;line-height:1.3}
.eh20-transport .fx-price{display:inline!important;min-width:0!important;width:auto!important}
.eh20-transport .fx-estimate{display:inline!important;margin-inline:.22em}
.eh20-transport .fx-estimate:empty{display:none!important}
@media(max-width:1024px){
 .eh37-finder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .eh37-collection-grid > .product-card{flex-basis:44%}
}
@media(max-width:620px){
 .eh37-finder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.64rem}
 .eh37-collection-grid > .product-card{flex-basis:100%}
}
.eh37-product{--eh37-section-space:clamp(2.7rem,5.55vw,5rem)}
.eh37-product .lc-product-intro .lc-lead{font-size:clamp(1.02rem,1.6vw,1.2rem)}
.eh37-product .lc-product-intro{padding:0!important}
.eh37-product .eh-house-block, .eh37-product .lc-specifications, .eh37-product .eh37-product-neighbours{width:var(--eh37-wide);max-width:none;padding-inline:0!important;margin-inline:auto}
.eh37-product .eh-house-block{gap:clamp(1.2rem,2.5vw,2.5rem)!important}
.eh37-product .eh-house-media,.eh37-product .lc-product-gallery{min-width:0;margin:0!important}
.eh37-product .eh-house-block img{max-width:100%}
.eh37-product .eh37-config-rail{min-width:0}
.eh37-product .eh37-config-rail>.lc-product-intro h1{margin-top:.2rem}
.eh37-product .eh37-config-rail .product-config{margin-top:1rem}
.eh37-product :is(.product-config,.lc-product-intro,.model-copy,.dome-panel) .model-price{font-size:.9rem!important;line-height:1.2;color:#263f32;font-weight:650}
.eh37-product .model-price :is(.eh37-price-number,.fx-usd){display:inline;font-size:clamp(1.7rem,2.4vw,2rem)!important;line-height:1.1;color:#152f25;font-weight:800}
.eh37-product .model-price :is(.fx-estimate,.price-note){font-size:.9rem!important}
.eh37-product .model-price > span:not(.eh37-price-number):not(.fx-price):not(.fx-usd){color:#395446}
.eh37-product .lc-specifications > .section-head{display:block!important}
.eh37-product .lc-specifications > .section-head > p{margin:.4rem 0 1rem}
.eh37-product .lc-spec-table{width:100%;max-width:none!important;table-layout:auto}
.eh37-product .lc-spec-table th{width:40%}
.eh37-product > :is(.lc-settings,.lc-specifications,.lc-inclusions,.lc-related,.eh37-addons,.eh37-product-neighbours){padding-block:calc(var(--eh37-section-space) / 2)!important;margin-block:0!important}
.eh37-product .eh37-addons .eh37-finder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.eh37-product .eh37-product-neighbours{display:flex;justify-content:space-between;gap:.75rem}
.eh37-product-neighbours a{color:var(--eh37-ink);text-decoration:none;border:1px solid var(--eh37-line);border-radius:.6rem;padding:.7rem .9rem;display:grid;gap:.25rem}
.eh37-product-neighbours span{font-size:.82rem;color:#496355}
.eh37-crumb-back{margin-inline-start:auto;font-weight:650}
.eh37-sticky-enquiry{display:none}
@media(min-width:1025px){
 .eh37-product .eh-house-block{grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important;align-items:start!important}
 .eh37-product .eh-house-block>:is(.lc-product-intro,.eh37-config-rail,.model-copy,.dome-panel){position:sticky;top:1rem;align-self:start}
}
@media(max-width:1024px){
 .eh37-product{--eh37-section-space:48px;padding-bottom:4.6rem}
 .eh37-product .eh37-config-rail,.eh37-product .lc-product-intro{padding-block:.9rem!important}
 .eh37-product .eh37-sticky-enquiry{position:fixed;display:flex;align-items:center;justify-content:space-between;gap:.7rem;z-index:45;inset:auto 0 0;padding:.55rem max(.8rem,env(safe-area-inset-right)) max(.55rem,env(safe-area-inset-bottom)) max(.8rem,env(safe-area-inset-left));background:#163327;color:#fff;box-shadow:0 -3px 15px #162f2633}
 .eh37-sticky-enquiry div{display:grid;min-width:0;gap:.16rem}
 .eh37-sticky-enquiry strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem}
 .eh37-sticky-enquiry span{font-size:.88rem;color:#f7d47e}
 .eh37-sticky-enquiry a{display:inline-flex;align-items:center;gap:.27rem;flex:none;min-height:44px;padding:0 .73rem;color:#193026;background:#e9bf65;border-radius:.42rem;font-size:.9rem;font-weight:750;text-decoration:none}
 .eh35-open .eh37-sticky-enquiry,body:has(.eh37-product) .wa-float{visibility:hidden!important;pointer-events:none!important}
}
.eh37-footer-countries{display:grid;gap:.42rem;flex:1 0 100%;width:100%;border-top:1px solid currentColor;padding-top:.7rem}
.eh37-footer-countries p{font-weight:700;margin:0}
.eh37-footer-regions{display:flex;flex-wrap:wrap;gap:.35rem .82rem}
.eh37-footer-regions a{color:inherit}
:is(.eh37-header-wa,.eh37-category,.eh37-home-countries a,.eh37-crumb-back,.eh37-product-neighbours a,.eh37-sticky-enquiry a,.eh37-footer-regions a):focus-visible{outline:3px solid #aa6915;outline-offset:3px}

/* Enhancement over the original cascade: the old Africa delivery strip was
   absolute and the old homepage reserved a blank gutter for it on mobile. */
body:has(.eh37-hero-lead) .site-header[data-eh18-header]{margin-bottom:0}
.site-header[data-eh18-header] > .tagline-bar{position:static;inset:auto}
@media(min-width:1025px){
 .site-header[data-eh18-header] > .tagline-bar{display:block}
}
@media(max-width:1024px){
 body:has(.eh37-home-countries) .site-header[data-eh18-header]:not(:has(.eh35-toggle[aria-expanded=true])){flex-wrap:wrap}
 body:has(.eh37-home-countries) .site-header[data-eh18-header] > .tagline-bar{
   display:block;flex:0 0 100%;order:5;font-size:13px;line-height:1.3;letter-spacing:0;
 }
 html.eh35-open body:has(.eh37-home-countries) .site-header[data-eh18-header] > .tagline-bar{display:none}
 .eh37-hero-lead{padding-block:.47rem}
}
@media(max-width:700px){
 .hero.immersive-hero.eh37-country-hero{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none}
 .eh37-country-hero.immersive-hero .hero-media{position:relative;inset:auto;display:block;height:clamp(10rem,48vw,17rem);width:100%}
 .eh37-country-hero.immersive-hero .hero-copy{position:relative;inset:auto;max-width:none;padding:1rem 5%;background:#172822}
 .eh37-country-hero.immersive-hero .hero-shade,.eh37-country-hero.immersive-hero .hero-foot{display:none}
 .eh37-country-hero.immersive-hero h1{font-size:clamp(1.5rem,6.2vw,2.35rem);margin:0 0 .7rem;letter-spacing:-.018em}
 .eh37-country-hero.immersive-hero .hero-copy>p:not(.eyebrow){margin-bottom:.5rem;line-height:1.35}
 .eh37-country-hero.immersive-hero .hero-actions{gap:.55rem}
}

/* Task 42 A1/A2/A9: keep the Africa delivery row inside normal document flow. */
@media(min-width:761px){
 .site-header[data-eh18-header]:has(> .tagline-bar){height:auto;min-height:0;flex-wrap:wrap}
 .site-header[data-eh18-header] > .tagline-bar{width:100%;flex:0 0 100%;margin-inline:0}
}
@media(max-width:760px){
 body:has(.eh37-home-countries) .site-header[data-eh18-header] > .tagline-bar{display:none}
}
@media(max-width:850px){
 body:has(.eh-house-media) .model-grid:has(> .eh-house-media){grid-template-columns:minmax(0,1fr)}
 .model-grid > .eh-house-media,.model-grid > .eh-house-media > .image-button{min-width:0;max-width:100%}
 .model-grid > .eh-house-media > .image-button > img{width:100%;max-width:100%;height:auto}
}

/* Task 42 A10: present estimates below their USD price, not inside prose. */
main .fx-price > .fx-estimate{text-align:left}
:is(.eh18-slide-copy,.product-copy,.eh20-transport) .fx-price > .fx-estimate{
 display:block!important;text-align:left!important;margin-inline:0;white-space:normal;
}
.eh20-transport > .fx-price{display:inline-flex!important;flex-direction:column;align-items:flex-start;vertical-align:top}
.eh20-transport .fx-estimate:empty{display:none!important}
.product-copy .fx-price > .fx-estimate:empty{visibility:hidden}

/* Task 42 A11: reserve photo boxes before any image arrives. */
:is(.lc-grid,.addon-group-grid) .product-card > .product-photo{width:100%;aspect-ratio:4/3;overflow:hidden}
:is(.lc-grid,.addon-group-grid) .product-card > .product-photo > img{
 display:block;width:100%;height:100%;object-fit:cover;
}
#bali-collection{scroll-margin-block-start:1rem}

/* Task 42 B1: Africa logo in the existing footer brand link. */
.site-footer a[href="#top"]::before {
 content:"";display:block;width:80px;height:51px;margin:0 0 4px;border-radius:4px;
 background:#f6f4ee url("/assets/logo-africa-B-green-transparent-small.webp") center/70px auto no-repeat;
}
