/**
 * Travelio Tours Page Styles
 * Premium travel booking interface
 */

:root {
    --primary-blue: #0B5ED7;
    --dark-blue: #082B5C;
    --light-blue: #F3F8FF;
    --white: #FFFFFF;
    --text-dark: #16213A;
    --text-muted: #667085;
    --border-color: #E5EAF2;
    --success-green: #16A765;
    --star-color: #FFB020;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(11, 94, 215, 0.15);
}

/* Hero Section */
.tours-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(8, 43, 92, 0.85) 0%, rgba(11, 94, 215, 0.75) 100%),
                url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1920&h=600&fit=crop') center/cover;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 80px 20px 120px;
    margin-bottom: -80px;
}

.tours-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tours-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar-container {
    position: relative;
    z-index: 10;
}

.search-bar {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar .form-control,
.search-bar .form-select {
    height: 56px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.search-bar .form-control:focus,
.search-bar .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

.search-bar label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.search-bar .btn-search {
    height: 56px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-bar .btn-search:hover {
    background: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 30px 0 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-blue);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Main Content Layout */
.tours-content {
    padding: 40px 0 80px;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.filter-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.btn-reset {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-reset:hover {
    color: var(--dark-blue);
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.filter-search {
    position: relative;
    margin-bottom: 12px;
}

.filter-search input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.filter-option .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.show-more-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.show-more-btn:hover {
    color: var(--dark-blue);
}

/* Price Range Slider */
.price-range {
    padding: 20px 0;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Star Rating Filter */
.star-filter {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.star-filter input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.star-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.stars {
    color: var(--star-color);
    margin-right: 8px;
}

/* Results Header */
.results-header {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.results-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-dropdown label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    margin: 0;
}

.sort-dropdown select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    min-width: 200px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--light-blue);
    padding: 4px;
    border-radius: 8px;
}

.view-toggle button {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tour Card Grid */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Tour Card */
.tour-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tour-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.tour-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-image img {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.tour-badge.best-seller {
    background: var(--success-green);
}

.tour-badge.popular {
    background: var(--primary-blue);
}

.tour-badge.new {
    background: var(--star-color);
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn i {
    color: #FF385C;
    font-size: 1.1rem;
}

.wishlist-btn.active i {
    font-weight: 900;
}

.gallery-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.tour-card-content {
    padding: 20px;
}

.tour-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-blue);
    width: 16px;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: var(--star-color);
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 700;
    color: var(--text-dark);
}

.review-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.tour-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.btn-view-details {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.benefit-text h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.benefit-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Promotion Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%),
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=400&h=300&fit=crop');
    background-size: cover;
    background-blend-mode: overlay;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.promo-banner h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-banner p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-promo {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Top Destinations */
.destination-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.destination-item:last-child {
    border-bottom: none;
}

.destination-item:hover {
    padding-left: 8px;
}

.destination-item .name {
    font-weight: 600;
    color: var(--text-dark);
}

.destination-item .count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--light-blue);
}

.page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    background: var(--white);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .tours-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-sidebar,
    .right-sidebar {
        position: static;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .results-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-dropdown select {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .tours-hero {
        min-height: 350px;
        padding: 60px 20px 100px;
    }
    
    .tours-hero h1 {
        font-size: 2rem;
    }
    
    .tours-hero p {
        font-size: 1rem;
    }
    
    .search-bar {
        padding: 20px;
    }
    
    .tour-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        display: none;
    }
}
