.maps-grid {
    width: 100%;
    max-width: 1350px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    justify-content: center;
    align-content: start;
    position: relative;
}

.map-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;

    background-color: var(--accent);
    background-size: cover;
    background-position: center;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


.map-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.82) 0%,
            rgba(0,0,0,0.35) 55%,
            rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
}

.map-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover);
}

.maps-grid.active-a .map-item:hover {
    box-shadow: 0 0 0 2px rgba(0,149,255,0.7), 0 8px 32px rgba(0,0,0,0.8);
}
.maps-grid.active-b .map-item:hover {
    box-shadow: 0 0 0 2px rgba(0,255,149,0.7), 0 8px 32px rgba(0,0,0,0.8);
}

.map-item .map-label {
    position: absolute;
    bottom: 8px;
    left: 10px;
    z-index: 2;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;

    text-shadow: 0 2px 6px rgba(0,0,0,0.85);
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 8px;
    border-radius: 4px;
}

.map-item.selected {
    box-shadow: 0 0 0 2px var(--primary);
}

.map-item.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.map-item.banned::after {
    content: 'BANNED BY TEAM ' attr(data-banned-by);
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(255,70,85,0.7),
            rgba(255,70,85,0.2)
    );
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,0.95);
}

.map-item.banned::before {
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.82) 0%,
            rgba(0,0,0,0.35) 55%,
            rgba(0,0,0,0.15) 100%
    );
}

/* Side pick cards are centered and look like screenshot */
.side-selection {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
}

.side-card {
    width: 170px;
    height: 130px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;

    background: var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover);
}

.side-card.selected {
    box-shadow: 0 0 0 2px var(--primary);
}

.side-card img {
    width: 28px;
    height: 28px;
    opacity: 0.95;
}

.side-card .side-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: white;
}

/* keep agent-card placeholders if you want parity later */
.agent-card {
    aspect-ratio: 2/3;
    border-radius: 4px;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--accent);
    margin: 3px;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover);
}

.agent-card.selected {
    border: 2px solid var(--primary);
}

.agent-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Picked maps should be tinted + team outline like the design */
.map-item.picked-a {
    box-shadow: 0 0 0 2px rgba(0,149,255,0.85);
}
.map-item.picked-a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,149,255,0.3));
    z-index: 2;
    pointer-events: none;
}

.map-item.picked-b {
    box-shadow: 0 0 0 2px rgba(0,255,149,0.85);
}
.map-item.picked-b::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(86,255,70,0.3));
    z-index: 2;
    pointer-events: none;
}

/* Picked maps should NOT just look disabled */
.map-item.picked-a.disabled,
.map-item.picked-b.disabled {
    opacity: 0.85;
}

.maps-grid.locked {
    pointer-events: none;
}

.maps-grid-lock {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary-alt);
    background: rgba(5, 6, 7, 0.45);
    border-radius: 6px;
    backdrop-filter: blur(2px);
}
