/* ============================================================
   ADDON GoGoCarto « Recherche par rayon » — styles
   ============================================================ */

#recherche-rayon-widget {
  margin: 10px 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-size: 14px;
}

/* Widget en overlay flottant (si pas de sidebar détectée) */
#recherche-rayon-widget.rr-flottant {
  position: absolute;
  top: 70px;
  left: 10px;
  z-index: 1000;
  width: 280px;
}

.rr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.rr-icon {
  font-size: 16px;
}

.rr-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#rr-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#rr-input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.15);
}

.rr-distances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rr-distances button {
  flex: 1 0 auto;
  min-width: 36px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.rr-distances button:hover {
  background: #fdeee2;
  border-color: #e67e22;
  color: #e67e22;
}

.rr-distances button.rr-pret {
  border-color: #e67e22;
  color: #e67e22;
  background: #fff7f0;
  animation: rr-pulse 1.5s infinite;
}

@keyframes rr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(230, 126, 34, 0); }
}

.rr-distances button.rr-actif {
  background: #e67e22;
  border-color: #e67e22;
  color: #fff;
  font-weight: 700;
}

.rr-infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  min-height: 20px;
}

.rr-label {
  font-size: 12.5px;
  color: #555;
  line-height: 1.35;
}

.rr-clear {
  border: none;
  background: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
}

.rr-clear:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Responsive : réduire sur mobile */
@media (max-width: 768px) {
  #recherche-rayon-widget.rr-flottant {
    width: 220px;
    top: 60px;
  }
}
