/* Tours List Page Styles */

/* This CSS is specifically for the tours listing page (tours.html) */
/* Individual tour pages use tours.css instead */

/* Hero Section */
.tours-list-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0 30px 0;
    text-align: center;
    color: var(--white);
}

.tours-list-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);
}

.tours-list-hero p {
    font-size: 1rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

/* Search and Filter Section */
.tours-search-filter {
    padding: 0;
    background-color: transparent;
}

.search-filter-container {
    max-width: 800px;
    margin: 0 auto;
}

.tours-search-input {
    width: 100%;
    padding: 12px 60px 12px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.tours-search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 157, 62, 0.2);
}

.search-icon-tours {
    position: absolute;
    right: 25px;
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%) translateY(-0.75rem);
    /* Adjust for margin-bottom of input? No, Input margin is outside. */
    /* Wait, the icon is inside .search-wrapper along with input. Input has margin-bottom: 1.5rem. 
       If wrapper has relative, the icon is relative to wrapper. 
       Does wrapper have height = input height + margin? 
       Usually wrapper collapses to content. Input has margin. 
       If I use top: 50% of wrapper, it might be affected by input's margin if layout is flow.
       Let's check HTML structure. 
       <div class="search-wrapper">
          <input ... mb-1.5rem>
          <i ... absolute>
       </div>
       If input has margin-bottom, the wrapper height includes it if block formatting context.
       The icon top:50% will be 50% of (Input height + Margin). That's wrong. It will be too low.
       Better: Remove margin-bottom from input and put it on the wrapper.
       OR, Keep fixed top for icon that matches padding.
       New padding: 12px. Font 16px. Border 2px.
       Total height (content-box? border-box? usually border-box).
       Let's assume standard border-box. 
       We want it centered in the input part.
       If padding is 12px, a safe top for icon is roughly 12px + border(2) + (line-height/2 - icon-height/2)?
       It's easier to just guess roughly 14px or 15px.
       Original: Padding 18 -> Top 18.
       New: Padding 12 -> Top 12?
       Let's try Top 13px.
       
       Better yet: Move margin-bottom to .search-wrapper.
       Then Top 50% works perfectly on the wrapper.
    */
    color: var(--text-light);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.tours-search-input {
    width: 100%;
    padding: 12px 60px 12px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    /* Margin moved to wrapper */
}

.tours-search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 157, 62, 0.2);
}

.search-icon-tours {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
    pointer-events: none;
}

.filter-buttons {
    display: inline-flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 60px;
    margin-top: 0.5rem;
}

.filter-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tours Content Section */
.tours-list-content {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Tours Grid */
.tours-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1rem;
}

/* Tour Card - Reusing from style.css but with specific adjustments */
.tour-card-list {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tour-card-list:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tour-card-list .tour-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-card-list .tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card-list:hover .tour-img img {
    transform: scale(1.05);
}

.tour-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-card-list .tour-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-card-list .tour-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.tour-card-list .tour-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.tour-card-list .tour-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tour-card-list .tour-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tour-card-list .tour-detail-item i {
    color: var(--primary-color);
    width: 18px;
}

.tour-card-list .tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tour-price-tag .from {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.btn-view-tour {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-view-tour:hover {
    background-color: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

/* No Results Message */
.no-tours-found {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-tours-found.show {
    display: block;
}

.no-tours-found i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-tours-found h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-tours-found p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Hidden class for filtering */
.tour-card-list.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tours-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tours-list-hero {
        padding: 120px 0 60px 0;
    }

    .tours-list-hero h1 {
        font-size: 2.2rem;
    }

    .tours-list-hero p {
        font-size: 1rem;
    }

    .tours-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tour-card-list .tour-img {
        height: 200px;
    }

    .tours-search-input {
        padding: 15px 50px 15px 20px;
        font-size: 0.95rem;
    }

    .search-icon-tours {
        right: 20px;
        /* top: 50% inherited */
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}