/* ================= Spotly · capa app (PWA) =================
   Safe areas (notch / Dynamic Island / barra de inicio), barra de pestañas,
   sin botones ni avisos de instalación (v1.6.3). */
:root{
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
  --sal:env(safe-area-inset-left,0px); --sar:env(safe-area-inset-right,0px);
  --tabbar:62px;
}
html{overflow-x:hidden}
body{overflow-x:clip;padding-top:var(--sat);-webkit-tap-highlight-color:rgba(0,166,118,.15)}
/* franja bajo la barra de estado (status bar translúcida en modo app) */
body::before{content:"";position:fixed;top:0;left:0;right:0;height:var(--sat);background:var(--ink);z-index:2500;pointer-events:none}
.topbar{top:var(--sat)}
.container{padding-left:max(20px,calc(var(--sal) + 12px));padding-right:max(20px,calc(var(--sar) + 12px))}

/* ---------- topbar ---------- */
.top-cta .pub-l{display:none}
.top-cta .pub-s{display:inline}
.topbar-inner{gap:10px}
html.is-standalone .topbar .top-cta{margin-left:auto}
@media (min-width:1100px){ .top-cta .pub-l{display:inline} .top-cta .pub-s{display:none} }

/* ---------- barra de pestañas (móvil y modo app) ---------- */
.bottomnav{padding:0 calc(4px + var(--sar)) var(--sab) calc(4px + var(--sal));align-items:stretch;box-shadow:0 -4px 18px rgba(10,37,64,.06);background:rgba(255,255,255,.97);backdrop-filter:saturate(1.6) blur(10px)}
.bottomnav a{flex:1 1 0;min-width:0;min-height:var(--tabbar);padding:7px 2px 6px;justify-content:flex-start;gap:3px;font-size:10.5px;line-height:1.12;text-align:center;border-radius:0;letter-spacing:-.01em}
.bottomnav a span{display:block;max-width:76px;overflow-wrap:anywhere}
.bottomnav a .ico{width:23px;height:23px}
.bottomnav a.active{color:var(--brand-700)}
.bottomnav a.active .ico{stroke-width:2.4}
body{padding-bottom:calc(var(--tabbar) + var(--sab) + 8px)}
.map-toggle{bottom:calc(var(--tabbar) + var(--sab) + 16px);min-height:46px}
.toast{bottom:calc(var(--tabbar) + var(--sab) + 72px)}
.mobile-book{padding-bottom:calc(12px + var(--sab))}
body.has-mobile-book{padding-bottom:calc(84px + var(--sab))}
@media (max-width:959px){
  /* mapa a pantalla completa respetando notch y dejando visible la barra de pestañas */
  .results-map{top:var(--sat);bottom:calc(var(--tabbar) + var(--sab));z-index:945}
  .map-close{bottom:16px;min-height:46px}
  .results-top{top:calc(64px + var(--sat))}
  /* tamaños táctiles >= 44 px */
  .btn-sm{min-height:44px}
  .chip{min-height:44px}
  .seg button{min-height:40px}
  .cal-nav{width:44px;height:44px}
  .footer a{padding:11px 0}
  .footer a.logo{padding:0}
  html.is-standalone .footer{display:none}
  html.is-standalone .demo-banner{font-size:11px;padding:4px 10px}
  .leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px}
}
@media (min-width:960px){
  body{padding-bottom:0}
  .toast{bottom:30px}
}

/* ---------- pantallas app: reservas y perfil ---------- */
.app-page{padding-top:22px;padding-bottom:28px;max-width:720px}
.app-title{font-size:26px;font-weight:800;margin-bottom:4px}
.app-sub{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:24px 0 10px;font-weight:800}
.trips{display:grid;gap:10px}
.trip{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff;min-height:44px}
.trip:active{background:var(--bg-soft)}
.trip img{width:84px;height:84px;object-fit:cover;border-radius:12px;flex:none}
.trip .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.trip .grow b{font-size:15px;line-height:1.25}
.trip>.ico{color:var(--muted)}
.profile-card{display:flex;gap:14px;align-items:center;padding:18px;border-radius:18px;background:var(--bg-soft);margin-bottom:8px}
.profile-card .muted{display:flex;align-items:center;gap:4px;margin-top:4px}
.plist{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;margin-top:12px}
.prow{display:flex;width:100%;text-align:left;gap:12px;align-items:center;padding:12px 14px;min-height:56px}
.prow + .prow{border-top:1px solid var(--line-2)}
.prow:active{background:var(--bg-soft)}
.prow .grow{flex:1;min-width:0}
.prow .grow b{display:block;font-size:15px}
.prow .grow span{display:block;font-size:12.5px;color:var(--muted)}
.prow>.ico{color:var(--muted)}
.prow-ic{width:36px;height:36px;border-radius:10px;background:var(--bg-soft);display:grid;place-items:center;flex:none}
.prow-ic.brand{background:var(--brand-50);color:var(--brand-700)}

/* ---------- correcciones visuales ---------- */
.grid>*{min-width:0}                       /* las tarjetas desbordaban la rejilla de 4 columnas a 960–1180 px */
.bottomnav{background:#fff}
.logo{min-height:44px}
.footer a{min-height:44px;display:flex;align-items:center}
.footer a.logo{display:inline-flex}
.toggle{position:relative}
.toggle::after{content:"";position:absolute;inset:-10px -4px}
@media (max-width:959px){
  .seg button{min-height:44px}
  .results-meta select,#sortSel{min-height:44px}
  a.small[href^="#/plaza/"]{display:inline-flex!important;align-items:center;min-height:44px}
}
@media (min-width:960px){ .footer a{min-height:32px} }
@media (max-width:959px){
  .back-link{display:inline-flex;align-items:center;min-height:44px}
  .gallery .all{min-height:44px}
  .detail a[href="#reviews"],.detail .rev-link{display:inline-flex;align-items:center;min-height:44px}
}
