/*
 * CHD BU Locator - Design System France Boissons
 * Interface simple basée sur le thème WordPress
 */

/* ========================================================================
   BASE & VARIABLES
   ======================================================================== */
.fb-chd-locator {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--font-primary, "Lato", sans-serif);
  color: var(--text-color, #292929);
  line-height: var(--line-height-base, 1.4);
  overflow-x: hidden;
}

/* ========================================================================
   LAYOUT PRINCIPAL - 60% Carte / 40% Contenu
   ======================================================================== */
.fb-chd-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  min-height: 425px;
  width: 100%;
}

.fb-chd-map-wrapper {
  flex: 0 0 60%;
  order: 2;
  min-width: 0;
  width: 100%;
}

.fb-chd-map {
  width: 100%;
  height: 425px;
  background: var(--off-white, #f0f0f0);
  border-radius: var(--radius-sm, 5px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Assurer que Leaflet s'affiche correctement */
.fb-chd-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.fb-chd-map .leaflet-map-pane {
  z-index: 1 !important;
}

.fb-chd-map .leaflet-tile-pane {
  z-index: 1 !important;
}

.fb-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-muted, #6b7280);
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.fb-chd-map.leaflet-loaded .fb-map-placeholder {
  display: none !important;
}

.fb-map-placeholder p {
  margin: 0;
  font-size: var(--fs-medium, 16px);
}

.fb-chd-content {
  flex: 0 0 40%;
  padding-right: 20px;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 425px;
  min-width: 0;
  width: 100%;
}

/* ========================================================================
   TITRES DE RECHERCHE
   ======================================================================== */
.fb-chd-search-header {
  margin-bottom: 30px;
}

.fb-chd-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color, #292929);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.fb-chd-subtitle {
  font-size: 18px;
  color: var(--color-muted, #6b7280);
  margin: 0;
  line-height: 1.4;
}

/* ========================================================================
   RECHERCHE MODERNE - Design épuré et accessible
   ======================================================================== */
.fb-chd-search {
  position: relative;
  margin-bottom: 40px;
  max-width: 480px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 54px;
  background: var(--white, #fff);
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  padding: 0 60px 0 20px!important;
  font-size: 16px;
  font-family: var(--font-primary, "Lato", sans-serif);
  color: var(--text-color, #292929);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-input:hover {
  border-color: #9ca3af;
}

.search-input:focus {
  border-color: #292929;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 0 0 3px rgba(41, 41, 41, 0.08);
}

.search-input:focus::placeholder {
  color: #d1d5db;
}

/* Bouton de recherche - Design minimaliste */
.search-box-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  overflow: hidden;
}

.search-box-icon:hover {
  background: #f3f4f6;
}

.search-box-icon:active {
  background: #e5e7eb;
}

.btn-icon-content {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
  padding: 0;
}

.btn-icon-content:hover {
  color: #292929;
}

.search-icon {
  width: 18px;
  height: 18px;
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

/* Spinner de chargement */
.fb-input-spinner {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fb-chd-loading .fb-input-spinner {
  opacity: 1;
}

.fb-chd-loading .search-box-icon {
  opacity: 0.6;
}

.fb-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border, #e5e7eb);
  border-top: 2px solid var(--orange-primary, #f39501);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================================================
   AUTOCOMPLÉTION
   ======================================================================== */
.fb-chd-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--white, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 5px);
  margin-top: 5px;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.fb-chd-autocomplete.active {
  display: block;
  opacity: 0;
  animation: fadeIn 0.15s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.fb-chd-autocomplete-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--very-light-gray, #f6f6f6);
  transition: all 0.3s ease;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.fb-chd-autocomplete-item:last-child {
  border-bottom: none;
}

.fb-chd-autocomplete-item:hover,
.fb-chd-autocomplete-item.selected {
  background: var(--bu-1-light, rgba(252, 233, 203, 0.3));
  color: var(--orange-dark, #e94e1b);
}

.fb-chd-autocomplete-item:hover::before,
.fb-chd-autocomplete-item.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange-primary, #f39501);
}

.fb-chd-autocomplete-item strong {
  color: var(--text-color, #292929);
  font-weight: 600;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ========================================================================
   RÉSULTATS ET MODES D'AFFICHAGE
   ======================================================================== */
.fb-chd-search-section {
  transition: all 0.3s ease;
}

.fb-chd-result-section {
  transition: all 0.3s ease;
}

/* Mode recherche (par défaut) */
.fb-chd-content.search-mode .fb-chd-result-section {
  display: none;
}

.fb-chd-content.search-mode .fb-chd-search-section {
  display: block;
}

/* Mode résultat */
.fb-chd-content.result-mode .fb-chd-search-section {
  display: none;
}

.fb-chd-content.result-mode .fb-chd-result-section {
  display: block;
}

.fb-chd-result {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Bouton retour à la recherche - RGAA compliant */
.fb-new-search-btn {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #0040a0; /* Bleu RGAA contrasté (ratio 7:1 sur fond blanc) */
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: var(--fs-menu, 15px);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-bottom: 20px;
}

.fb-new-search-btn:hover {
  color: #0040a0;
  text-decoration: underline;
}

.fb-new-search-btn:focus {
  outline: 2px solid #0040a0;
  outline-offset: 2px;
  border-radius: 2px;
}

.fb-new-search-btn:focus-visible {
  outline: 2px solid #0040a0;
  outline-offset: 2px;
  border-radius: 2px;
}

.fb-result-card {
  background: var(--white, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 5px);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card, 6px 6px 24px -16px var(--light-gray));
  transition: box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.fb-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange-gradient-start, #e94e1b) 0%, var(--orange-gradient-end, #ed9e26) 100%);
}

.fb-result-card:hover {
  box-shadow: var(--shadow-card-hover, 6px 6px 24px -6px var(--light-gray));
}

.fb-chd-result h3 {
  margin: 0 0 20px 0;
  color: var(--text-color, #292929);
  font-size: var(--fs-h3, 21px);
  font-weight: 400;
  font-family: var(--font-primary, "Lato", sans-serif);
}

.fb-chd-result h3 strong {
  font-weight: 600;
  color: var(--text-color, #292929);
}

.fb-result-commune {
  color: var(--text-color, #292929);
  font-weight: 500;
  margin-bottom: 20px;
  font-size: var(--fs-medium, 16px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-result-commune::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-muted, #6b7280);
  border-radius: 50%;
  flex-shrink: 0;
}

.fb-result-meta {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--medium-gray, #5b5b5b);
  font-size: var(--fs-menu, 15px);
  line-height: 1.5;
  transition: all 0.3s ease;
  padding: 2px 0;
}

.fb-result-meta:hover {
  color: var(--text-color, #292929);
}

.fb-result-meta .fb-meta-icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini SVG inline pour les métadonnées - RGAA compliant et bien alignés */
.fb-result-meta.address .fb-meta-icon::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
}

.fb-result-meta.phone .fb-meta-icon::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
}

.fb-result-meta.email .fb-meta-icon::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
}

.fb-result-meta.region .fb-meta-icon::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91-3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
}

.fb-result-meta a {
  color: #0040a0; /* Bleu RGAA contrasté (ratio 7:1 sur fond blanc) */
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
  position: relative;
}

.fb-result-meta a:hover,
.fb-result-meta a:focus {
  color: #0040a0; /* Même couleur au hover */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-result-meta a:focus-visible {
  outline: 2px solid #0040a0;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================================================
   BOUTONS D'ACTION - Temporairement désactivé
   ======================================================================== */
/*
.fb-result-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--very-light-gray, #f6f6f6);
  display: flex;
  gap: 10px;
}

.fb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm, 5px);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-menu, 15px);
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.fb-btn-contact {
  background: var(--orange-primary, #f39501);
  color: var(--white, #fff);
  border: 1px solid var(--orange-primary, #f39501);
}

.fb-btn-contact:hover {
  background: var(--orange-dark, #e94e1b);
  border-color: var(--orange-dark, #e94e1b);
}
*/

/* ========================================================================
   ÉTATS "AUCUN RÉSULTAT" ET ERREUR
   ======================================================================== */
.fb-chd-no-result {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-muted, #6b7280);
  background: var(--white, #fff);
  border: 2px dashed var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 5px);
  opacity: 1;
}

.fb-chd-no-result h4 {
  margin: 0 0 20px 0;
  color: var(--text-color, #292929);
  font-size: var(--fs-h3, 21px);
  font-weight: 600;
}

.fb-chd-no-result p {
  margin: 10px 0;
  font-size: var(--fs-menu, 15px);
  line-height: 1.5;
}

.fb-chd-no-result a {
  color: #0040a0; /* Bleu RGAA contrasté (ratio 7:1 sur fond blanc) */
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.2s ease;
  border-bottom: 1px solid transparent;
}

.fb-chd-no-result a:hover,
.fb-chd-no-result a:focus {
  color: #0040a0; /* Même couleur au hover */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-chd-no-result a:focus-visible {
  outline: 2px solid #0040a0;
  outline-offset: 2px;
  border-radius: 2px;
}

.fb-contact-fallback {
  margin-top: 20px;
  padding: 20px;
  background: rgba(252, 233, 203, 0.3);
  border-radius: var(--radius-sm, 5px);
  border-left: 3px solid var(--orange-primary, #f39501);
}

.fb-contact-fallback strong {
  color: var(--orange-dark, #e94e1b);
}

/* ========================================================================
   ÉTATS DE CHARGEMENT
   ======================================================================== */
.fb-chd-loading .search-input {
  opacity: 0.6;
  pointer-events: none;
}

.fb-chd-loading .btn-icon-content {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ========================================================================
   LEAFLET POPUP
   ======================================================================== */
.leaflet-popup-content .fb-map-popup {
  padding: 8px;
}

.leaflet-popup-content .fb-map-popup h4 {
  margin: 0 0 8px 0;
  font-size: var(--fs-medium, 16px);
  color: var(--text-color, #292929);
  font-weight: 600;
}

.leaflet-popup-content .fb-map-popup p {
  margin: 4px 0;
  font-size: var(--fs-small, 12px);
  color: var(--medium-gray, #5b5b5b);
}

.leaflet-popup-content .fb-map-popup a {
  color: #0040a0; /* Bleu RGAA contrasté (ratio 7:1 sur fond blanc) */
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
}

.leaflet-popup-content .fb-map-popup a:hover,
.leaflet-popup-content .fb-map-popup a:focus {
  color: #0040a0; /* Même couleur au hover */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaflet-popup-content .fb-map-popup a:focus-visible {
  outline: 2px solid #0040a0;
  outline-offset: 1px;
  border-radius: 2px;
}

/* ========================================================================
   ACCESSIBILITÉ
   ======================================================================== */

/* Classe pour les éléments destinés uniquement aux lecteurs d'écran */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================================
   ACCESSIBILITÉ ET INTERACTIONS TACTILES
   ======================================================================== */
.search-input:focus,
.btn-icon-content:focus,
.fb-chd-autocomplete-item:focus,
.fb-action-btn:focus {
  outline: 2px solid var(--orange-primary, #f39501);
  outline-offset: 2px;
}

/* Touch-friendly - Zones de clic plus grandes sur mobile */
@media (max-width: 1023px) {
  .search-box-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .btn-icon-content {
    min-width: 44px;
    min-height: 44px;
  }

  .fb-chd-autocomplete-item {
    min-height: 48px;
    padding: 12px 16px;
  }

  .fb-new-search-btn {
    min-height: 44px;
    padding: 12px 0;
  }

  /* Améliorer la zone de clic des liens dans les résultats */
  .fb-result-meta a {
    display: inline-block;
    padding: 4px 0;
    min-height: 24px;
  }

  /* Touch feedback */
  .search-box-icon:active,
  .btn-icon-content:active {
    transform: scale(0.95);
  }

  .fb-chd-autocomplete-item:active {
    background: var(--bu-1-light, rgba(252, 233, 203, 0.5));
  }
}

/* ========================================================================
   RESPONSIVE - MOBILE FIRST
   ======================================================================== */

/* Mobile très petit (320px - 479px) */
@media (max-width: 479px) {
  .fb-chd-locator {
    min-width: auto;
    padding: 0 15px;
  }

  .fb-chd-container {
    flex-direction: column;
    gap: 15px;
    min-height: auto;
  }

  .fb-chd-map-wrapper {
    flex: 1 1 auto;
    order: 2;
    min-height: auto;
  }

  .fb-chd-content {
    flex: 1 1 auto;
    order: 1;
    min-height: auto;
    padding-right: 0;
    justify-content: flex-start;
  }

  .fb-chd-map {
    height: 250px;
    border-radius: 8px;
    display: block !important;
    visibility: visible !important;
  }

  /* Forcer l'affichage de Leaflet sur mobile */
  .fb-chd-map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
  }

  /* Titres mobiles */
  .fb-chd-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .fb-chd-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Search mobile */
  .fb-chd-search {
    margin-bottom: 20px;
  }

  .search-input {
    height: 48px;
    font-size: 16px; /* Évite le zoom iOS */
    padding: 0 50px 0 16px !important;
  }

  .search-box-icon {
    width: 38px;
    height: 38px;
    right: 5px;
  }

  /* Autocomplétion mobile */
  .fb-chd-autocomplete-item {
    padding: 16px;
    min-height: 48px;
    font-size: 16px;
  }

  /* Résultats mobiles */
  .fb-result-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .fb-chd-result h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .fb-result-meta {
    font-size: 14px;
    margin: 8px 0;
  }

  /* Bouton nouvelle recherche mobile */
  .fb-new-search-btn {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* Mobile standard (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .fb-chd-locator {
    min-width: auto;
    padding: 0 20px;
  }

  .fb-chd-container {
    flex-direction: column;
    gap: 20px;
    min-height: auto;
  }

  .fb-chd-map-wrapper {
    flex: 1 1 auto;
    order: 2;
    min-height: auto;
  }

  .fb-chd-content {
    flex: 1 1 auto;
    order: 1;
    min-height: auto;
    padding-right: 0;
    justify-content: flex-start;
  }

  .fb-chd-map {
    height: 300px;
  }

  /* Titres */
  .fb-chd-title {
    font-size: 28px;
  }

  .fb-chd-subtitle {
    font-size: 17px;
  }

  /* Search */
  .search-input {
    height: 50px;
    font-size: 16px;
  }

  .fb-chd-autocomplete-item {
    padding: 14px 16px;
    min-height: 48px;
  }
}

/* Tablette portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .fb-chd-locator {
    min-width: auto;
    padding: 0 30px;
  }

  .fb-chd-container {
    flex-direction: column;
    gap: 25px;
    min-height: auto;
  }

  .fb-chd-map-wrapper {
    flex: 1 1 auto;
    order: 2;
    min-height: auto;
  }

  .fb-chd-content {
    flex: 1 1 auto;
    order: 1;
    min-height: auto;
    padding-right: 0;
    justify-content: flex-start;
  }

  .fb-chd-map {
    height: 350px;
  }

  /* Search tablette */
  .search-input {
    height: 52px;
  }

  /* Recherche centrée sur tablette */
  .fb-chd-search-section {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Tablette paysage / petit desktop (1024px - 1299px) */
@media (min-width: 1024px) and (max-width: 1299px) {
  .fb-chd-locator {
    min-width: auto;
    padding: 0 40px;
  }

  .fb-chd-container {
    gap: 30px;
    display: flex;
  }

  .fb-chd-map-wrapper {
    flex: 0 0 60%;
    min-width: 0;
  }

  .fb-chd-content {
    flex: 0 0 40%;
    min-width: 0;
  }

  .fb-chd-map {
    height: 400px;
  }
}

/* Desktop large (1300px+) */
@media (min-width: 1300px) {
  .fb-chd-locator {
    max-width: 1280px;
  }
}

/* Optimisation pour les utilisateurs préférant moins d'animations */
@media (prefers-reduced-motion: reduce) {
  .fb-chd-locator *,
  .fb-chd-locator *::before,
  .fb-chd-locator *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}