/* ============================================================
   STR‑systems — MAPPA (CSS specifico del modulo)
   ============================================================ */

/* ------------------------------
   MAPPA
------------------------------ */
.str-map {
    width: 100%;
    height: 600px;
    background: var(--str-pietra);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 4px 12px var(--str-ombra);
}

/* ------------------------------
   LEGENDA
------------------------------ */
#legend ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#legend li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-family: var(--str-font-mono);
}

/* ------------------------------
   CONTROLLO LAYER
------------------------------ */
#layerControl {
    max-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#layerControl input {
    margin-right: 6px;
}

#layerControl label {
    cursor: pointer;
    user-select: none;
    font-family: var(--str-font-main);
}

/* ------------------------------
   POPUP
------------------------------ */
.ol-popup {
    position: absolute;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    bottom: 12px;
    left: -50px;
    min-width: 220px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-family: var(--str-font-main);
}

.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: #fff;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #ccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 1rem;
    color: #666;
}

.ol-popup-closer:hover {
    color: #000;
}

.ol-popup-closer:after {
    content: "✖";
}
