.home-ctnr {
    background: radial-gradient(#393939, #0c0c0c);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    padding-top: 13.8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 70vw !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.map-box {
    width: 85%;
    max-width: 1200px;
    height: 70vh;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.2s ease;
}

.map-box:hover {
    transform: translateY(-1px);
    box-shadow:
            0 12px 45px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.map-box-text {
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-box-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.map-box-text h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-box-text h4 strong {
    font-weight: 600;
    color: #ffffff;
}

.map-box-text h4::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.8;
}

#googleMap {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    background: rgba(240, 240, 240, 0.95);
}

#googleMap::before {
    content: 'Chargement de la carte...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666666;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: -1;
}

#googleMap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    width: 40px;
    height: 2px;
    animation: loading 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes loading {
    0% {
        transform: translate(-50%, -50%) translateY(30px) scaleX(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(30px) scaleX(1);
    }
    100% {
        transform: translate(-50%, -50%) translateY(30px) scaleX(0);
    }
}

@media screen and (max-width: 1024px) {
    .map-box {
        width: 92%;
        height: 70vh;
    }

    .map-box-text {
        padding: 20px 30px;
    }

    .map-box-text h4 {
        font-size: 1.3rem;
    }

    .map-box-text h4::before {
        width: 18px;
        height: 18px;
        left: -30px;
    }
}

@media screen and (max-width: 768px) {
    .home-ctnr {
        padding-top: 10vh;
    }

    .map-box {
        width: 94%;
        height: 65vh;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.15);
    }

    .map-box-text {
        padding: 18px 24px;
        background: rgba(0, 0, 0, 0.4);
    }

    .map-box-text h4 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .map-box-text h4::before {
        display: none;
    }

    #googleMap {
        border-radius: 0 0 12px 12px;
    }
}

@media screen and (max-width: 576px) {
    .home-ctnr {
        padding-top: 8vh;
        padding-left: 15px;
        padding-right: 15px;
    }

    .map-box {
        width: 100%;
        height: 75vh;
        border-radius: 10px;
        box-shadow:
                0 5px 20px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .map-box-text {
        padding: 16px 20px;
        background: rgba(0, 0, 0, 0.5);
    }

    .map-box-text::after {
        width: 60px;
    }

    .map-box-text h4 {
        font-size: 0.95rem;
        letter-spacing: 0;
    }

    #googleMap {
        border-radius: 0 0 10px 10px;
    }

    .map-box:hover {
        transform: none;
    }
}

@media screen and (max-width: 320px) {
    .map-box-text h4 {
        font-size: 0.85rem;
    }

    .map-box-text {
        padding: 14px 16px;
    }

    .map-box {
        height: 70vh;
    }
}

@media screen and (min-width: 1400px) {
    .map-box {
        max-width: 1300px;
        height: 75vh;
    }

    .map-box-text h4 {
        font-size: 1.5rem;
    }

    .map-box-text {
        padding: 24px 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/** ------------------------ --------------------------------------- */

/* Container principal de l'InfoWindow */
.gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

/* Container du contenu */
.gm-style-iw-c {
    background: rgba(0, 0, 0, 0.70) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Flèche de l'InfoWindow */
.gm-style-iw-t::after {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Contenu personnalisé de l'InfoWindow */
.custom-infowindow {
    padding: 0 25px 20px 25px;
    min-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Titre de la boutique */
.infowindow-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: -5px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

/* Informations (prix, téléphone) */
.infowindow-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* Icônes pour les informations */
.info-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.price-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M15 21c-4.5 0-8-3.5-8-9s3.5-9 8-9c2.5 0 4.5 1 6 2.5M15 21c2.5 0 4.5-1 6-2.5M3 10h10M3 14h10'/%3E%3C/svg%3E");
}

.phone-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* Lien Google Maps */
.infowindow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 10px 16px;
    background: rgba(60, 55, 241, 0.2);
    border: 1px solid rgba(60, 55, 241, 0.4);
    border-radius: 8px;
    color: #8b86ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.infowindow-link:hover {
    background: rgba(60, 55, 241, 0.3);
    border-color: rgba(60, 55, 241, 0.6);
    color: #a5a1ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 55, 241, 0.3);
}

.infowindow-link::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.infowindow-link:hover::after {
    transform: translateX(3px);
}

/* Bouton de fermeture personnalisé */
.gm-ui-hover-effect {
    border-radius: 50% !important;
    width: 45px !important;
    height: 35px !important;
    top: -5px !important;
    right: 0px !important;
    transition: all 0.2s ease !important;
}

.gm-ui-hover-effect img {
    opacity: 1 !important;
}

/* Animation d'ouverture */
.gm-style-iw-c {
    animation: fadeInScale 0.3s ease-out;
}

.gm-ui-hover-effect span[style*="mask-image"] {
    background-color: #ffffff !important;

    transition: all 0.2s ease !important;
}
.gm-ui-hover-effect:hover span[style*="mask-image"] {
    background-color: rgba(81, 97, 123, 0.61) !important;
    transition: all 0.2s ease !important;

}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media screen and (max-width: 480px) {
    .custom-infowindow {
        padding: 0 20px 15px 20px;
        min-width: 240px;
    }

    .infowindow-title {
        font-size: 18px;
        padding-top: 15px;
    }

    .info-item {
        font-size: 14px;
    }

    .infowindow-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}