/* Tours Page Specific Styles */

/* Page Header */
.tours-header {
    min-height: 50vh;
    background: linear-gradient(rgba(45, 95, 63, 0.7), rgba(255, 153, 51, 0.4)),
                url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 120px 20px 60px;
}

/* Tour Filters */
.tour-filters {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box i.fa-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.search-box .clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.search-box .clear-search:hover {
    color: var(--primary-green);
}

.search-results-info {
    text-align: center;
    padding: 10px;
    color: var(--primary-green);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-green);
    background: white;
    color: var(--primary-green);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-green);
    color: white;
}

/* Tours Sections */
.tours-section {
    background: var(--light-cream);
}

.tours-section:nth-child(even) {
    background: white;
}

/* Tour Card Enhancements */
.tour-card {
    position: relative;
    height: 350px;
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    z-index: 1;
}

.tour-card:hover::before {
    opacity: 1;
}

.tour-info {
    z-index: 2;
}

.tour-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.tour-card:hover .tour-details {
    opacity: 1;
    transform: translateY(0);
}

.tour-duration,
.tour-highlights {
    font-size: 0.9rem;
    margin-top: 8px;
}

.tour-duration i {
    margin-right: 5px;
    color: var(--primary-orange);
}

/* Tour Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: slideDown 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-orange);
    transform: scale(1.2);
}

#modal-body {
    color: var(--text-dark);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
}

.modal-details h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-details p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: var(--light-cream);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.info-item h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.modal-highlights {
    margin: 30px 0;
}

.modal-highlights h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.highlights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.highlight-item {
    background: var(--light-cream);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-orange);
}

.modal-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-cream);
}

/* Hidden State */
.tours-section.hidden {
    display: none;
}

/* CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
}

.contact-cta .section-title {
    color: white;
}

.contact-cta .section-title::after {
    background: var(--primary-orange);
}

.contact-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 968px) {
    .tour-card {
        height: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-image {
        height: 300px;
    }

    .modal-details {
        padding: 30px 20px;
    }

    .modal-details h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .tours-header {
        min-height: 40vh;
        padding: 100px 20px 40px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tour-card {
        height: 250px;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-image {
        height: 250px;
    }

    .modal-details {
        padding: 20px 15px;
    }

    .modal-details h2 {
        font-size: 1.4rem;
    }

    .modal-info {
        grid-template-columns: 1fr;
    }

    .highlights-list {
        grid-template-columns: 1fr;
    }
}