
@media only screen and (min-width: 769px) {
.gm-style .gm-style-iw-c {

    background-color: #0B0D10 !important;
    padding: 0 !important;
    border: 1px solid #333 !important;
}

/* Sistema il pulsante di chiusura (X) */
.gm-style .gm-style-iw-t::after {
    background: #0B0D10 !important;
}


.gm-ui-hover-text {
    display: none !important;
}

/* Rimuove l'ombra predefinita di Google */
.gm-style-iw {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* --- TITOLO E FOTO BOX ESTERNO (Sito) --- */
#boxMap h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    align-self: flex-start;
    margin-left: 10px;
}

#boxMap h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #ff6666;
}

/* --- MAPPA --- */
#map {
    height: 600px;
    width: 90%;
    border-radius: 5px;
    border-top: 4px solid #212121;
    border-left: 4px solid #212121;
    border-bottom: 4px solid #707070;
    border-right: 4px solid #707070;
    transition: transform 0.5s, box-shadow 0.5s, opacity 0.5s ease;
    background-color: #0B0D10;
}

/* --- INFO WINDOW (Google Maps Fix Estremo) --- */

/* 1. Contenitore principale di Google */
.gm-style-iw-c {
    padding: 0 !important;
    background-color: #0B0D10 !important;
    max-height: 400px !important;
    border-radius: 10px !important;

}

/* 2. Sblocco Scroll (Fondamentale) */
.gm-style-iw-d {
    overflow-y: auto !important; /* Permette lo scroll */
    overflow-x: hidden !important; /* Questo abilita lo scroll */
    max-height: 380px !important;
    padding: 0 !important;
    margin: 0 !important;

    scrollbar-width: none !important;

        /* 3. Nasconde la barra su Internet Explorer e Edge vecchio */
        -ms-overflow-style: none !important;

}

.gm-style-iw-d::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 3. IL TASTO X: Lo rendiamo bianco e lo posizioniamo bene */
.gm-style-iw + button,
.gm-ui-hover-full-screen,
button[title="Chiudi"] {
    filter: invert(1) brightness(2) !important; /* Trasforma la X da nera a bianca */
    opacity: 1 !important;
    top: 10px !important;
    right: 10px !important;
    background: none !important;
    border: none !important;
}

/* 3. Il tuo wrapper interno */
.info-content {
    background-color: #0B0D10;
    color: #eee;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    /* Margine negativo per spingere tutto in cima contro il bordo di Google */
    margin-top: -15px !important;
    padding: 0 10px 15px 10px !important;
    box-sizing: border-box;
}

/* Header (Foto + Titolo) incollato in alto */
.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 5px; /* Minimo respiro dal bordo */
    margin-bottom: 0px;
}

/* Nasconde scrollbar brutte ma permette lo scroll */
.gm-style-iw-d::-webkit-scrollbar {
    width: 4px;
}
.gm-style-iw-d::-webkit-scrollbar-thumb {
    background: #ff6666;
    border-radius: 10px;
}

/* --- ELEMENTI INTERNI --- */

.info-content h2 {
    color: #ff6666;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 !important;
    text-transform: uppercase;
}

.rating-summary {
    background: #1A1D21;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    margin-top: 10px;
    margin-bottom: 10px;
}

.info-content .review {
    background: #15181C;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 5px;
    border-left: 3px solid #ff6666;
}

.place-photo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Rimuove i testi e pulsanti di Google che coprono il contenuto */
.gm-style-cc, .gm-ui-hover-full-screen {
    display: none !important;
}


}

@media (max-width: 768px) {
    .info-content {
        padding: 15px; /* Riduce il padding per schermi piccoli */
    }

    .info-content h2 {
        font-size: 1.2em; /* Riduce la dimensione del testo */
    }

    .info-content .photos img,
    .place-photo img {
        width: 90%; /* Immagini più larghe per schermi piccoli */
        margin: 5px 0; /* Riduce il margine */
    }

    .info-content .review {
        padding-bottom: 8px; /* Riduce il padding per schermi piccoli */
    }

    .info-content .reviews,
    .info-content .photos {
        margin-top: 15px; /* Riduce il margine per schermi piccoli */
    }

    .info-content .review .text {
        font-size: 0.9em; /* Riduce la dimensione del testo */
    }
}

