/* Jackson owner update: authentic Big Five photographs and independent destination cards. */
.hero:after{display:none;background:none}.hero .hero-copy{top:auto!important;bottom:100px;left:max(40px,calc((100vw - 1160px)/2));right:30px;max-width:460px;padding:0!important;background:none!important;border:0!important;color:#fff8e8!important;text-shadow:0 1px 3px #000,0 2px 9px #0009}.hero .hero-copy h1{font-size:clamp(36px,4.2vw,60px)!important;line-height:1.04;margin-bottom:12px;max-width:460px}.hero-copy .eyebrow{margin-bottom:10px}.hero-lead{font-size:16px;line-height:1.45;max-width:400px;margin-bottom:8px;color:inherit}.hero-link{min-height:44px}.hero-slide{filter:none;object-position:var(--desktop-focus,50% 50%)}.slider-controls{gap:1px}.slider-controls>button,.slider-dots button,.dipiu-slider-pause{min-width:44px;min-height:44px}.slider-dots button:after{left:19px}.slider-count{display:none}.slider-controls .slider-dots{gap:0}.hero-coordinate{max-width:250px}.languages button{min-width:44px;min-height:44px}.client-footer a,.client-footer button,.phone-link{min-height:44px;display:inline-flex;align-items:center}.site-header .dipiu-header-menu>nav a{min-height:44px!important}.photo-dialog img:not([src]){display:none}
.tours-grid .tour-with-photo{grid-row:span 2}.tours-grid .tour-with-photo a{grid-template-columns:44px 1fr 32px;align-content:start;padding:0 0 16px;gap:12px}.tour-with-photo img{grid-column:1/-1;width:100%;height:230px;object-fit:cover}.tour-with-photo a>span{padding-left:18px}.tour-with-photo a>i{padding-right:12px}.tour-with-photo strong{padding:0 4px}.vehicles-grid figure:last-child img{object-fit:cover;object-position:50% 48%}.vehicles-grid img{background:#162d23}.vehicles-grid figcaption{min-height:155px}
@media(max-width:1100px){.hero-slide{object-position:var(--tablet-focus,50% 50%)}.hero-coordinate{display:none}.hero .hero-copy{left:30px;bottom:100px}.tour-with-photo img{height:210px}}
@media(max-width:700px){.hero{height:620px;min-height:620px;max-height:none}.hero-slide{object-position:var(--phone-focus,50% 50%)}.hero .hero-copy{left:22px;right:22px;bottom:95px;max-width:none}.hero .hero-copy h1{font-size:34px!important;line-height:1.03;margin-bottom:8px;max-width:300px}.hero-copy .eyebrow{font-size:9px;letter-spacing:.13em;margin-bottom:7px}.hero-lead{font-size:14px;line-height:1.4;max-width:300px;margin-bottom:0}.hero-link{font-size:12px;min-height:44px}.hero-bottom{left:5px;right:5px;bottom:8px}.slider-controls{margin-right:44px;gap:0}.slider-controls>button{width:44px;padding:0}.slider-dots button{width:44px;padding:0}.dipiu-slider-pause{right:2px;bottom:8px;min-width:44px;padding:0;font-size:10px}.hero:before{left:22px;bottom:61px}.tours-grid .tour-with-photo{grid-row:auto}.tour-with-photo img{height:auto;aspect-ratio:3/2;object-fit:cover}.vehicles-grid figcaption{min-height:0}.vehicles-grid figure:last-child img{aspect-ratio:4/5;object-position:50% 42%}}
@media(max-width:360px){.slider-controls>button{min-width:44px;width:44px}.slider-dots button{min-width:44px}.hero .hero-copy{left:18px;right:18px}.hero-copy .eyebrow{font-size:8px}}

/* Phone carousel controls stay inside the photograph and remain reachable. */
@media(max-width:700px){
  .hero .hero-bottom{display:block!important;position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important}
  .hero .slider-controls{display:block!important;position:absolute!important;inset:0!important;margin:0!important;pointer-events:none!important}
  .hero .slider-controls>button{display:grid!important;place-items:center!important;position:absolute!important;top:40%!important;transform:translateY(-50%)!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;aspect-ratio:1!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:20px!important;line-height:1!important;text-shadow:0 1px 3px #000!important;box-shadow:none!important;pointer-events:auto!important;isolation:isolate}
  .hero .slider-controls>button:before{content:"";position:absolute;inset:4px;z-index:-1;border:1px solid #ffffff9c;border-radius:50%;background:#102d27ad;box-shadow:0 3px 12px #0004}
  .hero [data-law-prev]{left:max(10px,env(safe-area-inset-left))!important}
  .hero [data-law-next]{right:max(10px,env(safe-area-inset-right))!important}
  .hero .slider-dots,
  .hero .slider-count{display:none!important}
  .hero .dipiu-slider-pause{right:50%!important;bottom:max(10px,env(safe-area-inset-bottom))!important;transform:translateX(50%)!important}
}

/* r38: the new photographic catalogue uses one equal grid row per card. */
.tours-grid .tour-with-photo{grid-row:auto!important}
.tours-grid .tour-with-photo a{display:flex!important;min-height:430px!important;padding:28px!important;gap:12px!important}
.tours-grid .tour-with-photo a>img{position:absolute!important;inset:0!important;z-index:-2!important;width:100%!important;height:100%!important;object-fit:cover!important}
.tours-grid .tour-with-photo a>span{padding:0 12px!important}
.tours-grid .tour-with-photo a>i{padding:0!important}
.tours-grid .tour-with-photo strong{padding:0!important}
@media(max-width:1050px){.tours-grid .tour-with-photo a{min-height:390px!important}}
@media(max-width:700px){.tours-grid .tour-with-photo a{min-height:390px!important;padding:24px!important}.tours-grid .tour-with-photo a>img{aspect-ratio:auto!important}}

/* r39: keep the owner-supplied Lake Nakuru photograph unchanged and fully visible on phones. */
@media(max-width:700px){
  .hero-slider picture.hero-picture-zebras,
  .hero-slider picture.hero-picture-balloon,
  .hero-slider picture.hero-picture-nakuru{display:block!important;position:absolute;inset:0;overflow:hidden;background:#142c24}
  .hero-slider picture.hero-picture-zebras:before,
  .hero-slider picture.hero-picture-balloon:before,
  .hero-slider picture.hero-picture-nakuru:before{content:'';position:absolute;inset:-24px;background-position:center;background-size:cover;filter:blur(18px) brightness(.55);transform:scale(1.08);opacity:0;transition:opacity 1s ease}
  .hero-slider picture.hero-picture-zebras:before{background-image:url('assets/profile-zebras-phone.png')}
  .hero-slider picture.hero-picture-balloon:before{background-image:url('assets/profile-balloon-phone.png')}
  .hero-slider picture.hero-picture-nakuru:before{display:none!important}
  .hero-slider picture:has(.hero-slide.is-active):before{opacity:1}
  .hero-picture-zebras .hero-slide{z-index:1!important;object-fit:cover!important;object-position:50% 50%!important;background:transparent!important}
  .hero-picture-balloon .hero-slide{z-index:1!important;object-fit:cover!important;object-position:50% 50%!important;background:transparent!important}
  .hero-picture-nakuru .hero-slide{z-index:1!important;object-fit:cover!important;object-position:50% 50%!important;background:transparent!important}
  .hero:has(.hero-picture-sunset .hero-slide.is-active) .hero-copy{bottom:112px!important}
  .hero .hero-copy h1{font-size:30px!important;line-height:1.03!important;max-width:285px!important;margin-bottom:8px!important}
  .hero .hero-lead{display:none!important}
  .hero:has(.hero-picture-zebras .hero-slide.is-active) .hero-copy{top:22px!important;bottom:auto!important;max-width:270px!important}
  .hero:has(.hero-picture-balloon .hero-slide.is-active) .hero-copy{top:auto!important;bottom:94px!important;max-width:270px!important}
  .hero:has(.hero-picture-leopard .hero-slide.is-active) .hero-copy{top:22px!important;bottom:auto!important;max-width:280px!important}
  .hero:has(.hero-picture-skydiving .hero-slide.is-active) .hero-copy{left:22px!important;top:22px!important;bottom:auto!important;max-width:270px!important}
  .hero:has(.hero-picture-nakuru .hero-slide.is-active) .hero-copy{left:22px!important;right:22px!important;top:24px!important;bottom:auto!important;max-width:285px!important;color:#fff8e8!important;text-shadow:0 2px 8px #071b16e6!important}
  .hero:has(.hero-picture-nakuru .hero-slide.is-active) .hero-copy h1{font-size:32px!important;line-height:1.02!important;max-width:280px!important}
}

/* Phone rhinoceros: keep the face clear; place copy in the open sky above it. */
@media(max-width:700px){.hero:has(.hero-slide.is-active[src$="big-five-rhino.webp"]) .hero-copy{top:24px!important;bottom:auto;color:#17382b!important;text-shadow:0 1px 3px #fff9}.hero:has(.hero-slide.is-active[src$="big-five-rhino.webp"]) .hero-copy h1{max-width:320px}}

/* r41: one stable copy system for every hero slide and every viewport. */
.hero .hero-copy{top:clamp(28px,6vh,68px)!important;bottom:auto!important;max-width:460px!important}
.hero .hero-copy h1{max-width:460px!important}
.hero .slider-controls>button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;aspect-ratio:1!important;padding:0!important;border-radius:50%!important}
@media(max-width:1100px){.hero .hero-copy{top:32px!important;bottom:auto!important;left:30px!important;right:30px!important;max-width:360px!important}.hero .hero-copy h1{max-width:360px!important}}
@media(max-width:700px){
  .hero .hero-copy,.hero:has(.hero-slide.is-active) .hero-copy{top:22px!important;bottom:auto!important;left:22px!important;right:22px!important;max-width:285px!important;color:#fff8e8!important;text-shadow:0 2px 8px #071b16e6!important}
  .hero:has(.hero-picture-zebras .hero-slide.is-active) .hero-copy{top:22px!important;bottom:auto!important;left:22px!important;right:22px!important;max-width:285px!important}
  .hero:has(.hero-picture-balloon .hero-slide.is-active) .hero-copy{top:22px!important;bottom:auto!important;left:22px!important;right:22px!important;max-width:285px!important}
  .hero .hero-copy h1,.hero:has(.hero-slide.is-active) .hero-copy h1{font-size:30px!important;line-height:1.03!important;max-width:285px!important;margin:0 0 8px!important}
  .hero .hero-copy .eyebrow{margin-bottom:8px!important}
  .hero .hero-lead{display:none!important}
}

/* r42: one shared bottom copy composition on every viewport. */
.hero .hero-copy,
.hero:has(.hero-slide.is-active) .hero-copy{
  top:auto!important;bottom:92px!important;left:max(40px,calc((100vw - 1160px)/2))!important;
  right:40px!important;width:auto!important;max-width:460px!important
}
@media(max-width:1100px){
  .hero .hero-copy,.hero:has(.hero-slide.is-active) .hero-copy{
    top:auto!important;bottom:88px!important;left:30px!important;right:30px!important;max-width:360px!important
  }
}
@media(max-width:700px){
  .hero{height:620px!important;min-height:620px!important;max-height:620px!important}
  .hero-slider picture.hero-picture-zebras:before,
  .hero-slider picture.hero-picture-balloon:before,
  .hero-slider picture.hero-picture-nakuru:before{display:none!important}
  .hero-slider picture .hero-slide,
  .hero-picture-zebras .hero-slide,
  .hero-picture-balloon .hero-slide,
  .hero-picture-nakuru .hero-slide{object-fit:cover!important;object-position:var(--phone-focus,50% 50%)!important}
  .hero .hero-copy,
  .hero:has(.hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-sunset .hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-zebras .hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-balloon .hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-leopard .hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-nakuru .hero-slide.is-active) .hero-copy,
  .hero:has(.hero-picture-skydiving .hero-slide.is-active) .hero-copy{
    top:auto!important;bottom:68px!important;left:20px!important;right:54px!important;
    width:auto!important;max-width:280px!important;padding:0!important;background:none!important;
    border:0!important;color:#fff8e8!important;text-shadow:0 2px 8px #071b16e6!important
  }
  .hero .hero-copy h1,
  .hero:has(.hero-slide.is-active) .hero-copy h1,
  .hero:has(.hero-picture-nakuru .hero-slide.is-active) .hero-copy h1{
    font-size:30px!important;line-height:1.03!important;max-width:280px!important;margin:0 0 8px!important
  }
  .hero .slider-controls>button{
    top:50%!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
    font-size:16px!important;opacity:.82!important;border-radius:50%!important
  }
  .hero .slider-controls>button:before{
    inset:2px!important;border:1px solid #ffffff70!important;border-radius:50%!important;
    background:#102d2770!important;box-shadow:0 2px 8px #0003!important
  }
  .hero [data-law-prev]{left:max(6px,env(safe-area-inset-left))!important}
  .hero [data-law-next]{right:max(6px,env(safe-area-inset-right))!important}
  .hero-picture-nakuru{background:#173027!important}
  .hero-picture-nakuru .hero-slide{
    width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
    inset:0!important;object-fit:cover!important;object-position:var(--phone-focus,50% 50%)!important;
    background:transparent!important
  }
}
