/* My Home Albania v2.0.3 — role-aware PWA mobile navigation */
@media(max-width:760px){
  body{padding-bottom:max(86px,calc(86px + env(safe-area-inset-bottom)))!important}
  .pwa-bottom-nav{height:auto!important;min-height:68px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;left:0!important;right:0!important;bottom:0!important;padding:5px 6px calc(5px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #dde6e1!important;box-shadow:0 -8px 26px rgba(8,35,26,.10)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;z-index:1200!important}
  .pwa-bottom-nav.pwa-public-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .pwa-bottom-nav a,.pwa-bottom-nav button{min-width:0!important;min-height:56px!important;border:0!important;background:transparent!important;color:#66756f!important;text-decoration:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:4px 2px!important;border-radius:12px!important;font:inherit!important;cursor:pointer!important}
  .pwa-bottom-nav a span,.pwa-bottom-nav button span{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:9px!important;font-size:19px!important;line-height:1!important;font-weight:800!important}
  .pwa-bottom-nav small{display:block!important;max-width:100%!important;font-size:9px!important;line-height:1.08!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pwa-bottom-nav a.active{color:#145b46!important}
  .pwa-bottom-nav a.active span{background:#e6f3ed!important;color:#145b46!important}
  .pwa-bottom-nav a.active small{color:#145b46!important}
  .pwa-bottom-nav .pwa-menu-open span{background:#f1f4f3!important;color:#243d34!important}
  .mha-whatsapp-float{bottom:calc(88px + env(safe-area-inset-bottom))!important;right:14px!important;width:52px!important;height:52px!important;z-index:1190!important}
  .portal{padding-bottom:12px!important}
  .portal aside{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
  .mha-modal-card{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
}
@media(max-width:360px){
  .pwa-bottom-nav small{font-size:8px!important}
  .pwa-bottom-nav a,.pwa-bottom-nav button{padding-inline:1px!important}
}

/* v2.0.9 — iPhone / Android / installed-PWA edge cases */
@media(max-width:760px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  input,select,textarea{font-size:16px!important}
  button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
  .btn,.mini-btn,.pwa-sheet a,.pwa-sheet button{min-height:44px}
  .table-wrap{max-width:100%;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .table-wrap table{min-width:max-content}
  .portal,.panel,.form-grid,.application-form{min-width:0}
  .portal input,.portal select,.portal textarea,.application-form input,.application-form select,.application-form textarea{max-width:100%;box-sizing:border-box}
  .pwa-sheet{max-height:min(82dvh,calc(var(--mha-visual-height,100dvh) - 18px))!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}
  .pwa-sheet nav{padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .pwa-sheet-backdrop{touch-action:none}
  body.pwa-sheet-visible{overflow:hidden!important;overscroll-behavior:none}
  body.pwa-keyboard-open .pwa-bottom-nav,body.pwa-keyboard-open .mha-whatsapp-float{transform:translateY(130%)!important;pointer-events:none!important;opacity:0!important}
  .pwa-bottom-nav,.mha-whatsapp-float{transition:transform .18s ease,opacity .18s ease}
  .pwa-bottom-nav a:focus-visible,.pwa-bottom-nav button:focus-visible,.pwa-sheet a:focus-visible,.pwa-sheet button:focus-visible{outline:3px solid #9cc7b7!important;outline-offset:2px!important}
}
@media (display-mode:standalone) and (max-width:760px){
  .site-header{padding-top:calc(8px + env(safe-area-inset-top))!important;min-height:calc(64px + env(safe-area-inset-top))!important}
}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){
  body{padding-bottom:max(68px,calc(68px + env(safe-area-inset-bottom)))!important}
  .pwa-bottom-nav a,.pwa-bottom-nav button{min-height:46px!important}
  .pwa-bottom-nav a span,.pwa-bottom-nav button span{width:24px!important;height:24px!important;font-size:17px!important}
  .mha-whatsapp-float{bottom:calc(72px + env(safe-area-inset-bottom))!important;width:48px!important;height:48px!important}
  .pwa-sheet{max-height:min(90dvh,var(--mha-visual-height,90dvh))!important}
}


/* v2.0.30 — premium mobile More sheet + dark-mode visibility */
@media(max-width:760px){
  .pwa-sheet-backdrop{
    position:fixed!important;inset:0!important;background:rgba(2,10,17,.68)!important;
    backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;
    z-index:1690!important;opacity:0;transition:opacity .2s ease!important
  }
  .pwa-sheet-backdrop.open{opacity:1!important}
  .pwa-sheet{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
    width:100%!important;max-width:none!important;margin:0!important;
    border-radius:28px 28px 0 0!important;
    padding:10px 18px calc(22px + env(safe-area-inset-bottom))!important;
    background:#f8faf9!important;color:#0b1b28!important;
    border:1px solid rgba(11,27,40,.10)!important;border-bottom:0!important;
    box-shadow:0 -24px 70px rgba(0,0,0,.28)!important;
    transform:translateY(110%)!important;visibility:hidden!important;opacity:0!important;
    z-index:1700!important;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s ease,visibility .2s!important;
  }
  .pwa-sheet.open{transform:translateY(0)!important;visibility:visible!important;opacity:1!important}
  .pwa-sheet-handle{width:54px!important;height:5px!important;border-radius:999px!important;background:#c8d1ce!important;margin:0 auto 18px!important}
  .pwa-sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 14px!important;padding:0 2px!important}
  .pwa-sheet-head strong{font-size:28px!important;line-height:1.1!important;color:#0b1b28!important;font-family:inherit!important}
  .pwa-sheet-close{width:46px!important;height:46px!important;min-height:46px!important;border-radius:50%!important;border:1px solid #d9e1de!important;background:#eef2f0!important;color:#0b1b28!important;font-size:30px!important;line-height:1!important;display:grid!important;place-items:center!important;padding:0!important}
  .pwa-sheet nav{display:grid!important;gap:10px!important;margin:0!important;padding:0!important}
  .pwa-sheet nav a{display:flex!important;align-items:center!important;min-height:54px!important;padding:14px 16px!important;border-radius:16px!important;background:#eef2f0!important;color:#122634!important;border:1px solid #e0e7e4!important;font-weight:800!important;font-size:16px!important;text-decoration:none!important;opacity:1!important}
  .pwa-sheet nav a:active{transform:scale(.99)!important}
  .pwa-sheet nav a.pwa-register{margin-top:4px!important;background:#d9a73c!important;border-color:#d9a73c!important;color:#07131f!important;justify-content:center!important;font-size:17px!important}
  body.pwa-sheet-visible .pwa-bottom-nav,body.pwa-sheet-visible .mha-whatsapp-float{transform:translateY(135%)!important;opacity:0!important;pointer-events:none!important}
  body[data-mha-theme="dark"] .pwa-sheet{
    background:#091a28!important;color:#f8f3e8!important;border-color:#20384a!important;
    box-shadow:0 -28px 80px rgba(0,0,0,.62)!important
  }
  body[data-mha-theme="dark"] .pwa-sheet-handle{background:#3a5262!important}
  body[data-mha-theme="dark"] .pwa-sheet-head strong{color:#f8f3e8!important}
  body[data-mha-theme="dark"] .pwa-sheet-close{background:#102637!important;border-color:#294455!important;color:#f8f3e8!important}
  body[data-mha-theme="dark"] .pwa-sheet nav a{background:#102637!important;color:#f7f1e6!important;border-color:#294455!important;box-shadow:none!important}
  body[data-mha-theme="dark"] .pwa-sheet nav a.pwa-register{background:#e6b34b!important;border-color:#e6b34b!important;color:#07131f!important}
  body[data-mha-theme="dark"] .pwa-sheet-backdrop{background:rgba(0,7,13,.78)!important}

  body[data-mha-theme="dark"] .pwa-bottom-nav{background:rgba(5,19,30,.98)!important;border-top-color:#20384a!important;box-shadow:0 -10px 28px rgba(0,0,0,.36)!important}
  body[data-mha-theme="dark"] .pwa-bottom-nav a,body[data-mha-theme="dark"] .pwa-bottom-nav button{color:#8296a5!important}
  body[data-mha-theme="dark"] .pwa-bottom-nav a.active{color:#e6b34b!important}
  body[data-mha-theme="dark"] .pwa-bottom-nav a.active span{background:#172b3b!important;color:#e6b34b!important}
  body[data-mha-theme="dark"] .pwa-bottom-nav a.active small{color:#e6b34b!important}
  body[data-mha-theme="dark"] .pwa-bottom-nav .pwa-menu-open span{background:#102637!important;color:#f7f1e6!important}
}


/* v2.1.45 — FINAL mobile/PWA geometry: single source of truth */
:root{
  --mha-mobile-nav-h:76px;
  --mha-mobile-gap:12px;
  --mha-safe-bottom:env(safe-area-inset-bottom,0px);
  --mha-safe-top:env(safe-area-inset-top,0px);
}
@media(max-width:760px){
  html,body{min-height:100%;min-height:100dvh}
  body{padding-bottom:calc(var(--mha-mobile-nav-h) + var(--mha-safe-bottom) + 14px)!important}
  body:has(.admin-quick){padding-bottom:calc(var(--mha-mobile-nav-h) + var(--mha-safe-bottom) + 68px)!important}
  html body .pwa-bottom-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    min-height:var(--mha-mobile-nav-h)!important;height:auto!important;
    padding:6px 6px calc(6px + var(--mha-safe-bottom))!important;
    z-index:1600!important;transform:translate3d(0,0,0);
  }
  html body .mha-whatsapp-float{
    position:fixed!important;right:16px!important;
    bottom:calc(var(--mha-mobile-nav-h) + var(--mha-safe-bottom) + var(--mha-mobile-gap))!important;
    width:52px!important;height:52px!important;z-index:1590!important;
  }
  html body:has(.admin-quick) .mha-whatsapp-float{
    bottom:calc(var(--mha-mobile-nav-h) + var(--mha-safe-bottom) + 62px)!important;
  }
  html body .admin-quick{
    position:fixed!important;left:10px!important;right:10px!important;
    bottom:calc(var(--mha-mobile-nav-h) + var(--mha-safe-bottom) + 6px)!important;
    z-index:1580!important;max-width:none!important;margin:0!important;
  }
  html body.pwa-keyboard-open .pwa-bottom-nav,
  html body.pwa-keyboard-open .mha-whatsapp-float,
  html body.pwa-keyboard-open .admin-quick,
  html body.pwa-sheet-visible .pwa-bottom-nav,
  html body.pwa-sheet-visible .mha-whatsapp-float,
  html body.pwa-sheet-visible .admin-quick{
    transform:translateY(150%)!important;opacity:0!important;pointer-events:none!important;
  }
  .site-header{padding-top:calc(8px + var(--mha-safe-top))!important}
  .pwa-sheet{max-height:calc(var(--mha-visual-height,100dvh) - var(--mha-safe-top) - 12px)!important}
}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){
  :root{--mha-mobile-nav-h:64px;--mha-mobile-gap:8px}
}
@media(display-mode:standalone) and (max-width:760px){
  body{overscroll-behavior-y:none}
  .site-header{padding-top:calc(10px + var(--mha-safe-top))!important}
}
