/* NStay Homes V62 - site-wide UI fixes from the October 2026 audit (loaded on every page by nginx) */

/* ---------- Ask Naresh: compact launcher that never covers content; hidden while the panel is open ---------- */
.ask-naresh-launcher{right:18px!important;bottom:18px!important;gap:8px!important;padding:5px 14px 5px 5px!important;box-shadow:0 8px 22px rgba(7,20,35,.22)!important}
html body .ask-naresh-global .ask-naresh-launcher .ask-naresh-avatar{width:36px!important;height:36px!important;flex:0 0 36px!important;font-size:13px!important}
.ask-naresh-launcher strong{font-size:14px!important;line-height:1.1!important}
.ask-naresh-launcher small{display:none!important}
.ask-naresh-global:has(.ask-naresh-panel.is-open) .ask-naresh-launcher,.ask-naresh-global.v62-open .ask-naresh-launcher{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:scale(.85)}
.ask-naresh-panel{bottom:18px!important;max-height:calc(100vh - 36px);display:flex;flex-direction:column}
.ask-naresh-head small{font-size:12px!important}
.ask-naresh-body{overflow:auto}
.ask-naresh-whatsapp{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;border-top:1px solid #e3e8ee!important;border-radius:0 0 18px 18px!important;font-size:14px!important;gap:8px!important;color:#17844a!important;text-decoration:none!important}
@media (max-width:767px){
  html body .ask-naresh-global .ask-naresh-launcher{padding:3px!important;gap:0!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important}
  .ask-naresh-launcher{right:12px!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;padding:4px!important;gap:0!important}
  .ask-naresh-launcher>span:not(.ask-naresh-avatar){display:none!important}
  html body .ask-naresh-global .ask-naresh-launcher .ask-naresh-avatar{width:42px!important;height:42px!important;flex-basis:42px!important;font-size:13px!important}
  .ask-naresh-launcher{transition:opacity .2s,transform .2s}
  body.v62-scrolling .ask-naresh-launcher{opacity:0!important;transform:translateY(12px) scale(.9)!important;pointer-events:none!important}
  .ask-naresh-panel{right:10px!important;left:10px!important;width:auto!important;bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;max-height:calc(100vh - 150px)}
}
body:not(:has(#nstayGlobalBottomNav)) .ask-naresh-launcher{bottom:18px!important}
body:has(.pd-mobile-actions:not([hidden])) .ask-naresh-launcher{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}

/* ---------- Compare bar / toast: never over the photo viewer, above the phone bottom bar ---------- */
body:has(.pm586-lb) .n595-cmpbar,body:has(.pm586-lb) .n595-toast,body:has(.pi504-modal) .n595-cmpbar{display:none!important}
.n595-toast{top:86px!important;bottom:auto!important}
@media (max-width:767px){
  .n595-cmpbar{left:12px!important;right:auto!important;bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 84px)}
  .n595-toast{top:70px!important;max-width:calc(100vw - 32px)}
}

/* ---------- /properties: the filter column scrolls with the page (no inner scrollbar hiding filters) ---------- */
@media (min-width:1024px){#filtersDesktop{position:static!important;max-height:none!important;overflow:visible!important}}

/* ---------- Home search: full option text ---------- */
.hp13-search-grid select,.hp13-search-grid .ns55-field{min-width:0;padding-right:32px!important;text-overflow:ellipsis;font-size:14.5px!important}
@media (max-width:560px){.hp13-search-grid{grid-template-columns:1fr!important}}

/* ---------- Header: Saved count ---------- */
.v62-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;margin-left:5px;border-radius:999px;background:#c89535;color:#10243f;font-size:12px;font-weight:900;line-height:1;vertical-align:1px}
.v62-badge[hidden]{display:none!important}

/* ---------- Property page: Book Site Visit visible at the top on phones ---------- */
@media (max-width:767px){
  .pd-top-visit:not(.disabled),#topVisitBtn:not(.disabled){display:flex!important;align-items:center;justify-content:center;width:100%;min-height:46px;margin:10px 0 4px;border:0;border-radius:10px;background:#10243f;color:#fff;font:800 15px/1 inherit;cursor:pointer}
}

/* ---------- Lease / listings with no results ---------- */
.v62-empty{grid-column:1/-1;display:grid;gap:10px;justify-items:start;padding:26px 24px;border:1px dashed #c9d3de;border-radius:14px;background:#f8fafc;color:#203548}
.v62-empty h3{margin:0;font-size:19px;color:#10243f}.v62-empty p{margin:0;font-size:15px;line-height:1.55;color:#4c5e70}
.v62-empty .v62-acts{display:flex;flex-wrap:wrap;gap:10px}
.v62-empty a{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:9px;font-weight:800;font-size:14px;text-decoration:none}
.v62-empty a.pri{background:#10243f;color:#fff}.v62-empty a.sec{border:1.5px solid #10243f;color:#10243f}

/* ---------- Home: sector link grid ---------- */
.v62-sectors p{color:#4c5e70;font-size:15px;margin:6px 0 14px}
.v62-sector-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;max-height:178px;overflow:hidden;position:relative}
.v62-sectors:not(.open) .v62-sector-grid{-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.v62-sectors.open .v62-sector-grid{max-height:none}
.v62-sector-toggle{margin-top:12px;border:1.5px solid #10243f;background:#fff;color:#10243f;border-radius:9px;min-height:40px;padding:0 16px;font:800 14px/1 inherit;cursor:pointer}
.v62-sector-grid a{display:block;padding:8px 8px;border:1px solid #dce3eb;border-radius:9px;background:#fff;color:#10243f;font-size:14px;font-weight:700;text-align:center;text-decoration:none}
.v62-sector-grid a:hover,.v62-sector-grid a:focus-visible{border-color:#c89535;background:#fbf6ec}
.v62-sector-more{margin-top:14px!important}.v62-sector-more a{color:#8e6528;font-weight:800}
