/* CERCA - AYUDA CERCA V1.0.0 - estilos propios; base de mapa sigue compartida */
.cerca-help-sheet{position:fixed;inset:0;z-index:10020;background:rgba(2,6,23,.72);backdrop-filter:blur(8px);display:none;align-items:flex-end;justify-content:center}

.cerca-help-sheet.show{display:flex}

.cerca-help-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}

.cerca-help-head h3{margin:0;font-size:1rem}

.cerca-help-head p{margin:4px 0 0;color:var(--text-secondary);font-size:.65rem}

.cerca-help-close{border:0;background:rgba(148,163,184,.1);color:inherit;border-radius:11px;width:38px;height:38px}

.cerca-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}

.cerca-help-action{border:1px solid var(--border-color);border-radius:14px;background:var(--bg-card);padding:12px;text-align:left;color:inherit;cursor:pointer}

.cerca-help-action .material-icons-round{font-size:24px;color:#4ade80}

.cerca-help-action strong{display:block;font-size:.72rem;margin-top:5px}

.cerca-help-action span:last-child{display:block;color:var(--text-secondary);font-size:.59rem;margin-top:2px;line-height:1.3}

/* Ayuda CERCA: solo carga puntos después de elegir tipo */
.cerca-help-types12{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;background:var(--bg-main);border-bottom:1px solid var(--border-color)}

.cerca-help-types12 button{min-width:0;border:1px solid var(--border-color);background:var(--bg-card);color:var(--text-primary);border-radius:13px;padding:8px 3px;display:flex;flex-direction:column;align-items:center;gap:3px;font:inherit}

.cerca-help-types12 .material-icons-round{font-size:21px;color:#4ade80}

.cerca-help-types12 b{font-size:.52rem;white-space:nowrap}

.cerca-help-types12 button.active{border-color:rgba(74,222,128,.38);background:rgba(74,222,128,.09)}

.cerca-help-empty12{text-align:center;padding:8px;color:var(--text-secondary)}

.cerca-help-empty12 .material-icons-round{font-size:23px;color:#4ade80}

.cerca-help-empty12 strong{display:block;color:var(--text-primary);font-size:.72rem;margin-top:3px}

.cerca-help-empty12 p{font-size:.55rem;margin:3px 0 0}

/* ============================================================
   CERCA V1.3 — GOOGLE PLACES PARA AYUDA CERCA
   ============================================================ */
.cerca-places-source13{
    flex:0 0 auto;
    display:flex;align-items:center;justify-content:center;gap:5px;
    padding:5px 8px;
    border-bottom:1px solid var(--border-color);
    color:var(--text-secondary);
    background:rgba(34,197,94,.035);
    font-size:.50rem;font-weight:800;
}

.cerca-places-source13 .material-icons-round{font-size:14px;color:#4ade80}

.cerca-help-radius13{
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    margin-top:6px;padding:6px 8px;border-radius:10px;
    border:1px solid var(--border-color);background:rgba(255,255,255,.025);
    font-size:.51rem;color:var(--text-secondary)
}

.cerca-help-radius13 strong{color:var(--text-primary)}

.cerca-help-types12 button{
  min-height: 62px!important;
  padding: 9px 5px!important;
}
.cerca-help-card{width:min(560px,100%);max-height:82dvh;overflow:auto;border:1px solid var(--border-color);border-radius:22px 22px 0 0;background:var(--bg-main);padding:15px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.35)}

@media(max-width:390px){.cerca-quick-grid{grid-template-columns:repeat(2,1fr)}.cerca-help-actions{grid-template-columns:1fr}}

.cerca-help-nearest12{flex:0 0 auto;max-height:42%;overflow-y:auto;padding:9px 9px calc(9px + env(safe-area-inset-bottom));background:var(--bg-nav);border-top:1px solid var(--border-color)}

@media(max-width:390px){.cerca-special-header p{max-width:220px}.cerca-help-types12 b{font-size:.47rem}.cerca-route-bottom12{grid-template-columns:1fr}.cerca-route-bottom12 button{justify-content:center;width:100%}}

/* Pantallas pequeñas */
@media(max-width:420px){
  .content-scroll,
  .cerca-v16-scroll,
  .cerca-feed-scroll15{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .cerca-home-tools-grid{
    grid-template-columns:1fr 1fr!important;
  }

  .cerca-prev-topic-grid17,
  .cerca-tool-grid16{
    grid-template-columns:1fr!important;
  }

  .cerca-prev-action-grid17{
    grid-template-columns:1fr 1fr!important;
  }

  .cerca-summary-grid15{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .cerca-help-types12{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .cerca-route-bottom12{
    grid-template-columns:1fr!important;
  }
}

/* Muy angosto */
@media(max-width:350px){
  :root{
    --cerca-fs-xs: 11px;
    --cerca-fs-sm: 12px;
    --cerca-fs-md: 13px;
    --cerca-fs-lg: 15px;
    --cerca-fs-xl: 18px;
  }

  .cerca-home-tools-grid,
  .cerca-prev-action-grid17,
  .cerca-help-types12{
    grid-template-columns:1fr!important;
  }

  .bottom-nav .nav-item span:last-child{
    font-size:10px!important;
  }
}
