/* /es/servicios/p2p/css/style.css (actualizado mapa oscuro elegante) */

/* Animaciones suaves */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-down {
    animation: fadeDown 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tabs de servicio (sticky bar) */
.service-tab {
    opacity: 0.5;
    transition: all 0.25s ease;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.service-tab:hover {
    opacity: 0.8;
}

.service-tab.active {
    opacity: 1;
    color: #ea580c;           /* brand orange */
    border-bottom-color: #ea580c;
}

/* Contenido principal */
#content-area {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas grandes */
#content-area .bg-white,
#content-area .bg-gradient-to-br {
    border-radius: 1.75rem;
}

/* MAPA P2P – Modo oscuro elegante */
#map {
    height: 700px;
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35); /* slate-400/35 */
}

/* Ajuste visual del contenedor Leaflet */
.leaflet-container {
    background: #020617; /* slate-950 */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Popups estilo LogiHub */
.leaflet-container .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.98);  /* slate-900 */
    color: #e5e7eb;                       /* slate-200 */
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0;
}

.leaflet-container .leaflet-popup-content {
    margin: 0.9rem 1rem 0.95rem;
    line-height: 1.4;
    font-size: 0.875rem; /* text-sm */
}

.leaflet-container .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.98);
}

/* Contenido de popup P2P */
.lh-popup strong {
    font-weight: 800;
    color: #f97316; /* orange-500 */
}

.lh-popup {
    color: #e5e7eb;
}

/* Iconos hub / sucursal con glow ligero */
.lh-hub-icon img,
.lh-branch-icon img,
.lh-hub-icon,
.lh-branch-icon {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

/* Responsivo */
@media (max-width: 1024px) {
    #map {
        height: 560px;
    }

    #content-area .bg-white,
    #content-area .bg-gradient-to-br {
        border-radius: 1.5rem;
    }
}

@media (max-width: 768px) {
    #map {
        height: 480px;
        border-radius: 1.25rem;
    }

    .service-tab {
        font-size: 0.85rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    #content-area {
        margin-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    #map {
        height: 420px;
    }

    .service-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}
