.ths-gone{display:none!important}
body.ths-lock{overflow:hidden!important}
.ths-fr{position:fixed;left:-9999px;top:0;width:1100px;height:900px;border:0;opacity:0;pointer-events:none}
.ths-ov{position:fixed;inset:0;z-index:200000;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;color:#1e1e1e}
.ths-ov i{display:block;width:44px;height:44px;margin:0 auto 12px;border:4px solid #f0d2b0;border-top-color:#e8801a;border-radius:50%;animation:thsr 0.9s linear infinite}
@keyframes thsr{to{transform:rotate(360deg)}}
/* ===== Thanh tìm phòng ===== */
.ths,.ths *,.ths-portal,.ths-portal *{box-sizing:border-box}
.ths,.ths-portal{--o:#e8801a;--k:#1e1e1e;--r:#c4222c;color:var(--k);font-size:15px;line-height:1.35}
.ths{position:relative;width:100%;max-width:100%;margin:0 0 16px}
.ths.ths-hdr{margin:0;flex:1 1 100%;padding:0 clamp(16px,5vw,110px)}
.ths .row1{display:flex;align-items:stretch;background:#fff;border:2px solid var(--o);border-radius:16px;padding:6px;gap:6px;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.ths .fld{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 14px;margin:0!important;background:#fff!important;color:var(--k)!important;border:0!important;border-right:1px solid #eadfd2!important;border-radius:10px!important;box-shadow:none!important;text-align:left;cursor:pointer;font:inherit!important;text-transform:none!important;letter-spacing:0!important}
.ths .fld.bd{flex:1.5 1 0}.ths .fld.bg{border-right:0!important}
.ths .fld:hover{background:#fff4e8!important}
.ths .fld i{flex:0 0 24px;width:24px;height:24px;display:block;font-style:normal}
.ths .fld svg{width:24px;height:24px;stroke:var(--o);fill:none;stroke-width:1.8}
.ths .fld span{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ths .go,.ths-red{background:#c4222c!important;color:#fff!important;border:2px dashed rgba(255,255,255,.95)!important;border-radius:999px!important;box-shadow:0 0 0 3px #c4222c!important;font-weight:800!important;font-size:17px!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer;transition:background .15s,transform .15s;font-family:inherit;text-align:center}
.ths .go{flex:0 0 160px;margin:3px 6px 3px 3px!important;min-height:50px}
.ths .go:hover,.ths-red:hover{background:#a51b25!important;transform:translateY(-1px)}
.ths-red:disabled{opacity:.45;cursor:not-allowed;transform:none}
.ths .er{color:#ffb3b3;font-size:13px;margin:6px 4px 0;min-height:0}
.ths .sm{display:none;align-items:center;gap:10px;background:#fff;border:2px solid var(--o);border-radius:14px;padding:12px 14px;cursor:pointer;font-weight:600}
.ths .sm svg{flex:0 0 22px;width:22px;height:22px;stroke:var(--o);fill:none;stroke-width:2}
.ths .smt{flex:1;font-size:14px}
.ths .pd,.ths .pg{display:none}
.ths-portal .pop{display:none;position:fixed;background:#fff;color:var(--k);border:1px solid #eadfd2;border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.3);padding:16px;z-index:100500;overflow:auto;max-width:calc(100vw - 16px)}
.ths-portal .pop.open{display:block}
.ths-portal .nv{display:flex;justify-content:space-between;margin-bottom:4px}
.ths-portal .nv button{width:40px!important;height:36px!important;border:1px solid #ddd!important;border-radius:8px!important;background:#fff!important;color:#1e1e1e!important;font-size:20px!important;padding:0!important;cursor:pointer}
.ths-portal .ms{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}
.ths-portal .m h4{margin:0 0 8px!important;text-align:center;font-size:16px!important;color:#1e1e1e!important}
.ths-portal .g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:14px}
.ths-portal .g i{font-style:normal;color:#888;padding:4px 0;font-size:12px}
.ths-portal .g button{height:40px;min-width:0;padding:0!important;border:0!important;background:none!important;border-radius:0!important;color:#1e1e1e!important;font:inherit!important;cursor:pointer;box-shadow:none!important}
.ths-portal .g button:disabled{color:#bbb!important;cursor:not-allowed}
.ths-portal .g .rg{background:#fde6cc!important}
.ths-portal .g .ed{background:#1e1e1e!important;color:#fff!important;font-weight:700!important;border-radius:8px!important}
.ths-portal .ds{text-align:center;color:#555;font-size:13px;margin:8px 0 0}
.ths-portal .ok{display:block;width:100%;margin-top:12px;padding:13px;border:0!important;border-radius:10px!important;background:#e8801a!important;color:#fff!important;font:inherit!important;font-weight:800!important;cursor:pointer;position:sticky;bottom:0}
.ths-portal .r{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #eee;font-size:16px;color:#1e1e1e}
.ths-portal .q{display:flex;align-items:center;border:1px solid #cdbba8;border-radius:10px}
.ths-portal .q button{width:46px!important;height:46px!important;border:0!important;background:none!important;color:#1e1e1e!important;font-size:22px!important;padding:0!important;cursor:pointer}
.ths-portal .q button:disabled{opacity:.3;cursor:not-allowed}
.ths-portal .q span{min-width:34px;text-align:center;font-weight:700}
@media(max-width:760px){
 .ths.ths-hdr{padding:0 10px}
 .ths .row1{flex-direction:column}
 .ths .fld{border-right:0!important;border-bottom:1px solid #eadfd2!important;min-height:54px}
 .ths .go{flex:none;margin:2px!important;width:calc(100% - 4px);min-height:52px}
 .ths.cmp .row1{display:none}.ths.cmp .sm{display:flex}
 .ths-portal.shade::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:100400}
 .ths-portal .pop{left:0!important;right:0;top:auto!important;bottom:0;width:100%!important;max-width:100%;max-height:88vh!important;border-radius:18px 18px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
 .ths-portal .ms{grid-template-columns:1fr}
}
/* ===== Cột bên gọn lại ===== */
@media(min-width:992px){
 .ths-side{width:22%!important;max-width:22%!important;flex:0 0 22%!important}
 .ths-main{width:78%!important;max-width:78%!important;flex:0 0 78%!important}
 .ths-row{grid-template-columns:22% 78%!important}
 .ths-side h1,.ths-side h2,.ths-side h3,.ths-side h4,.ths-side h5{font-size:17px!important;line-height:1.2!important;padding:9px 12px!important;margin:0!important}
 .ths-side .widget{margin-bottom:12px!important}
 .ths-side input[type=search],.ths-side input[type=text]{height:38px!important}
}
@media(max-width:991px){
 body.ths-booking:not(.ths-rooms):not(.ths-confirm) .ths-side{display:none!important}
 .ths-rooms .ths-side{display:none!important}
 .ths-rooms .ths-side.ths-open{display:block!important;position:fixed;inset:0;z-index:100000;background:#fff;overflow:auto;padding:0 16px 24px;width:100%!important;max-width:none!important}
 .ths-main{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
 .ths-confirm .ths-row{display:flex!important;flex-direction:column!important}
 .ths-confirm .ths-main{order:1}
 .ths-confirm .ths-side{order:2;display:block!important;width:100%!important;max-width:100%!important;flex:0 0 auto!important;margin-top:24px}
}
.ths-sh{display:none}
@media(max-width:991px){.ths-side.ths-open .ths-sh{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;padding:14px 0;margin-bottom:8px;font-size:18px;z-index:2;color:#000}
 .ths-sh button{width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid #ccc!important;background:#fff!important;color:#000!important;font-size:24px!important;padding:0!important}}
.ths-chips{display:none;align-items:center;gap:12px;margin:0 0 12px;color:#555;font-size:14px}
@media(max-width:991px){.ths-chips{display:flex}}
.ths-chip{border:1px solid #1e1e1e!important;background:#fff!important;color:#1e1e1e!important;border-radius:999px!important;padding:8px 22px!important;font-weight:700!important;font-size:15px!important;cursor:pointer}
/* ===== Danh sách phòng: ảnh vuông | thông tin | giá | số phòng, và MỘT nút Đặt phòng chung ở cột phải ===== */
body.ths-rooms{padding-bottom:84px}
.ths-list{display:block!important}
.ths-results{display:grid;grid-template-columns:minmax(0,1fr) 210px;column-gap:16px;align-items:start;width:100%;max-width:100%;flex:0 0 100%;float:none;clear:both;order:-1;margin:0}
.ths-results>*{grid-column:1}
.ths-hint{background:#fff7ee;border:1px solid #eadfd2;border-radius:10px;padding:10px 14px;margin:0 0 12px;color:#1e1e1e;font-size:14px;line-height:1.5}
.ths-card{display:grid;grid-template-columns:clamp(170px,22vw,300px) minmax(0,1fr) 150px 140px;align-items:stretch;width:100%;background:#fff;color:#1e1e1e;border:1px solid #eadfd2;border-radius:14px;overflow:hidden;margin:0 0 14px}
.ths-buy{display:contents}
.ths-img{aspect-ratio:1/1;min-height:0;cursor:pointer;background:#2b2b2b;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:13px;overflow:hidden}
.ths-img img{width:100%;height:100%;object-fit:cover;display:block;margin:0!important;border-radius:0!important;max-width:none}
.ths-body{padding:14px 16px;min-width:0;align-self:center}
.ths-body h3{margin:0 0 8px!important;padding:0!important;background:none!important;font-size:19px!important;line-height:1.25!important;color:#1e1e1e!important;cursor:pointer}
.ths-facts{list-style:none!important;margin:0 0 8px!important;padding:0!important;font-size:14px;color:#444}
.ths-facts li{margin:3px 0!important;padding:0!important;list-style:none!important}
.ths-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.ths-tags span{border:1px solid #e0d4c6;border-radius:6px;padding:2px 8px;font-size:12px;color:#444;background:#fffaf5}
.ths-link{background:none!important;border:0!important;box-shadow:none!important;color:#c4222c!important;text-decoration:underline;padding:0!important;font:inherit!important;cursor:pointer}
.ths-pr{align-self:stretch;padding:14px 12px;border-left:1px solid #eadfd2;display:flex;flex-direction:column;justify-content:center;gap:3px;background:#fffaf5}
.ths-old{color:#888;font-size:14px}
.ths-price{font-size:21px;font-weight:800;line-height:1.1}
.ths-pr small{font-size:12px;color:#666}
.ths-save{font-style:normal;font-size:12px;font-weight:700;color:#fff;background:#1f7a4d;border-radius:4px;padding:2px 6px;width:fit-content}
.ths-tot{font-size:13px;color:#444}
.ths-qs{align-self:center;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 10px;font-size:12px;color:#555}
.ths-q{display:inline-flex;align-items:center;border:1px solid #cdbba8;border-radius:10px;background:#fff}
.ths-q button{width:42px!important;height:44px!important;border:0!important;background:none!important;color:#1e1e1e!important;font-size:22px!important;padding:0!important;cursor:pointer;box-shadow:none!important}
.ths-q button:disabled{opacity:.3;cursor:not-allowed}
.ths-q b{min-width:30px;text-align:center;font-size:17px;color:#1e1e1e}
.ths-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#1e1e1e;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(0,0,0,.3)}
.ths-bt small{color:#ccc}.ths-go{min-width:150px;min-height:46px}
.ths-warn{color:#ffb3b3;font-size:13px;margin-top:4px}
@media(min-width:761px){
 body.ths-rooms{padding-bottom:0}
 .ths-results>.ths-bar{position:sticky;top:96px;left:auto;right:auto;bottom:auto;grid-column:2;grid-row:1 / span 30;align-self:start;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;border-radius:14px;padding:16px;box-shadow:0 2px 12px rgba(0,0,0,.25);z-index:5}
 .ths-results>.ths-bar .ths-go{width:100%;min-width:0}
}
@media(min-width:761px) and (max-width:1100px){
 .ths-results{grid-template-columns:minmax(0,1fr) 180px}
 .ths-card{grid-template-columns:clamp(140px,24vw,200px) minmax(0,1fr)}
 .ths-buy{display:flex;grid-column:1/-1;align-items:center;gap:14px;border-top:1px solid #eadfd2;padding:12px 16px;flex-wrap:wrap;background:#fffaf5}
 .ths-pr{border-left:0;padding:0;background:none;flex:1 1 160px}
}
@media(max-width:760px){
 .ths-results{display:block}
 .ths-card{grid-template-columns:1fr}.ths-img{aspect-ratio:auto;height:230px}
 .ths-buy{display:flex;flex-direction:column;gap:10px;padding:14px;border-top:1px solid #eadfd2;background:#fffaf5}
 .ths-pr{border-left:0;padding:0;background:none}
 .ths-qs{padding:0;flex-direction:row;align-items:center;justify-content:space-between;font-size:14px}
}
/* ===== Popup chi tiết phòng ===== */
.ths-modal{display:none;position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.65);align-items:center;justify-content:center;padding:16px}
.ths-modal.open{display:flex}
.ths-mb{position:relative;background:#fff;color:#1e1e1e;border-radius:16px;width:min(980px,100%);max-height:92vh;overflow:auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;padding:18px;grid-template-areas:"g i" "a a"}
.ths-gal{grid-area:g;min-width:0}.ths-info{grid-area:i;min-width:0}.ths-act{grid-area:a}
.ths-x{position:absolute;right:10px;top:8px;z-index:3;width:40px!important;height:40px!important;border-radius:50%!important;border:0!important;background:#fff!important;color:#000!important;font-size:26px!important;line-height:1!important;padding:0!important;box-shadow:0 1px 6px rgba(0,0,0,.35)!important;cursor:pointer}
.ths-big{position:relative;height:300px;background:#222;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ths-big img{width:100%;height:100%;object-fit:cover;display:block;margin:0!important}
.ths-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px!important;height:40px!important;border-radius:50%!important;border:0!important;background:rgba(255,255,255,.92)!important;color:#000!important;font-size:24px!important;padding:0!important;cursor:pointer}
.ths-nav.l{left:10px}.ths-nav.r{right:10px}.ths-big.one .ths-nav{display:none}
.ths-th{display:flex;gap:8px;margin-top:8px;overflow-x:auto}
.ths-th img{width:64px;height:48px;object-fit:cover;border-radius:6px;opacity:.6;cursor:pointer;flex:0 0 auto;margin:0!important}
.ths-th img.on{opacity:1;outline:2px solid #e8801a}
.ths-info h3{margin:0 40px 8px 0!important;font-size:21px!important;color:#1e1e1e!important}
.ths-desc p{margin:0 0 8px!important;font-size:14px;color:#444}
.ths-act{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eadfd2;padding-top:12px}
.ths-mp{font-size:20px}.ths-mp small{font-size:12px;color:#666}.ths-pick{padding:12px 28px!important;min-height:48px}
@media(max-width:760px){
 .ths-modal{padding:0;align-items:stretch}
 .ths-mb{width:100%;max-height:none;height:100%;border-radius:0;grid-template-columns:1fr;grid-template-areas:"g" "i" "a";padding:0 0 84px;gap:12px}
 .ths-big{height:260px;border-radius:0}.ths-th{padding:0 12px}.ths-info{padding:0 16px}
 .ths-x{position:fixed;right:12px;top:calc(12px + env(safe-area-inset-top))}
 .ths-act{position:fixed;left:0;right:0;bottom:0;background:#fff;padding:10px 16px calc(10px + env(safe-area-inset-bottom));z-index:2;box-shadow:0 -4px 16px rgba(0,0,0,.2)}
}
/* ===== Trang nhập thông tin ===== */
.ths-sum{background:#fff7ee;border:1px solid #eadfd2;border-radius:12px;padding:14px 16px;margin:0 0 16px;font-size:15px;line-height:1.5;color:#1e1e1e}
.ths-sh2{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:17px}
.ths-sh2 a,.ths-sn a{color:#c4222c;text-decoration:underline;font-weight:700}
.ths-sn{font-size:13px;color:#666;margin-top:6px}
/* ===== Trang xác nhận (điện thoại): bảng hạng mục không cần kéo ngang ===== */
.ths-ordm{display:none}
@media(max-width:760px){
 .ths-t760{display:none!important}
 .ths-ordm{display:block;margin:0 0 16px;color:#1e1e1e}
 .ths-oi{border:1px solid #ddd;border-radius:10px;padding:12px;margin-bottom:10px;background:#fafafa;line-height:1.5}
 .ths-oi b{display:block;font-size:17px;margin-bottom:4px}
 .ths-amt{margin-top:6px;font-weight:800;font-size:18px}
 .ths-or{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e5e5e5}
}
/* ===== Chẩn đoán ===== */
.ths-dbg{position:fixed;left:8px;right:8px;bottom:60px;height:34vh;z-index:300001;font:11px/1.3 monospace;background:#fff;color:#000;border:2px solid #c4222c}
.ths-dbgb{position:fixed;left:8px;bottom:12px;z-index:300002;padding:12px 16px;background:#c4222c;color:#fff;border:0;border-radius:8px;font-weight:700}

/* ===== Nút Chỉnh sửa và cửa sổ chỉnh sửa đơn ===== */
.ths-edit{float:right;color:#c4222c!important;font-size:15px;font-weight:700;text-decoration:underline;cursor:pointer}
.ths-edm{position:fixed;inset:0;z-index:150000;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;padding:12px}
.ths-edb{background:#fff;border-radius:14px;width:min(1180px,100%);height:92vh;display:flex;flex-direction:column;overflow:hidden}
.ths-edh{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid #eee;font-size:18px;color:#1e1e1e}
.ths-edh button{width:40px!important;height:40px!important;border-radius:50%!important;border:1px solid #ccc!important;background:#fff!important;color:#000!important;font-size:24px!important;padding:0!important;cursor:pointer}
.ths-edb iframe{flex:1;border:0;width:100%;background:#fff}
@media(max-width:760px){.ths-edm{padding:0}.ths-edb{height:100%;border-radius:0;width:100%}}
body.ths-embed{padding:0!important;background:#fff}
.ths-embed .ths-chips{display:none!important}
.ths-embed .ths-main{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
.ths-embed .ths.ths-hdr,.ths-embed .ths{padding:0;margin:0 0 14px}
.ths-embed .ths-results{padding:0 4px}
.ths-embed{padding-bottom:0}
