.map-selector-controls {
    position: fixed;
    right: 215px;
    bottom: 40px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 42px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.btn-map-select {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #42351f 0%, #292011 100%);
    border: 1px solid #543e0d;
}

.btn-map-select:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    border-color: #b89445 !important;
}

.btn-map-select.active {
    background: linear-gradient(180deg, #1e3c27 0%, #112417 100%) !important;
    border-color: #dfbc6f !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.btn-map-select:active {
    transform: translateY(0);
}

.btn-map-select.fog-disabled {
    background: linear-gradient(180deg, #5c1e1e 0%, #3a1111 100%) !important;
    border-color: #823030 !important;
    color: #f7baba !important;
}

.grid-layer {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    pointer-events: auto;
}

.tactical-square {
    position: relative;
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tactical-square:hover {
    background-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.5);
}

.tactical-square.fog-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.99);
    z-index: 5;
    pointer-events: none;
}

.tactical-square.squad-dark {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.6) 0%, rgba(231, 76, 60, 0) 70%);
}

.tactical-square.drag-over {
    box-shadow: inset 0 0 12px #dfbc6f !important;
    background-color: rgba(223, 188, 111, 0.2) !important;
}

.tactical-square.obstacle-wall {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7) !important;
    background-color: rgba(40, 40, 40, 0.3) !important;
    border: 2px solid #555 !important;
}

.tactical-square.obstacle-destructible {
    background-color: rgba(139, 69, 19, 0.45) !important;
    border: 1px dashed #8b4513 !important;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.6) !important;
}

.tactical-square.obstacle-stones {
    background-color: rgba(95, 100, 105, 0.45) !important;
    border: 1px solid #7f8c8d !important;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.75) !important;
}

.tactical-square.obstacle-ice {
    background-color: rgba(116, 185, 255, 0.22) !important;
    border: 1px solid #74b9ff !important;
    box-shadow: inset 0 0 10px rgba(116, 185, 255, 0.45) !important;
}

.tactical-square.obstacle-web {
    background-color: rgba(255, 234, 167, 0.16) !important;
    border: 1px dashed #ffeaa7 !important;
    box-shadow: inset 0 0 6px rgba(255, 234, 167, 0.38) !important;
}

.tactical-square.focused-entity {
    box-shadow: inset 0 0 15px #3498db !important;
    outline: 2px solid #3498db !important;
}

.tactical-square.path-cell {
    box-shadow: inset 0 0 8px #2ecc71 !important;
}

.tactical-square.path-cell-jump {
    box-shadow: inset 0 0 10px #f1c40f !important;
    border: 2px dashed #f1c40f !important;
}

.tactical-square.path-cell-jump-start {
    box-shadow: inset 0 0 12px #ff9f43 !important;
    border: 2px dashed #ff9f43 !important;
    background-color: rgba(255, 159, 67, 0.15) !important;
}

.tactical-square.path-cell-jump-land {
    box-shadow: inset 0 0 12px #10ac84 !important;
    border: 2px dashed #10ac84 !important;
    background-color: rgba(16, 172, 132, 0.15) !important;
}

.square-path-cost {
    position: absolute;
    bottom: 2px;
    right: 4px;
    z-index: 10;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 1px 3px #000, 0 0 4px #000;
}
