/* Hamadeh Travel app shell (PWA): bottom navigation bar + install sheet. Shared by the PHP and Next.js sites.
   The bar shows on phones and when the site is opened from the home screen; desktop is unchanged. */
.hp-nav{display:none}
@media (max-width:767.98px),(display-mode:standalone) and (max-width:1024px){
  .hp-nav{position:fixed;left:0;right:0;bottom:0;z-index:1030;display:flex;justify-content:space-around;align-items:stretch;
    height:calc(64px + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);
    background:rgba(18,18,22,.96);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid #26262b;
    font-family:inherit}
  .hp-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;
    color:#8b8b94 !important;text-decoration:none !important;font-size:11.5px;font-weight:600;line-height:1.1;letter-spacing:.1px;
    -webkit-tap-highlight-color:transparent}
  .hp-nav a svg{width:24px;height:24px;flex:none}
  .hp-nav a .hp-dot{width:5px;height:5px;border-radius:50%;background:transparent;margin-top:1px}
  .hp-nav a.hp-on{color:#d6ff3d !important;font-weight:800}
  .hp-nav a.hp-on .hp-dot{background:#d6ff3d}
  .hp-nav a:active{opacity:.7}
  body:has(.hp-nav),body.hp-has-nav{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important}
  /* floating buttons sit above the bar */
  body:has(.hp-nav) .scroll-top,body:has(.hp-nav) .scrollToTop,body:has(.hp-nav) .back-to-top,body:has(.hp-nav) .whatsapp-float,body:has(.hp-nav) .wa-float,body:has(.hp-nav) .site-notification{bottom:calc(78px + env(safe-area-inset-bottom,0px)) !important}
}
/* iPhone home-screen app (navigator.standalone) and browsers without the display-mode query: same bar, set by pwa.js */
@media (max-width:1024px){
  html.hp-standalone .hp-nav{position:fixed;left:0;right:0;bottom:0;z-index:1030;display:flex;justify-content:space-around;align-items:stretch;
    height:calc(64px + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);
    background:rgba(18,18,22,.96);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid #26262b;
    font-family:inherit}
  html.hp-standalone .hp-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;
    color:#8b8b94 !important;text-decoration:none !important;font-size:11.5px;font-weight:600;line-height:1.1;letter-spacing:.1px;
    -webkit-tap-highlight-color:transparent}
  html.hp-standalone .hp-nav a svg{width:24px;height:24px;flex:none}
  html.hp-standalone .hp-nav a .hp-dot{width:5px;height:5px;border-radius:50%;background:transparent;margin-top:1px}
  html.hp-standalone .hp-nav a.hp-on{color:#d6ff3d !important;font-weight:800}
  html.hp-standalone .hp-nav a.hp-on .hp-dot{background:#d6ff3d}
  html.hp-standalone .hp-nav a:active{opacity:.7}
  html.hp-standalone body:has(.hp-nav),html.hp-standalone body.hp-has-nav{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important}
  html.hp-standalone body:has(.hp-nav) .scroll-top,html.hp-standalone body:has(.hp-nav) .scrollToTop,html.hp-standalone body:has(.hp-nav) .back-to-top,html.hp-standalone body:has(.hp-nav) .whatsapp-float,html.hp-standalone body:has(.hp-nav) .wa-float,html.hp-standalone body:has(.hp-nav) .site-notification{bottom:calc(78px + env(safe-area-inset-bottom,0px)) !important}
}
/* Signed-in header on phones: it was ~40px wider than a 390px screen (the page zoomed out and the bottom bar slid
   off-screen). The empty links row and the name next to the avatar are hidden on small phones; Account is in the bar. */
@media (max-width:767.98px){.bn-bar .bn-links{display:none !important}}
@media (max-width:430px){.bn-user-toggle > span{display:none !important}}
@media print{.hp-nav,.hp-sheet-wrap{display:none !important}}

/* install sheet (design screen 1) */
.hp-sheet-wrap{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.55);
  opacity:0;transition:opacity .2s ease;font-family:inherit}
.hp-sheet-wrap.hp-show{opacity:1}
.hp-sheet{width:100%;max-width:520px;background:#f7f7f4;color:#0d0d0f;border-radius:28px 28px 0 0;
  padding:12px 22px calc(24px + env(safe-area-inset-bottom,0px));transform:translateY(100%);transition:transform .25s ease;
  box-shadow:0 -10px 40px rgba(0,0,0,.35);text-align:start}
.hp-sheet-wrap.hp-show .hp-sheet{transform:none}
.hp-grab{width:46px;height:5px;border-radius:3px;background:#d4d4d8;margin:0 auto 16px}
.hp-si{display:flex;gap:14px;align-items:center}
.hp-si img{width:64px;height:64px;border-radius:16px;flex:none;background:#0d0d0f;object-fit:contain;padding:4px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.hp-si b{display:block;font-weight:800;font-size:21px;line-height:1.15;color:#0d0d0f}
.hp-si small{display:block;color:#71717a;font-size:14px;margin-top:2px}
.hp-feat{display:flex;gap:10px;align-items:center;margin-top:11px;font-size:15px;color:#3f3f46}
.hp-feat svg{color:#65a30d;flex:none}
.hp-ibtn{margin-top:18px;width:100%;border:0;background:#0d0d0f;color:#d6ff3d;padding:15px;border-radius:16px;font:inherit;
  font-weight:800;font-size:18px;display:flex;justify-content:center;align-items:center;gap:8px;cursor:pointer}
.hp-ios{margin-top:16px;background:#ececE7;border-radius:16px;padding:12px 14px;font-size:15px;color:#27272a;line-height:1.45}
.hp-ios svg{vertical-align:-4px;color:#0a84ff}
.hp-later{display:block;width:100%;border:0;background:none;color:#71717a;margin-top:10px;padding:8px;font:inherit;font-size:15px;cursor:pointer}

/* ---------- "Get the app" strip: Android / iPhone buttons (2026-10-31) ---------- */
.hp-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;box-sizing:border-box;width:100%;max-width:100%;
  padding:8px 12px;background:#141418;color:#f4f4f0;border-bottom:1px solid #26262b;font-family:inherit;font-size:14px;line-height:1.2}
.hp-strip *{box-sizing:border-box}
.hp-strip-ic{width:28px;height:28px;border-radius:8px;flex:none;object-fit:contain;background:#0d0d0f}
.hp-strip-t{font-weight:800;white-space:nowrap;color:#f4f4f0}
.hp-strip-b{display:flex;gap:6px;flex-wrap:wrap;flex:1 1 auto;min-width:0;justify-content:flex-end}
.hp-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 12px;border-radius:999px;border:0;cursor:pointer;
  font:inherit;font-size:13.5px;font-weight:800;white-space:nowrap;background:var(--bn-lime,#d6ff3d);color:#0d0d0f;-webkit-tap-highlight-color:transparent}
.hp-btn svg{flex:none}
.hp-btn-ios{background:#f4f4f0;color:#0d0d0f}
.hp-btn:active{transform:scale(.97)}
.hp-strip-x{flex:none;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;
  background:transparent;color:#8b8b94;cursor:pointer}
.hp-strip-x:hover{color:#f4f4f0}
.hp-strip-float{position:fixed;left:10px;right:10px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto;z-index:1040;
  border:1px solid #2c2c33;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:560px;margin:0 auto}
@media (max-width:767.98px){body:has(.hp-nav) .hp-strip-float{bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
/* 2026-11-03: room under the page for a floating strip, so it never covers the last rows / buttons of a page */
body.hp-strip-on{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)) !important}
@media (max-width:767.98px){body.hp-strip-on:has(.hp-nav){padding-bottom:calc(140px + env(safe-area-inset-bottom,0px)) !important}}
@media (max-width:360px){.hp-strip-t{display:none}}
@media print{.hp-strip,.hp-guide,.hp-back{display:none !important}}

/* ---------- iPhone full-screen guide ---------- */
html.hp-g-open,html.hp-g-open body{overflow:hidden !important}
.hp-guide{position:fixed;inset:0;z-index:100001;background:#f7f7f4;color:#0d0d0f;overflow-y:auto;-webkit-overflow-scrolling:touch;
  font-family:inherit;opacity:0;transform:translateY(16px);transition:opacity .18s ease,transform .18s ease;text-align:start;overflow-x:hidden}
.hp-guide.hp-show{opacity:1;transform:none}
.hp-guide *{box-sizing:border-box}
.hp-g-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;
  background:rgba(247,247,244,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid #e4e4e0}
.hp-g-back{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:8px 16px 8px 12px;border-radius:999px;border:0;
  background:#0d0d0f;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
[dir=rtl] .hp-g-back{padding:8px 12px 8px 16px}
[dir=rtl] .hp-g-back svg,[dir=rtl] .hp-back svg{transform:scaleX(-1)}
.hp-g-body{max-width:560px;margin:0 auto;padding:18px 18px calc(130px + env(safe-area-inset-bottom,0px))}
.hp-g-prev{display:flex;flex-direction:column;align-items:center;gap:6px;margin:2px 0 14px}
.hp-g-wall{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 26px 10px;border-radius:22px;
  background:linear-gradient(135deg,#3a1c71,#d76d77 60%,#ffaf7b)}
.hp-g-wall img{width:64px;height:64px;border-radius:15px;object-fit:contain;background:#0d0d0f;padding:3px;box-shadow:0 6px 16px rgba(0,0,0,.3)}
.hp-g-wall span{color:#fff;font-size:12.5px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.4);max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-g-prev small{color:#71717a;font-size:12.5px}
.hp-g-h{font-size:23px;line-height:1.2;font-weight:800;margin:6px 0 6px;color:#0d0d0f;text-align:center}
.hp-g-p{font-size:15px;line-height:1.45;color:#52525b;margin:0 0 16px;text-align:center}
.hp-g-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.hp-g-steps>li{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e7e7e2;border-radius:18px;padding:14px}
.hp-g-steps>li>i{flex:none;width:34px;height:34px;border-radius:50%;background:#0d0d0f;color:var(--bn-lime,#d6ff3d);font-style:normal;
  font-weight:900;font-size:17px;display:flex;align-items:center;justify-content:center}
.hp-g-steps>li>div{flex:1;min-width:0}
.hp-g-steps b{display:block;font-size:16.5px;line-height:1.3;font-weight:800;color:#0d0d0f}
.hp-g-steps small{display:block;color:#71717a;font-size:13.5px;margin-top:3px}
.hp-g-steps small svg{vertical-align:-4px;color:#0a84ff}
.hp-art{direction:ltr;display:block;width:100%;height:auto;margin-top:10px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.hp-pulse{animation:hpPulse 1.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes hpPulse{0%,100%{opacity:1}50%{opacity:.35}}
.hp-g-mini>li{align-items:center;padding:12px 14px}
.hp-g-mini span{font-size:15.5px;font-weight:700}
.hp-g-done{display:flex;gap:8px;align-items:center;justify-content:center;margin:18px 0 0;color:#3f3f46;font-size:14.5px;text-align:center}
.hp-g-done svg{color:#65a30d;flex:none}
.hp-g-hero{width:76px;height:76px;border-radius:22px;margin:8px auto 10px;display:flex;align-items:center;justify-content:center;background:#e5f0ff;color:#0a84ff}
.hp-g-hero svg{width:44px;height:44px}
.hp-g-copy{margin-top:16px}
.hp-g-copy.hp-copied{background:#16a34a;color:#fff}
.hp-g-url{display:block;width:100%;margin-top:10px;padding:10px 12px;border:1px solid #e4e4e0;border-radius:12px;background:#fff;color:#52525b;font:inherit;font-size:13px}
.hp-g-note{font-size:13.5px;color:#71717a;line-height:1.45;margin:12px 0 0;text-align:center}
.hp-g-arrow{position:fixed;left:50%;bottom:calc(8px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:2px;color:#0a84ff;pointer-events:none;animation:hpBounce 1.1s ease-in-out infinite}
.hp-g-arrow span{background:#0a84ff;color:#fff;font-size:13px;font-weight:800;padding:5px 11px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 12px rgba(10,132,255,.35)}
.hp-g-arrow-r{left:auto;right:12px;transform:none;align-items:flex-end}
.hp-g-arrow-up{left:auto;right:16px;top:calc(70px + env(safe-area-inset-top,0px));bottom:auto;transform:none;flex-direction:column-reverse;align-items:flex-end}
.hp-g-arrow-up svg{transform:rotate(180deg)}
@keyframes hpBounce{0%,100%{translate:0 0}50%{translate:0 10px}}
.hp-g-arrow-up{animation-name:hpBounceUp}
@keyframes hpBounceUp{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){.hp-g-arrow,.hp-pulse{animation:none}}

/* ---------- home-screen app: Back button ---------- */
.hp-back{display:inline-flex;align-items:center;gap:4px;flex:none;min-height:36px;padding:6px 12px 6px 8px;margin-inline-end:8px;border-radius:999px;
  border:1px solid #2c2c33;background:#1b1b20;color:#f4f4f0;font:inherit;font-size:14px;font-weight:800;cursor:pointer;-webkit-tap-highlight-color:transparent}
[dir=rtl] .hp-back{padding:6px 8px 6px 12px}
.hp-back svg{width:20px;height:20px}
.hp-back-float{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:8px;z-index:1045;box-shadow:0 4px 14px rgba(0,0,0,.3)}
[dir=rtl] .hp-back-float{left:auto;right:8px}
.hp-back-slot{display:contents}
@media (max-width:430px){.hp-back span{display:none}.hp-back{padding:6px 8px}}

/* Room for the Back button in the header of the installed app on small phones */
@media (max-width:640px){
  html.hp-standalone .bn-bar{gap:8px;padding-left:7px;padding-right:7px}
  html.hp-standalone .bn-bar .hp-back,html.hp-standalone header.bar .hp-back{width:36px;height:36px;min-height:36px;padding:0;justify-content:center;margin:0}
  html.hp-standalone .bn-bar .hp-back span,html.hp-standalone header.bar .hp-back span{display:none}
  html.hp-standalone .bn-logo .bn-logo-img{height:auto;max-height:34px;max-width:100%}
  html.hp-standalone .bn-bar .bn-signin{white-space:nowrap;padding:9px 12px}
  html.hp-standalone header.bar{gap:8px}
  html.hp-standalone header.bar .logo{min-width:0;flex:0 1 auto}
  html.hp-standalone header.bar .logo img{height:auto;max-height:32px;max-width:100%}
}
