/* Unified catalog/detail presentation. Data, booking and gallery handlers stay in their existing modules. */
html body .site{--mba-ui-gutter:40px;--mba-ui-radius:24px}

/* Filled panels follow the same inner edges as catalog cards and the booking shell. */
html body .site .trust,
html body .site #gift.mba-gift-four,
html body .site .site-footer{
  box-sizing:border-box!important;
  width:calc(100% - var(--mba-ui-gutter) * 2)!important;
  max-width:1420px!important;
  margin-left:auto!important;margin-right:auto!important;
  border-radius:var(--mba-ui-radius)!important;
}
html body .site .trust{padding:0!important;overflow:hidden!important}
html body .site .trust>*{min-width:0!important}
html body .site .trust .trust-score{min-height:0!important;padding:48px 24px!important}
html body .site .trust .trust-score strong{font-size:clamp(100px,12vw,168px)!important;line-height:.85!important;letter-spacing:-.07em!important}
html body .site .trust .trust-content{padding:clamp(28px,4vw,56px)!important}
html body .site .trust .trust-content h2{font-size:clamp(42px,4.5vw,68px)!important;line-height:.95!important}
html body .site .trust .trust-points{margin-top:24px!important}
html body .site .trust .trust-points article{min-height:0!important;padding:18px 0!important}
html body .site .trust .trust-points h3{margin:0 0 6px!important;font-size:18px!important;line-height:1.2!important}
html body .site .trust .trust-points p{margin:0!important;font-size:15px!important;line-height:1.5!important}
html body .site #gift.mba-gift-four{padding:32px!important;overflow:hidden!important}
html body .site .format-grid{border:0!important;background:transparent!important;border-radius:var(--mba-ui-radius)!important;overflow:visible!important}
html body .site .format-grid .format-card{border-radius:var(--mba-ui-radius)!important}
html body .site .booking-benefits>span{border-radius:14px!important}
html body .site .quest-card .quest-card-facts>span,
html body .site .quest-card .quest-meta>span{border-radius:999px!important}

/* Equal columns in both footer rows; children inherit the page's theme. */
html body .site .site-footer{padding:24px!important;background:var(--deep,#070707)!important;border-color:var(--line)!important}
html body .site .site-footer .footer-main,
html body .site .site-footer .footer-legal{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
html body .site .site-footer .footer-main>*,
html body .site .site-footer .footer-legal>*{min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere;border-radius:18px!important}
html body .site.mode-kids .site-footer{background:#100e19!important;border-color:rgba(229,217,255,.15)!important}
html body .site.mode-kids .site-footer .footer-main>*,
html body .site.mode-kids .site-footer .footer-legal>*{background:#181424!important;border-color:rgba(229,217,255,.13)!important}
html body .site.mode-kids .site-footer .footer-disclaimer,
html body .site.mode-kids .site-footer .footer-legal address{color:var(--muted,#aaa2b9)!important}
html body .site.quest-page .site-footer{width:calc(100% - 48px)!important;max-width:1500px!important}

/* A compact copy column determines the row height; the photograph fills the row. */
@media(min-width:981px){
  html body .site.quest-page .quest-detail-hero{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .site.quest-page .quest-detail-gallery{height:auto!important;min-height:560px!important;align-self:stretch!important;aspect-ratio:auto!important}
  html body .site.quest-page .quest-detail-copy{padding:32px!important;justify-content:center!important}
  html body .site.quest-page .quest-detail-copy>.kicker,
  html body .site.quest-page .quest-detail-copy>.quest-breadcrumb{margin:0!important}
  html body .site.quest-page .quest-detail-copy h1{font-size:clamp(40px,3.7vw,64px)!important;line-height:.98!important;margin:12px 0 14px!important}
  html body .site.quest-page .quest-subtitle{font-size:clamp(21px,1.8vw,28px)!important;line-height:1.18!important;margin:0 0 14px!important}
  html body .site.quest-page .quest-detail-lead{line-height:1.5!important}
  html body .site.quest-page .quest-detail-meta{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-top:18px!important}
  html body .site.quest-page .quest-detail-meta>div{min-height:62px!important;padding:10px!important}
  html body .site.quest-page .quest-detail-address{margin-top:14px!important;margin-bottom:12px!important}
  html body .site.quest-page .quest-detail-highlights{gap:6px!important;margin-top:0!important}
  html body .site.quest-page .quest-price{padding:13px 16px!important;margin-top:14px!important}
  html body .site.quest-page .quest-detail-actions{margin-top:16px!important;gap:8px!important}
  html body .site.quest-page .quest-detail-actions .button{min-height:50px!important;padding:11px 12px!important}
  html body .site.quest-page .quest-detail-actions .rvb{grid-column:1/-1!important;justify-self:start!important;min-height:32px!important;padding:6px 14px!important;box-shadow:none!important}
  html body .site.quest-page .mba-invite-quick{margin-top:12px!important;padding:11px 14px!important}
}

/* Two-stroke chevrons, with an accessible 44px target on every photo surface. */
html body .site .quest-gallery-arrow,
html body .site .quest-detail-gallery-controls button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  padding:0!important;border:0!important;border-radius:12px!important;
  background:rgba(7,7,7,.38)!important;color:#fff!important;
  font-size:0!important;line-height:0!important;box-shadow:none!important;
  backdrop-filter:blur(5px);text-shadow:none!important;
  transition:background .18s ease,color .18s ease,transform .18s ease,opacity .18s ease!important;
}
html body .site .quest-gallery-arrow::before,
html body .site .quest-detail-gallery-controls button::before{
  content:""!important;display:block!important;width:13px!important;height:13px!important;
  border:solid currentColor!important;border-width:0 2px 2px 0!important;
  transform:rotate(-45deg);margin-left:-5px;
}
html body .site .quest-gallery-arrow-prev::before,
html body .site .quest-detail-gallery-controls button[data-mba-detail-move="-1"]::before{transform:rotate(135deg);margin-left:5px}
html body .site .quest-gallery-arrow::after,
html body .site .quest-detail-gallery-controls button::after{content:none!important}
html body .site .quest-gallery-arrow svg,
html body .site .quest-detail-gallery-controls button svg{display:none!important}
html body .site .quest-gallery-arrow:focus-visible,
html body .site .quest-detail-gallery-controls button:focus-visible{outline:2px solid var(--accent,#d9aa45)!important;outline-offset:3px!important;opacity:1!important}
html body .site .hero>.mode-panel>button{transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease!important}
html body .site .hero>.mode-panel>button:focus-visible{outline:2px solid #fff!important;outline-offset:-4px!important}
@media(hover:hover){
  html body .site .quest-gallery-arrow:hover,
  html body .site .quest-detail-gallery-controls button:hover{background:var(--accent,#d9aa45)!important;color:#111!important}
  html body .site .quest-gallery-arrow-prev:hover{transform:translate(-3px,-50%)!important}
  html body .site .quest-gallery-arrow-next:hover{transform:translate(3px,-50%)!important}
  html body .site .quest-detail-gallery-controls button:hover{transform:scale(1.06)!important}
  html body .site .hero>.mode-panel>button:hover{transform:translateX(4px)!important;background:rgba(217,170,69,.18)!important;color:#fff!important;box-shadow:inset 4px 0 var(--accent,#d9aa45)!important}
  html body .site .hero>.mode-panel>button:hover small{color:inherit!important;opacity:.82}
  html body .site .hero>.mode-panel>button.active:hover{background:#efc461!important;color:#151007!important;box-shadow:inset 4px 0 #fff0c5!important}
}
@media(max-width:1199px){
  html body .site.quest-page .site-footer{width:calc(100% - 32px)!important}
}
@media(max-width:980px){
  html body .site .site-footer .footer-main,
  html body .site .site-footer .footer-legal{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:767px){
  html body .site .trust{grid-template-columns:minmax(0,1fr)!important}
  html body .site .trust .trust-score{padding:32px 20px!important}
  html body .site .trust .trust-score div{font-size:18px!important;letter-spacing:.12em!important}
  html body .site .trust .trust-content{padding:28px 20px!important}
  html body .site .trust .trust-content h2{font-size:clamp(34px,10vw,48px)!important}
  html body .site{--mba-ui-gutter:16px;--mba-ui-radius:18px}
  html body .site #gift.mba-gift-four{padding:24px 18px!important}
  html body .site .site-footer{padding:12px!important}
  html body .site .site-footer .footer-main,
  html body .site .site-footer .footer-legal{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html body .site .site-footer .footer-main>*,
  html body .site .site-footer .footer-legal>*{border-radius:14px!important;padding:16px!important}
  html body .site.quest-page .site-footer{width:calc(100% - 20px)!important}
  html body .site .quest-gallery-arrow{opacity:1!important;pointer-events:auto!important}
}
@media(prefers-reduced-motion:reduce){
  html body .site .quest-gallery-arrow,
  html body .site .quest-detail-gallery-controls button,
  html body .site .hero>.mode-panel>button{transition:none!important}
  html body .site .quest-gallery-arrow-prev:hover,
  html body .site .quest-gallery-arrow-next:hover{transform:translateY(-50%)!important}
  html body .site .quest-detail-gallery-controls button:hover,
  html body .site .hero>.mode-panel>button:hover{transform:none!important}
}

/* Hide numeric counters throughout adult/kids quest galleries. */
html body .site .quest-detail-gallery #quest-photo-count,
html body .site .quest-detail-gallery .quest-detail-photo-count{display:none!important}

/* Center the thumbnail group when it fits. Long rows remain horizontally scrollable. */
html body .site .quest-detail-gallery .quest-detail-thumbs{
  position:absolute!important;left:18px!important;right:18px!important;bottom:18px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:auto!important;max-width:none!important;height:72px!important;
  margin:0!important;padding:4px 3px!important;gap:10px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;scroll-snap-type:x proximity;scroll-padding-inline:3px;
}
html body .site .quest-detail-gallery .quest-detail-thumbs button{
  flex:0 0 88px!important;width:88px!important;height:64px!important;
  min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
  border:2px solid rgba(255,255,255,.6)!important;border-radius:10px!important;
  opacity:.88!important;box-shadow:0 3px 14px rgba(0,0,0,.36)!important;
  scroll-snap-align:center;
}
html body .site .quest-detail-gallery .quest-detail-thumbs button:first-child{margin-left:auto!important}
html body .site .quest-detail-gallery .quest-detail-thumbs button:last-child{margin-right:auto!important}
html body .site .quest-detail-gallery .quest-detail-thumbs button.active{
  opacity:1!important;border-color:var(--accent,#d9aa45)!important;
  box-shadow:0 0 0 2px rgba(239,185,87,.22),0 3px 14px rgba(0,0,0,.36)!important;
}
html body .site .quest-detail-gallery .quest-detail-thumbs button:focus-visible{
  outline:2px solid #fff!important;outline-offset:2px!important;opacity:1!important;
}
@media(max-width:767px){
  html body .site .quest-detail-gallery .quest-detail-thumbs{
    left:12px!important;right:12px!important;bottom:12px!important;
    height:62px!important;gap:8px!important;
  }
  html body .site .quest-detail-gallery .quest-detail-thumbs button{
    flex-basis:72px!important;width:72px!important;height:54px!important;border-radius:9px!important;
  }
}
