/* Mapbox Facet Styles */
.facetwp-type-mapbox {
  margin-bottom: 20px;
}

.facetwp-mapbox-container {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.facetwp-mapbox-controls {
  margin-top: 10px;
  text-align: left;
}

.facetwp-mapbox-filtering,
.facetwp-mapbox-reset {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.facetwp-mapbox-filtering:hover,
.facetwp-mapbox-reset:hover {
  background: #005a87;
}

.facetwp-mapbox-filtering.enabled {
  background: #dc3232;
}

.facetwp-mapbox-filtering.enabled:hover {
  background: #a02622;
}

.facetwp-mapbox-marker {
  transition: transform 0.2s ease;
}

.facetwp-mapbox-marker:hover {
  transform: scale(1.2);
}

/* Popup styles */
.mapboxgl-popup-content {
  padding: 15px;
  max-width: 300px;
}

.mapboxgl-popup-content h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.mapboxgl-popup-content p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.mapboxgl-popup-content a {
  color: #0073aa;
  text-decoration: none;
}

.mapboxgl-popup-content a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .facetwp-mapbox-container {
    height: 300px !important;
  }

  .facetwp-mapbox-controls {
    text-align: center;
  }

  .facetwp-mapbox-filtering,
  .facetwp-mapbox-reset {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
}
