/* Main Section */
.trips-main {
    background-color: #f8f9fa;
}

/* Sidebar Filters */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 90px;
}

.filter-group {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.date-display, .price-display {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.price-label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* Dual Range Slider */
.range-slider-container {
    padding: 15px 10px;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
}

.range-selected {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    left: 0%;
    right: 0%;
}

.range-input {
    position: relative;
    width: 100%;
    margin-top: -5px;
}

.range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.range-input input::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-input input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: auto;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: none;
}

/* Tour Type Buttons */
.tour-type-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tour-type-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-type-btn:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    color: var(--primary-color);
}

.tour-type-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Results Header */
.results-header h4 {
    color: #333;
    font-weight: 600;
}

.results-header .badge {
    font-size: 1rem;
    padding: 8px 15px;
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

/* Trip Cards */
.trip-card-wrapper {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trip-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 240px;
    padding: 20px;
    gap: 16px;
}

.trip-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Left image panel */
.trip-image {
    position: relative;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    align-self: stretch;
}

.trip-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trip-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.trip-badge .badge {
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wishlist-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

/* Right content panel */
.trip-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 4px;
    min-width: 0;
}

.trip-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trip-location {
    color: #555;
    font-size: 0.84rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trip-location i {
    color: var(--primary-color);
    font-size: 13px;
}

.trip-desc {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 2px 0;
}

.trip-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.82rem;
    color: #555;
    flex-wrap: wrap;
}

.trip-date {
    color: #e05252;
    font-weight: 500;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trip-slots {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.trip-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.trip-footer .btn {
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.3s;
}

.trip-footer .btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    transform: none;
}

/* No Results */
.no-results {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
}

.no-results i {
    opacity: 0.3;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .filters-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .trips-hero {
        padding: 100px 0 40px;
        text-align: center;
    }

    .trips-hero h1 {
        font-size: 2rem;
    }

    .trip-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
        min-height: unset;
    }

    .trip-image {
        width: 100%;
        min-width: unset;
        height: 200px;
        border-radius: 0;
        align-self: auto;
    }

    .trip-image img {
        position: absolute;
    }

    .trip-content {
        padding: 14px 16px;
    }

    .trip-title {
        font-size: 1rem;
    }
}