/* ==========================================================================
   Accommodation Dates Table
   ========================================================================== */

.qodef-dates-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qodef-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

/* -- Header -- */
.qodef-dates-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #1a2744;
    border-bottom: 3px solid #1a2744;
    white-space: nowrap;
}

/* -- Body rows -- */
.qodef-dates-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.qodef-dates-table tbody td {
    padding: 22px 20px;
    color: #374151;
    vertical-align: top;
}

/* -- Availability status labels -- */
.qodef-dt-status {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.qodef-dt-status--open {
    color: #059669;
}

.qodef-dt-status--filling_up {
    color: #0891b2;
}

.qodef-dt-status--almost_full {
    color: #d97706;
}

.qodef-dt-status--full {
    color: #dc2626;
}

.qodef-dt-status--closed {
    color: #6b7280;
}

/* -- Note below status -- */
.qodef-dt-note {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-top: 2px;
    line-height: 1.4;
}

/* -- Price -- */
.qodef-dt-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a2744;
}

.qodef-dt-price-note {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 2px;
}

/* -- Action buttons -- */
.qodef-dt-actions {
    white-space: nowrap;
    text-align: right;
}

.qodef-dt-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    vertical-align: middle;
}

.qodef-dt-btn+.qodef-dt-btn {
    margin-left: 8px;
}

.qodef-dt-btn--inquire {
    color: #1a2744;
    background-color: transparent;
    border: 2px solid #1a2744;
}

.qodef-dt-btn--inquire:hover {
    color: #ffffff;
    background-color: #1a2744;
}

.qodef-dt-btn--book {
    color: #ffffff;
    background-color: #1a2744;
    border: 2px solid #1a2744;
}

.qodef-dt-btn--book:hover {
    background-color: #0f1b30;
    border-color: #0f1b30;
}

.qodef-dt-btn--soldout {
    color: #6b7280;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    cursor: default;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
    .qodef-dates-table thead {
        display: none;
    }

    .qodef-dates-table tbody tr {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .qodef-dates-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border: none;
    }

    .qodef-dates-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #1a2744;
        margin-right: 12px;
        flex-shrink: 0;
        font-size: 13px;
    }

    .qodef-dt-actions {
        justify-content: flex-start !important;
        gap: 8px;
        padding-top: 12px !important;
    }
}