/* ----------------- MMB Community Tours Explorer CSS ----------------- */

.tours-page-header {
    background: linear-gradient(rgba(11, 48, 16, 0.7), rgba(11, 48, 16, 0.85)), 
                url("/media/photos/Main/Treks_from_Pune__Mumbai_with_TIB_Community-Monsoon_Treks_2.png") no-repeat center center/cover;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.tours-page-header h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 10px !important;
}

/* Explorer Filter System */
.explorer-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.filter-section {
    background-color: var(--bg-white);
    border: 1px solid rgba(20, 83, 45, 0.06);
    border-radius: var(--border-radius-md);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.filter-grid-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: end;
}

.filter-search-box {
    position: relative;
    width: 100%;
}

.filter-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.filter-search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-cream);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.filter-search-box input:focus {
    outline: none;
    border-color: var(--primary-forest);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.08);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.filter-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-select-wrapper label {
    font-family: Gilroy-Bold, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.filter-select-wrapper select {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-cream);
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.filter-select-wrapper select:focus {
    border-color: var(--primary-forest);
    background-color: var(--bg-white);
}

.filter-categories-container {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.filter-group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background-color: rgba(20, 83, 45, 0.05);
    color: var(--primary-forest);
    border-color: rgba(20, 83, 45, 0.2);
}

.filter-btn.active {
    background-color: var(--primary-forest);
    color: white;
    border-color: var(--primary-forest);
    box-shadow: 0 4px 10px rgba(20, 83, 45, 0.2);
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tour-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}

.tour-card-link {
    display: block;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.tour-card-link:hover,
.tour-card-link:focus,
.tour-card-link:visited {
    text-decoration: none !important;
    color: inherit;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tour-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image-container img {
    transform: scale(1.06);
}

/* Badge System */
.tour-badge {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 12px;
    color: white;
    z-index: 2;
    text-transform: uppercase;
}

.badge-difficulty-easy {
    background-color: var(--primary-mountain);
    left: 15px;
}

.badge-difficulty-moderate {
    background-color: var(--accent-gold);
    left: 15px;
}

.badge-difficulty-difficult {
    background-color: var(--accent-orange);
    left: 15px;
}

.badge-category {
    background-color: var(--secondary-earth);
    right: 15px;
}

/* Card content */
.tour-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.tour-location i {
    color: var(--accent-orange);
}

.tour-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.tour-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.tour-meta-item {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-meta-item i {
    color: var(--primary-forest);
}

.tour-price-booking {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tour-price {
    display: flex;
    flex-direction: column;
}

.tour-price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tour-price-value {
    font-family: Gilroy-Bold, sans-serif;
    font-size: 22px;
    color: var(--accent-orange);
}

.tour-price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.tour-book-btn {
    background-color: var(--primary-forest);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.tour-book-btn:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Seats badge styling */
.seats-left {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
}

.seats-full {
    font-size: 12px;
    color: var(--secondary-stone);
    font-weight: 600;
}

/* No results state */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 15px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .tours-page-header {
        height: 250px;
    }
    
    .tours-page-header h1 {
        font-size: 32px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-container {
        text-align: right;
    }
}
