/* ==============================================
   Cabin / Room Types - Frontend Styles
   Matches halongbaytours.com design
   ============================================== */

.cabin-types-wrapper {
    margin-bottom: 30px;
}
.cabin-types-wrapper .heading-cabin-types {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* ---- Show Rates Bar ---- */
.cabin-rates-bar {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 15px 20px;
    flex-wrap: wrap;
}
.cabin-rates-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}
.cabin-rates-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.cabin-select-wrap {
    position: relative;
}
.cabin-select-wrap select,
.cabin-rates-bar .cabin-select-wrap select,
.cabin-rates-bar select#cabin-duration {
    padding: 8px 35px 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    min-width: 200px;
    height: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    box-sizing: border-box;
    line-height: 1.4;
    margin: 0;
}
.cabin-select-wrap select:focus,
.cabin-rates-bar select#cabin-duration:focus {
    outline: none;
    border-color: #2e7d32 !important;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.15) !important;
}
.cabin-input-wrap input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 170px;
    height: 40px;
    color: #333;
}
.cabin-input-wrap input[type="date"]:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}
.cabin-guests-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    min-width: 250px;
    height: 40px;
    box-sizing: border-box;
    user-select: none;
}
.cabin-dropdown-arrow {
    font-size: 10px;
    color: #666;
    margin-left: auto;
}
.cabin-guests-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 15px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cabin-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.cabin-guest-row span {
    font-size: 14px;
    font-weight: 500;
}
.cabin-guest-counter {
    display: flex;
    align-items: center;
    gap: 0;
}
.cabin-counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}
.cabin-counter-btn:hover {
    background: #e0e0e0;
}
.cabin-counter-btn.cabin-minus {
    border-radius: 4px 0 0 4px;
}
.cabin-counter-btn.cabin-plus {
    border-radius: 0 4px 4px 0;
}
.cabin-guest-counter input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    font-size: 14px;
    -moz-appearance: textfield;
    background: #fff;
}
.cabin-guest-counter input::-webkit-outer-spin-button,
.cabin-guest-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cabin-rates-submit {
    justify-content: flex-end;
}
.cabin-show-rates-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
    transition: background 0.2s;
    white-space: nowrap;
}
.cabin-show-rates-btn:hover {
    background: #1b5e20;
}

/* ---- Header Banner ---- */
.cabin-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eaf7ea;
    border: 1px solid #c3e6c3;
    border-bottom: none;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.cabin-banner-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cabin-banner-icon {
    font-size: 20px;
    color: #2e7d32;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.cabin-banner-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.cabin-banner-text strong {
    display: block;
    font-size: 14px;
    color: #2e7d32;
}
.cabin-banner-text span {
    color: #555;
    font-size: 12px;
}
.cabin-banner-right {
    flex-shrink: 0;
}
.cabin-best-price {
    color: #2e7d32;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* ---- Table ---- */
.cabin-types-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: #fff;
}
.cabin-types-table thead th {
    background: #f5f5f5;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: left;
    border-bottom: 2px solid #ddd;
    border-right: 1px solid #ddd;
}
.cabin-types-table thead th:last-child {
    border-right: none;
}
.cabin-types-table thead th.col-room-type {
    width: 40%;
}
.cabin-types-table thead th.col-conditions {
    width: 25%;
}
.cabin-types-table thead th.col-total {
    width: 20%;
    text-align: center;
}
.cabin-types-table thead th.col-book {
    width: 15%;
    text-align: center;
}

/* ---- Cabin Rows ---- */
.cabin-types-table tbody tr.cabin-row {
    border-bottom: 1px solid #e5e5e5;
}
.cabin-types-table tbody tr.cabin-row:hover {
    background: #fafafa;
}
.cabin-types-table tbody tr.cabin-row td {
    padding: 15px;
    vertical-align: top;
    border-right: 1px solid #e5e5e5;
}
.cabin-types-table tbody tr.cabin-row td:last-child {
    border-right: none;
}

/* ---- Room Type Column ---- */
.cabin-room-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cabin-room-image {
    width: 100%;
    max-width: 260px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
}
.cabin-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cabin-room-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cabin-room-badge {
    display: inline-block;
    background: #1a5276;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.cabin-room-specs {
    margin-bottom: 8px;
}
.cabin-room-specs .cabin-spec {
    display: block;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}
.cabin-spec-icon {
    margin-right: 4px;
    font-style: normal;
}
.cabin-extra-beds {
    margin-top: 6px;
    font-size: 13px;
    color: #333;
}
.cabin-extra-beds strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}
.cabin-extra-beds ul {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
}
.cabin-extra-beds ul li {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.cabin-show-more {
    margin-top: 8px;
}
.cabin-show-more a.cabin-toggle-details {
    color: #0071c2;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cabin-show-more a.cabin-toggle-details:hover {
    text-decoration: underline;
}
.cabin-info-icon {
    font-size: 16px;
    color: #0071c2;
}
.cabin-full-description {
    margin-top: 8px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

/* ---- Conditions Column ---- */
.cabin-conditions {
    font-size: 13px;
}
.cabin-cancellation {
    margin-bottom: 6px;
}
.cabin-cancellation strong {
    color: #2e7d32;
    font-size: 13px;
}
.cabin-tooltip-icon {
    color: #0071c2;
    font-size: 14px;
    cursor: help;
    margin-left: 3px;
}
.cabin-condition-item {
    color: #555;
    line-height: 1.8;
    font-size: 13px;
}
.cabin-check-green {
    color: #2e7d32;
    font-weight: 700;
    margin-right: 5px;
}
.cabin-perks-box {
    margin-top: 10px;
    border: 1px dashed #aaa;
    border-radius: 4px;
    padding: 8px 12px;
}
.cabin-perk-item {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}

/* ---- Total / Price Column ---- */
.col-total {
    text-align: center;
    vertical-align: middle !important;
}
.cabin-pricing {
    text-align: center;
}
.cabin-pricing-placeholder {
    text-align: center;
    padding: 20px 0;
}
.cabin-click-showrates {
    font-size: 13px;
    color: #999;
    font-style: italic;
}
.cabin-recommended {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}
.cabin-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cabin-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.cabin-sale-price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}
.cabin-tax-note {
    font-size: 11px;
    color: #0071c2;
    margin-top: 2px;
}
.cabin-best-value-tag {
    display: inline-block;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}
.cabin-price-note {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

/* ---- Book Button Column ---- */
.col-book {
    text-align: center;
    vertical-align: middle !important;
}
.cabin-book-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cabin-book-btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    text-align: center;
}
.cabin-book-btn:hover {
    background: #1b5e20;
    color: #fff !important;
}
.cabin-checkout-text {
    font-size: 11px;
    color: #666;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .cabin-rates-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cabin-rates-field {
        width: 100%;
    }
    .cabin-select-wrap select,
    .cabin-input-wrap input[type="date"],
    .cabin-guests-summary {
        width: 100%;
        min-width: unset;
    }
    .cabin-show-rates-btn {
        width: 100%;
    }

    .cabin-types-table,
    .cabin-types-table thead,
    .cabin-types-table tbody,
    .cabin-types-table th,
    .cabin-types-table td,
    .cabin-types-table tr {
        display: block;
    }
    .cabin-types-table thead {
        display: none;
    }
    .cabin-types-table tbody tr.cabin-row {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }
    .cabin-types-table tbody tr.cabin-row td {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 12px 15px;
    }
    .cabin-types-table tbody tr.cabin-row td:last-child {
        border-bottom: none;
    }
    .cabin-types-table tbody tr.cabin-row td.col-conditions::before {
        content: "Conditions";
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 14px;
    }
    .cabin-types-table tbody tr.cabin-row td.col-total::before {
        content: "Price";
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 14px;
    }
    .cabin-room-image {
        max-width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cabin-header-banner {
        flex-direction: column;
        text-align: center;
    }
    .cabin-banner-left {
        flex-direction: column;
        align-items: center;
    }
}
