/* ------------------------------------------------------------------
   qed-map.css - stile comune per le mappe (MapLibre GL + OpenFreeMap)
   ------------------------------------------------------------------ */

.qx-map {
    position: relative;
    background: #eceff1;
}

/* variante "card": bordo sottile e ombra soffice */
.qx-map-card {
    border: 1px solid #e4e4e4;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .05);
}

/* il contenitore creato da MapLibre eredita il font del sito */
.qx-map .maplibregl-map {
    font-family: inherit;
}

/* palette più viva: saturazione del solo canvas (marker, popup e controlli restano neutri) */
.qx-map .maplibregl-canvas {
    filter: saturate(1.65) contrast(1.03);
}

/* controlli zoom */
.qx-map .maplibregl-ctrl-top-right {
    margin: 12px 12px 0 0;
}

.qx-map .maplibregl-ctrl-group {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}

.qx-map .maplibregl-ctrl-group button {
    width: 34px;
    height: 34px;
    background: #fff;
}

.qx-map .maplibregl-ctrl-group button + button {
    border-top: 1px solid #ececec;
}

.qx-map .maplibregl-ctrl-group button:hover {
    background: #0066cc;
}

.qx-map .maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon {
    filter: invert(1);
}

/* attribuzione: discreta ma sempre leggibile */
.qx-map .maplibregl-ctrl-attrib {
    margin: 0;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #5f5f5f;
    background: rgba(255, 255, 255, .88);
    box-shadow: none;
}

.qx-map .maplibregl-ctrl-attrib a {
    color: #0058b0;
    text-decoration: none;
}

.qx-map .maplibregl-ctrl-attrib a:hover {
    text-decoration: underline;
}

/* popup */
.qx-map .maplibregl-popup-content {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.qx-map .maplibregl-popup-close-button {
    padding: 0 6px;
    font-size: 18px;
    color: #555;
}

/* marker a "pin" disegnato inline nelle pagine */
.qx-pin {
    background: none;
    border: 0;
}

.qx-pin svg {
    display: block;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}
