/* NTB Flat Booking Styles */

.ntb-wizard-wrap {
    max-width: 800px;
    margin: 20px 0;
    font-size: 15px;
}

/* ---------------------------------------------------------------
 * Inline datepicker (no-dates mode)
 * -------------------------------------------------------------*/
.ntb-inline-datepicker {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.ntb-inline-datepicker label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

#ntb-travel-date {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* ---------------------------------------------------------------
 * No hotels message
 * -------------------------------------------------------------*/
.ntb-no-hotels {
    padding: 20px;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* ---------------------------------------------------------------
 * Hotel tabs
 * -------------------------------------------------------------*/
.ntb-hotel-tabs {
    margin-top: 0;
}

.ntb-hotel-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    border-bottom: 2px solid #ddd;
}

.ntb-hotel-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    user-select: none;
}

.ntb-hotel-tab-btn:hover {
    background: #fff;
    color: #333;
}

.ntb-hotel-tab-btn.ntb-tab-active {
    background: #fff;
    border-bottom-color: #fff;
    color: #0073aa;
    font-weight: 600;
}

.ntb-hotel-tab-label {
    white-space: nowrap;
}

/* Tab panels */
.ntb-hotel-tab-panel {
    padding: 20px 0;
}

/* Hotel description (from admin TinyMCE) */
.ntb-hotel-description {
    padding: 0 4px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.ntb-hotel-description p:last-child {
    margin-bottom: 0;
}

.ntb-no-rooms {
    padding: 16px 0;
    color: #888;
    font-style: italic;
}

/* ---------------------------------------------------------------
 * Room blocks
 * -------------------------------------------------------------*/
.ntb-room-block {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.ntb-room-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f5f7fa;
    border-bottom: 1px solid #e5e5e5;
}

.ntb-room-block-header .ntb-room-radio {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ntb-room-block-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ---------------------------------------------------------------
 * Booking rows
 * -------------------------------------------------------------*/
.ntb-booking-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.ntb-booking-row:last-child {
    border-bottom: none;
}

.ntb-booking-row:hover {
    background: #fafcff;
}

.ntb-booking-row:nth-child(even) {
    background: #fafafa;
}

.ntb-booking-row:nth-child(even):hover {
    background: #f0f5ff;
}

/* Date column */
.ntb-booking-date {
    min-width: 110px;
    flex-shrink: 0;
}

.ntb-booking-date-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ntb-booking-date-days {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Prices column */
.ntb-booking-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 120px;
}

.ntb-booking-tier-price {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.ntb-booking-tier-price strong {
    color: #0073aa;
}

/* Qty column */
.ntb-booking-qty {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ntb-inline-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ntb-inline-qty-label {
    font-size: 12px;
    color: #666;
    min-width: 40px;
}

/* Quantity controls */
.ntb-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ntb-qty-minus,
.ntb-qty-plus {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    line-height: 32px;
    text-align: center;
    padding: 0;
}

.ntb-qty-minus:hover,
.ntb-qty-plus:hover {
    background: #e0e0e0;
}

.ntb-qty-minus:disabled,
.ntb-qty-plus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f5f5f5;
}

.ntb-qty-control input[type="number"] {
    width: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -moz-appearance: textfield;
    border-radius: 0;
    height: 32px;
    padding: 0;
    font-size: 14px;
}

.ntb-qty-control input[type="number"]::-webkit-inner-spin-button,
.ntb-qty-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------------------------------------------------------------
 * Book Now button
 * -------------------------------------------------------------*/
.ntb-book-now-btn {
    padding: 8px 18px;
    background: #46b450;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ntb-book-now-btn:hover {
    background: #3a9b42;
}

.ntb-book-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Additive mode bottom button */
.ntb-additive-actions {
    padding: 20px 0;
    text-align: center;
}

.ntb-additive-book-btn {
    padding: 12px 32px;
    font-size: 16px;
}

/* ---------------------------------------------------------------
 * Extras modal
 * -------------------------------------------------------------*/
.ntb-extras-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntb-extras-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ntb-extras-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.ntb-extras-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.ntb-extras-modal-close:hover {
    color: #333;
}

.ntb-extras-modal-content h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #333;
}

/* Extras list inside modal */
.ntb-extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntb-extra-item {
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}

.ntb-extra-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.ntb-extra-name {
    font-weight: 500;
}

.ntb-extra-price {
    margin-left: auto;
    color: #0073aa;
    font-weight: 600;
}

.ntb-extra-price small {
    font-weight: 400;
    color: #888;
}

.ntb-extra-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ntb-extra-dropdown select {
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Modal actions */
.ntb-extras-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ntb-skip-extras-btn {
    padding: 10px 24px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ntb-skip-extras-btn:hover {
    background: #e0e0e0;
}

.ntb-confirm-extras-btn {
    padding: 10px 24px;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ntb-confirm-extras-btn:hover {
    background: #005a87;
}

/* ---------------------------------------------------------------
 * Messages
 * -------------------------------------------------------------*/
.ntb-wizard-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
}

.ntb-wizard-message.ntb-success {
    background: #ecf7ed;
    border: 1px solid #46b450;
    color: #2e7d32;
}

.ntb-wizard-message.ntb-error {
    background: #fef0f0;
    border: 1px solid #dc3232;
    color: #c62828;
}

/* ---------------------------------------------------------------
 * Loading state
 * -------------------------------------------------------------*/
.ntb-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------------------------------------------------------------
 * Disabled items
 * -------------------------------------------------------------*/
.ntb-item-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------*/
@media (max-width: 768px) {
    .ntb-booking-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .ntb-booking-date {
        min-width: auto;
        flex: 0 0 100%;
    }

    .ntb-booking-prices {
        flex: 0 0 100%;
        min-width: auto;
    }

    .ntb-booking-qty {
        flex: 1 1 auto;
    }

    .ntb-book-now-btn {
        flex: 0 0 100%;
        text-align: center;
    }

    .ntb-hotel-tab-nav {
        flex-wrap: wrap;
    }

    .ntb-hotel-tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .ntb-inline-qty {
        flex-wrap: wrap;
    }

    .ntb-extras-modal-content {
        padding: 20px;
        width: 95%;
    }

    .ntb-extras-modal-actions {
        flex-direction: column;
    }

    .ntb-skip-extras-btn,
    .ntb-confirm-extras-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ntb-wizard-wrap {
        font-size: 13px;
    }

    .ntb-room-block-header {
        padding: 10px 12px;
    }

    .ntb-room-block-title {
        font-size: 14px;
    }

    .ntb-booking-row {
        padding: 10px 12px;
    }

    .ntb-qty-minus,
    .ntb-qty-plus {
        width: 28px;
        height: 28px;
        font-size: 14px;
        line-height: 28px;
    }

    .ntb-qty-control input[type="number"] {
        width: 36px;
        height: 28px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------------------
 * Guests modal (per_room mode)
 * -------------------------------------------------------------*/
.ntb-guests-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntb-guests-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ntb-guests-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 460px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.ntb-guests-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.ntb-guests-modal-close:hover {
    color: #333;
}

.ntb-guests-modal-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.ntb-guests-hint {
    margin: 0 0 20px;
    font-size: 13px;
    color: #888;
}

.ntb-guests-tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ntb-guests-tier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}

.ntb-guests-tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ntb-guests-tier-label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.ntb-guests-tier-age {
    font-size: 12px;
    color: #888;
}

.ntb-guests-capacity-info {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 10px 16px;
    background: #f0f5ff;
    border: 1px solid #d0e0f5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.ntb-guests-capacity-info.ntb-over-capacity {
    background: #fef0f0;
    border-color: #dc3232;
    color: #c62828;
}

.ntb-guests-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ntb-guests-cancel-btn {
    padding: 10px 24px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ntb-guests-cancel-btn:hover {
    background: #e0e0e0;
}

.ntb-guests-confirm-btn {
    padding: 10px 24px;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ntb-guests-confirm-btn:hover {
    background: #005a87;
}

@media (max-width: 480px) {
    .ntb-guests-modal-content {
        padding: 20px;
        width: 95%;
    }

    .ntb-guests-modal-actions {
        flex-direction: column;
    }

    .ntb-guests-cancel-btn,
    .ntb-guests-confirm-btn {
        text-align: center;
    }
}
