.atlas-layer-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.atlas-layer-switches label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e7e9;
    border-radius: 10px;
    background: #f3f6f7;
    color: #33464d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.atlas-layer-switches input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.atlas-layer-switches label:has(input:checked) {
    color: #fff;
    background: var(--primary-color, #0078a8);
    border-color: var(--primary-color, #0078a8);
    box-shadow: 0 3px 9px rgba(0, 120, 168, .2);
}

.atlas-layer-switches label:focus-within {
    outline: 3px solid rgba(0, 120, 168, .22);
    outline-offset: 2px;
}

.atlas-filter-layers {
    margin-bottom: 0;
}

.atlas-filter-label,
.atlas-sidebar-label {
    color: #708087;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.atlas-filter-section {
    padding: 12px 0;
    border-top: 1px solid var(--atlas-panel-divider, #e8edef);
}

.atlas-layers-section {
    border-top: 0;
}

.atlas-status-section .validated-filter-button {
    max-width: 180px;
}

.atlas-filter-label {
    display: block;
    margin-bottom: 7px;
}

.atlas-list-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atlas-layer-switches-list {
    width: 100%;
}

.atlas-sidebar-layers {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.atlas-add-menu {
    position: absolute;
    bottom: 72px;
    left: 20px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 6px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, visibility .18s, transform .18s, left .4s cubic-bezier(.4, 0, .2, 1);
}

.atlas-add-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.atlas-add-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.atlas-add-menu button:hover,
.atlas-add-menu button:focus-visible {
    background: #eef7fb;
    color: var(--primary-color, #0078a8);
    outline: none;
}

@media (min-width: 1025px) {
    body.list-view-open .atlas-add-menu {
        left: 380px;
    }
}

.atlas-sidebar-label {
    display: block;
    margin-bottom: 10px;
}

.atlas-page #place-modal[data-atlas-editor-type="place"] .atlas-event-field,
.atlas-page #place-modal[data-atlas-editor-type="event"] .atlas-place-field {
    display: none;
}

.atlas-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.place-name-label-with-pointer.atlas-event-marker {
    border-style: dashed;
    border-width: 2px;
}

.place-name-label-with-pointer.atlas-event-marker.passed-event-marker .notranslate {
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .atlas-layer-switches label {
        min-height: 40px;
        padding: 0 8px;
    }

    .atlas-filter-section {
        padding: 9px 0;
    }

    .atlas-add-menu {
        bottom: calc(72px + env(safe-area-inset-bottom));
        left: calc(20px + env(safe-area-inset-left));
    }
}
