/* Plugin gmap 3.0 — [gmap]: Google (iframe) / OpenStreetMap (Leaflet). Το ύψος έρχεται από το shortcode (style). */
.cms39-gmap-box {
    margin: 0 0 1.25rem;
}

.cms39-gmap {
    position: relative;
    z-index: 0; /* τα panes του Leaflet (z-index 400+) μένουν κάτω από κολλημένα headers του theme */
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: .5rem;
    background: #e9ecef;
}

.cms39-gmap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CookieConsent: placeholder του iframe μέχρι τη συγκατάθεση — το ύψος του χάρτη αντί για 4/3 */
.cms39-gmap > [data-service] {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
}

/* Google (JavaScript API) χωρίς συγκατάθεση ακόμα: ειδοποίηση + «Φόρτωση» στη θέση του χάρτη */
.cms39-gmap-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1rem;
    text-align: center;
    color: #495057;
    font-size: .95em;
}

.cms39-gmap-consent p {
    max-width: 32rem;
    margin: 0;
}

.cms39-gmap-consent button {
    cursor: pointer;
}

/* παράθυρο της καρφίτσας (Google / OpenStreetMap): πάντα λευκό → δικό του σκούρο χρώμα, όχι το χρώμα γραμμάτων του theme (σκούρο θέμα = αχνό γκρι) */
.cms39-gmap-iw {
    max-width: 18rem;
    color: #202124;
    font-size: 14px;
    line-height: 1.45;
}

.cms39-gmap-iw a {
    color: #1a73e8;
}

/* 3.3.0 — η Google ζωγραφίζει το ✕ του παραθύρου (και κουμπιά) με light-dark(μαύρο, λευκό): σε σκούρο θέμα (color-scheme: dark — π.χ. data-bs-theme="dark")
   λευκό πάνω στο λευκό παράθυρο. Ο χάρτης είναι πάντα ανοιχτός → color-scheme: light */
.cms39-gmap {
    color-scheme: light;
}

/* τίτλος στην κεφαλίδα του παραθύρου (headerContent), στο ύψος του ✕ */
.cms39-gmap-iw-head {
    align-self: center;
    font-weight: 600;
}

/* τίτλος του shortcode: έντονα πάνω από το κείμενο (παράθυρο / κάτω από τον χάρτη) */
.cms39-gmap-title {
    display: block;
    margin-bottom: .2rem;
    font-weight: 600;
}

.cms39-gmap-info {
    margin-top: .5rem;
}

.cms39-gmap-link {
    display: inline-block;
    margin-top: .35rem;
    font-size: .9em;
}

.cms39-gmap-empty {
    padding: 1rem;
    border: 1px dashed #adb5bd;
    border-radius: .5rem;
    color: #6c757d;
    font-size: .9em;
}
