/* ===========================================
   MAPA INTERACTIVO DE STANDS
   Primer Congreso de Turismo Carmen 2026
   ─ Todos los stands son 44×44px
   ─ Posiciones vía inline style en el HTML
   =========================================== */

/* ── Container ─────────────────────────────── */
.map-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    display: flex;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}
.map-container {
    position: relative;
    width: 960px;
    height: 680px;
    background: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

/* ── Title ─────────────────────────────────── */
.map-header {
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}
.map-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* ── Floor Outlines (Walls) ────────────────── */
.floor-upper {
    position: absolute;
    top: 72px; left: 48px;
    width: 864px; height: 400px;
    border: 2.5px solid #1e293b;
    pointer-events: none;
}
.floor-lower {
    position: absolute;
    top: 472px; left: 48px;
    width: 727px; height: 175px;
    border: 2.5px solid #1e293b;
    border-top: none;
    pointer-events: none;
}

/* ── Door Markers (Purple) ─────────────────── */
.door {
    position: absolute;
    background: #7c3aed;
    border-radius: 1px;
    z-index: 2;
}

/* ── Zone Labels ───────────────────────────── */
.zone {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 2px;
    z-index: 3;
    pointer-events: none;
}
.zone-escenario {
    top: 195px; left: 66px;
    width: 110px; height: 80px;
    background: #FDE047;
    border: 2px solid #1e293b;
    font-size: 13px;
}
.zone-talleres {
    top: 218px; left: 184px;
    width: 110px; height: 60px;
    color: #1e293b;
    font-size: 13px;
}
.zone-pabellon {
    top: 555px; left: 55px;
    width: 130px; height: 70px;
    background: #9D174D;
    color: white;
    font-size: 11px;
}
.zone-arco {
    top: 472px; left: 775px;
    width: 38px; height: 175px;
    background: #9D174D;
    color: white;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 16px;
    letter-spacing: 3px;
    border: 2.5px solid #1e293b;
    border-left: none;
}
.zone-recepcion {
    top: 456px; left: 836px;
    width: 76px; height: 26px;
    background: #9D174D;
    color: white;
    font-size: 11px;
}

/* ── Stand Base ────────────────────────────── */
.stand {
    position: absolute;
    width: 44px;
    height: 44px;
    background: #FDE047;
    border: 1.5px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    z-index: 5;
    text-align: center;
    line-height: 1.1;
}
.stand:hover {
    background: #FACC15;
    transform: scale(1.08);
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Occupied */
.stand.occupied {
    background: #e2e8f0;
    color: #475569;
    border-color: #94a3b8;
    cursor: not-allowed;
}
.stand.occupied:hover {
    transform: none;
    box-shadow: none;
    background: #e2e8f0;
}
.stand.occupied .stand-number { display: none; }
.stand.occupied .stand-company { display: flex; }
.stand .stand-company {
    display: none;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    overflow: hidden;
    padding: 2px;
    word-break: break-word;
}

/* Selected */
.stand.selected {
    background: #10B981;
    color: white;
    border-color: #047857;
    transform: scale(1.12);
    z-index: 20;
    box-shadow: 0 0 12px rgba(16,185,129,.5);
}
