/* v6.6.15 targeted layout fixes only: drawers, tour tabs, desktop enquiry card. */
:root{--af-fixed-nav:88px;--af-tour-tabs:64px}

/* Profile and cart drawers start below the live navbar height. */
.af-cart-drawer,.af-profile-drawer,
.af-drawer,.af-drawer[data-drawer="cart"],.af-drawer[data-drawer="profile"]{
  top:var(--af-fixed-nav)!important;
  height:calc(100dvh - var(--af-fixed-nav))!important;
  max-height:calc(100dvh - var(--af-fixed-nav))!important;
}
.af-drawer-cover,.af-cart-overlay,.af-profile-overlay{top:var(--af-fixed-nav)!important}

/* Keep the destination cards short and balanced. */
main .af-card-grid.four .af-card-body p{
  min-height:0!important;margin-bottom:14px!important;line-height:1.45!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}

/* overflow-x:clip does not create a sticky scroll container. */
html:has(body.af-tour-v6),body.af-tour-v6{overflow-x:clip!important}
body.af-tour-v6 main{overflow:visible!important}

/* Tour section bar stays directly under the navbar and spans the page. */
body.af-tour-v6 .detail-tabs{
  position:sticky!important;
  top:var(--af-fixed-nav)!important;
  left:auto!important;right:auto!important;
  width:auto!important;
  margin:0!important;
  z-index:2147482500!important;
}
body.af-tour-v6 .detail-tabs.af-force-fixed{position:sticky!important;left:auto!important;right:auto!important;width:auto!important}
body.af-tour-v6 .af-tabs-spacer{display:none!important;height:0!important}

/* Desktop enquiry card remains within its grid column and sticks under navbar + tabs. */
@media(min-width:901px){
  body.af-tour-v6 .detail-layout{overflow:visible!important;align-items:start!important}
  body.af-tour-v6 #tour-enquiry,
  body.af-tour-v6 #tour-enquiry.af-force-fixed{
    position:sticky!important;
    align-self:start!important;
    left:auto!important;right:auto!important;
    width:auto!important;
    margin:0!important;
    top:calc(var(--af-fixed-nav) + var(--af-tour-tabs) + 14px)!important;
    max-height:calc(100dvh - var(--af-fixed-nav) - var(--af-tour-tabs) - 30px)!important;
    overflow:auto!important;
    overscroll-behavior:contain;
    z-index:60!important;
  }
  body.af-tour-v6 .af-enquiry-spacer{display:none!important;height:0!important}
}

@media(max-width:900px){
  :root{--af-fixed-nav:66px;--af-tour-tabs:58px}
  .af-cart-drawer,.af-profile-drawer,.af-drawer,.af-drawer[data-drawer="cart"],.af-drawer[data-drawer="profile"]{
    top:var(--af-fixed-nav)!important;
    height:calc(100dvh - var(--af-fixed-nav))!important;
    max-height:calc(100dvh - var(--af-fixed-nav))!important;
  }
  .af-drawer-cover,.af-cart-overlay,.af-profile-overlay{top:var(--af-fixed-nav)!important}
  body.af-tour-v6 .detail-tabs{top:var(--af-fixed-nav)!important}
  body.af-tour-v6 #tour-enquiry{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important}
}
