/* Hostayle 2026 redesign: dashboard mockups, how-it-works, scroll reveal, auth panel. Loaded after hostayle-site.css. */
.hx-center-head { max-width: 46rem; margin: 0 auto 56px; text-align: center; }
.hx-center-head .hs-lead { margin: 16px auto 0; }
.hx-showcase { background: radial-gradient(1200px 500px at 50% 100%, #dff1ea 0%, rgba(223,241,234,0) 70%), var(--hs-bg); }
.hx-dash-stage { max-width: 1120px; margin: 0 auto; }

.hx-dash { overflow: hidden; border: 1px solid var(--hs-line); border-radius: 18px; background: #fff; box-shadow: 0 2px 4px rgba(21,23,28,.04), 0 40px 80px -20px rgba(14,60,50,.28); font-size: 12.5px; color: var(--hs-ink); text-align: left; }
.hx-dash-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--hs-line); background: #fbfaf8; }
.hx-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2ded6; }
.hx-dash-bar span { margin-left: 12px; color: var(--hs-muted); font-size: 12px; }
.hx-dash-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.hx-dash-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--hs-line); background: #fbfaf8; }
.hx-dash-org { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.hx-dash-org em { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--hs-accent); color: #fff; font-style: normal; }
.hx-dash-side span { padding: 7px 10px; border-radius: 8px; color: var(--hs-ink-2); }
.hx-dash-side span.is-active { background: var(--hs-accent-soft); color: var(--hs-accent); font-weight: 600; }
.hx-dash-main { min-width: 0; padding: 20px; background: #f7f6f2; }
.hx-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hx-dash-head strong { display: block; font-size: 16px; }
.hx-dash-head small { color: var(--hs-muted); }
.hx-dash-head em { padding: 8px 12px; border-radius: 8px; background: var(--hs-accent); color: #fff; font-style: normal; font-weight: 600; white-space: nowrap; }
.hx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hx-kpi { min-width: 0; padding: 12px 14px; border: 1px solid var(--hs-line); border-radius: 12px; background: #fff; }
.hx-kpi small { display: block; color: var(--hs-muted); }
.hx-kpi strong { display: block; margin: 2px 0; font-size: 22px; letter-spacing: -0.02em; }
.hx-kpi span { color: var(--hs-muted); font-size: 11.5px; }
.hx-kpi span.up { color: var(--hs-success); }
.hx-kpi span.warn { color: var(--hs-warning); }
.hx-dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.hx-panel { min-width: 0; padding: 14px; border: 1px solid var(--hs-line); border-radius: 12px; background: #fff; }
.hx-panel-wide { grid-column: 1 / -1; }
.hx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--hs-muted); font-size: 11.5px; }
.hx-panel-head b { color: var(--hs-ink); font-size: 13px; }
.hx-panel-head i { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; border-radius: 2px; }
.hx-beds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hx-beds i { display: grid; place-items: center; height: 30px; border-radius: 6px; font-size: 10.5px; font-style: normal; font-weight: 600; }
.hx-panel-head i.o, .hx-beds i.o { background: #d7ece5; color: #0a6352; }
.hx-panel-head i.v, .hx-beds i.v { background: #fff; color: var(--hs-ink-2); box-shadow: inset 0 0 0 1.5px #9fd3c3; }
.hx-panel-head i.n, .hx-beds i.n { background: #fdf0d8; color: #8a5300; }
.hx-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.hx-bars div { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.hx-bars i { width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #2aa588, var(--hs-accent)); transform-origin: bottom; }
.hx-bars div:last-child i { background: linear-gradient(180deg, #8fd9c4, #4fb89d); }
.hx-bars small { color: var(--hs-muted); font-size: 10.5px; }
.hx-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hs-line); }
.hx-panel-head + .hx-task { border-top: 0; }
.hx-task i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-style: normal; font-weight: 700; }
.hx-task i.due { background: #fdf0d8; color: #8a5300; }
.hx-task i.in { background: var(--hs-accent-soft); color: var(--hs-accent); }
.hx-task i.fix { background: #fdeceb; color: #b42318; }
.hx-task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-task em { padding: 6px 10px; border: 1px solid var(--hs-line-strong); border-radius: 8px; font-style: normal; font-weight: 600; white-space: nowrap; }

.hx-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hx-how li { position: relative; padding: 32px; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); background: #fff; list-style: none; }
.hx-how li > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 12px; background: var(--hs-accent); color: #fff; font-size: 1.125rem; font-weight: 700; }
.hx-how li p { margin-top: 8px; color: var(--hs-ink-2); }
.hx-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-tool { padding: 24px; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-lg); background: var(--hs-surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hx-tool:hover { transform: translateY(-2px); border-color: #b9dccf; box-shadow: var(--hs-shadow); }
.hx-tool p { margin-top: 6px; color: var(--hs-ink-2); font-size: .9375rem; }
.hx-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hx-phone-stage { display: flex; justify-content: center; }
.hx-phone { width: 290px; max-width: 100%; padding: 12px; border-radius: 42px; background: #050607; box-shadow: 0 0 0 1px #2a2d34, 0 40px 80px rgba(0,0,0,.5); }
.hx-phone-screen { display: grid; align-content: start; gap: 10px; min-height: 520px; padding: 28px 16px 20px; border-radius: 32px; background: #f4f3ef; color: var(--hs-ink); font-size: 13px; }
.hs-band-dark .hx-phone-top b, .hs-band-dark .hx-phone-card b { color: var(--hs-ink); }
.hx-phone-top b { display: block; font-size: 20px; }
.hs-band-dark .hx-phone small, .hs-band-dark .hx-phone span { color: var(--hs-muted); }
.hx-phone-card { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; }
.hx-phone-card span { font-size: 12px; }
.hx-phone-due { background: var(--hs-accent); }
.hs-band-dark .hx-phone-due small, .hs-band-dark .hx-phone-due span { color: rgba(255,255,255,.85); }
.hx-phone-due strong { color: #fff; font-size: 30px; letter-spacing: -0.02em; }
.hx-phone-due em { margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff; color: var(--hs-accent); font-style: normal; font-weight: 700; text-align: center; }
.hx-track { display: flex; gap: 4px; margin: 4px 0; }
.hx-track i { flex: 1; height: 4px; border-radius: 4px; background: var(--hs-line); }
.hx-track i.on { background: var(--hs-accent); }

/* Scroll reveal: armed only by JS, so no-JS and reduced-motion visitors see everything. */
.hx-reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.hx-reveal-on [data-reveal="zoom"] { transform: translateY(40px) scale(.96); }
.hx-reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.hx-reveal-on [data-reveal].is-in .hx-bars i { animation: hx-grow .9s cubic-bezier(.2,.7,.2,1) both .3s; }
@keyframes hx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
[data-enter] { animation: hx-enter .9s cubic-bezier(.2,.7,.2,1) both .1s; }
@keyframes hx-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Auth: dark product panel replaces the photo slideshow on every sign-in page */
.hs-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.hs-auth-main { background: #fff; }
.hs-auth-title { font-size: 2.125rem; }
.hs-auth .hs-input { min-height: 50px; border-radius: 12px; }
.hs-auth .hs-btn-lg { min-height: 52px; border-radius: 12px; }
.hx-auth-panel { position: sticky; top: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); overflow: hidden; padding: 48px; border-radius: 24px; background: radial-gradient(700px 400px at 100% 0%, #13846c 0%, rgba(19,132,108,0) 60%), radial-gradient(600px 400px at 0% 100%, #0b5a4a 0%, rgba(11,90,74,0) 60%), #0a1714; color: #fff; }
.hx-auth-copy strong { display: block; max-width: 26rem; font-size: 2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.hx-auth-copy span { display: block; max-width: 28rem; margin-top: 14px; color: rgba(255,255,255,.72); }
.hx-auth-mock { display: grid; gap: 10px; max-width: 480px; font-size: 12.5px; color: var(--hs-ink); animation: hx-enter 1s cubic-bezier(.2,.7,.2,1) both .2s; }
.hx-auth-mock .hx-kpis { grid-template-columns: 1fr 1fr; margin: 0; }
.hx-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); animation: hx-enter .8s cubic-bezier(.2,.7,.2,1) both 1s; }
.hx-toast > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--hs-success-soft); color: var(--hs-success); font-style: normal; font-weight: 700; }
.hx-toast small { display: block; color: var(--hs-muted); }
.hx-auth-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; color: rgba(255,255,255,.8); font-size: .9375rem; }
.hx-auth-points li { list-style: none; }
.hx-auth-points li::before { content: "\2713"; margin-right: 8px; color: #6ee7c5; }

@media (prefers-reduced-motion: reduce) {
    [data-enter], .hx-auth-mock, .hx-toast { animation: none; }
    .hx-tool { transition: none; }
}
@media (max-width: 1080px) {
    .hx-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-dash-body { grid-template-columns: minmax(0, 1fr); }
    .hx-dash-side { display: none; }
    .hx-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) { .hs-auth-aside { display: none; } .hs-auth { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
    .hx-how { grid-template-columns: minmax(0, 1fr); }
    .hx-kpis { grid-template-columns: 1fr 1fr; }
    .hx-dash-grid { grid-template-columns: minmax(0, 1fr); }
    .hx-dash-main { padding: 12px; }
    .hx-task { grid-template-columns: 28px minmax(0, 1fr); }
    .hx-task em { display: none; }
    .hx-center-head { margin-bottom: 40px; }
}
@media (max-width: 480px) { .hx-tools { grid-template-columns: minmax(0, 1fr); } .hx-dash-head em { display: none; } }

/* ===== Stays explorer ===== */
.hx-stays-head { padding: 40px 0 24px; background: radial-gradient(900px 360px at 85% 0%, #dff1ea 0%, rgba(223,241,234,0) 70%), var(--hs-bg); }
.hx-stays-head .hs-lead { margin-top: 16px; }
.hx-stays-head .hs-search { margin-top: 28px; }
.hx-filterbar { position: sticky; top: var(--hs-header-h); z-index: 40; border-bottom: 1px solid transparent; background: rgba(248, 247, 244, .92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: border-color .2s ease, box-shadow .2s ease; }
.hx-filterbar.is-stuck { border-color: var(--hs-line); box-shadow: 0 8px 24px rgba(21, 23, 28, .06); }
.hx-filterbar-inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.hx-chips { display: flex; flex: 1; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px; margin: -2px; }
.hx-chips::-webkit-scrollbar { display: none; }
.hx-chip { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hs-line-strong); border-radius: 999px; background: var(--hs-surface); color: var(--hs-ink) !important; font: inherit; font-size: .875rem; font-weight: 500; white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.hx-chip svg { width: 15px; height: 15px; color: var(--hs-accent); }
.hx-chip:hover { transform: translateY(-1px); border-color: #9fd3c3; box-shadow: 0 4px 12px rgba(14, 60, 50, .08); }
.hx-chip:active { transform: translateY(0) scale(.97); }
.hx-chip.is-on { border-color: var(--hs-accent); background: var(--hs-accent); color: #fff !important; }
.hx-chip.is-on svg { color: #fff; }
.hx-sort { display: flex; flex: none; align-items: center; gap: 8px; color: var(--hs-muted); font-size: .875rem; }
.hx-sort select { min-height: 44px; padding: 0 32px 0 14px; border: 1px solid var(--hs-line-strong); border-radius: 999px; background: var(--hs-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2363676f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; color: var(--hs-ink); font: inherit; font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hx-results { padding: 32px 0 96px; }
.hx-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.hx-results-head h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.hx-clear { display: inline-flex; align-items: center; min-height: 44px; color: var(--hs-accent) !important; font-weight: 500; font-size: .9375rem; }
.hx-clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx-stays-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hx-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border: 1px dashed var(--hs-line-strong); border-radius: var(--hs-radius-xl); background: var(--hs-surface); text-align: center; }
.hx-empty > span { font-size: 2rem; }
.hx-empty p { max-width: 30rem; color: var(--hs-muted); }
.hx-empty .hs-btn, .hx-empty .hs-actions { margin-top: 8px; }
.hx-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.hx-tips div { display: grid; gap: 4px; padding: 20px; border-radius: var(--hs-radius-lg); background: var(--hs-surface-2); }
.hx-tips span { color: var(--hs-muted); font-size: .9375rem; }

/* Stay card (home + stays) */
.hx-stay { position: relative; overflow: hidden; border: 1px solid var(--hs-line); border-radius: 20px; background: var(--hs-surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hx-stay:hover { transform: translateY(-2px); border-color: #cfe7df; box-shadow: 0 18px 40px -12px rgba(14, 60, 50, .18); }
.hx-stay .hs-media { border-radius: 0; }
.hx-stay:hover .hs-media { box-shadow: none; }
.hx-stay-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18)); pointer-events: none; }
.hx-stay-state, .hx-stay-dist { position: absolute; z-index: 1; top: 12px; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hx-stay-state { left: 12px; }
.hx-stay-state.is-open { background: #fff; color: #0a6352; }
.hx-stay-state.is-open::before { content: ''; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #18a07f; box-shadow: 0 0 0 3px rgba(24,160,127,.2); }
.hx-stay-state.is-few { background: #fff4df; color: #8a5300; }
.hx-stay-state.is-full { background: rgba(21,23,28,.75); color: #fff; }
.hx-stay-dist { right: 62px; background: rgba(255,255,255,.94); color: var(--hs-ink); }
.hx-stay-save { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.hx-stay-save button, a.hx-stay-save { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--hs-ink) !important; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s ease, color .15s ease; }
.hx-stay-save button:hover, a.hx-stay-save:hover { transform: scale(1.08); color: #d6334f !important; }
.hx-stay-save svg { width: 18px; height: 18px; }
.hx-stay-body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.hx-stay-area { display: flex; align-items: center; gap: 6px; color: var(--hs-muted); font-size: .9375rem; }
.hx-stay-area svg { width: 15px; height: 15px; }
.hx-stay-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hx-stay-tags li { padding: 4px 10px; border-radius: 999px; background: var(--hs-surface-2); color: var(--hs-ink-2); font-size: .8125rem; }
.hx-stay-tags li.is-room { background: var(--hs-accent-soft); color: #0a6352; font-weight: 500; }
.hx-stay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--hs-line); }
.hx-stay-price { margin: 0; font-size: .875rem; color: var(--hs-muted); }
.hx-stay-price strong { margin-right: 4px; color: var(--hs-ink); font-size: 1.25rem; letter-spacing: -0.02em; }
.hx-stay-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hs-ink); color: #fff; transition: background-color .15s ease, transform .15s ease; }
.hx-stay:hover .hx-stay-go { background: var(--hs-accent); transform: translateX(2px); }
.hx-stay-go svg { width: 16px; height: 16px; }
.hx-stay-map { position: absolute; right: 72px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0; font-size: .875rem; }
.hx-stay-map svg { width: 14px; height: 14px; }
.hs-stays-grid { gap: 24px; }
.hs-stays-grid .hx-stay { height: 100%; }

/* ===== Site-wide refresh ===== */
.hs-btn { border-radius: 12px; }
.hs-btn-primary:hover, .hs-btn-secondary:hover { transform: translateY(-1px); }
.hs-btn-primary:active, .hs-btn-secondary:active { transform: translateY(0) scale(.98); }
.hs-btn-primary:hover { box-shadow: 0 8px 20px -6px rgba(14, 124, 102, .45); }
.hs-card { border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hs-card-link:hover { transform: translateY(-2px); border-color: #cfe7df; box-shadow: 0 18px 40px -16px rgba(14, 60, 50, .2); }
.hs-card-icon { border-radius: 12px; background: var(--hs-accent-soft); color: var(--hs-accent); }
.hs-search { border-radius: 20px; }
.hs-cta { border-radius: 28px; background: radial-gradient(700px 300px at 100% 0%, #dff1ea, rgba(223,241,234,0) 70%), var(--hs-surface); }
.hs-footer { border-top: 0; background: #0f1715; color: #a9b6b2; }
.hs-footer h2 { color: #fff; }
.hs-footer a:hover { color: #fff; }
.hs-footer-brand img { filter: brightness(0) invert(1); opacity: .92; }
.hs-footer-bottom { border-top-color: rgba(255,255,255,.1); }

/* Tablet */
@media (max-width: 1080px) {
    .hx-stays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone */
@media (max-width: 767px) {
    .hx-stays-head { padding: 24px 0 16px; }
    .hx-stays-head .hs-title { font-size: 1.875rem; }
    /* Chips cover budget and room type on phones, so the search shows only the location. */
    .hx-stays-head .hs-search-field:not(.hs-search-location) { display: none; }
    .hx-stays-head .hs-search-location { border-bottom: 0; }
    .hx-stays-head .hs-search { margin-top: 20px; }
    .hx-filterbar-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 10px; }
    .hx-chips { margin-inline: calc(var(--hs-gutter) * -1); padding-inline: var(--hs-gutter); }
    .hx-sort { justify-content: space-between; }
    .hx-sort select { flex: 1; }
    .hx-stays-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .hx-tips { grid-template-columns: minmax(0, 1fr); }
    .hx-results { padding-bottom: 64px; }
}
@media (hover: none) {
    .hx-chip:hover, .hx-stay:hover, .hs-card-link:hover, .hs-btn-primary:hover, .hs-btn-secondary:hover { transform: none; }
}
