.firms-page .firms-map-card {
    /* Non usare overflow:hidden: durante pan/zoom Leaflet sposta i layer
       e i marker verrebbero ritagliati in modo intermittente. */
    border-radius: 0.85rem;
    overflow: visible;
}

.firms-map {
    height: min(72vh, 720px);
    min-height: 420px;
    width: 100%;
    background: #e8ede9;
    border-radius: 0.85rem;
}

.firms-list {
    max-height: 420px;
    overflow-y: auto;
}

.firms-list-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(26, 46, 36, 0.08);
    background: #fff;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.firms-list-item:hover,
.firms-list-item.is-active {
    background: rgba(31, 107, 74, 0.08);
}

.firms-list-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--np-green-dark);
}

.firms-list-meta {
    font-size: 0.78rem;
    color: #5a6f64;
}

.firms-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.firms-dot {
    width: 1.1rem;
    height: 1.35rem;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 31c-5.2-1.4-9-6.2-9-12.2C3 10.2 8.2 4.8 12 1c3.8 3.8 9 9.2 9 17.8 0 6-3.8 10.8-9 12.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 31c-5.2-1.4-9-6.2-9-12.2C3 10.2 8.2 4.8 12 1c3.8 3.8 9 9.2 9 17.8 0 6-3.8 10.8-9 12.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.firms-dot--high { background: #b71c1c; }
.firms-dot--medium { background: #e65100; }
.firms-dot--low { background: #fbc02d; }

.firms-fire-marker {
    background: transparent !important;
    border: none !important;
}

.firms-fire-icon {
    line-height: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.firms-fire-icon svg {
    display: block;
    overflow: visible;
}

.firms-region-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.firms-region-label span {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(26, 46, 36, 0.55);
    text-shadow: 0 0 3px #fff, 0 0 6px #fff;
    white-space: nowrap;
}

.firms-region-outline {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.firms-region-outline--liguria { stroke: #e74c3c; }
.firms-region-outline--piemonte { stroke: #3498db; }
.firms-region-outline--lombardia { stroke: #27ae60; }

.firms-stats strong {
    color: var(--np-green-dark);
}
