/* Destinations Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #00BCD4, #E91E63);
    background-image: 
        linear-gradient(135deg, rgba(0, 188, 212, 0.85), rgba(233, 30, 99, 0.85)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1200&h=400&fit=crop&auto=format');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header h1 .cursive-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Destination Type Switcher */
.destination-switcher {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.switcher-labels {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px;
}

.switcher-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 40px;
    border-radius: 50px;
    background: transparent;
}

.switcher-label.active {
    color: white;
    background: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.switcher-label:hover:not(.active) {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Main Layout */
.destinations-main {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.destinations-layout {
    display: grid;
    grid-template-columns: 1fr; /* removed desktop sidebar column to let content take full width */
    gap: 40px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

/* Hide desktop-only filter sidebar now that we removed desktop markup */
.filters-sidebar.desktop-filters {
    display: none;
}

.filters-sidebar.mobile-filters {
    display: none; /* Hide mobile filters on desktop */
}

.filter-section {
    margin-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 24px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Price Range */
.price-range {
    margin-bottom: 16px;
}

.price-slider {
    position: relative;
    margin-bottom: 20px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.range-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-input label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.price-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.show-more {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tours Content */
.tours-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hide duplicate filter sections inside tours-content (they should only be in sidebar) */
.tours-content .filter-section {
    display: none !important;
}

/* Results Header */
.results-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.results-count span {
    color: #667eea;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Tours Grid */
.tours-grid {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Tour Card */
.tour-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    background: white;
    color: #e74c3c;
}

.wishlist-btn.active {
    color: #e74c3c;
}

.tour-content {
    padding: 20px;
}

.tour-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.stars i {
    color: #ffc107;
}

.location {
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.tour-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-details {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #6c757d;
}

.tour-details i {
    margin-right: 4px;
}

.tour-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.9rem;
}

.price-from {
    color: #6c757d;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.price-unit {
    color: #6c757d;
}

/* Pagination */
.pagination {
    padding: 24px 32px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination-info {
    margin-left: auto;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Active Navigation */
.nav-menu a.active {
    color: #667eea;
    font-weight: 600;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none; /* Hide mobile filter toggle completely */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .destinations-layout {
        grid-template-columns: 1fr; /* Single column layout on tablet/mobile */
    }
    
    /* Hide ALL filters on tablet/mobile - target both desktop and mobile filters */
    .filters-sidebar,
    .filters-sidebar.desktop-filters,
    .filters-sidebar.mobile-filters {
        display: none !important;
    }
    
    /* Hide individual filter sections that are not wrapped in sidebar */
    .tours-content .filter-section {
        display: none !important;
    }
    
    /* Hide mobile filter toggle button */
    .mobile-filter-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 80px;
        padding: 60px 0 50px;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        margin-top: 0;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .destinations-main {
        padding: 40px 0;
    }
    
    .results-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .tours-grid {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        padding: 20px;
        flex-wrap: wrap;
    }
    
    .pagination-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .filters-sidebar {
        padding: 16px;
    }
    
    .filter-section {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .tour-card {
        margin: 0 -4px;
    }
    
    .tour-content {
        padding: 16px;
    }
}

/* Destinations CTA Section */
.destinations-cta {
    padding: 80px 0;
    background: #00843d;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.destinations-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.destinations-cta .container {
    position: relative;
    z-index: 2;
}

.destinations-cta .cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.destinations-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsive Destinations CTA */
@media (max-width: 768px) {
    .destinations-cta {
        padding: 60px 0;
    }
    
    .destinations-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .destinations-cta .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}