/**
 * Widget: map|google-maps
 */

/* -----------------------------------------------------------------------
   Riga 1: Recapiti
----------------------------------------------------------------------- */
.map-google-maps .gmaps-info {
    background: var(--website-bkg-white);
    padding: 2.5rem 0;
}

.map-google-maps .gmaps-info > .container {
    max-width: var(--website-container-max-width);
}

.map-google-maps .gmaps-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1.875rem;
    border-top: 1px solid rgba(61, 61, 61, 0.40);
    border-bottom: 1px solid rgba(61, 61, 61, 0.40);
    padding: 2.5rem 0;

}

/* -----------------------------------------------------------------------
   Info — sinistra (immagine + titolo)
----------------------------------------------------------------------- */
.map-google-maps .gmaps-info-left {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-shrink: 0;
}

.map-google-maps .gmaps-info-image {
    width: 360px;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.map-google-maps .gmaps-info-image picture,
.map-google-maps .gmaps-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-google-maps .gmaps-title {
    font-size: 2.625rem;
    font-weight: 500;
    line-height: 1.1;
    color: #3D3D3D;
    margin: 0;
    max-width: 300px;
}

.map-google-maps .gmaps-title-emphasis {
    color: var(--website-accent);
    font-style: italic;
    font-weight: 500;
}

/* -----------------------------------------------------------------------
   Info — destra (griglia contatti)
----------------------------------------------------------------------- */
.map-google-maps .gmaps-contacts {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    align-self: center;
}

.map-google-maps .gmaps-contact-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.map-google-maps .gmaps-contact-label {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.4;
    color: #3D3D3D;
}

.map-google-maps .gmaps-contact-value {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--website-secondary);
    text-decoration: none;
}

.map-google-maps a.gmaps-contact-value:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------
   Riga 2: Google Maps
----------------------------------------------------------------------- */
.map-google-maps .gmaps-map {
    position: relative;
    width: 100%;
}

/* Placeholder click-to-load */
.map-google-maps .gmaps-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background: #f0ece6;
    transition: background-color 0.2s ease;
}

.map-google-maps .gmaps-map-placeholder:hover {
    background: #e8e2d8;
}

.map-google-maps .gmaps-map-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #6A3400;
}

.map-google-maps .gmaps-map-placeholder-text {
    font-size: 1rem;
    font-weight: 500;
    color: #6A3400;
    margin: 0;
    text-align: center;
}

/*
.map-google-maps .gmaps-map-load-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--website-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-google-maps .gmaps-map-load-btn:hover {
    background: var(--website-primary-light);
}

.map-google-maps .gmaps-map-load-btn:focus-visible {
    outline: 3px solid var(--website-primary);
    outline-offset: 2px;
}
*/
/* Iframe container */
.map-google-maps .gmaps-map-iframe {
    width: 100%;
    min-height: 80vh;
}

.map-google-maps .gmaps-map-iframe iframe {
    display: block;
    width: 100%;
    min-height: 80vh;
    border: none;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 992px) {
    .map-google-maps .gmaps-info-row {
        flex-direction: column;
    }

    .map-google-maps .gmaps-info-left {
        flex-direction: column;
    }

    .map-google-maps .gmaps-info-image {
        width: 100%;
        height: 260px;
    }

    .map-google-maps .gmaps-title {
        font-size: 2rem;
        max-width: none;
    }

    .map-google-maps .gmaps-contacts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .map-google-maps .gmaps-info {
        padding: var(--website-padding-top-bottom-mobile) 0;
    }

    .map-google-maps .gmaps-contacts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-google-maps .gmaps-map-placeholder {
        min-height: 300px;
    }

    .map-google-maps .gmaps-map-iframe,
    .map-google-maps .gmaps-map-iframe iframe {
        min-height: 300px;
    }
}
