/* Vista de mapa inmersiva de /valorant/lineups (js/valorant/lineups-map.js) */
.lu-view .seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.lu-view .seg-slider { background: var(--valorant-red, #ff4655); }
.lu-view:not(.has-slider) .seg-btn.active { background: var(--valorant-red, #ff4655); color: #fff; }

/* Escenario: ocupa el alto de la pantalla bajo la barra superior */
.lmap { position: relative; overflow: hidden; height: calc(100vh - var(--vshell-top-h, 60px) - 40px); min-height: 560px; scroll-margin-top: calc(var(--vshell-top-h, 60px) + 16px);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.08)); border-radius: var(--radius-md, 12px); background: #0a0a0a; isolation: isolate; }
.lmap:fullscreen { height: 100vh; border-radius: 0; border: 0; }
.lmap-bg { position: absolute; inset: -40px; z-index: -2; background: center / cover no-repeat; filter: blur(18px) brightness(.32) saturate(1.2); transition: background-image .3s; }
.lmap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(8,8,8,.85)); }

.lmap-title { position: absolute; left: 24px; top: 18px; z-index: 3; pointer-events: none; }
.lmap-title small { display: block; font: 600 11px var(--font-mono, ui-monospace, monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.lmap-title b { display: block; font-size: 40px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; color: #fff; }

/* Mapas en miniatura (columna izquierda) */
.lmap-maps { position: absolute; left: 24px; top: 128px; bottom: 120px; z-index: 3; width: 148px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; }
.lmap-mapbtn { position: relative; flex: none; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: #1a1a1a center / cover no-repeat; color: #fff; font: 700 11.5px var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: flex-end; padding-bottom: 6px; opacity: .55; transition: opacity .15s; }
.lmap-mapbtn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), transparent); }
.lmap-mapbtn span { position: relative; }
.lmap-mapbtn:hover { opacity: .85; }
.lmap-mapbtn.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--valorant-red, #ff4655); }

/* Herramientas de zoom (derecha) */
.lmap-tools { position: absolute; right: 16px; top: 16px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.lmap-tools button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
    background: rgba(18,18,20,.72); backdrop-filter: blur(10px); color: var(--text-white); cursor: pointer; }
.lmap-tools button:hover { background: rgba(40,40,44,.85); }
.lmap-tools svg { width: 16px; height: 16px; }

/* Barra del modo foco */
.lmap-focusbar { position: absolute; left: 50%; top: 16px; z-index: 4; transform: translate(-50%, -8px); display: flex; align-items: center; gap: 12px;
    max-width: calc(100% - 360px); padding: 6px 14px 6px 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    background: rgba(18,18,20,.8); backdrop-filter: blur(12px); font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.lmap.is-focus .lmap-focusbar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lmap-focusbar b { color: var(--valorant-red, #ff4655); }
.lmap-focusbar span { overflow: hidden; text-overflow: ellipsis; color: var(--text-white); }
.lmap-back { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.07);
    color: var(--text-white); font: 500 13px var(--font-sans); cursor: pointer; }
.lmap-back svg { width: 14px; height: 14px; }
.lmap.is-focus .lmap-title, .lmap.is-focus .lmap-maps { opacity: 0; pointer-events: none; }
.lmap-title, .lmap-maps { transition: opacity .2s; }

/* Minimapa con zoom y arrastre */
.lmap-stage { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; overflow: hidden; cursor: default; touch-action: none; }
.lmap-stage.dragging { cursor: grabbing; }
.lmap-view { width: min(78vh, 100% - 380px, 820px); aspect-ratio: 1 / 1; transform-origin: 50% 50%; will-change: transform; }
.lmap-view.anim { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.lmap-map { position: relative; width: 100%; height: 100%; }
.lmap-img { width: 100%; height: 100%; object-fit: contain; opacity: .9; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 20px 60px rgba(0,0,0,.7)); }
.lmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lmap-lines line { stroke-width: .35; stroke-dasharray: 1.2 .9; opacity: .35; transition: opacity .15s, stroke-width .15s; vector-effect: none; }
.lmap-map.has-on .lmap-lines line:not(.on), .lmap-stage.has-on .lmap-lines line:not(.on) { opacity: .08; }
@keyframes lmap-flow { to { stroke-dashoffset: -4.2; } }
.lmap-lines line.atk { stroke: #FF4655; } .lmap-lines line.def { stroke: #3BA6FF; }
.lmap-lines line.on { opacity: 1; stroke-width: .5; animation: lmap-flow .6s linear infinite; }
.lmap.is-focus .lmap-lines line.on { stroke-dasharray: none; stroke-width: .45; animation: none; }
@media (prefers-reduced-motion: reduce) { .lmap-lines line.on { animation: none; } .lmap-view.anim { transition: none; } }
.lmap-pt { position: absolute; z-index: 2; width: 30px; height: 30px; padding: 0; transform: translate(-50%, -50%); border: 2px solid var(--c); border-radius: 50%;
    background: #111; display: grid; place-items: center; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .2s; }
.lmap-pt.atk { --c: #FF4655; } .lmap-pt.def { --c: #3BA6FF; }
.lmap-pt img { width: 24px; height: 24px; border-radius: 50%; pointer-events: none; }
.lmap-pt.locked img { opacity: .55; }
.lmap-pt:hover, .lmap-pt.on, .lmap-pt:focus-visible { z-index: 4; transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); outline: none; }
.lmap.is-focus .lmap-pt:not(.on), .lmap.is-focus .lmap-land:not(.on) { opacity: .15; }
.lmap-land { position: absolute; z-index: 1; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 1px solid var(--c); border-radius: 6px;
    background: color-mix(in srgb, var(--c) 25%, #111); display: grid; place-items: center; opacity: .75; pointer-events: none; transition: opacity .15s, transform .15s, box-shadow .15s; }
.lmap-stage.has-on .lmap-land:not(.on) { opacity: .25; }
.lmap-land:empty::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.lmap-land.atk { --c: #FF4655; } .lmap-land.def { --c: #3BA6FF; }
.lmap-land img { width: 14px; height: 14px; filter: brightness(2); }
.lmap-land.on { opacity: 1; transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); z-index: 3; }

/* Ventanita al pasar el ratón */
.lmap-pop { position: absolute; z-index: 6; width: 240px; overflow: hidden; border: 1px solid var(--border-hover, rgba(255,255,255,.16)); border-radius: 12px;
    background: #111; box-shadow: 0 18px 40px rgba(0,0,0,.6); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .12s, transform .12s; }
.lmap-pop.on { opacity: 1; transform: none; }
.lmap-vid { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #0a0a0a; color: rgba(255,255,255,.7); }
.lmap-vid video, .lmap-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lmap-vid svg { position: relative; width: 28px; height: 28px; }
.lmap-vid--lock { gap: 4px; font-size: 12px; color: var(--text-gray); }
.lmap-pop-b { padding: 10px 12px; }
.lmap-pop-b b { display: block; font-size: 13px; color: var(--text-white); }
.lmap-pop-b small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.lmap-tap { color: var(--val-red, #FF4655) !important; }

/* Leyenda abajo a la izquierda */
.lmap-legend { position: absolute; left: 24px; top: 76px; z-index: 3; display: flex; flex-wrap: wrap; gap: 14px; max-width: calc(50% - 40px); font-size: 12px; color: var(--text-muted); pointer-events: none; }
.lmap-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.lmap-legend i.atk { background: #FF4655; } .lmap-legend i.def { background: #3BA6FF; }
.lmap-legend i.sq { border-radius: 3px; background: transparent; border: 1px solid var(--text-muted); }
.lmap-hint { flex-basis: 100%; }
.lmap.is-focus .lmap-legend { opacity: 0; }
.lmap-none { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; margin: 0; padding: 12px 16px; border-radius: 10px; background: rgba(18,18,20,.85); font-size: 14px; color: var(--text-gray); }
.lmap-empty { margin: 0; padding: 40px 16px; font-size: 14px; color: var(--text-gray); text-align: center; }
.lmap-empty b { color: var(--text-white); }

@media (max-width: 1000px) {
    .lmap { height: auto; min-height: 0; }
    .lmap-stage { position: relative; padding: 70px 8px 60px; }
    .lmap-view { width: 100%; }
    .lmap-maps { position: relative; left: auto; top: auto; bottom: auto; width: auto; flex-direction: row; overflow-x: auto; padding: 0 12px; margin-top: 64px; }
    .lmap-mapbtn { width: 110px; }
    .lmap-title { left: 14px; top: 12px; } .lmap-title b { font-size: 28px; }
    .lmap-tools { top: 12px; right: 12px; flex-direction: row; }
    .lmap-legend { position: static; max-width: none; padding: 0 14px 14px; }
    .lmap-hint { display: none; }
    .lmap-focusbar { max-width: calc(100% - 24px); top: 64px; }
    .lmap-pop { width: 200px; } .lmap-pt { width: 26px; height: 26px; } .lmap-pt img { width: 20px; height: 20px; }
}
@media (min-width: 1001px) { body.lu-has-drawer .lmap-view { width: min(78vh, 100% - 200px, 820px); } }
@media (min-width: 1001px) { body.lu-has-drawer .lmap-focusbar { left: calc(50% - 200px); max-width: calc(100% - 900px + 360px); } }
