/* Search section */
.search-section {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

.search-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Trips section */
.trips-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
}

.trip-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.trip-card:hover {
    transform: translateY(-5px);
}

.trip-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.trip-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.card-title-container {
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    /* line-height: 1.4; */
    /* height: 3rem; */
    /* overflow: hidden; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    /* height: 4.5rem; */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.trip-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
}

/* Category badge styles */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.category-badge.vacation {
    background-color: rgba(25, 135, 84, 0.8);
    color: white;
}

.category-badge.excursion {
    background-color: rgba(13, 110, 253, 0.8);
    color: white;
}

/* Ribbon styles */
.trip-card .ribbon {
    position: absolute;
    top: 10px;
    right: -20px;
    background: #198754;
    color: white;
    padding: 10px 30px;
    transform: rotate(45deg);
    z-index: 1;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.trip-card .ribbon.excursion {
    background: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-section {
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .search-container {
        margin: 0 15px;
    }

    .trip-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .trip-card .card-img-top {
        height: 160px;
    }

    /* .card-title {
        height: 2.5rem;
    } */

    .card-text {
        /* height: 4rem; */
    }
}

/* Add these styles */
.select2-container {
    width: 100% !important;
}

/* Make select2 match Bootstrap's style
 .select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
} */

.dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.dates-list .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    white-space: nowrap;
}

/* Custom scrollbar for dates list */
.dates-list::-webkit-scrollbar {
    width: 4px;
}

.dates-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.dates-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.dates-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}