/* Hotel & Tour Booking — StayVista. Namespaced .hb */
* { box-sizing: border-box; } body { margin: 0; }
.hb {
    --bg: #f2f8fd; --panel: #fff; --panel2: #f0f6fc; --line: #dbe8f4; --ink: #0b2942; --muted: #5a7691;
    --brand: #0284c7; --brand-ink: #0369a1; --accent: #16a34a; --ok: #16a34a; --warn: #d97706; --danger: #dc2626;
    --shadow: 0 12px 32px -18px rgba(2,132,199,.3);
    min-height: calc(100vh - 44px); font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    background: radial-gradient(1000px 420px at 88% -10%, rgba(2,132,199,.07), transparent), var(--bg); color: var(--ink);
}
.hb-btn { border: 0; cursor: pointer; border-radius: .6rem; padding: .6rem 1rem; font: 700 .86rem inherit; background: var(--brand); color: #fff; transition: transform .1s; white-space: nowrap; }
.hb-btn:hover { transform: translateY(-1px); }
.hb-btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.hb-btn.sm { padding: .4rem .75rem; font-size: .8rem; }
.hb-h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.hb-sub { margin: 1.5rem 0 1rem; font-size: 1rem; }
.hb-topbar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: var(--panel); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; flex-wrap: wrap; }
.hb-brand { display: flex; align-items: center; gap: .6rem; } .hb-logo { font-size: 1.6rem; }
.hb-brand b { display: block; font-size: 1.05rem; } .hb-brand small { color: var(--muted); font-size: .72rem; }
.hb-nav { display: flex; gap: .25rem; margin: 0 auto; flex-wrap: wrap; }
.hb-navbtn { border: 0; background: transparent; color: var(--muted); padding: .5rem .8rem; border-radius: .6rem; font: 600 .85rem inherit; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.hb-navbtn:hover { color: var(--ink); background: var(--panel2); } .hb-navbtn.active { background: var(--brand); color: #fff; }
.hb-badge { background: rgba(0,0,0,.12); border-radius: 999px; padding: 0 .4rem; font-size: .7rem; min-width: 1.1rem; text-align: center; }
.hb-top-actions { display: flex; align-items: center; gap: .6rem; }
.hb-live-dot { color: var(--ok); font-size: .72rem; font-weight: 800; letter-spacing: .1em; display: inline-flex; align-items: center; gap: .4rem; }
.hb-live-dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); animation: hbp 1.3s infinite; }
@keyframes hbp { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hb-view { max-width: 1200px; margin: 0 auto; padding: 1.5rem; } .hb-view[hidden] { display: none !important; }
.hb-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); }
.hb-card h3 { margin: 0 0 1rem; font-size: .95rem; }

.hb-searchbar { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: .8rem; margin-bottom: 1.25rem; align-items: end; }
@media (max-width: 720px) { .hb-searchbar { grid-template-columns: 1fr 1fr; } }
.hb-sf { display: flex; flex-direction: column; gap: .3rem; font-size: .7rem; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.hb-sf input, .hb-sf select { font: 400 .9rem inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel2); color: var(--ink); text-transform: none; }
.hb-search-grid { display: grid; grid-template-columns: 210px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .hb-search-grid { grid-template-columns: 1fr; } }
.hb-filters { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); position: sticky; top: 76px; }
@media (max-width: 800px) { .hb-filters { position: static; } }
.hb-fg { margin-bottom: 1rem; } .hb-fg > b { display: block; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: .4rem; }
.hb-fg label { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); padding: .2rem 0; cursor: pointer; }
.hb-fg label input { accent-color: var(--brand); }
.hb-fg input[type=range] { width: 100%; accent-color: var(--brand); }
.hb-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hb-results-head b { font-size: .95rem; } .hb-results-head select { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.hb-results { display: flex; flex-direction: column; gap: 1rem; }
.hb-stay { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 200px 1fr; overflow: hidden; cursor: pointer; transition: transform .1s, box-shadow .15s; }
@media (max-width: 620px) { .hb-stay { grid-template-columns: 1fr; } }
.hb-stay:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -22px rgba(2,132,199,.4); }
.hb-stay .img { min-height: 150px; display: grid; place-items: center; font-size: 3rem; color: #fff; position: relative; }
.hb-stay .img .rt { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.5); color: #fff; font-size: .68rem; padding: .1rem .5rem; border-radius: 999px; }
.hb-stay .b { padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.hb-stay h3 { margin: 0; font-size: 1.05rem; } .hb-stay .loc { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.hb-stay .amrow { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.hb-stay .am { font-size: .7rem; background: var(--panel2); color: var(--muted); border-radius: 999px; padding: .1rem .5rem; }
.hb-stay .desc { font-size: .82rem; color: var(--muted); flex: 1; line-height: 1.45; }
.hb-stay .foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .7rem; }
.hb-stay .rate { font-size: .8rem; color: var(--warn); font-weight: 700; }
.hb-stay .rate span { color: var(--muted); font-weight: 400; }
.hb-stay .price b { font-size: 1.3rem; color: var(--brand-ink); } .hb-stay .price small { display: block; color: var(--muted); font-size: .72rem; }
.hb-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.hb-tour { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); }
.hb-tour .te { font-size: 1.8rem; } .hb-tour h4 { margin: .3rem 0 .1rem; font-size: .92rem; }
.hb-tour .tm { color: var(--muted); font-size: .78rem; } .hb-tour .trow { display: flex; justify-content: space-between; align-items: center; margin: .6rem 0 .4rem; }
.hb-tour .tp { font-weight: 800; color: var(--brand-ink); }
.hb-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 1rem; }

.hb-back { border: 0; background: transparent; color: var(--brand-ink); font: 600 .85rem inherit; cursor: pointer; margin-bottom: 1rem; }
.hb-p-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .hb-p-grid { grid-template-columns: 1fr; } }
.hb-gallery { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.hb-gallery .main { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 5rem; color: #fff; }
.hb-gallery .thumbs { display: flex; gap: .4rem; padding: .5rem; background: var(--panel); }
.hb-gallery .thumbs .t { width: 3.2rem; height: 2.4rem; border-radius: .3rem; display: grid; place-items: center; font-size: 1.1rem; color: #fff; cursor: pointer; opacity: .5; }
.hb-gallery .thumbs .t.on { opacity: 1; outline: 2px solid var(--brand); }
.hb-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); margin-top: 1.25rem; }
.hb-sec h3 { margin: 0 0 1rem; font-size: 1rem; }
.hb-amgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: .5rem; font-size: .84rem; }
.hb-room { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: .7rem; padding: .9rem 1rem; margin-bottom: .5rem; }
.hb-room .ri { flex: 1; } .hb-room .ri b { display: block; } .hb-room .ri small { color: var(--muted); }
.hb-room .rp { font-weight: 800; color: var(--brand-ink); }
.hb-review { border: 1px solid var(--line); border-radius: .7rem; padding: .8rem .9rem; margin-bottom: .5rem; background: var(--panel2); font-size: .84rem; }
.hb-review .u { font-weight: 700; } .hb-review .s { color: var(--warn); }
.hb-p-side { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); position: sticky; top: 76px; }
@media (max-width: 900px) { .hb-p-side { position: static; } }
.hb-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hb-cal i { aspect-ratio: 1; border-radius: 4px; background: #dcfce7; font-size: .6rem; display: grid; place-items: center; color: var(--muted); }
.hb-cal i.b { background: #fecaca; } .hb-cal i.x { background: #e2e8f0; }
.hb-cal-legend { font-size: .72rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.hb-price-lines { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.hb-price-lines .r { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); padding: .15rem 0; }
.hb-price-lines .r.grand { color: var(--ink); font-weight: 800; font-size: 1.1rem; }

.hb-co-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.hb-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.hb-field input, .hb-field select { font: 400 .9rem inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel2); text-transform: none; }
.hb-field-row { display: flex; gap: .6rem; } .hb-field-row .hb-field { flex: 1; }
.hb-confirm { text-align: center; padding: 1rem 0; }
.hb-confirm .check { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.hb-voucher { border: 1px dashed var(--line); border-radius: .8rem; padding: 1.2rem; max-width: 440px; margin: 1.2rem auto; text-align: left; font-size: .85rem; }
.hb-voucher .vr { display: flex; justify-content: space-between; padding: .2rem 0; }

.hb-trip { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.hb-trip.past { border-left-color: var(--muted); opacity: .85; }
.hb-trip .te { width: 3rem; height: 3rem; border-radius: .7rem; display: grid; place-items: center; font-size: 1.5rem; color: #fff; }
.hb-trip b { display: block; } .hb-trip .tm { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.hb-trip .tag { display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; margin-top: .35rem; }
.hb-trip .tag.up { background: #dbeafe; color: var(--brand-ink); } .hb-trip .tag.past { background: #e2e8f0; color: var(--muted); }

.hb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.hb-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); }
.hb-kpi b { font-size: 1.7rem; font-weight: 800; display: block; } .hb-kpi small { color: var(--muted); font-size: .78rem; }
.hb-kpi .delta { color: var(--ok); font-size: .74rem; font-weight: 600; }
.hb-host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } @media (max-width: 900px) { .hb-host-grid { grid-template-columns: 1fr; } }
.hb-card-wide { grid-column: 1 / -1; } #hb-revchart { width: 100%; height: 180px; }

.hb-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: .7rem; font: 700 .88rem inherit; z-index: 200; box-shadow: 0 15px 40px -12px rgba(0,0,0,.4); max-width: 90vw; }
.hb-toast[hidden] { display: none; }
