/* Page Header */
.page-header {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
    color: white;
    padding: 3rem 5%;
    text-align: center;
    margin-top: 8px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    gap: 2rem;
}

/* Sidebar Filters */
.sidebar {
    flex: 0 0 280px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 0.8rem;
}

.filter-input:focus {
    outline: none;
    border-color: #3ffa6e;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.filter-group label:hover {
    background: #f0f0f0;
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.filter-button {
    width: 100%;
    padding: 0.8rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.filter-button:hover {
    background: #5568d3;
}

.clear-filters {
    width: 100%;
    padding: 0.8rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.clear-filters:hover {
    background: #667eea;
    color: white;
}

/* Tours Content */
.tours-content {
    flex: 1;
}

.tours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    color: #666;
    font-size: 1rem;
}

.view-sort-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

/* Tour Cards Grid View */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tour-image {
    width: 100%;
    height: 220px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

/* Gallery Images */
.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    pointer-events: auto;
}

.tour-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tour-badge.bestseller {
    background: #ffa500;
}

.tour-badge.new {
    background: #4ecdc4;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.tour-content {
    padding: 1.5rem;
}

.tour-category {
    display: inline-block;
    background: #e8eaf6;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tour-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tour-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tour-detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffa500;
}

.review-count {
    color: #999;
    font-size: 0.9rem;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.tour-price {
    font-size: 1.5rem;
    color: #ff6b6b;
    font-weight: bold;
}

.price-label {
    font-size: 0.8rem;
    color: #999;
    display: block;
}

.tour-card .book-btn {
    background: #667eea;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-card .book-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* List View */
.tours-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tour-card.list-view {
    display: flex;
    flex-direction: row;
    height: auto;
}

.tour-card.list-view .tour-image {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}

.tour-card.list-view .tour-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card.list-view .tour-footer {
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        flex: 1;
        position: static;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .tour-card.list-view {
        flex-direction: column;
    }

    .tour-card.list-view .tour-image {
        width: 100%;
        height: 220px;
    }

    .view-sort-controls {
        flex-wrap: wrap;
    }

    /* Filter Toggle Button (shows on mobile) */
    .filter-toggle-btn {
        display: block;
        width: 100%;
        padding: 1rem;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        background: linear-gradient(135deg, #3712bd 0%, #57dd18 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .filter-toggle-btn .icon {
        transition: transform 0.3s;
    }

    .filter-toggle-btn.active .icon {
        transform: rotate(180deg);
    }

    /* Sidebar becomes collapsible */
    .sidebar {
        position: fixed;
        display: none;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 80px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 998;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
    }

    .sidebar.open {
        transform: translateY(0);
        display: initial;
    }

    /* Overlay background when filters are open */
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
    }

    .filter-overlay.active {
        display: block;
    }

    /* Filter sections - make them more compact */
    .filter-section {
        margin-bottom: 1.5rem;
    }

    .filter-section h3 {
        font-size: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .filter-group label {
        padding: 0.4rem 0.3rem;
        font-size: 0.95rem;
    }

    /* Sticky filter buttons at bottom */
    .filter-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem 0 0;
        margin-top: 1rem;
        border-top: 2px solid #e0e0e0;
        display: flex;
        gap: 0.5rem;
    }

    .filter-button,
    .clear-filters {
        flex: 1;
        margin-top: 0;
    }
}

/* Alternative: Horizontal Scrolling Filters */
/*@media (max-width: 768px) {
    /* If you prefer horizontal scrolling filters 
    .sidebar.horizontal-scroll {
        position: static;
        transform: none;
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar.horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    .sidebar.horizontal-scroll .filter-section {
        min-width: 200px;
        margin-bottom: 0;
    }
}*/

/*EVENTS PAGE*/
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --bg: #f4f4f4;
    --white: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

.calendar {
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 5px var(--shadow);
    text-align: center;
    margin-top: 10px;
}

.event-card {
    background: var(--white);
    box-shadow: 0 2px 5px var(--shadow);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.event-card h3 {
    margin-top: 0;
    color: var(--accent);
}

.event-details {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.event-description {
    margin: 1rem 0;
}

.event-card .book-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.event-card .book-btn:hover {
    background: #d35400;
}

@media (max-width: 768px) {
    .filters {
    flex-direction: column;
    }
}