/* ============================================================
   TROUVER VOTRE CENTRE — Section orange (design d'origine)
   + carte Google Maps + champ de recherche Places
   ============================================================ */

.find-center-map-section {
    padding: 80px 56px;
    background: var(--orange, #F26522);
    color: #fff;
    text-align: center;
}

.fcm-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.find-center-map-section h2 {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.08;
    margin: 0 0 36px;
    letter-spacing: -0.5px;
    color: #fff;
    text-align: center;
}

/* ==== Search input ==== */
.fcm-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    max-width: 640px;
    margin: 0 auto 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: box-shadow .2s;
}

.fcm-search-bar:focus-within {
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.fcm-search-icon { flex-shrink: 0; }

.fcm-search-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #999;
    text-transform: uppercase;
    padding-right: 8px;
    border-right: 1px solid #eee;
    margin-right: 2px;
}

.fcm-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: var(--dark, #1a1a1a);
    min-width: 100px;
}

.fcm-search-bar input::placeholder { color: #bbb; }

.fcm-btn-search {
    background: var(--dark, #1a1a1a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-family: inherit;
    white-space: nowrap;
}

.fcm-btn-search:hover {
    background: #000;
    transform: translateY(-1px);
}

/* ==== Map ==== */
.fcm-map-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

#fcm-google-map {
    width: 100%;
    height: 500px;
    background: #eee;
}

/* ==== Result count banner (below search bar) ==== */
.fcm-result-count {
    display: none;
    background: #fff;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    max-width: 640px;
    margin: -16px auto 24px;
    text-align: center;
    line-height: 1.4;
}

.fcm-result-count.visible { display: block; }
.fcm-result-count strong { color: var(--orange, #F26522); font-weight: 800; }

/* ==== Google Places Autocomplete dropdown ==== */
.pac-container {
    z-index: 100001 !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04) !important;
    margin-top: 4px !important;
    font-family: inherit !important;
    overflow: hidden !important;
}

.pac-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-top: 1px solid #f5f5f5 !important;
}

.pac-item:first-child { border-top: none !important; }
.pac-item:hover { background: #fef6f1 !important; }
.pac-item-selected { background: #fef6f1 !important; }
.pac-icon { margin-top: 2px !important; }

.pac-item-query {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--dark, #1a1a1a) !important;
}

/* ==== InfoWindow — popup de chaque centre ==== */
.gm-style .gm-style-iw-c {
    padding: 14px 18px 16px 18px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18) !important;
    max-width: 360px !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
}

/* Supprime la barre d'en-tête (qui réservait de l'espace vide en haut) */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
}

.gm-style .gm-style-iw-ch {
    padding: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Bouton de fermeture (X) Google Maps — identique au modal index */
.gm-style .gm-ui-hover-effect {
    top: 6px !important;
    right: 10px !important;
    opacity: 1 !important;
    width: 36px !important;
    height: 36px !important;
    background: var(--gray, #F4F4F4) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .2s, color .2s, transform .15s !important;
}
.gm-style .gm-ui-hover-effect:hover {
    background: #eaeaea !important;
    transform: scale(1.05);
}
.gm-style .gm-ui-hover-effect > span {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

.gm-style .fcm-iw {
    font-family: Montserrat, Arial, sans-serif;
    width: 310px;
    padding: 0;
    text-align: left;
}

.gm-style .fcm-iw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding-right: 44px; /* place pour le bouton X */
}

.gm-style .fcm-iw-top .fcm-iw-badge {
    margin-left: auto;
}

.gm-style .fcm-iw-title {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark, #1a1a1a);
    line-height: 1.2;
    margin: 0;
}

.gm-style .fcm-iw-sub {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px 0 8px;
}


.gm-style .fcm-iw-badge {
    flex-shrink: 0;
    background: var(--orange-light, #FFF0E8);
    color: var(--orange, #F26522);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.gm-style .fcm-iw-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    text-align: left;
}

.gm-style .fcm-iw-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.gm-style .fcm-iw-row span,
.gm-style .fcm-iw-row a {
    font-size: 12.5px;
    color: #555;
    line-height: 1.5;
}

.gm-style .fcm-iw-row a {
    color: var(--orange, #F26522);
    text-decoration: none;
    font-weight: 800;
    font-size: 13.5px;
}

.gm-style .fcm-iw-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.gm-style .fcm-iw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.gm-style .fcm-iw-btn-primary {
    flex: 1;
    background: var(--dark, #1a1a1a);
    color: #fff;
}


.gm-style .fcm-iw-btn-rdv {
    background: var(--orange, #F26522);
    color: #fff;
}


/* ==== Responsive ==== */
@media (max-width: 908px) {
    .find-center-map-section { padding: 60px 36px; }
    .find-center-map-section h2 { font-size: 32px; }
    #fcm-google-map { height: 420px; }
}

@media (max-width: 640px) {
    .find-center-map-section { padding: 48px 20px; }
    .find-center-map-section h2 { font-size: 24px; margin-bottom: 24px; }
    .fcm-search-bar { padding-left: 16px; gap: 8px; }
    .fcm-search-label { display: none; }
    .fcm-btn-search { padding: 10px 18px; font-size: 11px; }
    #fcm-google-map { height: 360px; }
    .fcm-map-wrapper { border-radius: 14px; border-width: 2px; }
}
