/* Styles pour proximity_gouv */

.facetwp-type-proximity_gouv .facetwp-input-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.facetwp-type-proximity_gouv .locate-me {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
}

.facetwp-type-proximity_gouv .locate-me:hover {
  opacity: 0.7;
}

.facetwp-type-proximity_gouv .locate-me.f-loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10' opacity='0.3'/%3E%3Cpath d='M12 2 A10 10 0 0 1 22 12'/%3E%3C/svg%3E");
  animation: spin 1s linear infinite;
}

.facetwp-type-proximity_gouv .locate-me.f-reset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d54e21' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.facetwp-type-proximity_gouv .facetwp-location {
  padding-left: 40px;
  width: 100%;
  box-sizing: border-box;
}

.facetwp-type-proximity_gouv .location-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: -1px;
}

.facetwp-type-proximity_gouv .location-results.facetwp-hidden {
  display: none !important;
}

.facetwp-type-proximity_gouv .location-result {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.facetwp-type-proximity_gouv .location-result:last-child {
  border-bottom: none;
}

.facetwp-type-proximity_gouv .location-result:hover,
.facetwp-type-proximity_gouv .location-result.active {
  background-color: #f5f5f5;
}

.facetwp-type-proximity_gouv .location-result .result-main {
  display: block;
  font-weight: 500;
  color: #333;
}

.facetwp-type-proximity_gouv .location-result .result-description {
  display: none !important;
}

@media (max-width: 768px) {
  .facetwp-type-proximity_gouv .location-results {
    max-height: 200px;
  }
  
  .facetwp-type-proximity_gouv .location-result {
    padding: 8px 12px;
  }
}