/* ============================================================
   Mapa de lugares del comprador (eventos) — mobile first.
   Overlay propio (sin librerías). Colores con contraste AA.
   ============================================================ */
.dtpev-overlay {
    position: fixed; inset: 0; z-index: 6000;
    background: rgba(11, 15, 25, .55);
    display: flex; align-items: flex-end; justify-content: center;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.dtpev-modal {
    background: #fff; width: 100%; max-width: 860px;
    border-radius: 22px 22px 0 0; max-height: 96dvh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: dtpevUp .22s ease-out;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@keyframes dtpevUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
    .dtpev-overlay { align-items: center; padding: 18px; }
    .dtpev-modal { border-radius: 22px; max-height: 92dvh; }
}
.dtpev-head {
    background: #0b0f19; color: #fff; padding: 14px 18px;
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.dtpev-head .tt { flex: 1; min-width: 0; }
.dtpev-head .tt b { display: block; font-size: 1rem; line-height: 1.25; }
.dtpev-head .tt span { display: block; font-size: .78rem; color: #c7ccd6; margin-top: 2px; }
.dtpev-close {
    border: none; background: #ffffff22; color: #fff; border-radius: 10px;
    width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
}
.dtpev-sub {
    padding: 10px 16px 0; font-size: .88rem; font-weight: 700; color: #0b0f19;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dtpev-sub .falta { color: #b45309; }
.dtpev-sub .ok { color: #15803d; }
.dtpev-hold-info { font-size: .75rem; color: #6b7280; font-weight: 500; }
.dtpev-legend {
    display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 8px 16px;
    font-size: .76rem; color: #374151; flex-shrink: 0;
}
.dtpev-legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-inline-end: 4px; }
/* El contenedor NO scrollea (los controles flotantes quedan siempre a la
   vista); el scroll vive en .dtpev-scroll, adentro. */
.dtpev-map {
    flex: 1; overflow: hidden; background: #f8fafc;
    border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb;
    position: relative; display: flex; min-height: 200px;
}
.dtpev-scroll {
    flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
    /* El plano es un espacio físico: el scroll se maneja siempre en LTR
       (las coordenadas no se espejan por idioma). */
    direction: ltr;
}
.dtpev-map-inner { width: max-content; margin: 0 auto; padding: 8px; }
.dtpev-map svg { display: block; touch-action: pan-x pan-y; }
.dtpev-zoom {
    position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5;
}
.dtpev-zoom button {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid #d1d5db;
    background: #ffffffee; font-size: 1.15rem; font-weight: 800; color: #0b0f19; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.dtpev-refresh {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 5;
    border: 1px solid #d1d5db; background: #ffffffee; border-radius: 10px;
    padding: 8px 12px; font-size: .8rem; font-weight: 700; color: #0b0f19; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.dtpev-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-shrink: 0; background: #fff;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dtpev-sel {
    flex: 1; min-width: 140px; font-size: .82rem; color: #374151; line-height: 1.4;
}
.dtpev-sel .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.dtpev-chip {
    background: #dbeafe; color: #1d4ed8; border-radius: 999px; padding: 2px 10px;
    font-weight: 800; font-size: .78rem;
}
.dtpev-btn {
    border: none; border-radius: 12px; padding: 13px 26px; font-weight: 800;
    font-size: .95rem; cursor: pointer; background: #0b0f19; color: #f5b301;
    flex: 1 1 auto; white-space: nowrap;
}
.dtpev-btn:disabled { opacity: .45; cursor: default; }
.dtpev-msg {
    margin: 0 16px 8px; border-radius: 10px; padding: 9px 12px; font-size: .82rem;
    font-weight: 600; display: none;
}
.dtpev-msg.warn { display: block; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.dtpev-msg.err  { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
/* Reserva en vuelo: el asiento ya se ve "mío" (respuesta visual instantánea)
   con un pulso sutil hasta que el server confirma. */
.dtpev-map [data-lug].dtpev-pend rect { animation: dtpevPend .9s ease-in-out infinite alternate; }
@keyframes dtpevPend { from { opacity: 1; } to { opacity: .55; } }
/* ---- Modo zona de pie: selector de cantidad (sin asientos) ---- */
.dtpev-zona {
    padding: 26px 18px 30px; text-align: center; max-width: 420px; margin: 0 auto;
}
.dtpev-zona-nombre { font-size: 1.05rem; font-weight: 800; color: #0b0f19; }
.dtpev-zona-ayuda { margin-top: 8px; font-size: .86rem; color: #4b5563; line-height: 1.45; }
.dtpev-qty {
    margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.dtpev-qty button {
    width: 52px; height: 52px; border-radius: 14px; border: 1px solid #d1d5db;
    background: #fff; font-size: 1.5rem; font-weight: 800; color: #0b0f19; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.08); touch-action: manipulation;
}
.dtpev-qty button:active { background: #f3f4f6; }
.dtpev-qty input {
    width: 92px; height: 52px; border-radius: 14px; border: 2px solid #0b0f19;
    text-align: center; font-size: 1.45rem; font-weight: 800; color: #0b0f19;
}
.dtpev-zona-max { margin-top: 10px; font-size: .78rem; color: #6b7280; font-weight: 600; }

.dtpev-spin { text-align: center; padding: 40px 0; color: #6b7280; }
.dtpev-spin::after {
    content: ""; display: inline-block; width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid #d1d5db; border-top-color: #0b0f19; animation: dtpevSpin .8s linear infinite;
}
@keyframes dtpevSpin { to { transform: rotate(360deg); } }

/* ---- Mapa INFORMATIVO ("Ver ubicación en el mapa") ---- */
.dtpev-zona-mapa {
    margin-top: 18px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
    border-radius: 12px; padding: 10px 16px; font-size: .88rem; font-weight: 700;
    cursor: pointer; touch-action: manipulation;
}
.dtpev-zona-mapa:active { background: #dbeafe; }
.dtpev-info-note { font-size: .78rem; color: #4b5563; line-height: 1.35; display: block; }
/* Sector propio: pulso MUY liviano para guiar la vista (solo opacidad). */
.dtpev-map .dtpev-info-mio { animation: dtpevInfoMio 1.6s ease-in-out infinite alternate; }
@keyframes dtpevInfoMio { from { fill-opacity: 1; } to { fill-opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .dtpev-map .dtpev-info-mio { animation: none; } }
/* Pill de la tarjeta (solo productos con evento). */
.dtp-ver-mapa {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
    border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
    border-radius: 999px; padding: 3px 12px; font-size: .76rem; font-weight: 700;
    cursor: pointer; touch-action: manipulation;
}
.dtp-ver-mapa:active { background: #dbeafe; }
