.atlas-map {
    position: relative;
    width: 100%;
    min-height: 320px;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    overflow: hidden;
}

.atlas-map-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 260px;
    max-width: calc(100% - 70px);
    max-height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .375rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    font-size: .85rem;
}

.atlas-map-panel-toggle {
    border: 0;
    background: var(--rosso, #9d0007);
    color: #fff;
    text-align: left;
    padding: .4rem .75rem;
    border-radius: .375rem .375rem 0 0;
    font-weight: 600;
}
.atlas-map-panel-toggle::after { content: " \25B4"; float: right; }
.atlas-map-panel.collapsed .atlas-map-panel-toggle { border-radius: .375rem; }
.atlas-map-panel.collapsed .atlas-map-panel-toggle::after { content: " \25BE"; }
.atlas-map-panel.collapsed .atlas-map-panel-body { display: none; }

.atlas-map-panel-body {
    overflow-y: auto;
    padding: .5rem .75rem;
}

.atlas-map-panel-title { font-weight: 600; margin-bottom: .4rem; }

.atlas-map-layer { padding: .25rem 0; border-bottom: 1px solid #eee; }
.atlas-map-layer > label { display: flex; align-items: center; gap: .4rem; cursor: pointer; margin: 0; }
.atlas-map-layer-error { color: #b32d2e; font-size: .75rem; margin-left: 1.4rem; }

.atlas-map-legend { list-style: none; margin: .2rem 0 0 1.4rem; padding: 0; }
.atlas-map-legend li { display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.atlas-map-legend-note { font-size: .75rem; color: #666; margin-left: 1.4rem; }

.atlas-map-swatch {
    flex: 0 0 auto;
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--c);
    border: 1px solid rgba(0, 0, 0, .3);
    border-radius: 2px;
}
.atlas-map-swatch.point { border-radius: 50%; }
.atlas-map-swatch.line { height: 4px; border: 0; }

.atlas-map-basemap { padding-top: .5rem; }
.atlas-map-basemap label { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-weight: 600; }
.atlas-map-basemap select { font-weight: normal; font-size: .85rem; padding: .15rem; }

.atlas-map-popup { font-size: .8rem; max-height: 260px; overflow-y: auto; }
.atlas-map-popup-title { font-weight: 600; margin-bottom: .3rem; color: var(--rosso, #9d0007); }
.atlas-map-popup table { width: 100%; border-collapse: collapse; }
.atlas-map-popup td { padding: 2px 4px; border-top: 1px solid #eee; vertical-align: top; word-break: break-word; }
.atlas-map-popup td:first-child { color: #666; white-space: nowrap; }

.atlas-map-svg-swatch { flex: 0 0 auto; overflow: visible; }
