/* =============================================
   TRANSPORTE - Interfaz mejorada
   Publico (colectivos) y Privado (taxis/remises)
   ============================================= */

/* Tabs de tipo de transporte */
.transport-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem;
    background: rgba(15, 15, 25, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(100, 100, 120, 0.2);
    width: fit-content;
}
.transport-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.transport-tab:hover {
    background: rgba(100, 100, 120, 0.15);
    color: #e2e8f0;
}
.transport-tab.active {
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.transport-tab.active[data-type="public"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.transport-tab.active[data-type="private"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.transport-tab .tab-icon {
    font-size: 1.2rem;
}
.transport-tab .tab-count {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

/* Filter bar */
.filter-bar-transport {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar-transport .search-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.filter-bar-transport .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.filter-bar-transport .search-input::placeholder {
    color: #64748b;
}
.filter-results {
    color: #64748b;
    font-size: 0.8rem;
}

/* Grid de transporte */
.transport-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.transport-grid.private-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* =============================================
   CARD DE COLECTIVO (Transporte Publico) - Layout mejorado
   ============================================= */

.bus-card {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.98), rgba(15, 15, 30, 0.99));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bus-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 40, 0.99));
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.bus-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bus-line-badge {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.bus-card-info {
    flex: 1;
    min-width: 0;
}
.bus-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
}
.bus-card-route {
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.bus-card-schedule {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 0.75rem;
}

.bus-schedule-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.bus-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.4rem;
}

.bus-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.bus-schedule-day {
    color: #94a3b8;
    font-weight: 500;
}

.bus-schedule-time {
    color: #e2e8f0;
    font-weight: 600;
}

.bus-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.bus-card-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.bus-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #94a3b8;
}
.bus-detail-icon {
    font-size: 0.9rem;
}
.bus-detail-value {
    color: #e2e8f0;
    font-weight: 600;
}

.btn-bus-info {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.btn-bus-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* =============================================
   CARD DE TRANSPORTE PRIVADO (Taxi/Remis)
   ============================================= */

.private-card {
    background: linear-gradient(145deg, rgba(30, 25, 20, 0.98), rgba(20, 15, 10, 0.99));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.private-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s;
}
.private-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(245, 158, 11, 0.1);
}
.private-card:hover::before {
    opacity: 1;
}
.private-card.featured {
    border-color: rgba(245, 158, 11, 0.4);
}
.private-card.featured::after {
    content: 'DESTACADO';
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.private-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.private-type-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.private-card-info {
    flex: 1;
    min-width: 0;
}
.private-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fef3c7;
    margin-bottom: 0.25rem;
}
.private-card-type {
    font-size: 0.75rem;
    color: #fbbf24;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.private-card-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #4ade80;
    margin-bottom: 1rem;
}
.private-card-availability.limited {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}
.availability-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.private-card-zone {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.private-card-zone span:first-child {
    color: #f59e0b;
}

.private-card-actions {
    display: flex;
}
.btn-private-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-private-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.btn-private-whatsapp svg {
    width: 18px;
    height: 18px;
}

/* =============================================
   MODAL COLECTIVO
   ============================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}

.modal-bus {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.99), rgba(15, 15, 30, 1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(59, 130, 246, 0.15);
}
.modal-private {
    background: linear-gradient(145deg, rgba(30, 25, 20, 0.99), rgba(20, 15, 10, 1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(245, 158, 11, 0.15);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.7);
}

.modal-bus-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.modal-line-badge {
    min-width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.modal-bus-title {
    flex: 1;
}
.modal-bus-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.15rem;
}
.modal-bus-title p {
    font-size: 0.85rem;
    color: #60a5fa;
}

.modal-body {
    padding: 1rem 1.25rem;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.modal-info-item {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    text-align: center;
}
.modal-info-item.private {
    background: rgba(245, 158, 11, 0.1);
}
.modal-info-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}
.modal-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}
.modal-info-value.fare {
    color: #22c55e;
    font-size: 1rem;
}

.modal-section {
    margin-bottom: 1rem;
}
.modal-section-title {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.modal-route-visual {
    background: rgba(59, 130, 246, 0.06);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.route-stop {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}
.route-stop-dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.route-stop-name {
    font-size: 0.75rem;
    color: #e2e8f0;
}
.route-stop:first-child,
.route-stop:last-child {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}
.route-stop:first-child .route-stop-dot,
.route-stop:last-child .route-stop-dot {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

/* =============================================
   ESTADOS VACIOS Y CARGA
   ============================================= */

.transport-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
}
.transport-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.transport-empty h3 {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.transport-empty p {
    font-size: 0.9rem;
}

