/* ---------- POI cards ---------- */
.poi-grid{display:flex; flex-direction:column; gap:10px;}
.poi-card{
  display:flex; align-items:center; gap:14px;
  background: var(--bg-panel); border:1px solid var(--line); border-radius:16px; padding:12px 14px;
  cursor:pointer; transition: border-color .15s ease, transform .1s ease;
}
.poi-card:active{transform: scale(0.985);}
.poi-card.unlocked{ border-color: rgba(122,149,166,0.55); background: linear-gradient(135deg, rgba(122,149,166,0.14), var(--bg-panel));}
.poi-icon{
  width:11px; height:11px; border-radius:50%; flex-shrink:0; align-self:center;
  background: var(--fog); opacity:0.5;
}
.poi-card.unlocked .poi-icon{ opacity:1; box-shadow:0 0 0 3px rgba(122,149,166,0.28); }
.poi-info{flex:1; min-width:0;}
.poi-name{font-weight:600; font-size:12.5px; letter-spacing:0.9px; text-transform:uppercase; margin:0; color:var(--text-hi); line-height:1.35;}
.poi-card:not(.unlocked) .poi-name{color: var(--text-mid);}
.poi-tag{font-size:11.5px; color:var(--text-low);}
.sheet.half, .sheet.full{ box-shadow: 0 -12px 32px rgba(38,49,58,0.18); }
.sheet.half{ transform: translateY(28vh); }
.sheet.full{ transform: translateY(0); }
.sheet.dragging{ transition:none; }
.sheet-grip{ padding:11px 0 8px; display:flex; justify-content:center; flex-shrink:0; cursor:grab; touch-action:none; }
.sheet-grip:active i{ background: var(--text-low); }
.sheet-grip i{ width:42px; height:4px; border-radius:4px; display:block; }
.sheet-head{ padding: 0 16px 6px; flex-shrink:0; }
.sheet-filters{ display:none; }
.sheet.half .sheet-filters, .sheet.full .sheet-filters{ display:block; }
.sheet-body{ flex:1; overflow-y:auto; padding: 0 16px 18px; -webkit-overflow-scrolling:touch; }
.sheet-progress{ display:flex; align-items:center; gap:11px; margin-bottom:2px; }
/* Versión reducida del progreso: en el mapa manda el mapa, no el marcador */
.sheet-progress .ring{ width:40px; height:40px; }
.sheet-progress .ring svg{ width:40px; height:40px; }
.sheet-progress .ring-label{ font-size:12px; }
.sheet-progress .progress-meta .t{ font-size:14px; margin-bottom:1px; }
.sheet-progress .progress-meta .s{ font-size:11.5px; line-height:1.35; }
.poi-search{
  width:100%; padding:10px 13px; border-radius:13px; border:1px solid var(--line);
  background: var(--bg-panel-2); color:var(--text-hi); font-size:14.5px;
  font-family:var(--body); margin:8px 0 8px;
}
.poi-search::placeholder{ color:var(--text-low); }
.list-label{
  font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--text-low); margin: 2px 2px 7px;
}
.poi-dist{ font-family:var(--display); font-weight:700; font-size:13px; color:var(--violet); flex-shrink:0; }
.poi-card.near{ border-color: var(--ok); background: linear-gradient(135deg, rgba(63,143,99,0.18), var(--bg-panel)); }
.poi-card.near .poi-dist{ color: var(--ok); }
.poi-empty{ text-align:center; color:var(--text-low); font-size:13.5px; padding:26px 10px; }
/* ---------- Hoja inferior deslizable ---------- */
/* La hoja "Cerca de ti" del mapa */
.sheet{ --peek: 150px; position:absolute; left:0; right:0; margin:0 auto; max-width:480px; bottom: 0; height: 78vh; z-index:700; border-bottom:none; display:flex; flex-direction:column; overflow:hidden; transform: translateY(101%); transition: transform .26s cubic-bezier(.22,.9,.3,1); background:#351E28 !important; border:none !important; box-shadow:0 -10px 30px rgba(0,0,0,.35) !important; border-radius:30px 30px 0 0 !important; }
.sheet .list-label{ font-size:28px !important; font-weight:400 !important; text-transform:uppercase; letter-spacing:-.01em !important;
  color:#FFFFFF !important; margin:4px 2px 12px !important; }
.sheet .sheet-filters button.active, .sheet .sheet-filters button.on, .sheet .chip.active{
  background:#FFFFFF !important; color:#351E28 !important; border-color:#FFFFFF !important; }
.sheet .poi-grid{ display:flex !important; flex-direction:column !important; gap:8px !important; }
.sheet .poi-card{ display:flex !important; align-items:center; gap:12px; border:none !important; border-radius:22px !important; padding:12px 16px !important;
  box-shadow:none !important; color:#351E28 !important; background:#FFFFFF !important; }
.sheet .poi-card.pgl-lima{ background:#E9F056 !important; }
.sheet .poi-card.pgl-azul{ background:#9FBFFF !important; }
.sheet .poi-card.pgl-salvia{ background:#AEB8A0 !important; }
.sheet .poi-card.unlocked{ opacity:.7; }
.sheet .poi-icon{ width:38px !important; height:38px !important; border-radius:50% !important; background:rgba(53,30,40,.12) !important;
  display:flex !important; align-items:center; justify-content:center; color:#351E28 !important; flex:none; }
.sheet .poi-icon::before, .sheet .poi-icon::after{ display:none !important; }
.sheet .poi-name{ font-size:18px !important; font-weight:400 !important; text-transform:uppercase; line-height:1.1 !important; color:#351E28 !important; }
.sheet .poi-tag{ font-size:10.5px !important; font-weight:800 !important; letter-spacing:.12em; text-transform:uppercase; color:rgba(53,30,40,.6) !important; }
.sheet .poi-dist{ font-size:12.5px !important; font-weight:800 !important; color:#351E28 !important; margin-left:auto; white-space:nowrap; }
.sheet .poi-empty{ color:rgba(255,255,255,.6) !important; }
.sheet input[type=search], .sheet input[type=text], .sheet #poiSearch{ background:#FFFFFF !important; border:none !important;
  border-radius:999px !important; color:#351E28 !important; box-shadow:none !important; padding-left:18px !important; }
/* Plegada, la hoja no desaparece: asoma el asa y la cabecera («Cerca de ti · 5 actividades»)
   para que se vea que se despliega. La altura (--asoma) la usa también js/mapa/hoja.js para el arrastre. */
.sheet{ --asoma:calc(78px + env(safe-area-inset-bottom)); transform:translateY(calc(100% - var(--asoma))); }
.sheet:not(.half):not(.full) .sheet-head{ display:none; }
.sheet:not(.half):not(.full) .list-head{ cursor:pointer; }
.sheet .sheet-grip{ padding:15px 0 14px; }
.sheet .sheet-grip i{ width:48px; background:#FFFFFF !important; }
/* La lupa y el asistente suben para no quedar encima de la franja */
body.en-mapa #fabSearch, body.en-mapa #aiFab{ bottom:calc(78px + env(safe-area-inset-bottom) + 14px); }
/* Cabecera de la lista: título grande a la izquierda y cuántas hay a la derecha */
.sheet .list-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:4px 2px 12px; }
.sheet .list-head .list-label{ margin:0 !important; font-size:30px !important; }
.sheet .list-n{ font-family:var(--body); font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#AEB8A0; white-space:nowrap; }
/* Actividades cerca de ti: la tarjeta entera del color de su categoría, sin icono.
   Título en el registro de titulares; debajo, cuándo y dónde en versalitas. */
.sheet .poi-card.act-card{ padding:15px 18px !important; opacity:1 !important; }
.sheet .poi-card.act-card .act-card-ic{ display:none !important; }
.sheet .poi-card.act-card .poi-name{ font-size:22px !important; line-height:1 !important; margin-bottom:5px;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; } /* títulos largos: hasta dos líneas */
.sheet .poi-card.act-card .poi-tag{ color:rgba(53,30,40,.62) !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sheet .poi-card.act-c-fiesta{ background:var(--mz-lima) !important; }
.sheet .poi-card.act-c-feria{ background:var(--mz-salvia) !important; }
.sheet .poi-card.act-c-cultura{ background:var(--mz-azul) !important; }
.sheet .poi-card.act-c-deporte{ background:#FFFFFF !important; }
.sheet .poi-card.act-c-espectaculo{ background:var(--mz-malva) !important; }
.sheet .poi-card.act-c-aviso{ background:var(--mz-naranja) !important; }
.sheet .poi-card.act-c-aviso .poi-name, .sheet .poi-card.act-c-aviso .poi-dist{ color:#FFFFFF !important; }
.sheet .poi-card.act-c-aviso .poi-tag{ color:rgba(255,255,255,.8) !important; }
