/* map_filters.css — filtro segmentado Inmuebles / Vehículos de los mapas
   privado (/map, radios dentro de <fieldset class="vseg">) y público
   (/mapa, <button aria-pressed> dentro de <div class="vseg">). Usa los
   tokens de tema de app.css, así que sigue al claro/oscuro (UI-26). */

.vseg {
  display: inline-flex; flex-wrap: wrap; gap: 0; align-items: stretch;
  border: 1px solid var(--border); border-radius: 99px; padding: 3px;
  background: var(--panel-2); margin: 0; min-inline-size: 0;
}
.vseg legend {
  /* El fieldset nativo pinta la leyenda sobre el borde: se oculta
     visualmente y sigue disponible para lectores de pantalla. */
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.vseg label { position: relative; margin: 0; cursor: pointer; }
.vseg input[type="radio"] {
  position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer;
}
.vseg label span,
.vseg button {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 4px 14px; border-radius: 99px;
  font: inherit; font-size: 13px; line-height: 1; white-space: nowrap;
  color: var(--muted-2); background: transparent; border: 0; cursor: pointer;
}
.vseg label:hover span,
.vseg button:hover { color: var(--text); }
.vseg input[type="radio"]:checked + span,
.vseg button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.vseg input[type="radio"]:focus-visible + span,
.vseg button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Público: el segmentado va encima del mapa. */
.pm-wrap > .vseg { margin-bottom: 10px; }

/* Leyendas: punto de vehículo. */
.ml-dot.ml-vh { background: transparent; border: 3px solid #f8fafc;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
.ml-dot.pm-vh { background: #c026d3; }

@media (max-width: 640px) {
  .vseg { display: flex; width: 100%; }
  .vseg label, .vseg button { flex: 1 1 auto; }
  .vseg label span, .vseg button { width: 100%; justify-content: center;
    min-height: 44px; padding-inline: 8px; }
}
