/**
 * Location Dropdown Fixes
 * Correcciones para el botón "Ver mapa" en el dropdown de ubicación
 */

/* Asegurar que el botón del mapa se vea correctamente */
.sp-location-dropdown__item--map {
  /* Forzar display block para enlaces */
  display: flex !important;
  align-items: center;
  justify-content: space-between;

  /* Espaciado interno adecuado */
  padding: 14px 18px !important;

  /* Fondo con gradiente verde */
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;

  /* Borde superior verde */
  border-top: 2px solid #136213 !important;
  border-bottom: none !important;

  /* Texto verde oscuro */
  color: #136213 !important;
  font-weight: 700 !important;
  font-size: 15px !important;

  /* Quitar decoración de enlace */
  text-decoration: none !important;

  /* Cursor pointer */
  cursor: pointer !important;

  /* Transición suave */
  transition: all 0.2s ease !important;

  /* Margen superior para separarlo de los radio options */
  margin-top: 4px !important;
}

/* Texto del botón */
.sp-location-dropdown__item--map span {
  color: #136213 !important;
  font-weight: 700 !important;
  flex: 1;
  text-align: left;
}

/* Flecha del botón */
.sp-location-dropdown__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #136213 !important;
  stroke: #136213 !important;
  transition: transform 0.2s ease;
  margin-left: 8px;
}

/* Hover effect mejorado */
.sp-location-dropdown__item--map:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #0a4a0a !important;
  transform: translateX(4px) !important;
  text-decoration: none !important;
}

.sp-location-dropdown__item--map:hover span {
  color: #0a4a0a !important;
}

.sp-location-dropdown__item--map:hover .sp-location-dropdown__arrow {
  transform: translateX(4px);
  color: #0a4a0a !important;
  stroke: #0a4a0a !important;
}

/* Active/pressed state */
.sp-location-dropdown__item--map:active {
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%) !important;
  transform: translateX(2px) !important;
}

/* Focus visible para accesibilidad */
.sp-location-dropdown__item--map:focus-visible {
  outline: 3px solid #136213;
  outline-offset: 2px;
}

/* Asegurar que el icono del mapa (emoji) se vea bien */
.sp-location-dropdown__section .sp-location-dropdown__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #6c757d !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile: asegurar que el botón no se corte */
@media (max-width: 374px) {
  .sp-location-dropdown__item--map {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .sp-location-dropdown__arrow {
    width: 14px;
    height: 14px;
  }
}

/* Tablet y desktop: más espacio */
@media (min-width: 576px) {
  .sp-location-dropdown__item--map {
    padding: 16px 20px !important;
    font-size: 16px !important;
  }

  .sp-location-dropdown__arrow {
    width: 18px;
    height: 18px;
  }
}
