/* MAPS (val-maps.php) — extraido del <style> inline de la pagina. */
/* Misma fila de filtros/buscador que la pagina de agents. Maps no tiene
   botones de categoria, asi que la fila solo lleva el buscador (alineado a
   la derecha via margin-left:auto, igual que en agents). */
.val-filters {
    display: flex;
    gap: var(--sp-3);
    margin-bottom: var(--sp-9);
    flex-wrap: wrap;
    align-items: center;
}

.val-search {
    margin-left: auto;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-white);
    font-size: var(--fs-sm);
    font-family: inherit;
    width: 180px;
    outline: none;
    transition: border-color var(--t-fast);
}

.val-search:focus { border-color: var(--brand-accent); }

/* Layout */
.val-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-9);
    align-items: start;
}

@media (max-width: 900px) {
    .val-layout { grid-template-columns: 1fr; }
    .val-detail-panel { display: none !important; }
}

/* Map grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-6);
}

.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--t-fast), transform var(--t-fast);
    position: relative;
}

.map-card:hover  { border-color: var(--brand-accent); transform: translateY(-2px); }

.map-card.active { border-color: var(--brand-accent); box-shadow: var(--shadow-focus); }

.map-card-splash {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    background: var(--bg-input);
    display: block;
    transition: transform var(--t-slow) ease;
}

.map-card:hover .map-card-splash { transform: scale(1.04); }

.map-card-splash-wrap { overflow: hidden; }

.map-card-foot {
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border);
}

.map-card-name {
    font-size: var(--fs-md); font-weight: var(--fw-bold);
    color: var(--text-white);
    font-family: 'Teko', sans-serif;
    letter-spacing: .02em;
    margin-bottom: 2px;
}

.map-card-tactical { font-size: var(--fs-2xs); color: var(--text-muted); }

/* Detail panel */
.val-detail-panel {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 200px;
}

.mdp-splash {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-input);
}

.mdp-splash-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) ease;
}

.val-detail-panel:hover .mdp-splash-img { transform: scale(1.04); }

.mdp-name-over {
    position: absolute; bottom: 14px; left: 16px;
    font-family: 'Teko', sans-serif;
    font-size: var(--fs-5xl); font-weight: var(--fw-bold);
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.mdp-coord {
    position: absolute; bottom: 14px; right: 14px;
    font-size: var(--fs-2xs); color: rgba(255,255,255,.6);
}

.mdp-info { padding: 16px 18px; }

.mdp-tactical {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--brand-accent);
    background: rgba(var(--brand-accent-rgb,255,70,85),.1);
    border: 1px solid rgba(var(--brand-accent-rgb,255,70,85),.25);
    border-radius: var(--radius-sm); padding: 3px 10px;
    margin-bottom: var(--sp-4);
}

.mdp-lore { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-6); }

.mdp-minimap-wrap { text-align: center; margin-bottom: var(--sp-6); }

.mdp-callouts-title {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-muted); margin-bottom: var(--sp-3);
}

.mdp-callouts { display: flex; flex-wrap: wrap; gap: 5px; }

.mdp-callout-tag {
    font-size: var(--fs-2xs); padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-muted);
}

.val-spinner-wrap { display: flex; align-items: center; justify-content: center; height: 200px; }

@keyframes spin { to { transform: rotate(360deg); } }
