/* Pulsing highlight for selected element */

@keyframes map-selected-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 197, 66, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(244, 197, 66, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 197, 66, 0);
    }
}

.map-poi-item.select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}

.map-poi-item.select-item .map-checkbox-item {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    pointer-events: none;
}

.map-poi-item.select-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.map-poi-item.select-item .map-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.map-layer-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.map-layer-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.map-layer-name-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-layer-new-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 2px 5px;
    color: #080808;
    background: var(--accent);
    border: 1px solid var(--accent-strong);
    box-shadow: var(--shadow-xs);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.map-layer-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: normal;
}

.map-poi-list.select-list {
    max-height: none;
    overflow-y: visible;
}

.map-layers-panel .map-poi-list.select-list {
    flex: 1 1 auto;
    min-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35);
    scrollbar-gutter: stable;
}

.map-layers-panel .map-search-controls-container {
    padding: 10px;
    gap: 8px;
    margin-bottom: 8px;
}

.map-layers-panel .map-search-box {
    margin-bottom: 8px;
}

.map-layers-panel .map-search-box input {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.82rem;
}

.map-layers-panel .map-poi-list.select-list {
    gap: 3px;
    padding: 6px;
}

.map-layers-panel .map-category-group {
    margin-bottom: 5px;
}

.map-layers-panel .map-category-header {
    padding: 8px 10px;
    font-size: 0.74rem;
}

.map-layers-panel .map-category-header i.arrow-icon {
    font-size: 0.68rem;
}

.map-layers-panel .map-poi-item.select-item {
    padding: 4px 6px;
    gap: 5px;
    min-height: 30px;
}

.map-layers-panel .map-poi-item.select-item .map-checkbox-item {
    gap: 7px;
    font-size: 0.8rem;
}

.map-layers-panel .map-poi-item.select-item .map-checkbox-label {
    gap: 6px;
}

.map-layers-panel .map-checkbox-box {
    width: 15px;
    height: 15px;
    border-width: 2px;
}

.map-layers-panel .map-checkbox-box::after {
    font-size: 0.66rem;
}

.map-layers-panel .map-layer-icon {
    width: 15px;
    height: 15px;
}

.map-layers-panel .map-layer-icon--dot {
    width: 12px;
    height: 12px;
}

.map-layers-panel .map-layer-text {
    gap: 5px;
}

.map-layers-panel .map-layer-count {
    font-size: 0.72rem;
}

.map-layers-panel .zoom-to-item-btn {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.74rem;
}

.map-sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--accent);
    background: var(--panel-deep);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-s);
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.12s linear, color 0.12s linear, transform 0.08s linear, box-shadow 0.08s linear;
}

.map-sidebar-close-btn:hover,
.map-sidebar-close-btn:focus-visible {
    color: var(--accent-strong);
    border-color: var(--accent);
    outline: none;
}

.map-sidebar-close-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.site-shell.fullscreen-map .map-layout {
    grid-template-columns: 380px minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

.site-shell.fullscreen-map .map-sidebar {
    border-right: 2px solid var(--border);
    padding: 16px;
    background: var(--panel-dark);
    z-index: 10;
    height: 100vh !important;
    border-radius: 0 !important;
}

.site-shell.fullscreen-map .map-main {
    border: none !important;
    box-shadow: none !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

@media (max-width: 1200px) {
    .site-shell.fullscreen-map .map-layout {
        grid-template-columns: 340px minmax(0, 1fr) !important;
    }
}

