/* Tours Page Styles */

/* Hero Section */
.tours-hero {
    height: 100vh;
    min-height: 700px;
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light);
    transition: all 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.tours-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Search Form */
.tour-search {
    background-color: rgba(17, 17, 17, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-item {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-item i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
}

.search-item select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-item select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.search-item select option {
    background-color: #222;
    color: white;
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    margin: -5px 0;
    animation: arrowAnimation 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
        top: 10px;
    }
    50% {
        opacity: 0;
        top: 30px;
    }
    100% {
        opacity: 1;
        top: 10px;
    }
}

@keyframes arrowAnimation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Destinations Intro Section */
.destinations-intro {
    background-color: var(--dark);
    padding: 100px 0;
    color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light);
}

.section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 20px;
}

.section-divider {
    position: relative;
    height: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
}

.section-divider::before,
.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 1px;
    width: 35%;
    background-color: rgba(255, 255, 255, 0.2);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.section-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.section-divider span i {
    font-size: 16px;
}

/* Destination Cards */
.destination-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.destination-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.destination-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 15px;
}

.card-btn {
    color: var(--primary);
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.card-btn i {
    transition: transform 0.3s ease;
}

.card-btn:hover {
    background-color: rgba(255, 107, 0, 0.2);
}

.card-btn:hover i {
    transform: translateX(5px);
}

/* Tours Section */
.tours-section {
    padding: 100px 0;
    background-color: #111;
    color: var(--light);
    position: relative;
}

.tours-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/srilanka-background.jpg') center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.tours-section .container {
    position: relative;
    z-index: 2;
}

.tours-section.dubai-section {
    background-color: #0c0c0c;
}

/* Tour Categories */
.tour-categories {
    margin-top: 60px;
}

.tour-category {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tour-category.reverse {
    flex-direction: row-reverse;
}

.category-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-content {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.category-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.category-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.feature-list li i {
    color: var(--primary);
    margin-right: 10px;
}

/* Tour Gallery */
.tour-gallery {
    margin-top: 40px;
    padding: 40px;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tour-gallery h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns */
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 300px; /* Fixed height for all images */
    width: 100%; /* Ensure full width of grid cell */
}


.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Featured Packages */
.featured-packages {
    padding: 100px 0;
    background-color: var(--dark);
    color: var(--light);
}

.packages-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.packages-slider::-webkit-scrollbar {
    display: none;
}

.package-card {
    flex: 0 0 350px;
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.package-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.package-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.package-price span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.package-price h4 {
    font-size: 22px;
    color: var(--primary);
    margin: 0;
}

.package-content {
    padding: 25px;
}

.package-rating {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 14px;
}

.package-rating span {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 5px;
}

.package-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.meta-item i {
    color: var(--primary);
    margin-right: 5px;
}

.package-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.slider-dots {
    display: flex;
    gap: 5px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: var(--light);
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .tour-category {
        flex-direction: column;
    }
    
    .tour-category.reverse {
        flex-direction: column;
    }
    
    .category-image {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .tours-hero {
        min-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .category-content {
        padding: 30px;
    }
    
    .category-content h3 {
        font-size: 24px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}