/* ==========================================================================
   Royal Bengal Safar — Mobile App Shell
   Loaded after style.css. Everything here is scoped to phones/tablets;
   the desktop layout is untouched.
   ========================================================================== */

:root{
  --tabbar-h:64px;
  --appbar-h:60px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --gutter:18px;
}

/* Desktop: the app chrome does not exist. */
.tabbar,.sheet,.sheet-scrim,.appbar-actions,.snap-dots,.action-bar{display:none}

@media (max-width:900px){

/* ---------- 1. NATIVE FEEL ---------------------------------------------- */
html{
  -webkit-tap-highlight-color:transparent;
  -webkit-text-size-adjust:100%;
}
body{
  overscroll-behavior-y:contain;
  padding-bottom:calc(var(--tabbar-h) + var(--safe-b));
  font-size:15.5px;
}
body.sheet-open,body.nav-open{overflow:hidden}
a,button{-webkit-touch-callout:none}

/* one consistent gutter everywhere, so carousels can bleed past it */
.container,.container-sm{width:100%;padding-inline:var(--gutter)}

/* ---------- 2. APP BAR --------------------------------------------------- */
.topbar{display:none}

.site-header{
  height:var(--appbar-h);
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  box-shadow:none;
  border-bottom:1px solid transparent;
  padding-top:env(safe-area-inset-top,0px);
}
.site-header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 4px 20px -12px rgba(6,48,30,.4);
}
.nav{height:var(--appbar-h);gap:10px}
.brand{gap:9px}
.brand img,.site-header.is-stuck .brand img{height:38px}
.brand::after{
  content:"Royal Bengal Safar";
  font-family:var(--ff-display);font-size:16px;font-weight:700;
  color:var(--forest-800);letter-spacing:-.01em;white-space:nowrap;
}
.nav-cta{margin-left:auto;gap:8px}
.nav-cta .btn,.nav-phone{display:none}

/* the desktop slide-in drawer is replaced by a bottom sheet */
.menu,.nav-scrim{display:none!important}

.appbar-actions{display:flex;align-items:center;gap:8px}
.icon-btn{
  width:42px;height:42px;flex:none;border-radius:50%;
  display:grid;place-items:center;
  background:var(--cream);border:1px solid var(--line);
  transition:transform .15s var(--ease),background .2s;
}
.icon-btn svg{width:19px;height:19px;fill:var(--forest-700)}
.icon-btn:active{transform:scale(.92);background:var(--sand)}
.nav-toggle{display:none!important}

/* ---------- 3. BOTTOM TAB BAR -------------------------------------------- */
.tabbar{
  display:flex;position:fixed;left:0;right:0;bottom:0;z-index:960;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border-top:1px solid var(--line);
  padding-bottom:var(--safe-b);
  box-shadow:0 -6px 24px -18px rgba(6,48,30,.5);
}
.tab{
  flex:1;min-width:0;height:var(--tabbar-h);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  position:relative;color:var(--muted);
  transition:color .2s var(--ease);
}
.tab svg{width:22px;height:22px;fill:currentColor;transition:transform .25s var(--ease)}
.tab span{
  font-size:10px;font-weight:600;letter-spacing:.04em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.tab::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%) scaleX(0);
  width:26px;height:2.5px;border-radius:0 0 3px 3px;background:var(--gold);
  transition:transform .3s var(--ease);
}
.tab:active svg{transform:scale(.88)}
.tab.is-active{color:var(--forest-700)}
.tab.is-active::before{transform:translateX(-50%) scaleX(1)}
.tab.is-active svg{fill:var(--gold-700)}

/* the centre tab is the primary action */
.tab--cta{flex:0 0 74px}
.tab--cta i{
  width:48px;height:48px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--gold-400),var(--gold));
  box-shadow:0 8px 18px -6px rgba(200,149,42,.7);
  margin-top:-18px;transition:transform .2s var(--ease);
}
.tab--cta i svg{width:22px;height:22px;fill:var(--forest-900)}
.tab--cta span{color:var(--forest-700)}
.tab--cta:active i{transform:scale(.9)}
.tab--cta::before{display:none}

/* ---------- 4. BOTTOM SHEET MENU ----------------------------------------- */
.sheet-scrim{
  display:block;position:fixed;inset:0;z-index:970;
  background:rgba(4,35,21,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;transition:opacity .3s var(--ease),visibility .3s;
}
body.sheet-open .sheet-scrim{opacity:1;visibility:visible}

.sheet{
  display:block;position:fixed;left:0;right:0;bottom:0;z-index:980;
  max-height:88svh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:#fff;border-radius:26px 26px 0 0;
  padding:10px var(--gutter) calc(22px + var(--safe-b));
  box-shadow:0 -20px 60px -20px rgba(4,35,21,.5);
  transform:translateY(102%);
  transition:transform .42s cubic-bezier(.32,.72,0,1);
}
body.sheet-open .sheet{transform:translateY(0)}
.sheet-grip{
  width:40px;height:4px;border-radius:4px;background:var(--line);
  margin:0 auto 16px;
}
.sheet h2{font-size:19px;margin-bottom:4px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.sheet-head p{font-size:13px;color:var(--muted)}

.sheet-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:20px}
.sheet-nav a{
  display:flex;align-items:center;gap:11px;padding:14px;
  border:1px solid var(--line);border-radius:14px;background:var(--cream);
  font-size:14.5px;font-weight:500;color:var(--forest-800);
  transition:transform .15s var(--ease),border-color .2s;
}
.sheet-nav a:active{transform:scale(.97);border-color:var(--gold)}
.sheet-nav svg{width:18px;height:18px;fill:var(--gold-700);flex:none}
.sheet-nav a.is-active{background:var(--forest-700);color:#fff;border-color:var(--forest-700)}
.sheet-nav a.is-active svg{fill:var(--gold-400)}

.sheet-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.sheet-actions a{
  display:flex;flex-direction:column;align-items:center;gap:7px;padding:15px 8px;
  border-radius:14px;background:var(--forest-800);color:#fff;
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
.sheet-actions a:nth-child(2){background:#25a366}
.sheet-actions svg{width:20px;height:20px;fill:var(--gold-400)}
.sheet-actions a:nth-child(2) svg{fill:#fff}
.sheet-actions a:active{transform:scale(.96)}
.sheet-foot{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-top:16px;border-top:1px solid var(--line);
}
.sheet-foot small{font-size:12px;color:var(--muted)}
.sheet-social{display:flex;gap:8px}
.sheet-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--line);
  display:grid;place-items:center;
}
.sheet-social svg{width:15px;height:15px;fill:var(--muted)}

/* ---------- 5. HERO ------------------------------------------------------ */
.hero{
  min-height:auto;height:calc(86svh - var(--appbar-h));
  max-height:660px;
  border-radius:0 0 26px 26px;
}
.hero-inner{padding:0 0 34px;display:flex;flex-direction:column;justify-content:flex-end;height:100%}
.hero .container{display:flex;align-items:flex-end;min-height:100%}
.hero h1{font-size:clamp(31px,9vw,40px);line-height:1.08;margin-bottom:13px}
.hero .kicker{font-size:10px;letter-spacing:.24em;margin-bottom:12px}
.hero .kicker::before,.hero .kicker::after{width:16px}
.hero p{
  font-size:14.8px;line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.hero-actions{margin-top:22px;gap:10px;flex-wrap:nowrap}
.hero-actions .btn{
  flex:1;padding:15px 8px;font-size:10.5px;letter-spacing:.04em;
  white-space:nowrap;gap:7px;
}
.hero-actions .btn--lg{padding:15px 8px}
.hero-actions .btn svg{width:14px;height:14px}
.hero-meta{
  margin-top:24px;padding-top:18px;gap:0;
  display:grid;grid-template-columns:repeat(3,1fr);
}
.hero-meta div strong{font-size:22px}
.hero-meta div span{font-size:9.5px;letter-spacing:.1em}
.hero-dots{bottom:auto;top:18px;left:auto;right:16px;transform:none;flex-direction:row}
.hero-dots button{width:7px;height:7px}
.hero-dots button.is-active{width:18px;border-radius:5px}

/* compact image collage instead of three full-width photos */
.frame-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.frame-stack img{border-radius:16px;height:100%}
.frame-stack img:first-child{grid-column:1/-1;grid-row:auto;aspect-ratio:16/10}
.frame-stack img:nth-child(2),
.frame-stack img:nth-child(3){aspect-ratio:1/1}
.frame img{border-radius:18px}
.frame::after{display:none}
/* the years badge crowds the small collage tiles, and the number already
   appears in the hero stats and the stats band */
.badge-float{display:none}

/* ---------- 6. SECTIONS AS SHEETS ---------------------------------------- */
.section{padding:44px 0}
.section--cream,.section--dark{
  border-radius:26px;margin-inline:0;
}
.section--dark{background:var(--forest-900)}
.section-head{margin-bottom:22px;text-align:left}
.section-head .ornament{display:none}
.section-head p{font-size:14.6px;margin-top:10px}
.section-head--split{flex-direction:row;align-items:center;gap:12px}
.section-head--split > div{flex:1;min-width:0}
.section-head--split p{display:none}
.section-head--split .link-more{flex:none;font-size:11px;letter-spacing:.08em}
.title{font-size:25px}
.title-lg{font-size:30px}
.title-sm{font-size:21px}
.kicker{font-size:10px;letter-spacing:.22em;margin-bottom:10px}
.lead{font-size:15.2px}

/* “See all” affordance on carousel headers */
.section-head--split .link-more svg{width:13px;height:13px}

/* ---------- 7. SWIPE CAROUSELS ------------------------------------------- */
.pkg-grid,
.dest-grid,
.gal-grid,
.grid.g-3,
.grid.g-4,
.award-strip{
  display:flex;flex-wrap:nowrap;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scroll-padding-left:var(--gutter);
  gap:13px;
  padding:4px var(--gutter) 14px;
  margin-inline:calc(var(--gutter) * -1);
  scrollbar-width:none;
}
.pkg-grid::-webkit-scrollbar,
.dest-grid::-webkit-scrollbar,
.gal-grid::-webkit-scrollbar,
.grid.g-3::-webkit-scrollbar,
.grid.g-4::-webkit-scrollbar,
.award-strip::-webkit-scrollbar{display:none}

.pkg-grid > *,
.dest-grid > *,
.gal-grid > *,
.grid.g-3 > *,
.grid.g-4 > *,
.award-strip > *{
  flex:0 0 78vw;max-width:310px;scroll-snap-align:start;
}
.grid.g-3 > *,.grid.g-4 > *{flex-basis:70vw}
.award-strip > *{flex-basis:74vw}

/* cards inside a carousel need a fixed rhythm */
.pkg{border-radius:18px}
.pkg-media{aspect-ratio:16/11}
.pkg-body{padding:18px 18px 20px}
.pkg-body h3{font-size:19px}
.pkg-body p{
  font-size:14px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.pkg-points{gap:6px;margin-bottom:16px}
.pkg-points li{font-size:10.5px;padding:4px 9px}
.price strong{font-size:23px}
.pkg-foot .btn{padding:10px 16px;font-size:10.5px}

.dest{border-radius:18px;height:230px;padding:20px}
.dest--tall,.dest--wide{grid-row:auto;grid-column:auto}
.dest-body p{max-height:none;opacity:1;margin-top:8px;font-size:13.4px}
.dest-body h3{font-size:19px}

.gal{aspect-ratio:1;border-radius:18px}
.gal--tall,.gal--wide{aspect-ratio:1}
.gal-grid > *{flex-basis:64vw;max-width:260px}

/* the full gallery page is a tap-to-open photo grid, not a 22-card swipe */
.filters ~ .gal-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:9px;
  overflow:visible;padding:0;margin-inline:0;
}
.filters ~ .gal-grid > *{flex:none;max-width:none;width:auto}
.filters ~ .gal-grid .gal{border-radius:14px}
.filters ~ .gal-grid + .snap-dots{display:none}

.feature{padding:24px 20px;border-radius:18px;height:100%}
.feature-icon{width:54px;height:54px;margin-bottom:16px}
.feature-icon svg{width:23px;height:23px}
.feature h3{font-size:18px}
.feature p{font-size:14px}
.feature-num{font-size:44px;top:10px;right:16px}

.post{border-radius:18px}
.post-body{padding:18px}
.post-body h3{font-size:17.5px}
.post-body p{
  font-size:13.8px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.award{padding:18px;border-radius:18px;height:100%}

/* swipe indicator dots under a carousel */
.snap-dots{
  display:flex;justify-content:center;gap:6px;margin-top:2px;
}
.snap-dots i{
  width:6px;height:6px;border-radius:50%;background:var(--line);
  transition:.3s var(--ease);
}
.snap-dots i.is-active{background:var(--gold);width:16px;border-radius:4px}

/* long carousels get a progress bar instead of a row of many dots */
.snap-dots--bar{
  display:block;width:76px;height:3px;border-radius:3px;
  background:var(--line);margin:4px auto 0;overflow:hidden;
}
.snap-dots--bar i{
  display:block;width:34%;height:100%;border-radius:3px;background:var(--gold);
  transition:transform .18s linear;
}
.section--dark .snap-dots--bar{background:rgba(255,255,255,.2)}
.section--dark .snap-dots i{background:rgba(255,255,255,.22)}
.section--dark .snap-dots i.is-active{background:var(--gold-400)}

/* ---------- 8. FORMS AS APP SHEETS --------------------------------------- */
.enquiry-bar{margin-top:-28px}
.enquiry-card{
  display:grid;grid-template-columns:1fr 1fr;gap:0;
  border-radius:20px;border-top-width:1px;
  box-shadow:0 18px 40px -22px rgba(6,48,30,.55);
}
.enquiry-field{padding:14px 16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.enquiry-field:nth-child(1),.enquiry-field:nth-child(3){border-right:1px solid var(--line)}
.enquiry-field:nth-child(2),.enquiry-field:nth-child(4){border-right:0}
.enquiry-field:first-child,
.enquiry-field:nth-child(4){grid-column:1/-1}
.enquiry-field:nth-child(4){border-right:0}
.enquiry-field label{font-size:9.5px;letter-spacing:.15em;margin-bottom:3px}
.enquiry-field input,.enquiry-field select{font-size:14.5px}
.enquiry-card .btn{grid-column:1/-1;border-radius:0 0 19px 19px;padding-block:17px}

.field input,.field select,.field textarea{
  padding:15px 16px;border-radius:13px;font-size:16px;  /* 16px stops iOS zoom-on-focus */
  background:var(--cream);
}
.field label{font-size:11px}
.form-grid{gap:14px}
.book-card,.aside-box,.info-card,.acc,.incl,.table-wrap,.map-frame{border-radius:18px}
.book-card{padding:20px}
.aside-box{padding:22px}
.info-card{padding:20px;gap:14px}
.info-card i{width:46px;height:46px}
.map-frame iframe{height:300px}

/* ---------- 9. ACCORDIONS & LISTS ---------------------------------------- */
.acc-head{padding:17px 18px;font-size:16px;gap:12px}
.acc-head i{width:28px;height:28px}
.acc-body div{padding:0 18px 20px;font-size:14.4px}

.filters{
  display:flex;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
  gap:8px;margin-bottom:22px;padding:2px var(--gutter) 6px;
  margin-inline:calc(var(--gutter) * -1);
  scrollbar-width:none;scroll-snap-type:x proximity;
}
.filters::-webkit-scrollbar{display:none}
.filters button{flex:none;padding:9px 17px;font-size:11.5px;scroll-snap-align:start}

/* ---------- 10. PAGE BANNER ---------------------------------------------- */
.page-banner{
  padding:46px 0 40px;text-align:left;border-radius:0 0 26px 26px;
}
.page-banner h1{font-size:28px}
.breadcrumb{justify-content:flex-start;font-size:12px;margin-top:10px}

/* ---------- 11. DETAIL PAGE + STICKY ACTION BAR -------------------------- */
.detail-layout{gap:0}
.detail-hero img{border-radius:18px;aspect-ratio:4/3}
.detail-facts{grid-template-columns:repeat(2,1fr);border-radius:18px;margin:18px 0 26px}
.detail-facts div{padding:16px 12px}
.detail-facts svg{width:19px;height:19px;margin-bottom:7px}
.detail-facts small{font-size:9.5px}
.detail-facts strong{font-size:14px}
.prose h2{font-size:22px;margin:30px 0 12px}
.prose p,.prose ul li{font-size:14.8px}
.prose blockquote{padding:20px;font-size:16.5px;border-radius:0 16px 16px 0}
.timeline{padding-left:30px}
.timeline::before{left:9px}
.tl-item::before{left:-27px;width:13px;height:13px}
.tl-item h4{font-size:17.5px}
.tl-item p{font-size:14.4px}
.sidebar{position:static;display:block;margin-top:34px}
.sidebar > *{margin-bottom:18px}

/* price + book bar, docked above the tab bar */
.action-bar{
  display:flex;align-items:center;gap:12px;
  position:fixed;left:0;right:0;bottom:calc(var(--tabbar-h) + var(--safe-b));
  z-index:950;padding:11px var(--gutter);
  background:rgba(255,255,255,.95);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  transform:translateY(120%);transition:transform .35s var(--ease);
}
.action-bar.is-visible{transform:translateY(0)}
.action-bar .price small{font-size:9.5px}
.action-bar .price strong{font-size:21px}
.action-bar .btn{flex:1;padding:14px 16px;border-radius:13px}

/* ---------- 12. TESTIMONIALS / CTA / FOOTER ------------------------------ */
.quote{padding:0}
.quote-mark{font-size:64px}
.quote p{font-size:17px;margin:14px 0 22px}
.quote-nav{margin-top:26px}
.cta-band{padding:52px 0;border-radius:26px;background-attachment:scroll}
.cta-band p{font-size:15px;margin-bottom:26px}
.cta-actions{flex-direction:column;gap:10px}
.cta-actions .btn{width:100%}
.stats{grid-template-columns:repeat(2,1fr);border-radius:26px;overflow:hidden}
.stat{padding:26px 16px}
.stat strong{font-size:29px}
.stat span{font-size:10px;letter-spacing:.12em}

.site-footer{padding-top:44px;border-radius:26px 26px 0 0;margin-top:20px}
.footer-grid{gap:30px;padding-bottom:30px}
.footer-brand img{height:76px}
.footer-grid p{font-size:14px}
.footer-title{font-size:17px;margin-bottom:16px;padding-bottom:10px}
.footer-links{grid-template-columns:1fr 1fr;gap:10px}
.footer-bottom{flex-direction:column;align-items:flex-start;gap:10px;font-size:12.5px;padding:18px 0}
.footer-bottom nav{gap:16px}

/* The tab bar already carries Call / WhatsApp / Book, and tapping the active
   tab scrolls to top — so the floating bubbles are redundant on a phone. */
.float-stack{display:none}

/* ---------- 13. TOUCH STATES (no hover on touch) -------------------------- */
.btn:hover{transform:none;box-shadow:none}
.btn:active{transform:scale(.97)}
.pkg:hover,.post:hover,.feature:hover,.info-card:hover,.team:hover{transform:none;box-shadow:var(--shadow-sm)}
.pkg:active,.post:active{transform:scale(.985)}
.pkg:hover .pkg-media img,.post:hover .post-media img,.dest:hover img{transform:none}
.gal:hover img{transform:none}
.gal-plus{opacity:0}

} /* end max-width:900px */


/* ---------- 14. SMALL PHONES --------------------------------------------- */
@media (max-width:380px){
  :root{--gutter:15px}
  .brand::after{font-size:14.5px}
  .hero h1{font-size:28px}
  .tab span{font-size:9px}
  .sheet-nav{grid-template-columns:1fr}
}

/* ---------- 15. STANDALONE (added to home screen) ------------------------ */
@media (display-mode:standalone){
  .site-header{padding-top:max(env(safe-area-inset-top,0px),8px)}
  .footer-bottom{padding-bottom:8px}
}

/* ---------- 16. LANDSCAPE PHONES ----------------------------------------- */
@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
  .hero{height:auto;min-height:440px}
  .hero-inner{padding-block:70px 34px}
  .tabbar{--tabbar-h:56px}
}
