/* ==========================================
   Tours Filter Page - Enhanced Styles
   ========================================== */

/* Container */
.container-filter {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.filter-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #25adb9 0%, #1a8d97 100%);
    border-radius: 20px;
    color: #fff;
}

.filter-page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.filter-page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Filters Wrapper */
.filters-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Sidebar Filters */
.filters {
    width: 300px;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.filters h4 {
    margin: 0 0 15px;
    font-size: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters h4 i {
    color: #25adb9;
    font-size: 0.9rem;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Search Input */
.filter-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #25adb9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 173, 185, 0.1);
}

.filter-group input[type="text"]::placeholder {
    color: #aaa;
}

/* Select Dropdown */
.filter-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat left 15px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #25adb9;
    background-color: #fff;
}

/* Checkboxes */
.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-group label:hover {
    background: #f5f5f5;
}

.filter-group label:last-child {
    margin-bottom: 0;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #25adb9;
    cursor: pointer;
}

/* Price Slider */
#price-slider {
    margin: 20px 0;
}

#price-slider .noUi-connect {
    background: linear-gradient(135deg, #25adb9, #1a8d97);
}

#price-slider .noUi-handle {
    border: 3px solid #25adb9;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-weight: 600;
    color: #25adb9;
}

/* Reset Button */
#reset-filters {
    width: 100%;
    padding: 14px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#reset-filters:hover {
    background: #e8e8e8;
    color: #333;
}

/* Results Section */
.results {
    flex: 1;
    min-width: 0;
}

.results-count {
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-count::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #25adb9;
    border-radius: 2px;
}

/* Tours Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Tour Card */
.tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover img {
    transform: scale(1.05);
}

.tour-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.tour-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tour-card h3 a:hover {
    color: #25adb9;
}

.tour-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tour-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tour-meta i {
    color: #25adb9;
    font-size: 0.85rem;
}

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.tour-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #25adb9;
}

.tour-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

/* Book Button */
.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #25adb9 0%, #1a8d97 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-book:hover {
    background: linear-gradient(135deg, #1a8d97 0%, #147a83 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 173, 185, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #888;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #aaa;
}

/* Responsive */
@media (max-width: 1024px) {
    .filters {
        width: 260px;
    }
}

@media (max-width: 900px) {
    .filters-wrap {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        position: static;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container-filter {
        padding: 15px;
    }

    .filter-page-header h1 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .tour-card img {
        height: 160px;
    }
}
/* Dark Mode Overrides for Filter Page */
body.dark-mode .filters,
body.dark-mode .no-results {
    background-color: var(--card-bg) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .filters h4,
body.dark-mode .results-count {
    color: var(--text-main);
}

body.dark-mode .filter-group {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .filter-group input[type="text"],
body.dark-mode .filter-group select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

body.dark-mode .filter-group label {
    color: #ccc;
}

body.dark-mode .filter-group label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode #reset-filters {
    background-color: rgba(255, 255, 255, 0.1);
    color: #eee;
}

body.dark-mode #reset-filters:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .tour-card {
    background-color: var(--card-bg);
}

body.dark-mode .tour-card h3 a {
    color: var(--text-main);
}

body.dark-mode .tour-card-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

