/* Tours Page Styles */

/* Scrollbar hide utility */
.scrollbar-hide {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Filter container transitions */
#filters-container {
    transition: transform 0.3s ease-out;
}

#filters-backdrop {
    transition: opacity 0.3s;
}

/* View toggle button active state */
.view-toggle-btn.active {
    background-color: #f8f9fc;
    color: var(--primary-color, #3b82f6);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Tour card hover effects */
.tour-card {
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-2px);
}

/* Favorite button transitions */
.favorite-btn {
    transition: all 0.2s ease;
}

/* Price input formatting */
.price-input {
    text-align: center;
}

/* Mobile filter overlay */
@media (max-width: 1023px) {
    #filters-container {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* Loading state */
.tours-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.tours-loading .spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary-color, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error state */
.tours-error {
    text-align: center;
    padding: 3rem 0;
    color: #ef4444;
}

/* Notification styles */
.tour-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .tour-notification {
        background-color: #1f2937;
        border-color: #374151;
    }
}
