/**
 * TZ Fixed Departures - Styles
 */

/* Container */
.tzfd-container {
    background: #fff;
    margin: 20px 0;
    max-width: 100%;
}

.tzfd-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

/* Tabs */
.tzfd-tabs-wrapper {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.tzfd-tabs-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tzfd-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.tzfd-tab-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tzfd-tab-btn:hover {
    background: #e0e0e0;
}

.tzfd-tab-btn.active {
    background: #1a4d8c;
    /* Primary blue */
    color: #fff;
}

/* Content */
.tzfd-tab-content {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tzfd-tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Departure Card */
.tzfd-departure-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fc;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #edf2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tzfd-departure-card:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Date Slots */
.tzfd-card-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tzfd-date-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.tzfd-day {
    font-size: 24px;
    font-weight: 700;
    color: #1a4d8c;
}

.tzfd-month {
    font-size: 12px;
    font-weight: 600;
    color: #1a4d8c;
    text-transform: uppercase;
}

.tzfd-date-separator {
    color: #1a4d8c;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Price Section */
.tzfd-card-price {
    flex: 2;
    padding: 0 24px;
}

.tzfd-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.tzfd-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #1a4d8c;
}

.tzfd-price-original {
    font-size: 14px;
    text-decoration: line-through;
    color: #888;
}

.tzfd-price-save {
    display: inline-block;
    background: #bce3f9;
    color: #0c4a6e;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Status */
.tzfd-card-status {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Action Button */
.tzfd-card-action {
    flex: 0 0 auto;
}

.tzfd-book-btn {
    display: inline-block;
    background: #1a4d8c;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.tzfd-book-btn:hover {
    background: #153e70;
}

/* Responsive */
@media (max-width: 768px) {
    .tzfd-departure-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tzfd-card-dates {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
    }

    .tzfd-card-price {
        padding: 0;
        width: 100%;
    }

    .tzfd-card-status {
        width: 100%;
    }

    .tzfd-card-action {
        width: 100%;
    }

    .tzfd-book-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}