/* =========================================================
   BookMeraSafar — website layer (bookmerasafar.com/bmsclients)
   Loaded after app.css. Phones keep the app look; desktops get a
   proper website layout: top header, wide grids, modal sheets, footer.
   ========================================================= */
.topbar, .webfoot { display: none; }
html.web body { -webkit-user-select: auto; user-select: auto; }
html.web .intro .skip { top: 18px; }

@media (min-width: 980px) {
  :root { --nav-h: 0px; --tb-h: 76px; }
  html.web body { background: var(--bg); }
  html.web .nav, html.web .minibar { display: none !important; }

  /* ---------- header ---------- */
  html.web .topbar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--tb-h);
    background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .tb-in { max-width: 1240px; margin: 0 auto; height: 100%; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
  .tb-brand { display: flex; align-items: center; gap: 12px; text-align: left; }
  .tb-brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
  .tb-brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; box-shadow: var(--sh-s); }
  .tb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .tb-logo i { font-size: 24px; color: var(--brand); }
  .tb-nav { display: flex; gap: 4px; margin: 0 auto; background: var(--soft); padding: 5px; border-radius: 16px; }
  .tb-nav button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
  .tb-nav button i { font-size: 18px; }
  .tb-nav button:hover { background: var(--card); color: var(--ink); }
  .tb-nav button.on { background: var(--card); color: var(--brand); box-shadow: var(--sh-s); }
  html[data-dark] .tb-nav button.on { color: var(--accent); }
  .tb-act { display: flex; gap: 10px; align-items: center; }
  .tb-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; font-weight: 800; font-size: 13.5px; color: #128a47; background: #e6f7ee; }
  .tb-wa i { font-size: 20px; }
  html[data-dark] .tb-wa { background: rgba(26,160,83,.15); color: #49d58a; }
  .tb-login { display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 13px; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-d)); box-shadow: 0 10px 22px -12px var(--accent); }
  .tb-user { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--ink); }
  .tb-user .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; }

  /* ---------- page frame ---------- */
  html.web #app { padding-top: var(--tb-h); }
  html.web .scr { max-width: 1240px; margin: 0 auto; padding-bottom: 60px; min-height: calc(100vh - var(--tb-h)); box-shadow: none; background: transparent; }
  html.web .scr.sub { padding-bottom: 130px; }
  html.web .hero-top { margin: 20px 28px 0; border-radius: 34px; padding: 34px 40px 74px; }
  html.web .hero-top.compact { padding: 26px 34px 46px; }
  html.web .hero-top .brandbar .logo, html.web .s-home .hero-top .brandbar .bname, html.web .s-home .hero-top .brandbar .icon-btn { display: none; }
  html.web .s-home .hero-top .greet { margin-top: 0; }
  html.web .greet h1 { font-size: 46px; letter-spacing: -1.5px; }
  html.web .search { max-width: 720px; margin-left: auto; margin-right: auto; }
  html.web .searchbox { max-width: 720px; margin: -28px auto 0; }
  html.web .wrap, html.web .sec-h, html.web .plist, html.web .hscroll, html.web .why, html.web .chips, html.web .filter-bar, html.web .toolbar, html.web .facts, html.web .qa { padding-left: 28px; padding-right: 28px; }
  html.web .hscroll { scroll-padding: 0 28px; }
  html.web .sec { margin-top: 44px; }
  html.web .sec-h h2 { font-size: 28px; }
  html.web .banner { width: 600px; }
  html.web .feat { width: 280px; height: 370px; }
  html.web .plist { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  html.web .pcard { flex-direction: column; padding: 12px; }
  html.web .pcard .im { width: 100%; min-height: 190px; }
  html.web .pcard:hover { transform: translateY(-4px); box-shadow: var(--sh); }
  html.web .why { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  html.web .code-card { max-width: 760px; margin-left: auto; margin-right: auto; }
  html.web .circles { gap: 22px; }
  html.web .catc { width: 200px; min-height: 150px; }
  html.web .empty { max-width: 560px; margin-left: auto; margin-right: auto; }

  /* package page: gallery + two columns with sticky price card */
  html.web .s-package .gal { height: 500px; margin: 20px 28px 0; border-radius: 30px; }
  html.web .s-package .gal .float-top { top: 16px; }
  html.web .s-package .sheet-body { margin: -40px 28px 0; border-radius: 30px; padding: 30px 6px 10px;
    display: grid; grid-template-columns: minmax(0, 1fr) 390px; column-gap: 34px; align-items: start; }
  html.web .s-package .sheet-body > * { grid-column: 1; }
  html.web .s-package .sheet-body > #s-pr { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: calc(var(--tb-h) + 20px); margin-top: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--sh); }
  html.web .s-package #seg button[data-s="s-pr"] { display: none; }
  html.web .s-package .catpick { grid-template-columns: 1fr 1fr; }
  html.web .s-package .p-head h1 { font-size: 38px; }
  html.web .s-package .psec, html.web .s-package .p-head, html.web .s-package .custom-note { padding-left: 22px; padding-right: 22px; }
  html.web .s-package .facts, html.web .s-package .qa { padding-left: 22px; padding-right: 22px; }
  html.web .s-package .seg { position: sticky; top: var(--tb-h); }
  html.web .cta { max-width: 1184px; margin: 0 auto; left: 0; right: 0; bottom: 16px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--sh); padding: 14px 22px; }
  html.web .cta .btn { min-width: 220px; }

  /* destination & trip heroes */
  html.web .dhero { margin: 20px 28px 0; border-radius: 30px; height: 380px; }
  html.web .dhero .txt { left: 40px; bottom: 34px; }
  html.web .dhero .txt h1 { font-size: 48px; }

  /* booking & trip: comfortable reading width */
  html.web .s-book, html.web .s-trip, html.web .s-success, html.web .s-help, html.web .s-trips { max-width: 900px; }
  html.web .s-book .card, html.web .s-trip .card, html.web .s-book .bk-pkg, html.web .s-book .note-box, html.web .s-book .mode-banner { margin-left: 28px; margin-right: 28px; }
  html.web .s-book .kid-ages label { flex: 1 1 calc(50% - 8px); }
  html.web .s-help .contact-grid { padding-left: 28px; padding-right: 28px; }
  html.web .s-trips .trip { margin-left: 28px; margin-right: 28px; }

  /* login: split card */
  html.web .s-welcome .onb { min-height: calc(100vh - var(--tb-h)); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0 40px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 30px 28px; background: transparent; }
  html.web .s-welcome .onb-top { grid-row: 1 / span 2; border-radius: 34px; padding: 70px 46px; min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
  html.web .s-welcome .onb-top h1 { font-size: 40px; }
  html.web .s-welcome .onb-top p { max-width: 420px; font-size: 16px; }
  html.web .s-welcome .onb-card { margin: 0; padding: 30px; align-self: end; }
  html.web .s-welcome .onb-note { align-self: start; margin-top: 14px; }

  /* sheets become centred dialogs */
  html.web .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 600px; max-height: 86vh; border-radius: 28px; padding: 24px 30px 28px;
    transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  html.web .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  html.web .sheet .grab { display: none; }
  html.web .sheet-actions { bottom: -28px; }

  /* footer */
  html.web .webfoot { display: block; margin-top: 60px; background: var(--brand-d); color: rgba(255,255,255,.82); }
  .wf-in { max-width: 1240px; margin: 0 auto; padding: 50px 28px 34px; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 34px; }
  .wf-brand { display: flex; gap: 14px; align-items: flex-start; }
  .wf-brand b { font-size: 20px; color: #fff; font-weight: 800; }
  .wf-brand p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
  .wf-col h4 { margin: 4px 0 14px; color: #fff; font-size: 15px; font-weight: 800; }
  .wf-col a, .wf-col span { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 9px; text-decoration: none; }
  .wf-col a:hover { color: #fff; }
  .wf-col i { margin-top: 2px; }
  .wf-play { display: inline-flex !important; align-items: center; gap: 10px !important; background: #000; color: #fff !important; padding: 9px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); width: fit-content; }
  .wf-play i { font-size: 26px; margin: 0 !important; }
  .wf-play span { display: block !important; margin: 0 !important; font-weight: 800; font-size: 16px; color: #fff !important; line-height: 1.1; }
  .wf-play small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .5px; }
  .wf-small { font-size: 12.5px !important; opacity: .7; }
  .wf-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12.5px; padding: 16px 28px 22px; }

  /* hover polish */
  html.web .btn, html.web .chip, html.web .catc, html.web .feat, html.web .banner, html.web .circ { cursor: pointer; }
  html.web .feat:hover, html.web .catc:hover { transform: translateY(-4px); }
  html.web .circ:hover .ring { transform: scale(1.05); }
}

@media (min-width: 1240px) {
  html.web .plist { grid-template-columns: repeat(3, 1fr); }
}
