/* 讀取中遮罩 */
.searching_mask {
    position: fixed; z-index: 50;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.searching_mask .mask {
    position: absolute;
    width: 100%; height: 100%;
    background-color: #000; opacity:0.5;
    overflow: hidden;
    background-attachment: fixed;
}
.searching_mask .progress {
    position: absolute;
    top: 40%; left: 25%;
    width: 50%; height: 3%;
}
.bar-text {
    position: absolute;
    color: white;
    top: 45%; left: 25%;
    font-size: 150%;
    font-weight: bold;
    line-height: normal;
}
.room-type-item {
    width: 90%;
}
.room-benefit{
    column-count: 2;
}
.room-type-item .price-deposit-h .price { font-size: 1.5rem; }
.room-type-item .room-bonus-badge {
    align-items: flex-start;
    box-sizing: border-box;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #f5a623;
    display: inline-flex;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    text-align: left;
    white-space: normal;
}
.room-type-item .room-bonus-badge > .fa-coins {
    flex: 0 0 1rem;
}
.room-type-item .room-bonus-text {
    min-width: 0;
    line-height: 1.2;
}
.room-type-item .price-deposit-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    column-gap: 0.2rem;
    row-gap: 0.25rem;
    height: auto;
    min-height: 34px;
}
.room-type-item .price-deposit-h .price {
    line-height: 1.1;
}
.room-type-item .price-deposit-h .price,
.room-type-item .price-deposit-h > small {
    white-space: nowrap;
}
.room-swiper .tour-imgbox {
    width: 100%;
    height: 100%;
}
.room-swiper .tour-imgbox:after{
    padding-top: 50%;
}
.room-swiper .tour-imgbox img.tour-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform: none;
    margin: 0;
}

.bannerSwiper .tour-imgbox img.tour-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform: none;
    margin: 0;
}

.link-dashed {
    display: inline-block;
    border: 0;
    border-bottom: 1px dashed #d82a43;
    line-height: 1.5;
    margin-bottom: -2px;
}

.lookup-detail.link-dashed:focus {
    border-bottom: 1px dashed #d82a43;
}
.room-title-row .tourCard.name {
    display: inline;
    margin-right: 8px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.3px;
    -webkit-line-clamp: none;
}
.room-title-row .tag-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}
.room-title-row .tag-wrap .tag {
    padding: 0 6px;
}

.tourIntroTab{
    top: var(--header-height, 48px);
}

.revert-list-style ul li {
    list-style: disc !important;
}
.revert-list-style dl,
.revert-list-style ol,
.revert-list-style ol ol,
.revert-list-style ol ul,
.revert-list-style ul,
.revert-list-style ul ol,
.revert-list-style ul ul {
    margin-left: revert;
    padding-left: revert;
}

.promo-badge {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 4px 10px;
    margin-bottom: 4px;
}
.room-price-col .button.primary {
    padding: 4px 10px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
}

.booking-choice-btn {
    padding: 6px;
}

#roomFilters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    align-items: center;
}
#roomFilters .checkbox-container {
    display: inline-flex !important;
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 0.85rem;
    transition: all .2s ease;
}
#roomFilters .checkbox-container:hover {
    border-color: #d82a43;
    color: #d82a43;
}
#roomFilters .checkbox-container:has(input:checked) {
    background-color: #d82a43;
    border-color: #d82a43;
    color: #fff;
}

#roomFilters .checkbox-container.disabled {
    background-color: #f5f5f5;
    border-color: #eee;
    color: #bbb;
    cursor: not-allowed;
}
#roomFilters .checkbox-container.disabled:hover {
    border-color: #eee;
    color: #bbb;
}
#roomFilters .checkbox-container.disabled input {
    cursor: not-allowed;
}

@media screen and (min-width: 768px) {
    .room-type-card .col-md-4 {
        position: relative;
    }
    .room-type-card .tour-card {
        position: absolute;
        inset: 0;
    }
    .room-type-card .room-swiper,
    .room-type-card .room-swiper .swiper-wrapper,
    .room-type-card .room-swiper .swiper-slide.tour-imgbox {
        height: 100%;
    }
    .room-type-card .room-swiper .tour-imgbox:after {
        content: none;
    }
    .room-type-item .facility-list {
        column-count: 2;
    }
}

@media screen and (max-width: 1439px) {
    .room-type-item {
        width: 100%;
    }
}
@media screen and (max-width: 767px) {
    .room-title-row .tag-wrap .tag {
        margin-right: 0;
        line-height: 1.5;
    }
    .room-type-item .price-deposit-h .price {
        font-size: 1.3rem;
    }
    .room-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    .room-type-item {
        min-width: 0;
        margin: 0 !important;
    }
    /* 避免英文版較長的不可斷字內容(價格、按鈕文字等)撐開卡片，導致跳成一行一張 */
    .room-type-card,
    .room-type-card * {
        min-width: 0;
        overflow-wrap: break-word;
    }
    /* 讓左右兩張卡片高度依同一行最高的卡片對齊 */
    .room-type-item form,
    .room-type-item .room-type-card.cardBox.shadow {
        height: 100%;
    }
    .room-benefit{
        column-count: 1;
    }
    /* 手機版加高 swiper 圖片 */
    .room-swiper .tour-imgbox:after{
        padding-top: 70%;
    }
    /* 讓卡片內容撐滿高度，跟同一行另一張卡片對齊高度 */
    .room-type-card .row.g-0 {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .room-type-card .room-info-col {
        flex: 1;
        justify-content: flex-start;
    }
    /* 讓價格/按鈕區塊貼齊卡片最底部 */
    .room-type-card .card-body-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 8px;
    }
    .room-type-card .room-desc-row {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .room-type-card .room-price-col {
        margin-top: auto;
    }
}
