/* Map Page Layout */
.map-page {
    height: 100vh;
    overflow: hidden;
    grid-template-columns: 80px 1fr 380px;
}

.column-3 {
    grid-template-columns: 80px 1fr 1fr 1fr;
}

.main-container,
.map-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

/* Yandex Map Component Container */
.map-container yandex-map {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.map-legend {
    bottom: 6.5rem;
    left: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Info Panel */
.info-panel {
    background: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Map View Overlays */
.map-view {
    pointer-events: none;
    z-index: 10;
    top: 20px;
    left: 20px;
    right: 20px;
}


.map-controls,
.map-stats {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.6rem;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

/* Map section */
.map-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}



.master-panel,
.order-panel {
    width:32rem;
    border-radius: .75rem;
    position: absolute;
    bottom: 6rem;
    right: 4rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}


.filter-tabs .btn {
    transition: all 0.2s;
}

.filter-tabs .badge {
    margin-left: 5px;
    font-size: 0.75rem;
    padding: 2px 6px;
}



/* Custom markers */
.custom-marker {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.marker-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.marker-icon.online {
    background: #00C667;
    color: white;
}

.marker-icon.busy {
    background: #f59e0b;
    color: white;
}

.marker-icon.offline {
    background: #6b7280;
    color: white;
}

.marker-icon.active {
    background: #ef4444;
    color: white;
}

.marker-icon.urgent {
    background: #dc2626;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(220, 38, 38, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4); }
}

.marker-label {
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-bar {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: .8rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 6px 0 #0003;
}

.status-bar .status-dot {
    animation: pulse 2s infinite;
}

.status-bar .status-dot.status-online {
    background: #10b981;
}

.status-bar .status-dot.status-offline {
    background: #ef4444;
}