/* Modal de mapa — bandas y bares (Leaflet dark mode) */

.mapa-modal-native {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mapa-modal-native.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mapa-modal-native .mapa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.mapa-modal-native .mapa-container {
    position: relative;
    width: 100%;
    max-width: 1180px;
    height: min(88vh, 820px);
    background: linear-gradient(145deg, #0f0f0f, #1a1a2e);
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), var(--glow-blue);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mapa-modal-native.show .mapa-container {
    transform: translateY(0) scale(1);
}

/* Header */
.mapa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(139, 92, 246, 0.06));
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mapa-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mapa-header-title i {
    font-size: 1.35rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.mapa-header-title h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
}

.mapa-header-title span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.mapa-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mapa-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mapa-filter-btn i {
    font-size: 0.85rem;
}

.mapa-filter-btn.active[data-filter="bandas"] {
    color: var(--neon-purple);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.15);
}

.mapa-filter-btn.active[data-filter="bares"] {
    color: var(--neon-green);
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.12);
}

.mapa-topten-btn {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.08);
}

.mapa-topten-btn:hover {
    color: #ffe566;
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.mapa-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mapa-close-btn:hover {
    background: rgba(255, 0, 128, 0.15);
    border-color: rgba(255, 0, 128, 0.4);
    color: var(--neon-pink);
}

/* Body layout */
.mapa-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    flex: 1;
    min-height: 0;
}

.mapa-map-wrap {
    position: relative;
    min-height: 0;
    background: #0a0a0a;
}

#mapaLeaflet {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 1;
}

/* Leaflet dark overrides */
.mapa-modal-native .leaflet-container {
    background: #0a0a0a;
    font-family: var(--font-primary);
}

.mapa-modal-native .leaflet-control-zoom a {
    background: rgba(26, 26, 26, 0.95) !important;
    color: var(--text-primary) !important;
    border-color: rgba(0, 212, 255, 0.25) !important;
}

.mapa-modal-native .leaflet-control-zoom a:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--neon-blue) !important;
}

.mapa-modal-native .leaflet-control-attribution {
    background: rgba(10, 10, 10, 0.85) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.65rem;
}

.mapa-modal-native .leaflet-control-attribution a {
    color: rgba(0, 212, 255, 0.7) !important;
}

.mapa-modal-native .leaflet-popup-content-wrapper {
    background: rgba(20, 20, 30, 0.96);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.mapa-modal-native .leaflet-popup-tip {
    background: rgba(20, 20, 30, 0.96);
}

.mapa-modal-native .leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.mapa-popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mapa-popup-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-blue);
    margin-bottom: 6px;
}

/* Custom markers */
.mapa-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mapa-marker i {
    transform: rotate(45deg);
    font-size: 0.85rem;
    color: #fff;
}

.mapa-marker-banda {
    background: linear-gradient(135deg, #8B5CF6, #6366f1);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
}

.mapa-marker-bar {
    background: linear-gradient(135deg, #00FF88, #10b981);
    box-shadow: 0 4px 14px rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    transform: none;
    width: 34px;
    height: 34px;
}

.mapa-marker-bar i {
    transform: none;
}

.mapa-marker.selected {
    transform: rotate(-45deg) scale(1.15);
    z-index: 1000 !important;
}

.mapa-marker-bar.selected {
    transform: scale(1.15);
}

/* Sidebar */
.mapa-sidebar {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 212, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    min-height: 0;
    overflow: hidden;
}

.mapa-sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-secondary);
    gap: var(--space-md);
}

.mapa-sidebar-empty i {
    font-size: 2.5rem;
    color: rgba(0, 212, 255, 0.25);
}

.mapa-sidebar-empty p {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 22ch;
}

.mapa-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mapa-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.mapa-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.25);
    border-radius: 4px;
}

.mapa-detail-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mapa-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mapa-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mapa-detail-badge.bar {
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
}

.mapa-detail-badge.banda {
    color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.mapa-detail-badge.bar {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.mapa-detail-badge.live,
.mapa-live-badge {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.16), rgba(255, 107, 107, 0.07));
    border: 1px solid rgba(255, 107, 107, 0.38);
    box-shadow: 0 6px 18px rgba(255, 70, 85, 0.12);
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
}

.mapa-live-dot {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ff6b6b 0%, #ff4757 100%);
    animation: mapa-live-pulse 2.2s ease-in-out infinite;
}

.mapa-live-badge-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 8px 10px;
    min-width: 0;
}

.mapa-live-badge-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ff8f8f;
    line-height: 1;
}

.mapa-live-badge-show {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.mapa-live-band,
.mapa-live-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.2;
}

.mapa-live-band i,
.mapa-live-time i {
    font-size: 0.62rem;
    color: rgba(255, 143, 143, 0.9);
}

.mapa-live-time {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.mapa-live-time i {
    color: rgba(255, 255, 255, 0.55);
}

@keyframes mapa-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.mapa-live-badge-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mapa-live-badge-title {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mapa-live-badge-detail {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

@keyframes mapa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.mapa-detail-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mapa-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.mapa-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mapa-detail-meta i {
    color: var(--neon-blue);
    font-size: 0.75rem;
}

.mapa-detail-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.mapa-detail-section {
    margin-top: 4px;
}

.mapa-detail-section-title {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mapa-connection-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapa-connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.mapa-connection-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
}

.mapa-connection-item i {
    font-size: 0.8rem;
    color: var(--neon-purple);
    width: 16px;
    text-align: center;
}

.mapa-connection-item.bar-link i {
    color: var(--neon-green);
}

.mapa-connection-item span {
    font-size: 0.82rem;
    flex: 1;
}

.mapa-connection-item small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mapa-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: auto;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.mapa-reserve-btn-banda {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.9));
    color: #fff;
}

.mapa-reserve-btn-banda:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.mapa-reserve-btn-bar {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.85), rgba(16, 185, 129, 0.85));
    color: #0a0a0a;
}

.mapa-reserve-btn-bar:hover {
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.mapa-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 500;
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.mapa-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.mapa-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mapa-legend-dot.banda {
    background: linear-gradient(135deg, #8B5CF6, #6366f1);
}

.mapa-legend-dot.bar {
    background: linear-gradient(135deg, #00FF88, #10b981);
    border-radius: 3px;
}

/* Loading */
.mapa-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 10, 10, 0.85);
    z-index: 600;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.mapa-loading i {
    font-size: 1.8rem;
    color: var(--neon-blue);
    animation: mapa-spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
    .mapa-modal-native .mapa-container {
        height: 95dvh;
        height: 95vh;
        max-height: none;
    }

    .mapa-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .mapa-sidebar {
        border-left: none;
        border-top: 1px solid rgba(0, 212, 255, 0.12);
        max-height: 32vh;
    }

    .mapa-header {
        padding: 14px 16px;
    }

    .mapa-header-title h3 {
        font-size: 1rem;
    }

    .mapa-legend {
        bottom: 10px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mapa-modal-native {
        padding: 0;
        align-items: stretch;
    }

    .mapa-modal-native .mapa-container {
        width: 100%;
        max-width: none;
        height: 100dvh;
        height: 100vh;
        border-radius: 0;
    }

    .mapa-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: max(12px, env(safe-area-inset-top, 12px)) 12px 10px;
    }

    .mapa-header-title {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .mapa-header-title h3 {
        font-size: 0.92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mapa-header-title span {
        font-size: 0.62rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mapa-close-btn {
        grid-column: 2;
        grid-row: 1;
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        align-self: center;
    }

    .mapa-header-controls {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 2px;
    }

    .mapa-header-controls::-webkit-scrollbar {
        display: none;
    }

    .mapa-filter-btn {
        flex-shrink: 0;
        padding: 8px 11px;
    }

    .mapa-filter-btn span {
        display: none;
    }

    .mapa-body {
        grid-template-rows: 1fr minmax(88px, 24vh);
    }

    .mapa-sidebar {
        max-height: 24vh;
    }

    .mapa-sidebar-empty {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .mapa-sidebar-empty i {
        font-size: 1.4rem;
    }

    .mapa-sidebar-empty p {
        font-size: 0.76rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .mapa-header {
        padding-left: max(10px, env(safe-area-inset-left, 10px));
        padding-right: max(10px, env(safe-area-inset-right, 10px));
    }

    .mapa-filter-btn {
        padding: 8px 10px;
    }

    .mapa-body {
        grid-template-rows: 1fr minmax(80px, 22vh);
    }

    .mapa-sidebar {
        max-height: 22vh;
    }
}

/* ── Modal Top Ten ── */
.topten-modal-native {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.topten-modal-native.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.topten-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
}

.topten-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    background: linear-gradient(155deg, #0d0d12 0%, #1a1030 50%, #0f1a14 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topten-modal-native.show .topten-container {
    transform: translateY(0) scale(1);
}

.topten-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.07), rgba(139, 92, 246, 0.06));
    flex-shrink: 0;
}

.topten-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topten-trophy {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.topten-header-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.03em;
}

.topten-header-title span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 3px;
}

.topten-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topten-close-btn:hover {
    background: rgba(255, 0, 128, 0.15);
    border-color: rgba(255, 0, 128, 0.4);
    color: var(--neon-pink);
}

.topten-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.topten-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.topten-column:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.topten-column-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    flex-shrink: 0;
}

.topten-column:first-child .topten-column-head i {
    color: var(--neon-purple);
}

.topten-column:last-child .topten-column-head i {
    color: var(--neon-green);
}

.topten-column-head h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin: 0;
}

.topten-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topten-list::-webkit-scrollbar {
    width: 4px;
}

.topten-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 4px;
}

.topten-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.topten-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.topten-item-banda:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
}

.topten-item-bar:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.06);
}

.topten-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.topten-rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #1a1000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.topten-rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #1a1a1a;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.35);
}

.topten-rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.35);
}

.topten-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topten-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topten-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topten-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.topten-stats {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-mono);
}

.topten-stats i {
    color: #ffd700;
    font-size: 0.62rem;
}

.topten-arrow {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color var(--transition-fast);
}

.topten-item:hover .topten-arrow {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .topten-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .topten-column:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .topten-container {
        max-height: 92vh;
    }

    .topten-list {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .topten-modal-native {
        padding: 0;
    }

    .topten-container {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
}

/* Mini mapa flotante en página principal */
.mapa-float-preview {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 8500;
    width: 168px;
    height: 132px;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.mapa-float-preview:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 20px 48px rgba(0, 212, 255, 0.18), 0 0 0 1px rgba(0, 212, 255, 0.2);
}

.mapa-float-preview:focus-visible {
    outline: 2px solid #00D4FF;
    outline-offset: 3px;
}

.mapa-float-preview.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
}

.mapa-float-leaflet {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mapa-float-preview .leaflet-container {
    background: #0a0a0a;
    font-family: inherit;
}

.mapa-float-preview .leaflet-control-container {
    display: none;
}

.mapa-float-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 35%, rgba(10, 10, 10, 0.88) 100%);
    pointer-events: none;
}

.mapa-float-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    text-align: left;
}

.mapa-float-overlay i {
    color: #00D4FF;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-bottom: 1px;
}

@media (max-width: 768px) {
    .mapa-float-preview {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 132px;
        height: 108px;
        border-radius: 14px;
    }

    .mapa-float-label {
        font-size: 0.62rem;
    }
}
