/* DWT Travel Departures Template Styles */

.dwt-departures-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filter Section */
.dwt-filters-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    align-items: flex-end;
}

.dwt-filter-item {
    flex: 1;
    max-width: 250px;
}

.dwt-filter-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dwt-filter-item select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

/* Horizontal Departure Card Design */
.dwt-departure-horizontal {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 30px 20px 20px;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.dwt-departure-horizontal:hover {
    transform: translateY(-3px);
}

.dwt-departure-horizontal.is-sold-out {
    background: #cfe7f3;
}

/* Badges */
.dwt-card-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.dwt-instant-badge {
    background: #ffab4c;
    color: #fff;
    padding: 4px 15px;
    font-size: 13px;
    font-weight: 700;
    border-bottom-right-radius: 8px;
}

.dwt-discount-badge {
    background: #ff5e5e;
    color: #fff;
    padding: 4px 15px;
    font-size: 13px;
    font-weight: 700;
    border-bottom-left-radius: 8px;
}

/* Body Layout */
.dwt-horizontal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.dwt-col {
    display: flex;
    flex-direction: column;
}

/* Trip Info */
.dwt-trip-title {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
}

.dwt-trip-title a {
    color: inherit;
    text-decoration: none;
}

.dwt-trip-title a:hover {
    color: #00aeef;
}

.dwt-meta-info {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 10px;
}

.dwt-confirmed-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.dwt-confirmed-count {
    font-size: 13px;
    color: #34495e;
}

.dwt-flags {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dwt-flags img {
    height: 14px;
    border-radius: 2px;
}

.dwt-flags-more {
    font-size: 12px;
    color: #bdc3c7;
}

/* Dates */
.dwt-col-dates {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.dwt-date-box {
    display: flex;
    flex-direction: column;
}

.dwt-date-day {
    font-size: 12px;
    color: #95a5a6;
    text-transform: capitalize;
}

.dwt-date-val {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

.dwt-date-separator {
    color: #bdc3c7;
    font-size: 20px;
}

/* Price */
.dwt-col-price {
    text-align: right;
}

.dwt-price-wrap {
    display: flex;
    flex-direction: column;
}

.dwt-price-label {
    font-size: 18px;
    font-weight: 800;
    color: #2c3e50;
}

.dwt-price-original {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

/* Availability */
.dwt-avail-wrap {
    text-align: center;
}

.dwt-avail-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.dwt-avail-status {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dwt-avail-status i {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dwt-avail-status.sold-out {
    color: #e74c3c;
    font-weight: 700;
}

/* Action Button */
/* .dwt-btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
} */

/* .dwt-btn-book {
    background: #00aeef;
    color: #fff;
} */

/* .dwt-btn-book:hover {
    background: #0090c7;
} */

.dwt-btn-sold-out {
    background: #b8060e;
    color: #fff;
    cursor: not-allowed;
}

/* Latest Booking Bar */
.dwt-latest-booking {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    color: #e74c3c;
}

.dwt-latest-booking strong {
    color: #e74c3c;
}

/* Pagination & Loader */
.dwt-pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.dwt-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 10px;
}

.dwt-page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #00aeef;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dwt-page-link:hover {
    background: #f0faff;
    border-color: #00aeef;
}

.dwt-page-link.active {
    background: #00aeef;
    color: #fff;
    border-color: #00aeef;
}

.dwt-loader {
    text-align: center;
    padding: 20px;
}

.dwt-departures-list {
    transition: opacity 0.3s ease;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .dwt-horizontal-body {
        grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
        gap: 15px;
    }

    .dwt-col-action {
        grid-column: span 1;
    }
}

@media (max-width: 991px) {
    .dwt-horizontal-body {
        grid-template-columns: 1fr 1fr;
    }

    .dwt-col-avail,
    .dwt-col-price {
        text-align: left;
    }

    .dwt-avail-status {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .dwt-horizontal-body {
        grid-template-columns: 1fr;
    }

    .dwt-col-dates {
        flex-direction: column;
        align-items: flex-start;
    }

    .dwt-date-separator {
        display: none;
    }
}