/* Nawigacja tabów - scrollowalna na mobile */
.tabs-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    padding-bottom: 5px;
}

.tabs-nav { 
    display: flex; 
    gap: 15px; 
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

/* Przyciski tabów */
.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap; /* Zapobiega łamaniu nazw miast */
}

.tab-btn:hover {
    color: #333;
}

/* Stan aktywny przycisku - z linią pod spodem */
.tab-btn.active { 
    font-weight: 700; 
    color: #3498db; /* Kolor dopasowany do Twojego spinnera */
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
}

/* Kontenery treści */
.tab-pane { 
    display: none; 
    min-height: 300px; /* Nieco większe, by uniknąć skakania layoutu przy ładowaniu */
    position: relative; 
    opacity: 0;
}

/* Animacja pojawiania się treści */
.tab-pane.active { 
    display: block; 
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stylizacja Loadera i Spinnera */
.tab-loader { 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding: 80px 0; 
    width: 100%; 
}

/* Dodatkowy tekst pod spinnerem (opcjonalnie) */
.tab-loader::after {
    content: 'Szukamy najlepszych ofert...';
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

.spinner { 
    width: 45px; 
    height: 45px; 
    border: 4px solid rgba(0,0,0,0.1); 
    border-top: 4px solid #3498db; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Komunikat o braku wyników */
.no-results {
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
    color: #777;
}
