.aeropsyence-map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: block;
    width: 100%;
    height: var(--aeropsyence-map-height, 400px);
    max-height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--aeropsyence-map-radius, 0);
    background: #ddeff2;
    color: #0b3c5d;
    font-family: Inter, Helvetica, Arial, sans-serif;
    text-align: left;
}

.aeropsyence-map .aeropsyence-map__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #ddeff2;
}

.aeropsyence-map .leaflet-tile,
.aeropsyence-map .leaflet-marker-icon {
    max-width: none !important;
    max-height: none !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.aeropsyence-map .leaflet-tile-pane {
    filter: none;
}

.aeropsyence-map .leaflet-gl-layer {
    position: absolute;
    top: 0;
    left: 0;
}

.aeropsyence-map .maplibregl-canvas {
    display: block;
    max-width: none !important;
    max-height: none !important;
}

.aeropsyence-map .leaflet-bar {
    overflow: hidden;
    border: 1px solid #ddeff2;
    border-radius: 8px;
    box-shadow: none;
}

.aeropsyence-map .leaflet-bar a {
    box-sizing: border-box;
    display: grid;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    place-items: center;
    border-color: #ddeff2;
    background: #fff;
    color: #0b3c5d;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.aeropsyence-map .leaflet-bar a:hover,
.aeropsyence-map .leaflet-bar a:focus-visible {
    background: #0b3c5d;
    color: #fff;
}

.aeropsyence-map .leaflet-bar a.leaflet-disabled {
    background: #fafbfc;
    color: #bbbbbb;
}

.aeropsyence-map__recenter {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 8px;
    border: 1px solid #ddeff2;
    border-radius: 8px;
    background: #fff;
    color: #0b3c5d;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.aeropsyence-map__recenter::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("../images/map-locate.svg") center / contain no-repeat;
    mask: url("../images/map-locate.svg") center / contain no-repeat;
}

.aeropsyence-map__recenter:hover,
.aeropsyence-map__recenter:focus-visible {
    background: #0b3c5d;
    color: #fff;
}

.aeropsyence-map :focus-visible {
    outline: 2px solid #4db6ac;
    outline-offset: 2px;
}

.aeropsyence-map .leaflet-popup-content-wrapper {
    border: 1px solid #ddeff2;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    box-shadow: 0 6px 24px rgba(11, 60, 93, 0.1);
}

.aeropsyence-map .leaflet-popup-tip { background: #fff; }
.aeropsyence-map .leaflet-popup-content { margin: 16px; }

.aeropsyence-map__popup h3 {
    margin: 0 0 8px;
    padding: 0;
    color: #0b3c5d;
    font-family: Figtree, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.aeropsyence-map .aeropsyence-map__popup p {
    margin: 0 0 14px;
    padding: 0;
    color: #495057;
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-line;
}

.aeropsyence-map .aeropsyence-map__popup a {
    color: #7e57c2;
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-underline-offset: 3px;
}

.aeropsyence-map .leaflet-control-attribution {
    max-width: calc(100% - 12px);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    font: 10px/1.4 Inter, Helvetica, Arial, sans-serif;
}

.aeropsyence-map .leaflet-control-attribution a { color: #0b3c5d; }

.aeropsyence-map__fallback {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-content: center;
    margin: 0;
    padding: 24px;
    background: #fafbfc;
    color: #0b3c5d;
    font: 16px/1.6 Inter, Helvetica, Arial, sans-serif;
    text-align: center;
}

.et_pb_code_inner:has(> [data-aeropsyence-map]),
.et_pb_text_inner:has(> [data-aeropsyence-map]) {
    height: 100%;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .aeropsyence-map .leaflet-bar a,
    .aeropsyence-map__recenter { transition: none; }
}
