
.hpb-room-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:25px 0}
.hpb-room-card{background:#fff;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;box-shadow:0 3px 15px rgba(0,0,0,.06)}
.hpb-room-image{display:block;aspect-ratio:4/3;overflow:hidden}.hpb-room-image img{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}.hpb-room-image:hover img{transform:scale(1.04)}
.hpb-room-body{padding:18px}.hpb-room-body h3{margin:0 0 8px;font-size:21px}.hpb-room-body p{color:#666;min-height:42px}.hpb-room-price{margin:12px 0 16px}.hpb-book-btn{display:inline-block;width:100%;box-sizing:border-box;text-align:center;padding:12px;background:#2d6f17;color:#fff;text-decoration:none;border-radius:4px;font-weight:700}
.hpb-booking-wrap{max-width:850px;margin:30px auto;padding:30px;background:#fff;border:1px solid #e5e5e5;border-radius:10px;box-shadow:0 5px 25px rgba(0,0,0,.06)}
.hpb-booking-title h2{margin:0 0 5px}.hpb-booking-title p{color:#777;margin:0 0 25px}
.hpb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hpb-field{margin-bottom:18px}.hpb-field label{display:block;font-weight:600;margin-bottom:7px}.hpb-field label span{color:#d00}
.hpb-field input,.hpb-field select,.hpb-field textarea{width:100%;box-sizing:border-box;min-height:48px;padding:12px 14px;border:1px solid #d3d3d3;border-radius:6px;font-size:16px;background:#fff}.hpb-field textarea{min-height:90px}
.hpb-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:5px 0 25px}.hpb-summary>div{padding:14px;background:#fafafa;border:1px solid #e6e6e6;border-radius:6px}.hpb-summary small{display:block;color:#777;margin-bottom:5px}.hpb-summary strong{font-size:18px}.hpb-summary .hpb-grand{background:#eff9f5;border-color:#bfe3d5}.hpb-summary .hpb-grand strong{font-size:22px}
.hpb-promo{margin:5px 0 20px}.hpb-promo label{display:block;font-weight:600;margin-bottom:7px}.hpb-promo>div:first-of-type{display:flex;gap:8px}.hpb-promo input{flex:1;min-height:46px;padding:10px;border:1px solid #ccc;border-radius:5px;font-size:16px}.hpb-promo button{padding:0 22px;border:0;border-radius:5px;background:#444;color:#fff;font-weight:700}.hpb-promo-message{margin-top:7px}.hpb-promo #hpb-promo-message{margin-top:7px}.hpb-promo #hpb-promo-message.ok{color:#187443}.hpb-promo #hpb-promo-message.err{color:#a00000}
#hpb-submit{width:100%;min-height:52px;border:0;border-radius:5px;background:#2d6f17;color:#fff;font-weight:700;font-size:16px;cursor:pointer}.hpb-loader{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;vertical-align:middle;margin-left:7px;animation:hpbspin .8s linear infinite}#hpb-submit.loading .hpb-loader{display:inline-block}#hpb-submit:disabled{opacity:.65}
#hpb-message{margin-top:14px;padding:12px;border-radius:5px}#hpb-message:empty{display:none!important}#hpb-message.ok{background:#effaf4;color:#176b3a}#hpb-message.err{background:#fff0f0;color:#a00000}
.hpb-result{max-width:700px;margin:40px auto;padding:35px;background:#fff;border:1px solid #e5e5e5;border-radius:10px;text-align:center}.hpb-result-icon{width:60px;height:60px;line-height:60px;border-radius:50%;margin:0 auto 15px;background:#2d6f17;color:#fff;font-size:38px}.hpb-result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;text-align:left;margin:25px 0}.hpb-result-grid div{padding:12px;background:#fafafa;border:1px solid #eee;border-radius:5px}.hpb-result-grid small{display:block;color:#777}.hpb-result-grid strong{display:block;margin-top:3px}
@keyframes hpbspin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.hpb-room-grid{grid-template-columns:repeat(2,1fr)}.hpb-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.hpb-room-grid,.hpb-grid,.hpb-result-grid{grid-template-columns:1fr}.hpb-summary{grid-template-columns:1fr 1fr}.hpb-summary .hpb-grand{grid-column:1/-1}.hpb-booking-wrap{padding:20px}.hpb-promo>div:first-of-type{flex-direction:column}.hpb-promo button{min-height:46px}}

.hpb-field input,.hpb-field select,.hpb-field textarea{color:#222 !important;background:#fff !important;-webkit-text-fill-color:#222 !important;} .hpb-field select option{color:#222 !important;background:#fff !important;} .hpb-field input::placeholder,.hpb-field textarea::placeholder{color:#777 !important;opacity:1;}
.hpb-room-name-link{color:inherit;text-decoration:none}.hpb-room-name-link:hover{text-decoration:underline}.hpb-room-detail{max-width:1100px;margin:30px auto}.hpb-room-detail-head{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #ddd;padding-bottom:18px;margin-bottom:24px}.hpb-room-detail-head h1{margin:0 0 5px}.hpb-room-detail-head p{margin:0;color:#777}.hpb-room-detail-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:28px}.hpb-room-main-image{width:100%;height:430px;object-fit:cover;border-radius:6px;display:block}.hpb-room-gallery{display:flex;gap:8px;overflow:auto;margin-top:10px}.hpb-room-gallery img{width:88px;height:65px;object-fit:cover;border-radius:4px}.hpb-room-detail-info{border:1px solid #ddd;border-radius:7px;padding:24px}.hpb-room-detail-info h3{margin-top:0;margin-bottom:12px}.hpb-room-description{color:#555;line-height:1.7}.hpb-amenities{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.hpb-amenities span{border:1px solid #ddd;border-radius:20px;padding:7px 12px;font-size:14px}.hpb-detail-book,.hpb-detail-book-bottom{display:inline-block;text-align:center}.hpb-detail-book-bottom{width:100%;box-sizing:border-box;margin-top:15px}.hpb-room-notice{padding:20px;background:#fff1f1;color:#900;border:1px solid #e0b0b0}.hpb-availability-note{padding:11px 14px;background:#fff8e8;border:1px solid #ead59b;border-radius:6px;color:#6a5200;margin-bottom:15px}
@media(max-width:800px){.hpb-room-detail-layout{grid-template-columns:1fr}.hpb-room-detail-head{align-items:flex-start;flex-direction:column}.hpb-room-main-image{height:320px}}

.hpb-room-detail-title{font-size:36px !important;line-height:1.2 !important;margin:0 0 8px !important;font-weight:600}
.hpb-room-section-title{font-size:32px !important;line-height:1.25 !important;margin:0 0 16px !important;font-weight:600}
.hpb-room-detail-head{display:block !important}
.hpb-room-gallery-title{font-size:22px;font-weight:600;margin:20px 0 10px}
.hpb-room-gallery{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible !important}
.hpb-gallery-card{display:block;border:1px solid #ddd;border-radius:7px;overflow:hidden;background:#fff}
.hpb-gallery-card img{display:block !important;width:100% !important;height:150px !important;object-fit:cover !important;border-radius:0 !important}
.hpb-room-gallery-empty{margin-top:14px;padding:15px;border:1px dashed #ccc;border-radius:6px;color:#777;background:#fafafa}
.hpb-gallery-preview{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.hpb-gallery-item{display:flex;flex-direction:column;gap:5px;padding:6px;border:1px solid #ddd;background:#fff;border-radius:4px}.hpb-gallery-item img{width:120px !important;height:85px !important;object-fit:cover !important;display:block}
@media(max-width:800px){.hpb-room-detail-title{font-size:30px !important}.hpb-room-section-title{font-size:27px !important}.hpb-room-gallery{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.hpb-gallery-card img{height:130px !important}}
@media(max-width:480px){.hpb-room-gallery{grid-template-columns:1fr !important}.hpb-gallery-card img{height:220px !important}}

/* Final gallery slider */
.hpb-room-gallery .hpb-gallery-card{
    appearance:none;
    -webkit-appearance:none;
    padding:0 !important;
    margin:0 !important;
    border:2px solid #ddd !important;
    cursor:pointer;
    width:100%;
    font:inherit;
    background:#fff;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hpb-room-gallery .hpb-gallery-card:hover{
    border-color:#2b6e1b !important;
    transform:translateY(-1px);
}
.hpb-room-gallery .hpb-gallery-card.is-active{
    border-color:#2b6e1b !important;
    box-shadow:0 0 0 1px #2b6e1b;
}
.hpb-room-main-image{
    transition:opacity .2s ease;
}

/* v2.4 robust gallery slider */
.hpb-room-detail-media .hpb-room-main-image{
    width:100% !important;
    display:block !important;
    object-fit:cover !important;
    cursor:default;
}
.hpb-room-gallery{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:3px 2px 8px !important;
    scroll-behavior:smooth;
}
.hpb-room-gallery .hpb-gallery-card{
    flex:0 0 105px !important;
    width:105px !important;
    height:78px !important;
    min-width:105px !important;
    padding:0 !important;
    margin:0 !important;
    border:2px solid #d7d7d7 !important;
    border-radius:5px !important;
    overflow:hidden !important;
    background:#fff !important;
    cursor:pointer !important;
    line-height:0 !important;
}
.hpb-room-gallery .hpb-gallery-card img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
}
.hpb-room-gallery .hpb-gallery-card.is-active{
    border-color:#2b6e1b !important;
    box-shadow:0 0 0 1px #2b6e1b !important;
}
@media(max-width:480px){
    .hpb-room-gallery .hpb-gallery-card{
        flex-basis:88px !important;
        width:88px !important;
        min-width:88px !important;
        height:66px !important;
    }
}
