.ubicaciones-city-search {
  position: relative;
  max-width: 400px;
}

.ubicaciones-city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ubicaciones-city-suggestions li {
  padding: 6px 10px;
  cursor: pointer;
}

.ubicaciones-city-suggestions li:hover,
.ubicaciones-city-suggestions li:focus {
  background: #f2f2f2;
}

.ubicaciones-tax-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.ubicaciones-tax-btn {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ubicaciones-tax-btn.is-active {
  background: #0a7cff;
  color: #fff;
  border-color: #0a7cff;
}


.ubicaciones-tax-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ubicaciones-tax-icon img {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
}

.ubicaciones-tax-icon--svg svg {
  width: 1.2em;
  height: 1.2em;
}

.ubicaciones-openfreemap {
  min-height: 300px;
}

.maplibregl-marker,
.maplibregl-popup {
  pointer-events: auto;
}


.maplibregl-popup.ubic-popup .maplibregl-popup-content {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 10px;
  padding: 14px 16px 12px;
  background: #fff;
  color: #1f2937;
  /* Ancho/alto configurables en Ajustes → Tema general Mapa (ver
     Shortcodes::map_style_css); con valores por defecto de respaldo. */
  width: var(--ubic-popup-width, 280px);
  max-height: var(--ubic-popup-max-height, none);
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .16);
}

/* El contenido de una plantilla Elementor gestiona su propio diseño interno. */
.maplibregl-popup.ubic-popup:has(.ubic-popup-body--elementor) .maplibregl-popup-content {
  padding: 0;
  overflow: hidden auto;
}

.maplibregl-popup.ubic-popup .maplibregl-popup-close-button {
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  padding: 6px 8px;
}

.maplibregl-popup.ubic-popup .maplibregl-popup-close-button:hover {
  color: #1f2937;
  background: transparent;
}

.maplibregl-popup.ubic-popup .maplibregl-popup-close-button:focus-visible {
  outline: 2px solid #0a7cff;
  outline-offset: 1px;
  border-radius: 4px;
}

.ubic-popup-body .location-title {
  margin: 0 20px 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.ubic-popup-body .location-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f7ee;
  color: #08852c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ubic-popup-body .location-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.ubic-popup-body .location-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

.ubic-popup-body .location-icon {
  flex: none;
  line-height: 1.35;
}

.ubic-popup-body .location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 8px;
  border-top: 1px solid #eef0f2;
}

span.TiposComercio{
    font-family: 'Visby';
}

/*
 * Los estilos de enlaces de aquí en adelante solo aplican al popup por
 * defecto: se excluyen explícitamente con ':not(.ubic-popup-body--elementor)'
 * para no pisar el diseño de una plantilla Elementor (que trae su propio
 * CSS para sus botones/enlaces). Importante: se usa 'ubic-popup-body' (el
 * <div> interno de map.js), NO 'ubic-popup' (esa es la clase del wrapper
 * exterior de MapLibre, que nunca lleva la variante '--elementor' y por
 * eso un ':not()' sobre ella no sirve para distinguir los dos casos).
 */
.ubic-popup-body:not(.ubic-popup-body--elementor) a {
  color: #0066ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.ubic-popup-body:not(.ubic-popup-body--elementor) a:hover {
  text-decoration: underline;
}

.ubic-popup-body:not(.ubic-popup-body--elementor) a:focus-visible {
  outline: 2px solid #0a7cff;
  outline-offset: 2px;
  border-radius: 3px;
}

.ubic-popup-body:not(.ubic-popup-body--elementor) a.location-directions {
  color: #08852c;
}

.ubic-popup-body:not(.ubic-popup-body--elementor) a.movil-link {
    font-family: Visby, system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0%;
    text-decoration: none;
    color: #39AEB2;
}

.ubic-popup-body:not(.ubic-popup-body--elementor) a.movil-link:hover {
    text-decoration: underline;
}