/* Hero Section - FIXED for mobile */
.tours-hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1935&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.5;
    padding: 0 10px;
}

/* Search Form - Modern Design - FIXED for mobile */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.search-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.search-tab {
    padding: 10px 15px;
    border: none;
    background: none;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.search-tab.active {
    color: var(--primary);
}

.search-tab.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 1;
    font-size: 1.1rem;
}

.form-control {
    padding-left: 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: 50px;
    transition: var(--transition);
    width: 100%;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: var(--transition);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 0.95rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.2);
}

/* Tour Cards - Modern Grid */
.tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tour-card .image-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.tour-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover img {
    transform: scale(1.05);
}

.tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-dark);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.tour-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    padding: 5px 10px;
}

.tour-price:before {
    content: '₹';
}

.tour-content {
    padding: 20px;
}

.tour-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.tour-meta i {
    color: var(--primary);
}

.tour-rating {
    color: var(--accent);
    margin-bottom: 10px;
}

.tour-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tour-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Custom Tour Builder */
.custom-tour-builder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    box-shadow: var(--shadow);
}

.builder-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.builder-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hotel-options, .meal-options, .activity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(42, 157, 143, 0.05);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(42, 157, 143, 0.1);
}

.option-card.selected:after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.builder-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Section Styles */
.section-title {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 0 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(50px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group h5 i {
    color: var(--primary);
}

.price-slider {
    width: 100%;
    margin: 20px 0;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Tour Grid */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 196, 106, 0.2);
}

/* Loading Animation */
.loading-spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design - UPDATED with better mobile fixes */
@media (max-width: 992px) {
    .tours-hero {
        min-height: 80vh;
        padding: 70px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        padding: 20px;
        margin-top: 15px;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tour-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .custom-tour-builder {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .tours-hero {
        min-height: 70vh;
        padding: 60px 0 20px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .search-container {
        padding: 15px;
        border-radius: 15px;
        margin-top: 10px;
        transform: none;
    }
    
    .search-tabs {
        margin-bottom: 15px;
    }
    
    .search-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .custom-tour-builder {
        padding: 20px 15px;
        margin: 40px 0;
        border-radius: 15px;
    }
    
    .step-content {
        padding: 20px 15px;
    }
    
    .builder-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .builder-navigation .btn {
        width: 100%;
    }
    
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .tours-hero {
        min-height: 60vh;
        padding: 50px 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .search-container {
        margin: 10px;
        padding: 15px 10px;
    }
    
    .search-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .form-control {
        height: 45px;
        padding-left: 40px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group i {
        left: 12px;
        font-size: 1rem;
    }
    
    .search-btn {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hotel-options, .meal-options, .activity-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option-card {
        padding: 15px;
    }
    
    .filter-sidebar {
        padding: 20px 15px;
        margin-bottom: 20px;
        position: static;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .search-tab {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .form-control {
        height: 42px;
        font-size: 14px;
    }
    
    .search-btn {
        height: 42px;
        font-size: 0.85rem;
    }
    
    .tour-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
}

/* Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure container padding on mobile */
.container {
    padding-right: 15px;
    padding-left: 15px;
}