/* ==========================================================================
   LaoStay design system
   Lao-first typography (Noto Sans Lao) with Inter for Latin script.
   Builds on Bootstrap 5 utilities/grid; brand tokens override Bootstrap vars.
   ========================================================================== */

:root {
    --ls-primary: #0F766E;
    --ls-primary-600: #0d6660;
    --ls-primary-50: #e6f4f2;
    --ls-nav: #14263D;
    --ls-nav-2: #1c3352;
    --ls-bg: #F8FAFC;
    --ls-surface: #FFFFFF;
    --ls-accent: #F59E0B;
    --ls-success: #16A34A;
    --ls-warning: #F59E0B;
    --ls-error: #DC2626;
    --ls-text: #0f172a;
    --ls-muted: #5b6474;
    --ls-border: #e2e8f0;
    --ls-radius: 14px;
    --ls-radius-sm: 10px;
    --ls-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
    --ls-shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
    --ls-font: "Noto Sans Lao", "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

    --bs-primary: var(--ls-primary);
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: var(--ls-primary);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--ls-primary-600);
    --bs-body-font-family: var(--ls-font);
    --bs-body-bg: var(--ls-bg);
    --bs-body-color: var(--ls-text);
    --bs-border-color: var(--ls-border);
    --bs-border-radius: var(--ls-radius-sm);
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ls-font);
    background: var(--ls-bg);
    color: var(--ls-text);
    line-height: 1.6;
    min-height: 100vh;
}
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; }
h1:focus { outline: none; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.text-muted { color: var(--ls-muted) !important; }

/* Accessibility */
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--ls-surface); padding: .5rem 1rem; border-radius: var(--ls-radius-sm);
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .25); border-color: var(--ls-primary); }

/* Buttons */
.btn { border-radius: var(--ls-radius-sm); font-weight: 600; padding: .55rem 1rem; min-height: 42px; }
.btn-sm { min-height: 34px; padding: .3rem .7rem; }
.btn-primary { --bs-btn-bg: var(--ls-primary); --bs-btn-border-color: var(--ls-primary); --bs-btn-hover-bg: var(--ls-primary-600); --bs-btn-hover-border-color: var(--ls-primary-600); --bs-btn-active-bg: var(--ls-primary-600); --bs-btn-disabled-bg: var(--ls-primary); --bs-btn-disabled-border-color: var(--ls-primary); }
.btn-outline-primary { --bs-btn-color: var(--ls-primary); --bs-btn-border-color: var(--ls-primary); --bs-btn-hover-bg: var(--ls-primary); --bs-btn-hover-border-color: var(--ls-primary); --bs-btn-active-bg: var(--ls-primary); }
.btn-accent { background: var(--ls-accent); border-color: var(--ls-accent); color: #1f1300; }
.btn-accent:hover { background: #d98a06; color: #1f1300; }
.btn-success { --bs-btn-bg: var(--ls-success); --bs-btn-border-color: var(--ls-success); }
.btn-danger { --bs-btn-bg: var(--ls-error); --bs-btn-border-color: var(--ls-error); }

/* Forms */
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: var(--ls-radius-sm); min-height: 44px; }
.form-hint { font-size: .8rem; color: var(--ls-muted); }
.validation-message, .text-danger { color: var(--ls-error) !important; font-size: .85rem; }
.form-section { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); padding: 1.25rem; margin-bottom: 1rem; }
.form-section > h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.rent-calc { border: 1px dashed var(--ls-border); border-radius: var(--ls-radius-sm); padding: 1rem; }
.rent-calc details summary { cursor: pointer; color: var(--ls-primary); }

/* Cards */
.ls-card { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); box-shadow: var(--ls-shadow); }
.ls-card-body { padding: 1.25rem; }
.ls-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--ls-border); display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.ls-card-header h2 { font-size: 1.05rem; margin: 0; }

/* Status chips (text label + dot; colour is never the only signal) */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.chip-primary { background: var(--ls-primary-50); color: var(--ls-primary-600); border-color: #b9e0db; }
.chip-success { background: #e8f7ee; color: #12813b; border-color: #bfe8cf; }
.chip-warning { background: #fff6e5; color: #9a5b00; border-color: #fde3b0; }
.chip-accent { background: #fff1d6; color: #8a4b00; border-color: #fbd38d; }
.chip-error { background: #fdecec; color: #b21d1d; border-color: #f7c5c5; }
.chip-neutral { background: #eef1f5; color: #3f4a5a; border-color: #dde3ea; }
.demo-badge { display: inline-block; background: #fff1d6; color: #8a4b00; border: 1px dashed #f59e0b; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.kpi-card { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); padding: 1rem 1.1rem; box-shadow: var(--ls-shadow); position: relative; overflow: hidden; }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ls-primary); }
.kpi-success::before { background: var(--ls-success); }
.kpi-warning::before, .kpi-accent::before { background: var(--ls-accent); }
.kpi-error::before { background: var(--ls-error); }
.kpi-nav::before { background: var(--ls-nav); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.kpi-label { font-size: .82rem; color: var(--ls-muted); font-weight: 600; }
.kpi-icon { font-size: 1.15rem; }
.kpi-value { font-size: 1.55rem; font-weight: 700; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: .78rem; color: var(--ls-muted); }
.section-label { font-size: .78rem; font-weight: 700; color: var(--ls-muted); text-transform: uppercase; letter-spacing: .06em; margin: 1.25rem 0 .6rem; display: flex; align-items: center; gap: .5rem; }

/* Tables: responsive (stack into cards on phones) */
.ls-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ls-surface); }
.ls-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ls-muted); font-weight: 700; background: #f4f6f9; padding: .65rem .8rem; border-bottom: 1px solid var(--ls-border); white-space: nowrap; }
.ls-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--ls-border); vertical-align: middle; }
.ls-table tbody tr:hover { background: #f9fbfc; }
.ls-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { border: 1px solid var(--ls-border); border-radius: var(--ls-radius); overflow: hidden; background: var(--ls-surface); }
@media (max-width: 767.98px) {
    .ls-table.stack thead { display: none; }
    .ls-table.stack, .ls-table.stack tbody, .ls-table.stack tr, .ls-table.stack td { display: block; width: 100%; }
    .ls-table.stack tr { border-bottom: 1px solid var(--ls-border); padding: .5rem .25rem; }
    .ls-table.stack td { border: none; padding: .25rem .75rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .ls-table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--ls-muted); text-align: left; }
    .ls-table.stack td.num { justify-content: space-between; }
}

/* Empty / skeleton */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ls-text); }
.empty-icon { font-size: 2.4rem; margin-bottom: .5rem; }
.skeleton-wrap { display: grid; gap: .6rem; }
.skeleton-line { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #e9edf2 25%, #f4f6f9 37%, #e9edf2 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton-line { animation: none; } }

/* Modal & toasts */
.ls-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1040; }
.ls-modal { position: fixed; z-index: 1050; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--ls-surface); border-radius: var(--ls-radius); box-shadow: var(--ls-shadow-lg); }
.ls-modal-wide { width: min(860px, calc(100vw - 24px)); }
.ls-modal-header, .ls-modal-footer { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ls-modal-header { border-bottom: 1px solid var(--ls-border); }
.ls-modal-footer { border-top: 1px solid var(--ls-border); justify-content: flex-end; flex-wrap: wrap; }
.ls-modal-body { padding: 1.25rem; overflow-y: auto; }
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 1100; display: grid; gap: .5rem; width: min(380px, calc(100vw - 32px)); }
.ls-toast { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--ls-radius-sm); color: #fff; box-shadow: var(--ls-shadow-lg); font-weight: 500; }
.ls-toast-success { background: var(--ls-success); }
.ls-toast-error { background: var(--ls-error); }
.ls-toast-info { background: var(--ls-nav); }

/* Page header */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-size: 1.5rem; margin: 0; }
.page-subtitle { color: var(--ls-muted); margin: .2rem 0 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: .75rem; padding: 1rem 0; }
.pager-info { color: var(--ls-muted); font-size: .9rem; }

/* ───────────── Public site ───────────── */
.site-nav { background: var(--ls-surface); border-bottom: 1px solid var(--ls-border); position: sticky; top: 0; z-index: 1000; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ls-nav); }
.brand:hover { text-decoration: none; color: var(--ls-nav); }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--ls-primary); }
.site-links { display: flex; align-items: center; gap: .4rem; }
.site-links a.navlink { color: var(--ls-text); font-weight: 600; padding: .45rem .7rem; border-radius: 8px; }
.site-links a.navlink:hover { background: var(--ls-primary-50); text-decoration: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--ls-border); border-radius: 999px; overflow: hidden; font-size: .8rem; }
.lang-switch a { padding: .25rem .6rem; color: var(--ls-muted); font-weight: 700; }
.lang-switch a.active { background: var(--ls-primary); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
.mobile-menu { display: none; }
/* Phones: a signed-in header (language, chat, bell, account, menu) must fit 360–375px without pushing ☰ off screen. */
@media (max-width: 420px) {
    .site-nav .container { gap: .5rem; }
    .brand { font-size: 1.05rem; gap: .35rem; }
    .brand img { width: 28px; height: 28px; }
    .site-links { gap: .2rem; }
    .lang-menu summary { padding: .25rem .45rem; }
    .lang-menu summary span { display: none; }
    .site-links .guest-bell { padding: .35rem .3rem; }
}
@media (max-width: 767.98px) {
    .site-links .hide-sm { display: none !important; }   /* beats Bootstrap d-inline on the logout form */
    .mobile-menu { display: block; }
    .mobile-menu summary { list-style: none; cursor: pointer; padding: .4rem .7rem; border: 1px solid var(--ls-border); border-radius: 8px; font-weight: 700; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu[open] .mobile-panel { display: grid; }
    .mobile-panel { display: none; position: absolute; right: 12px; top: 60px; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); box-shadow: var(--ls-shadow-lg); padding: .5rem; min-width: 220px; gap: .2rem; }
    .mobile-panel a, .mobile-panel button { padding: .6rem .8rem; border-radius: 8px; color: var(--ls-text); font-weight: 600; text-align: left; }
}

.hero { background: radial-gradient(1200px 500px at 15% -10%, #1aa396 0%, transparent 60%), linear-gradient(135deg, var(--ls-nav) 0%, #10405a 55%, var(--ls-primary) 100%); color: #fff; padding: 3.5rem 0 5.5rem; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.25; max-width: 760px; }
.hero p.lead { opacity: .9; max-width: 640px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--ls-bg); border-radius: 50% 50% 0 0; }
.search-panel { background: var(--ls-surface); color: var(--ls-text); border-radius: var(--ls-radius); box-shadow: var(--ls-shadow-lg); padding: 1rem; margin-top: -4rem; position: relative; z-index: 2; }
/* Home: search box as a sticky left sidebar; stacks above the content below lg. */
.home-search { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; }
.home-search .type-pill { padding: .3rem .7rem; font-size: .85rem; min-height: 36px; }
.home-layout > .col-lg-9 { padding-top: .5rem; }
@media (max-width: 991.98px) { .home-search { position: relative; max-height: none; overflow: visible; } .home-layout > .col-lg-9 { padding-top: 0; } }

.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.property-card { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); overflow: hidden; box-shadow: var(--ls-shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; color: var(--ls-text); }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--ls-shadow-lg); text-decoration: none; color: var(--ls-text); }
.property-cover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #cfe9e5, #e8eef6); position: relative; overflow: hidden; }
.property-cover img { width: 100%; height: 100%; object-fit: cover; }
.property-cover .badges { position: absolute; left: .6rem; top: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.type-badge { background: rgba(20, 38, 61, .85); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 6px; }
.property-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.property-name { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.property-loc { color: var(--ls-muted); font-size: .88rem; }
.property-price { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.price-amount { font-weight: 800; font-size: 1.12rem; color: var(--ls-primary-600); }
.price-unit { color: var(--ls-muted); font-size: .8rem; }
.avail { font-size: .8rem; font-weight: 600; }
.avail-yes { color: var(--ls-success); }
.avail-no { color: var(--ls-error); }
.booked-count { font-size: .8rem; font-weight: 600; color: #c2410c; margin-top: .15rem; }
.booked-count.is-new { color: var(--ls-muted); font-weight: 500; }

.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.dest-card { position: relative; border-radius: var(--ls-radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; display: flex; align-items: flex-end; padding: .9rem; background: linear-gradient(160deg, #14263d 0%, #0f766e 100%); box-shadow: var(--ls-shadow); }
.dest-card:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.dest-card strong { font-size: 1.05rem; display: block; }

.filters { position: sticky; top: 80px; }
@media (max-width: 991.98px) { .filters { position: static; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; border-radius: var(--ls-radius); overflow: hidden; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; min-height: 140px; background: linear-gradient(135deg, #cfe9e5, #e8eef6); }
.gallery .main { grid-row: span 2; min-height: 300px; }
@media (max-width: 767.98px) { .gallery { grid-template-columns: 1fr; } .gallery .main { min-height: 220px; } .gallery .side { display: none; } }
.amenity-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.amenity-list li { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: 999px; padding: .25rem .75rem; font-size: .88rem; }
.room-type-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ls-border); }
.room-type-row:last-child { border-bottom: none; }
@media (max-width: 575.98px) { .room-type-row { grid-template-columns: 1fr; } }
.summary-box { position: sticky; top: 84px; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-variant-numeric: tabular-nums; }
.summary-total { border-top: 2px solid var(--ls-border); margin-top: .5rem; padding-top: .6rem; font-weight: 800; font-size: 1.1rem; }
/* Guest booking progress: booked → approval → payment → slip check → confirmed. */
.booking-progress { list-style: none; padding: 0; display: flex; gap: .25rem; counter-reset: step; }
.booking-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .82rem; color: var(--ls-muted); position: relative; }
.booking-progress li + li::before { content: ""; position: absolute; top: .8rem; right: 50%; width: 100%; height: 2px; background: var(--ls-border); z-index: 0; }
.booking-progress li.done + li::before, .booking-progress li.done + li.current::before { background: var(--ls-primary); }
.booking-progress-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--ls-border); background: var(--ls-surface); display: grid; place-items: center; font-weight: 800; font-size: .8rem; position: relative; z-index: 1; }
.booking-progress li.done .booking-progress-dot { background: var(--ls-primary); border-color: var(--ls-primary); color: #fff; }
.booking-progress li.current { color: var(--ls-text); font-weight: 700; }
.booking-progress li.current .booking-progress-dot { border-color: var(--ls-primary); box-shadow: 0 0 0 4px var(--ls-primary-50); }
@media (max-width: 575.98px) {
  .booking-progress { flex-direction: column; align-items: stretch; gap: .5rem; }
  .booking-progress li { flex-direction: row; text-align: left; }
  .booking-progress li + li::before { display: none; }
}
.booking-progress-ended { text-align: center; }
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .06em; font-size: 1.4rem; background: var(--ls-primary-50); color: var(--ls-primary-600); padding: .3rem .8rem; border-radius: 8px; display: inline-block; }

.site-footer { background: var(--ls-nav); color: #c9d4e3; margin-top: 4rem; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; }

/* ───────────── Workspace (owner / admin) ───────────── */
.ws { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.ws.collapsed { grid-template-columns: 76px 1fr; }
.ws-sidebar { background: var(--ls-nav); color: #c9d4e3; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 1030; }
.ws-brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; color: #fff; font-weight: 800; font-size: 1.15rem; min-height: 64px; }
.ws-brand:hover { color: #fff; text-decoration: none; }
.ws-brand img { width: 32px; height: 32px; }
.ws-nav { padding: .5rem .6rem 1rem; display: grid; gap: .1rem; }
.ws-nav .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8193ab; margin: .9rem .6rem .3rem; font-weight: 700; }
.ws-nav a { display: flex; align-items: center; gap: .7rem; color: #d8e1ec; padding: .55rem .7rem; border-radius: 9px; font-weight: 500; font-size: .93rem; white-space: nowrap; }
.ws-nav a:hover { background: var(--ls-nav-2); text-decoration: none; color: #fff; }
.ws-nav a.active { background: var(--ls-primary); color: #fff; }
.ws-nav .ico { width: 1.4rem; text-align: center; flex-shrink: 0; }
.ws.collapsed .ws-nav .label, .ws.collapsed .ws-nav .group, .ws.collapsed .ws-brand span { display: none; }
.ws-main { min-width: 0; display: flex; flex-direction: column; }
.ws-topbar { background: var(--ls-surface); border-bottom: 1px solid var(--ls-border); min-height: 64px; display: flex; align-items: center; gap: .75rem; padding: .5rem 1.25rem; position: sticky; top: 0; z-index: 1020; }
.ws-topbar .spacer { flex: 1; }
.ws-content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.icon-btn { border: 1px solid var(--ls-border); background: var(--ls-surface); border-radius: 10px; min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--ls-text); }
.icon-btn:hover { background: var(--ls-bg); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ls-error); color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.icon-btn.ringing { animation: ls-ring .45s ease-in-out 3; }
@keyframes ls-ring {
    0%, 100% { transform: none; box-shadow: none; }
    25% { transform: rotate(-14deg) scale(1.12); background: #fde68a; box-shadow: 0 0 0 4px rgba(234, 179, 8, .45); }
    75% { transform: rotate(14deg) scale(1.12); background: #fde68a; box-shadow: 0 0 0 4px rgba(234, 179, 8, .45); }
}
@media (prefers-reduced-motion: reduce) { .icon-btn.ringing { animation: ls-flash .5s step-end 3; } @keyframes ls-flash { 50% { background: #fde68a; } } }
.property-select { max-width: 340px; font-weight: 600; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ls-primary-50); color: var(--ls-primary-600); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ws-backdrop { display: none; }
@media (max-width: 991.98px) {
    .ws, .ws.collapsed { grid-template-columns: 1fr; }
    .ws-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
    .ws.drawer-open .ws-sidebar { transform: translateX(0); }
    .ws.drawer-open .ws-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1025; }
    .ws.collapsed .ws-nav .label, .ws.collapsed .ws-nav .group, .ws.collapsed .ws-brand span { display: initial; }
    .ws-content { padding: 1rem; }
    .property-select { max-width: 52vw; }
    .hide-md { display: none !important; }
}

/* Calendar */
.cal-wrap { overflow-x: auto; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); background: var(--ls-surface); }
.cal { display: grid; min-width: max-content; }
.cal-head, .cal-row { display: contents; }
.cal-cell { border-bottom: 1px solid var(--ls-border); border-right: 1px solid #eef1f5; height: 46px; position: relative; }
.cal-room { position: sticky; left: 0; background: var(--ls-surface); z-index: 2; padding: .35rem .7rem; font-weight: 700; font-size: .85rem; border-right: 1px solid var(--ls-border); display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.cal-room small { font-weight: 500; color: var(--ls-muted); font-size: .72rem; }
.cal-day { font-size: .72rem; text-align: center; color: var(--ls-muted); padding: .25rem 0; font-weight: 600; height: auto; background: #f4f6f9; }
.cal-day.today { color: var(--ls-primary-600); background: var(--ls-primary-50); }
.cal-day.weekend { background: #eef2f6; }
.cal-block { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; font-size: .74rem; font-weight: 600; padding: .1rem .45rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; border: 1px solid; z-index: 1; text-align: left; }
.cal-block.k-primary { background: #d6efec; border-color: #7cc5bd; color: #0b4f4a; }
.cal-block.k-success { background: #dcf4e4; border-color: #88d2a4; color: #0e5f2c; }
.cal-block.k-accent { background: #fff0cf; border-color: #f6c35a; color: #6e3d00; border-style: dashed; }
.cal-block.k-warning { background: #fff6e5; border-color: #f6c35a; color: #6e3d00; }
.cal-block.k-error { background: repeating-linear-gradient(45deg, #fde5e5, #fde5e5 6px, #fbd2d2 6px, #fbd2d2 12px); border-color: #ef9a9a; color: #8a1616; }
.cal-block.k-neutral { background: #eef1f5; border-color: #c7d0db; color: #3f4a5a; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Front desk board */
.room-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.room-tile { background: var(--ls-surface); border: 1px solid var(--ls-border); border-left-width: 5px; border-radius: var(--ls-radius-sm); padding: .75rem .85rem; display: flex; flex-direction: column; gap: .3rem; min-height: 128px; }
.room-tile .no { font-size: 1.3rem; font-weight: 800; }
.room-tile.t-success { border-left-color: var(--ls-success); }
.room-tile.t-primary { border-left-color: var(--ls-primary); }
.room-tile.t-accent { border-left-color: var(--ls-accent); }
.room-tile.t-warning { border-left-color: #eab308; }
.room-tile.t-error { border-left-color: var(--ls-error); }
.room-tile .book-btn { align-self: stretch; margin-top: .2rem; }
.frontdesk-list { max-height: 260px; overflow-y: auto; }
.deposit-box { border: 1px dashed var(--ls-border); border-radius: var(--ls-radius-sm); padding: .9rem 1rem; background: var(--ls-bg); }
.room-tile .pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: inherit; text-decoration: none; }

/* Charts */
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; }
.bar-chart .bar { flex: 1; background: var(--ls-primary); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bar-chart .bar:hover { background: var(--ls-primary-600); }
.bar-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ls-muted); margin-top: .3rem; }
.occ-row { display: grid; grid-template-columns: 70px 1fr 48px; gap: .6rem; align-items: center; font-size: .82rem; }
.occ-track { background: #eef1f5; border-radius: 6px; height: 10px; overflow: hidden; }
.occ-fill { height: 100%; background: var(--ls-primary); border-radius: 6px; }
.alert-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--ls-border); background: var(--ls-surface); }

/* Print (invoices, receipts) */
.print-doc { background: #fff; max-width: 820px; margin: 0 auto; padding: 2rem; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); }
@media print {
    .ws-sidebar, .ws-topbar, .no-print, .toast-host, .site-nav, .site-footer { display: none !important; }
    .ws { display: block; }
    .ws-content { padding: 0; }
    .print-doc { border: none; padding: 0; }
    body { background: #fff; }
}

#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); box-sizing: border-box; display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; border-radius: 8px; }
.blazor-error-boundary::after { content: "An error has occurred."; }
.darker-border-checkbox.form-check-input { border-color: #929292; }

/* ── Location selects + property type pills (search) ── */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 575.98px) { .loc-grid { grid-template-columns: 1fr; } }
.type-pills { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.type-pills legend { width: 100%; float: none; margin-bottom: .25rem; }
.type-pill { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--ls-border);
  background: var(--ls-surface); color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 40px; }
.type-pill:hover { border-color: var(--ls-primary); }
.type-pill.active, .type-pill:has(input:checked) { background: var(--ls-primary); border-color: var(--ls-primary); color: #fff; }
.type-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-pill:has(input:focus-visible) { outline: 3px solid var(--ls-accent); outline-offset: 2px; }

/* ── Payment slips ── */
.slip-preview { display: block; max-width: 100%; max-height: 60vh; margin-inline: auto; border-radius: var(--ls-radius-sm); border: 1px solid var(--ls-border); }

/* ───────────── Customer sign-in (Google / Facebook) and the separate owner entrance ───────────── */
.btn-social { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; padding: .65rem 1rem; border-radius: var(--ls-radius-sm); min-height: 46px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover, .btn-google:focus-visible { background: #f7f8f8; color: #1f1f1f; border-color: #c6c9cc; }
.btn-facebook { background: #1877F2; color: #fff; border: 1px solid #1877F2; }
.btn-facebook:hover, .btn-facebook:focus-visible { background: #166fe0; color: #fff; }
.btn-facebook svg circle { fill: #fff; }
.btn-facebook svg path { fill: #1877F2; }
.mock-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #fef3c7; color: #92400e; border-radius: 999px; padding: .1rem .45rem; }
.or-divider { display: flex; align-items: center; gap: .75rem; color: var(--ls-muted); font-size: .8rem; margin: 1rem 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--ls-border); }
.portal-chip { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--ls-nav); background: #e8eef7; border-radius: 999px; padding: .2rem .7rem; margin-bottom: .6rem; }
.sign-in-card .sign-in-buttons { max-width: 420px; }
.mock-account { display: flex; align-items: center; gap: .75rem; width: 100%; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius-sm); padding: .6rem .8rem; cursor: pointer; }
.mock-account:hover, .mock-account:focus-visible { background: #f4f6f9; }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #5f6368; flex: none; }
.mock-oauth.is-google .mock-avatar { background: #1a73e8; }
.mock-oauth.is-facebook .mock-avatar { background: #1877F2; }

/* Check-in / check-out confirmation details */
.confirm-facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .9rem; background: #f4f6f9; border-radius: var(--ls-radius-sm); padding: .75rem 1rem; }
.confirm-facts dt { color: var(--ls-muted); font-weight: 600; }
.confirm-facts dd { margin: 0; }

/* Owner entrance box on the customer sign-in / sign-up pages */
.owner-entry { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; background: linear-gradient(135deg, var(--ls-nav), var(--ls-primary)); color: #fff; border-radius: var(--ls-radius); padding: 1rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--ls-shadow); }
.owner-entry-icon { font-size: 1.9rem; line-height: 1; }
.owner-entry-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: .15rem; }
.owner-entry-text strong { font-size: 1.05rem; }
.owner-entry-text span { font-size: .85rem; opacity: .9; }
.owner-entry-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.owner-entry .btn-outline-light:hover { color: var(--ls-nav); }

/* ───────────── Guest reviews ───────────── */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: .05em; white-space: nowrap; vertical-align: -1px; }
.stars::before { content: "★★★★★"; color: #d6dae1; }
.stars-fill { position: absolute; inset: 0 auto 0 0; width: var(--pct); overflow: hidden; }
.stars-fill::before { content: "★★★★★"; color: #f5a623; }
.stars-lg { font-size: 1.5rem; }
.rating-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--ls-text); font-size: .95rem; }
.card-rating { font-size: .82rem; display: flex; align-items: center; gap: .3rem; margin-top: .15rem; }

.rating-input { border: 0; padding: 0; margin: 0 0 .75rem; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { font-size: 2rem; line-height: 1; color: #d6dae1; cursor: pointer; padding: 0 .05rem; transition: color .1s; }
.rating-stars label::before { content: "★"; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: #f5a623; }
.rating-stars input:focus-visible + label { outline: 2px solid var(--ls-primary); outline-offset: 2px; border-radius: 4px; }
.rating-input-sm .rating-stars label { font-size: 1.35rem; }
.review-sub-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 1rem; }

.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem; align-items: center; }
.review-score { text-align: center; }
.review-avg { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--ls-nav); }
.review-bars { display: grid; gap: .25rem; font-size: .85rem; }
.review-bar { display: grid; grid-template-columns: 2.6rem 1fr 2rem; align-items: center; gap: .5rem; }
.review-bar .bar { height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.review-bar .bar span { display: block; height: 100%; background: #f5a623; border-radius: 999px; }
.review-subscores { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .25rem 1rem; margin: 0; font-size: .85rem; }
.review-subscores dt { color: var(--ls-muted); font-weight: 600; }
.review-subscores dd { margin: 0 0 .25rem; font-weight: 700; }
@media (max-width: 575.98px) { .review-summary { grid-template-columns: 1fr; } }

.review-card { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); padding: 1rem 1.1rem; margin-bottom: .75rem; }
.review-card.is-hidden { opacity: .7; border-style: dashed; }
.review-head { display: flex; gap: .75rem; align-items: flex-start; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--ls-primary); flex: none; }
.verified { font-size: .72rem; font-weight: 600; color: var(--ls-success); margin-left: .25rem; }
.review-scores { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .5rem; }
.review-text { white-space: pre-line; margin: .6rem 0 0; overflow-wrap: anywhere; }
.review-reply { background: #f4f6f9; border-left: 3px solid var(--ls-primary); border-radius: var(--ls-radius-sm); padding: .6rem .8rem; margin-top: .75rem; }
.review-reply p { white-space: pre-line; overflow-wrap: anywhere; }
.review-quote { border-left: 3px solid var(--ls-border); padding-left: .75rem; color: var(--ls-muted); white-space: pre-line; }
.navlink-owner { font-weight: 700; color: var(--ls-primary) !important; }

/* Language menu (lo / en / zh / vi / th / ko) */
.lang-menu { position: relative; font-size: .85rem; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--ls-border); border-radius: 999px; padding: .25rem .7rem; font-weight: 700; color: var(--ls-text); background: var(--ls-surface); white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--ls-primary); }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 1050; min-width: 170px; margin: 0; padding: .35rem; list-style: none; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius-sm); box-shadow: var(--ls-shadow-lg); }
.lang-menu-list a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ls-text); text-decoration: none; }
.lang-menu-list a:hover, .lang-menu-list a:focus-visible { background: #f4f6f9; }
.lang-menu-list a.active { background: var(--ls-primary-50); color: var(--ls-primary); font-weight: 700; }

/* Cancelled (voided) payments stay visible in the history */
.payment-voided td { color: var(--ls-muted); }
.payment-voided .amount-cell { text-decoration: line-through; }
.voided-note { font-style: italic; }
.void-stamp { display: inline-block; border: 3px solid var(--ls-error); color: var(--ls-error); font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; padding: .2rem .8rem; border-radius: 8px; transform: rotate(-6deg); }

/* Room-type sample photos and the photo viewer */
.rt-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.tile-photo, .rt-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--ls-radius-sm); overflow: hidden; }
.tile-photo { margin-bottom: .5rem; aspect-ratio: 16 / 9; }
.tile-photo img, .rt-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tile-photo:hover img, .rt-cover:hover img { transform: scale(1.04); }
.rt-cover { max-width: 220px; aspect-ratio: 4 / 3; margin-bottom: .5rem; }
.photo-badge { position: absolute; right: .4rem; bottom: .4rem; background: rgba(15, 23, 42, .72); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.photo-gallery { width: min(900px, 96vw); max-width: 96vw; padding: 0; border: 0; border-radius: var(--ls-radius); background: #0f172a; color: #fff; overflow: hidden; }
.photo-gallery::backdrop { background: rgba(2, 6, 23, .78); }
.gallery-head { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; }
.gallery-head strong { flex: 1; }
.gallery-count { font-size: .85rem; opacity: .8; }
.gallery-close { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.gallery-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; background: #000; }
.gallery-slide img { width: 100%; max-height: 75vh; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #0f172a; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gallery-nav.prev { left: .6rem; }
.gallery-nav.next { right: .6rem; }

/* "Add property" step 1: choose the property type */
.type-chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.type-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); padding: 1.6rem 1.1rem 1.1rem; box-shadow: var(--ls-shadow); transition: transform .15s, box-shadow .15s; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--ls-shadow-lg); }
.type-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: var(--ls-primary-50); margin-bottom: .75rem; }
.type-card p { min-height: 2.6em; }
.type-ribbon { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); background: var(--ls-success); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 6px; white-space: nowrap; }
.type-chosen-bar { display: flex; align-items: center; gap: .6rem; background: var(--ls-primary-50); border: 1px solid var(--ls-border); border-radius: var(--ls-radius-sm); padding: .5rem .9rem; margin-bottom: 1rem; }

/* Property setup checklist (before submitting for approval) */
.setup-steps { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.setup-step { display: flex; align-items: center; gap: 1rem; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); padding: 1rem 1.1rem; }
.setup-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; border: 2px solid var(--ls-border); flex: none; }
.setup-step.done .setup-icon { background: var(--ls-success); border-color: var(--ls-success); color: #fff; font-weight: 800; }
.setup-text { flex: 1; min-width: 0; }
.setup-step .btn { flex: none; }
.setup-final { border: 2px dashed var(--ls-border); border-radius: var(--ls-radius); padding: 1rem 1.1rem; text-align: center; }
.setup-final.ready { border-style: solid; border-color: var(--ls-success); background: #f0fdf4; }
@media (max-width: 575.98px) { .setup-step { flex-wrap: wrap; } .setup-step .btn { width: 100%; } }

/* Property location picker (MapPicker.razor) */
.map-picker { margin-bottom: .25rem; }
.map-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.map-tools .map-search { flex: 1 1 260px; max-width: 420px; }
.map-canvas { height: 320px; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); background: #e9eef2; overflow: hidden; z-index: 0; position: relative; }
.map-canvas .leaflet-container, .map-canvas.leaflet-container { font: inherit; }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; color: var(--bs-secondary-color, #6c757d); }
.coords-check { font-size: .85rem; }
@media (max-width: 575.98px) { .map-canvas { height: 240px; } .map-tools .map-search { max-width: none; flex-basis: 100%; } }

/* Terms tick box before sending a property for approval (PropertyEdit setup panel) */
.terms-check { display: flex; align-items: center; gap: .85rem; max-width: 640px; margin: 0 auto .5rem; padding: .85rem 1rem; text-align: left; font-weight: 600;
    background: #fff; border: 2px solid var(--ls-warning, #f59e0b); border-radius: var(--ls-radius); cursor: pointer; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); transition: border-color .15s, background .15s, box-shadow .15s; }
.terms-check:hover { background: #fffbeb; }
.terms-check input { width: 1.6rem; height: 1.6rem; flex: none; margin: 0; cursor: pointer; accent-color: var(--ls-success, #16a34a); }
.terms-check input:focus-visible { outline: 3px solid var(--ls-primary, #0d6efd); outline-offset: 2px; }
.terms-check.checked { border-color: var(--ls-success, #16a34a); background: #dcfce7; box-shadow: none; }
.setup-final .terms-check + .btn, .setup-final .text-muted + .btn { margin-top: .25rem; }

/* Stays search: list/map toggle, "show on map" box and the map with price bubbles (Stays.razor ?view=map) */
.view-toggle { display: inline-flex; border: 1px solid var(--ls-border); border-radius: 999px; overflow: hidden; background: var(--ls-surface); }
.view-toggle a { padding: .3rem .8rem; font-size: .85rem; color: inherit; text-decoration: none; }
.view-toggle a.active { background: var(--ls-primary); color: #fff; font-weight: 600; }
.map-teaser { position: relative; display: flex; align-items: center; justify-content: center; height: 110px; border-radius: var(--ls-radius); overflow: hidden; border: 1px solid var(--ls-border); text-decoration: none;
    background-color: #e8f0f7;
    background-image: linear-gradient(90deg, rgba(255,255,255,.75) 2px, transparent 2px), linear-gradient(0deg, rgba(255,255,255,.75) 2px, transparent 2px),
        linear-gradient(35deg, transparent 45%, #b9d3ea 45%, #b9d3ea 55%, transparent 55%), radial-gradient(circle at 70% 30%, #cfe8d4 0 22%, transparent 23%);
    background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%; }
.map-teaser:hover { text-decoration: none; filter: brightness(1.03); }
.map-teaser-pin { position: absolute; top: 18px; font-size: 1.6rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.map-teaser .btn { margin-top: 2.2rem; box-shadow: var(--ls-shadow); }
.stays-map { height: calc(100vh - 260px); min-height: 460px; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); overflow: hidden; background: #e9eef2; position: relative; z-index: 0; }
.stays-map.leaflet-container { font: inherit; }
.stays-map.map-failed::after { content: "⚠️"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.price-pin-wrap { background: none; border: 0; }
.price-pin { position: absolute; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap; background: #003b95; color: #fff; font-weight: 700; font-size: .8rem; line-height: 1; padding: .38rem .5rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; }
.price-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: #003b95; }
.price-pin:hover, .price-pin.active { background: #1a1a1a; }
.price-pin:hover::after, .price-pin.active::after { border-top-color: #1a1a1a; }
.pin-popup { width: 220px; }
.pin-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.pin-popup-type { font-size: .75rem; color: var(--bs-secondary-color, #6c757d); }
.pin-popup-name { font-weight: 700; font-size: .95rem; margin: .1rem 0; }
.pin-popup-rating { font-size: .8rem; }
.pin-popup-price { font-weight: 700; color: var(--ls-primary); margin-top: .2rem; }
.pin-popup-unit { font-weight: 400; color: var(--bs-secondary-color, #6c757d); font-size: .8rem; }
.pin-popup .btn { color: #fff; }
@media (max-width: 991.98px) { .stays-map { height: 65vh; min-height: 360px; } }

/* Guest notifications: header bell (GuestBell.razor) and the list (MyNotifications.razor) */
.guest-bell { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .5rem; border-radius: 8px; color: var(--ls-text); font-size: 1.15rem; line-height: 1; text-decoration: none; }
.guest-bell:hover { background: var(--ls-primary-50); text-decoration: none; }
.guest-bell-count { position: absolute; top: -2px; right: -4px; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ls-surface, #fff); }
.guest-bell-menu { font-size: 1rem; padding: 0; }
.guest-bell-menu .guest-bell-count { position: static; box-shadow: none; }
.guest-notifs { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.guest-notif a { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; background: var(--ls-surface); border: 1px solid var(--ls-border); border-left: 4px solid var(--ls-border); border-radius: var(--ls-radius); color: inherit; text-decoration: none; }
.guest-notif a:hover { background: var(--ls-primary-50); }
.guest-notif.tone-good a { border-left-color: var(--ls-success); }
.guest-notif.tone-bad a { border-left-color: #dc2626; }
.guest-notif.tone-info a { border-left-color: var(--ls-primary); }
.guest-notif.unread a { background: #f0f9ff; box-shadow: var(--ls-shadow); }
.guest-notif-icon { font-size: 1.5rem; line-height: 1; flex: none; }
.guest-notif-body { display: grid; gap: .15rem; min-width: 0; }
.guest-notif-title { font-weight: 700; }
.guest-notif-msg { color: var(--ls-text); overflow-wrap: anywhere; }
.guest-notif-time { font-size: .8rem; color: var(--bs-secondary-color, #6c757d); }

/* Chat between customers and properties (ChatThread.razor, GuestMessages.razor, Owner/Messages.razor) */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 210px); min-height: 480px; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); overflow: hidden; background: var(--ls-surface); }
.chat-layout-owner { height: calc(100vh - 190px); }
.chat-list { border-right: 1px solid var(--ls-border); overflow-y: auto; overflow-x: hidden; background: var(--ls-surface); }
.chat-list-item { display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; border-bottom: 1px solid var(--ls-border); color: inherit; text-decoration: none; }
.chat-list-item:hover { background: var(--ls-primary-50); text-decoration: none; }
.chat-list-item.active { background: var(--ls-primary-50); box-shadow: inset 3px 0 0 var(--ls-primary); }
.chat-list-item.unread .chat-list-preview { color: var(--ls-text); font-weight: 700; }
.chat-list-text { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; flex: 1; }
.chat-list-top { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.chat-list-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-time { font-size: .72rem; color: var(--bs-secondary-color, #6c757d); flex: none; }
.chat-list-preview { font-size: .85rem; color: var(--bs-secondary-color, #6c757d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: var(--ls-primary); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-avatar-text { display: grid; place-items: center; background: var(--ls-primary-50); color: var(--ls-primary); font-weight: 800; font-size: 1.05rem; }
.chat-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f6f8f7; }
.chat-placeholder { display: grid; place-items: center; color: var(--bs-secondary-color, #6c757d); padding: 2rem; text-align: center; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: var(--ls-surface); border-bottom: 1px solid var(--ls-border); }
.chat-head-text { display: grid; min-width: 0; }
.chat-back { display: none; font-size: 1.3rem; text-decoration: none; padding: 0 .3rem; }
.chat-bookings { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 1rem; background: var(--ls-surface); border-bottom: 1px solid var(--ls-border); }
.chat-booking { font-size: .8rem; padding: .2rem .55rem; border: 1px solid var(--ls-border); border-radius: 999px; color: inherit; text-decoration: none; background: #fff; }
.chat-booking .chip { font-size: .7rem; padding: .05rem .4rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.chat-empty { margin: auto; text-align: center; color: var(--bs-secondary-color, #6c757d); }
.chat-day { text-align: center; margin: .6rem 0 .3rem; }
.chat-day span { font-size: .72rem; background: #e3e9e6; color: #4b5563; padding: .15rem .6rem; border-radius: 999px; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: min(75%, 520px); padding: .5rem .7rem .35rem; border-radius: 16px; background: #fff; border: 1px solid var(--ls-border); box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.bubble-row.mine .bubble { background: #dcfce7; border-color: #bbf7d0; border-bottom-right-radius: 4px; }
.bubble-row.theirs .bubble { border-bottom-left-radius: 4px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; margin-bottom: .3rem; }
.bubble-meta { font-size: .68rem; color: var(--bs-secondary-color, #6c757d); text-align: right; margin-top: .1rem; }
.bubble-seen { color: #0ea5e9; font-weight: 700; margin-left: .2rem; }
.chat-compose { padding: .6rem .8rem; background: var(--ls-surface); border-top: 1px solid var(--ls-border); }
.chat-compose-row { display: flex; gap: .5rem; align-items: flex-end; }
.chat-input { resize: none; max-height: 140px; field-sizing: content; min-height: 42px; }
.chat-attach { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ls-border); border-radius: 50%; cursor: pointer; flex: none; font-size: 1.15rem; }
.chat-attach:hover { background: var(--ls-primary-50); }
.chat-send { width: 46px; height: 42px; border-radius: 50%; padding: 0; flex: none; font-size: 1.1rem; }
.chat-hint { font-size: .7rem; color: var(--bs-secondary-color, #6c757d); margin-top: .25rem; }
.chat-attachment { font-size: .8rem; margin-bottom: .35rem; }
.chat-error { font-size: .85rem; color: #b91c1c; margin-bottom: .35rem; }
.nav-badge { margin-left: auto; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
@media (max-width: 767.98px) {
    .chat-layout { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 150px); }
    .chat-layout.show-thread .chat-list { display: none; }
    .chat-layout.show-list .chat-thread { display: none !important; }
    .chat-back { display: inline-block; }
    .bubble { max-width: 85%; }
}
.chat-list-property { font-size: .72rem; color: var(--ls-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bank accounts: guest view (BankAccountsView.razor) and owner editor (PropertyEdit.razor) */
.bank-accounts { display: grid; gap: .6rem; }
.bank-account { display: flex; gap: .8rem; align-items: center; padding: .7rem; background: #fff; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); }
.bank-account-text { min-width: 0; display: grid; gap: .15rem; }
.bank-number { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.bank-number .btn { font-size: .78rem; font-weight: 600; }
.bank-number .btn.copied { background: var(--ls-success); border-color: var(--ls-success); color: #fff; }
.bank-qr { position: relative; flex: none; width: 104px; padding: 0; border: 1px solid var(--ls-border); border-radius: 10px; background: #fff; overflow: hidden; cursor: zoom-in; }
.bank-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.bank-qr-hint { display: block; font-size: .68rem; padding: .15rem 0; background: var(--ls-primary-50); color: var(--ls-primary); }
.qr-dialog .gallery-slide img { object-fit: contain; background: #fff; max-height: 70vh; }
.qr-dialog-note { text-align: center; color: #fff; margin: .5rem 0 0; font-size: .9rem; }
.bank-empty { padding: .8rem; border: 2px dashed var(--ls-border); border-radius: var(--ls-radius); color: var(--bs-secondary-color, #6c757d); text-align: center; }
.bank-edit { display: flex; gap: .9rem; padding: .8rem; border: 1px solid var(--ls-border); border-radius: var(--ls-radius); margin-bottom: .6rem; background: var(--ls-surface); }
.bank-edit-qr { flex: none; width: 110px; display: grid; gap: .25rem; justify-items: center; align-content: start; }
.bank-edit-qr img { width: 110px; height: 110px; object-fit: contain; border: 1px solid var(--ls-border); border-radius: 8px; background: #fff; }
.bank-qr-placeholder { width: 110px; height: 110px; display: grid; place-content: center; text-align: center; gap: .2rem; border: 2px dashed var(--ls-border); border-radius: 8px; font-size: .85rem; color: var(--bs-secondary-color, #6c757d); }
.bank-qr-placeholder span { font-size: .68rem; }
.bank-qr-upload { cursor: pointer; color: var(--ls-primary); font-weight: 600; }
.bank-qr-upload:hover { background: var(--ls-primary-50); }
.bank-edit-fields { flex: 1; min-width: 0; }
.bank-edit-actions { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
@media (max-width: 575.98px) {
    .bank-edit { flex-direction: column; }
    .bank-edit-qr { justify-items: start; }
    .bank-account { align-items: flex-start; }
    .bank-qr { width: 88px; }
}

/* Destination cards with the admin's province picture (Home.razor, Admin/Provinces.razor) */
.dest-card.has-image { background-size: cover; background-position: center; }
.dest-card.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.dest-card.has-image > * { position: relative; }
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.province-tile { background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius); overflow: hidden; display: grid; }
.province-tile .dest-card { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.province-tile-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .7rem; }
.province-tile-actions label { cursor: pointer; }

/* Signed-in user's menu in the public header (AccountMenu.razor) */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--ls-border); border-radius: 999px; padding: .2rem .65rem .2rem .2rem; background: var(--ls-surface); color: var(--ls-text); font-weight: 600; font-size: .9rem; max-width: 220px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--ls-primary); }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ls-primary); color: #fff; font-weight: 800; font-size: .9rem; }
.account-avatar-lg { width: 42px; height: 42px; font-size: 1.1rem; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.account-caret { font-size: .7rem; color: var(--bs-secondary-color, #6c757d); }
.account-panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 1050; width: 260px; padding: .4rem; background: var(--ls-surface); border: 1px solid var(--ls-border); border-radius: var(--ls-radius-sm); box-shadow: var(--ls-shadow-lg); }
.account-panel-head { display: flex; gap: .6rem; align-items: center; padding: .5rem .55rem .7rem; border-bottom: 1px solid var(--ls-border); margin-bottom: .3rem; }
.account-panel-id { display: grid; min-width: 0; }
.account-panel-id strong, .account-panel-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel-id span { font-size: .78rem; color: var(--bs-secondary-color, #6c757d); }
.account-panel a, .account-logout { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: 8px; color: var(--ls-text); text-decoration: none; background: none; border: 0; font: inherit; }
.account-panel a:hover, .account-logout:hover { background: #f4f6f9; text-decoration: none; }
.account-logout { color: #b91c1c; }
.account-panel hr { margin: .3rem 0; }
@media (max-width: 575.98px) {
    .account-menu summary { padding: .2rem; }
    .account-name, .account-caret { display: none; }
}

/* Account settings pages (Account/Manage) */
.manage-nav { display: grid; padding: .4rem; gap: .1rem; }
.manage-nav a { padding: .55rem .75rem; border-radius: 8px; color: var(--ls-text); text-decoration: none; font-weight: 600; }
.manage-nav a:hover { background: #f4f6f9; }
.manage-nav a.active { background: var(--ls-primary-50); color: var(--ls-primary); }
.manage-page h3 { font-size: 1.2rem; margin-bottom: 1rem; }
@media (max-width: 991.98px) { .manage-nav { display: flex; flex-wrap: wrap; } .manage-nav a { padding: .4rem .6rem; font-size: .9rem; } }

/* Rented room on the public room board (StayDetails.razor) */
.room-tile .lease-note { margin-top: .25rem; padding: .25rem .45rem; border-radius: 6px; background: #fff7ed; color: #9a3412; font-weight: 600; }

/* Owner-declared star class (1–5): picker on the property form and the gold badge on cards / the property page. */
.star-pick { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; }
.star-pick-btn { border: 0; background: none; padding: 0 .1rem; font-size: 1.9rem; line-height: 1; color: #d6dae1; cursor: pointer; }
.star-pick-btn.on { color: var(--ls-warning); }
.star-pick-btn:hover:not(:disabled), .star-pick-btn:focus-visible { transform: scale(1.12); }
.star-pick-btn:disabled { cursor: default; }
.star-class { color: var(--ls-warning); letter-spacing: .02em; white-space: nowrap; font-size: .9em; }
.slip-form > summary { list-style: none; cursor: pointer; }
.slip-form > summary::-webkit-details-marker { display: none; }
.slip-form[open] > summary { display: none; }
