/* ============================================================
   Cameron Stays — Airbnb-style mockup UI (refreshed)
   Soft background · white panels · compact · responsive
   ============================================================ */
:root {
  --rausch: #ff385c;
  --rausch-dark: #e11d48;
  --ink: #1f2226;
  --muted: #717680;
  --line: #ececef;
  --line-soft: #f0f1f3;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --green: #1f8a4c;
  --green-bg: #e6f5ec;
  --amber: #b06a00;
  --amber-bg: #fdf1dd;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow: 0 4px 16px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 50px rgba(16,24,40,.20);
  --header-h: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.45; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.link { color: var(--rausch); font-weight: 600; }
.s { font-size: 13.5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 11px 18px; font-size: 14.5px; font-weight: 600;
  transition: transform .05s, filter .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--rausch); color: #fff; box-shadow: 0 2px 8px rgba(255,56,92,.30); }
.btn-primary:hover { background: var(--rausch-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { filter: brightness(1.25); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #d4d6db; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 8px 12px; }
.btn-ghost:hover { background: var(--line-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- header ---------- */
.appbar { position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 44px); background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px;
  color: var(--rausch); letter-spacing: -.4px; }
.brand svg { width: 25px; height: 25px; }
.appbar-actions { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 13px;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 600; }
.who .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.role-chip { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.role-chip.agent { background: #e9f0ff; color: #1d4ed8; }
.role-chip.owner { background: #fdeef2; color: var(--rausch-dark); }

/* ---------- layout ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: clamp(18px, 3vw, 32px) clamp(16px, 4vw, 44px) 72px; }
.page.narrow { max-width: 640px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(16px, 2.5vw, 24px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h1 { font-size: clamp(21px, 3vw, 27px); margin: 0 0 3px; letter-spacing: -.6px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.block-title { font-size: 15px; margin: 0 0 12px; letter-spacing: -.2px; }
.foot-note { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(460px, 72vh, 660px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,10,14,.74) 0%, rgba(8,10,14,.42) 48%, rgba(8,10,14,.12) 100%),
    linear-gradient(180deg, rgba(8,10,14,.30) 0%, rgba(8,10,14,0) 35%, rgba(8,10,14,.55) 100%); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; max-width: 1160px; width: 100%; margin: 0 auto;
  padding: clamp(56px, 11vh, 120px) clamp(16px, 4vw, 44px); }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.05; letter-spacing: -1.6px; margin: 0 0 16px;
  max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { font-size: clamp(15.5px, 2vw, 20px); max-width: 48ch; margin: 0 0 28px; opacity: .95; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { padding: 13px 24px; font-size: 15px; }
.hero .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(6px); padding: 13px 24px; font-size: 15px; }
.hero .btn-outline:hover { background: rgba(255,255,255,.24); border-color: #fff; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: clamp(20px, 3vw, 26px); color: var(--ink); letter-spacing: -.6px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stats.compact .stat { padding: 13px 16px; }
.stats.compact .stat b { font-size: 22px; }
.section-head + .stats, .stats { margin-bottom: 20px; }

/* ---------- homestay grid / cards ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.card { background: transparent; border-radius: var(--radius); cursor: pointer; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .thumb { position: relative; aspect-ratio: 20/17; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--line-soft); box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.card:hover .thumb { box-shadow: var(--shadow); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; } /* no zoom on hover */
.type-tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.94); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); }
.card .body { padding: 11px 3px 2px; }
.card .row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .name { font-weight: 600; font-size: 15px; }
.card .area { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.card .meta { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.card .rating { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.card .price { margin-top: 8px; font-size: 14.5px; }
.card .price b { font-weight: 700; }
.card .price span { color: var(--muted); font-weight: 400; }

/* list view */
.list { display: flex; flex-direction: column; gap: 14px; }
.card-list { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-list:hover { box-shadow: var(--shadow); border-color: #dcdde1; transform: translateY(-2px); }
.card-list .list-thumb { width: 210px; min-width: 210px; height: 158px; border-radius: var(--radius-sm); object-fit: cover; }
.card-list .list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-head { display: flex; justify-content: space-between; gap: 12px; }
.list-head .name { font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.list-head .area { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.list-head .rating { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.atag { font-size: 12px; color: #43474e; background: var(--line-soft); padding: 5px 10px; border-radius: 8px; }
.list-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.list-foot .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.list-foot .price b { font-size: 17px; font-weight: 800; }
.list-foot .price span { color: var(--muted); font-size: 13.5px; }

/* listings controls + view toggle */
.listings-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.listings-controls .area-chips { margin: 0; justify-content: flex-start; flex: 1 1 auto; }
.view-toggle { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 4px; box-shadow: var(--shadow-sm); flex: none; }
.view-toggle button { border: none; background: transparent; padding: 8px 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.view-toggle button.active { background: var(--ink); color: #fff; }
/* owner property cards */
.card.prop .body { padding-bottom: 10px; }
.prop-stats { display: flex; gap: 14px; margin-top: 9px; font-size: 13px; color: var(--muted); }
.prop-stats b { color: var(--ink); }
.prop-bank { margin-top: 8px; font-size: 12.5px; color: var(--muted); background: var(--line-soft);
  padding: 7px 10px; border-radius: 8px; }

/* ---------- login ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: none; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual .ov { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,56,92,.35), rgba(0,0,0,.55)); }
.auth-visual .cap { position: absolute; left: 40px; bottom: 40px; right: 40px; color: #fff; z-index: 2; }
.auth-visual .cap h2 { font-size: 28px; letter-spacing: -.5px; margin: 0 0 8px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 6vw, 56px); background: var(--panel); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 25px; letter-spacing: -.6px; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.role-toggle button { border: none; background: transparent; padding: 11px; border-radius: 9px; font-weight: 600; font-size: 14px;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.role-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.role-toggle button.active svg { color: var(--rausch); }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #43474e; }
.field input, .field select { width: 100%; padding: 12px 13px; border: 1px solid #d4d6db; border-radius: 10px;
  font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,34,38,.08); }
.demo-note { display: flex; align-items: flex-start; gap: 10px; background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 16px; }
.demo-note .dn-ic { display: inline-flex; flex: none; margin-top: 1px; }
.demo-note b { color: #8a5300; }
.err { color: var(--rausch-dark); font-size: 13px; margin: -2px 0 12px; font-weight: 500; }
.fineprint { font-size: 12px; color: var(--muted); text-align: center; margin: 11px 0 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: -4px 0 20px; overflow-x: auto; }
.tabs button { border: none; background: none; padding: 12px 4px; margin-right: 22px; font-size: 14.5px;
  font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- booking list ---------- */
.bk-list { display: flex; flex-direction: column; gap: 10px; }
.bk-item { display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px; transition: box-shadow .15s, border-color .15s; cursor: pointer; }
.bk-item:hover { box-shadow: var(--shadow); border-color: #dcdde1; }
.bk-item .bk-thumb { width: 60px; height: 60px; border-radius: 9px; object-fit: cover; flex: none; }
.bk-item .bk-main { flex: 1; min-width: 0; }
.bk-item .bk-main .t { font-weight: 600; }
.bk-item .bk-main .s { color: var(--muted); }
.bk-item .bk-amt { text-align: right; white-space: nowrap; }
.bk-item .bk-amt b { display: block; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.paid { background: var(--green-bg); color: var(--green); }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.paid-line { margin-top: 10px; text-align: center; color: var(--green); font-weight: 600; font-size: 14px; }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar .month { font-size: 18px; font-weight: 700; letter-spacing: -.4px; min-width: 150px; }
.cal-toolbar .spacer { flex: 1; }
.cal-toolbar select { padding: 9px 12px; border: 1px solid #d4d6db; border-radius: 10px; font-size: 13.5px; background: #fff; max-width: 220px; }
.nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d4d6db; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.nav-btn:hover { border-color: var(--ink); }
.cal { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); border-bottom: 1px solid var(--line); }
.cal-dow div { padding: 9px 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 98px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 7px; position: relative; transition: background .12s; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.empty { background: #fafbfc; }
.cal-cell.has { cursor: pointer; }
.cal-cell.has:hover { background: #fff6f8; }
.cal-cell .dnum { font-size: 12.5px; font-weight: 600; color: #4a4e55; }
.cal-cell.today .dnum { background: var(--ink); color: #fff; width: 23px; height: 23px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; }
.cal-pills { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.pill.paid { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.pill.pending { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.more { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 16px; margin-top: 13px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15,18,22,.55); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: .6; } }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); animation: slideUp .2s; }
.modal-head { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); z-index: 2; }
.modal-head h3 { margin: 0; font-size: 16px; }
.x { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--line-soft); font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; }
.x:hover { background: #e6e7ea; }
.modal-body { padding: 18px; }
.detail-card { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.detail-card .head { display: flex; gap: 12px; padding: 13px; align-items: center; }
.detail-card .head img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.detail-card .head .t { font-weight: 700; }
.detail-card .head .s { color: var(--muted); }
.kv { display: grid; grid-template-columns: 124px 1fr; gap: 5px 12px; padding: 13px; border-top: 1px solid var(--line); font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pay-foot { padding: 13px; border-top: 1px solid var(--line); }
.pay-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px; }
.pay-box h4 { margin: 0 0 9px; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.pay-box .bank-acc { font-size: 19px; font-weight: 800; letter-spacing: .5px; margin-top: 2px; }

/* ---------- booking form ---------- */
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.book-layout > .panel { padding: clamp(16px, 2.5vw, 22px); }
.summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  background: #fff; position: sticky; top: calc(var(--header-h) + 18px); }
.summary-card .top { display: flex; gap: 12px; margin-bottom: 13px; }
.summary-card .top img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 13px; font-weight: 800; font-size: 15.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.back-link:hover { color: var(--ink); }

/* ---------- toast / success / empty ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: slideUp .25s; }
.success-hero { text-align: center; padding: 32px 0 24px; }
.success-hero .check { width: 70px; height: 70px; border-radius: 50%; background: var(--green-bg); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 16px; }
.success-hero h1 { margin: 0 0 7px; }
.success-hero p { color: var(--muted); margin: 0 auto 8px; max-width: 42ch; }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty .ic { font-size: 38px; margin-bottom: 8px; }
.empty h3 { margin: 0 0 5px; }
.empty p { margin: 0; }

/* ============================================================ RESPONSIVE */
@media (min-width: 900px) {
  .auth-visual { display: block; }
  .modal-back { align-items: center; padding: 24px; }
  .modal { border-radius: 20px; }
}
@media (max-width: 1024px) { /* tablet */
  .book-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
}
@media (max-width: 640px) { /* mobile */
  :root { --header-h: 56px; }
  body { font-size: 14.5px; }
  .brand { font-size: 17px; }
  .who { padding: 4px; }
  .who .label { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: 62px; padding: 5px; }
  .cal-cell .dnum { font-size: 11.5px; }
  .cal-dow div { padding: 7px 4px; font-size: 9.5px; }
  .cal-toolbar select { max-width: 100%; flex: 1 1 100%; order: 5; }
  .cal-pills { gap: 3px; }
  .pill { font-size: 0; padding: 0; height: 7px; border-radius: 3px; border-left: none; }
  .more { font-size: 9px; }
  .bk-item { flex-wrap: wrap; }
  .bk-item .bk-amt { text-align: left; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .section-head h1 { font-size: 21px; }
}

/* ============================================================ HEADER WIDTH + LANDING SECTIONS */
.appbar { padding: 0; }
.appbar-inner { max-width: 1160px; width: 100%; margin: 0 auto; height: 100%;
  padding: 0 clamp(16px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; }

.hero-trust { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: #fff; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }

/* listings section header + area filter chips */
.listings-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.listings-head .eyebrow { margin-bottom: 9px; }
.listings-head h2 { font-size: clamp(23px, 3.4vw, 33px); letter-spacing: -.8px; margin: 0 0 8px; }
.listings-head p { color: var(--muted); font-size: 15px; margin: 0; }
.area-chips { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: #fff; color: #43474e; font-weight: 600; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: all .15s; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.lp-section { margin-top: clamp(48px, 7vw, 80px); }
.lp-head { text-align: center; max-width: 600px; margin: 0 auto 30px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--rausch); margin-bottom: 10px; }
.lp-head h2 { font-size: clamp(23px, 3.4vw, 33px); letter-spacing: -.8px; margin: 0 0 8px; }
.lp-head p { color: var(--muted); font-size: 15px; margin: 0; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); }
.step .num { width: 38px; height: 38px; border-radius: 11px; background: var(--rausch); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -.3px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature .fic { font-size: 25px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 5px; font-size: 15px; letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }

.cta-band { margin-top: clamp(56px, 8vw, 92px); background: linear-gradient(120deg, #1f2226, #34383f); color: #fff; }
.cta-inner { max-width: 1160px; margin: 0 auto; padding: clamp(38px, 6vw, 60px) clamp(16px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(21px, 3vw, 29px); letter-spacing: -.6px; margin: 0 0 6px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: #efefef; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.6); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 38px clamp(16px, 4vw, 44px);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-inner .brand { color: #fff; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .how { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .listings-controls { flex-direction: column; align-items: stretch; }
  .listings-controls .area-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .view-toggle { align-self: flex-end; }
  .card-list { flex-direction: column; gap: 12px; }
  .card-list .list-thumb { width: 100%; min-width: 0; height: 180px; }
  .list-foot { flex-wrap: wrap; }
}

/* ============================================================ AGENT BOOKING CALENDAR */
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.bk-cal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bk-cal-toolbar .m { flex: 1; text-align: center; font-weight: 700; font-size: 15.5px; letter-spacing: -.3px; }
.bk-cal-toolbar .nav-btn { width: 34px; height: 34px; font-size: 16px; }
.bk-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 7px; }
.bk-dow div { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bk-cell { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 13.5px;
  font-weight: 600; border-radius: 10px; position: relative; user-select: none; }
.bk-cell.empty { background: transparent; }
.bk-cell.avail { background: var(--green-bg); color: #1c7d44; cursor: pointer; transition: background .12s; }
.bk-cell.avail:hover { background: #cdebd6; }
.bk-cell.booked { background: #f3f4f6; color: #bcc0c7; text-decoration: line-through; }
.bk-cell.sel { background: var(--rausch); color: #fff; }
.bk-cell.in-range { background: #ffdbe3; color: var(--rausch-dark); }
.bk-cell.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.bk-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.bk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.bk-legend .lg-avail { background: var(--green-bg); border: 1px solid #bfe3ca; }
.bk-legend .lg-booked { background: #f3f4f6; border: 1px solid #e2e4e8; }
.bk-legend .lg-sel { background: var(--rausch); }
.bk-summary { margin-top: 2px; }
.bk-pick { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.bk-pick span { color: var(--muted); }
.bk-pick b { font-weight: 700; }
.bk-pick.total { border-bottom: none; padding-top: 12px; }
.bk-pick.total b { font-size: 17px; color: var(--rausch); }
.bk-hint { color: var(--muted); font-size: 13.5px; padding: 12px 0; line-height: 1.5; }

/* ============================================================ AGENT AVATARS ON CALENDAR + ORDER SUBPAGE */
.mini-av { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mini-av.lg { width: 34px; height: 34px; font-size: 12px; }

/* calendar chip: agent avatar (colour) + homestay, ring = payout status */
.cal-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 11px; font-weight: 600;
  padding: 2px 9px 2px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #3a3e45; }
.cal-chip .mini-av { box-shadow: 0 0 0 2px #fff; }
.cal-chip.paid .mini-av { box-shadow: 0 0 0 2px var(--green); }
.cal-chip.pending .mini-av { box-shadow: 0 0 0 2px var(--amber); }
.cc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend i.ring { border-radius: 50%; background: #fff; width: 12px; height: 12px; }

/* agent code card (agent dashboard) */
.agent-code-card { display: inline-flex; align-items: center; gap: 11px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 13px; padding: 9px 16px 9px 11px; box-shadow: var(--shadow-sm); }
.agent-code { font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.agent-code.big { font-size: 19px; }

/* order subpage cards */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
  background: var(--panel); box-shadow: var(--shadow-sm); }
.order-head { display: flex; align-items: center; gap: 12px; padding: 13px; }
.order-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.order-h-main { flex: 1; min-width: 0; }
.order-h-main .t { font-weight: 700; }
.order-ref { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-soft);
  padding: 5px 10px; border-radius: 8px; flex: none; }
.agent-strip { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-top: 1px solid var(--line); background: #fafbfc; }
.agent-strip .as-main { flex: 1; min-width: 0; }
.as-name { font-weight: 700; font-size: 14.5px; }
.agent-strip .agent-code { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .5px; flex: none; }

@media (max-width: 640px) {
  .cal-pills { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .cal-chip { padding: 0; border: none; background: transparent; gap: 0; }
  .cal-chip .cc-text { display: none; }
  .mini-av { width: 17px; height: 17px; }
  .agent-code-card { padding: 7px 12px 7px 9px; }
  .agent-code.big { font-size: 16px; }
}

/* ============================================================ AGENT AVATAR (photo) */
.av { border-radius: 50%; background-size: cover; background-position: center; background-color: #cbd2da;
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.av.cal { width: 28px; height: 28px; font-size: 10px; }
.av.bar { width: 15px; height: 15px; font-size: 7px; }
.av.md { width: 34px; height: 34px; font-size: 12px; }
.av.lg { width: 36px; height: 36px; font-size: 13px; }
.av.paid { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green); }
.av.pending { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--amber); }

/* calendar: reservation bars spanning booked nights ("palang melintang") */
.cbars { margin: 6px -7px 0; display: flex; flex-direction: column; gap: 3px; }
.cbar { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 5px; overflow: hidden;
  font-size: 10.5px; font-weight: 600; color: #34383f; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 17%, #fff); }
.cbar.rl { border-top-left-radius: 7px; border-bottom-left-radius: 7px; box-shadow: inset 3px 0 0 var(--c); }
.cbar.rr { border-top-right-radius: 7px; border-bottom-right-radius: 7px; margin-right: 2px; }
.cbar .av.bar { box-shadow: 0 0 0 1.5px #fff; }
.cbar-name { overflow: hidden; text-overflow: ellipsis; }
.cbar-more { font-size: 10px; color: var(--muted); padding-left: 7px; font-weight: 700; }

/* ============================================================ OWNER DAY — BOOKING CARDS (3 sections) */
.om-code { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .4px; display: inline-block; }
.paid-tag { color: var(--green); font-weight: 700; font-size: 13.5px; }
.booking-list { display: flex; flex-direction: column; gap: 14px; }
.booking-card { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-sm); }
.bc-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }

/* LEFT — homestay (pastel per house) */
.bc-left { width: 240px; min-width: 240px; padding: 16px; display: flex; flex-direction: column; }
.bc-home-img { width: 100%; height: 124px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.bc-home-name { font-weight: 700; font-size: 16px; margin-top: 11px; letter-spacing: -.2px; }
.bc-home-sub { color: rgba(0,0,0,.55); font-size: 12.5px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

/* MIDDLE — customer details (widest) */
.bc-mid { flex: 1; min-width: 0; padding: 16px 20px; border-left: 1px solid var(--line); }
.bc-cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px 20px; }
.ci span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ci b { font-weight: 600; font-size: 14px; word-break: break-word; }

/* RIGHT END — centered agent profile card + colour status block */
.bc-end { width: 230px; min-width: 230px; padding: 18px 16px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: linear-gradient(180deg, #fbfbfc, #fff); }
.bc-end-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.av.xl { width: 56px; height: 56px; font-size: 18px; }
.agent-mini { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.agent-mini-info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.agent-mini-name { font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.agent-mini-phone { font-size: 12.5px; color: var(--muted); }
.pay-block { width: 100%; border-radius: 12px; padding: 13px 12px; font-weight: 700; font-size: 14px; text-align: center; }
.pay-block.paid { background: var(--green-bg); color: var(--green); }
.pay-block.pending { background: var(--amber-bg); color: var(--amber); display: flex; flex-direction: column; gap: 10px; }
.pay-block.pending .btn { font-weight: 600; }
.pb-label { font-size: 13.5px; }

/* tablet + mobile: stack sections, agent becomes a compact horizontal bar */
@media (max-width: 820px) {
  .booking-card { flex-direction: column; }
  .bc-left, .bc-mid, .bc-end { width: auto; min-width: 0; }
  .bc-left { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  .bc-home-img { width: 88px; height: 66px; flex: none; }
  .bc-home-name { margin-top: 0; }
  .bc-mid { padding: 14px 16px; }
  .bc-mid, .bc-end { border-left: none; border-top: 1px solid var(--line); }
  .bc-end { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px; padding: 14px 16px; text-align: left; background: #fafbfc; }
  .bc-end-label { display: none; }
  .agent-mini { flex-direction: row; align-items: center; gap: 12px; flex: 1 1 220px; }
  .agent-mini-info { align-items: flex-start; gap: 4px; }
  .av.xl { width: 46px; height: 46px; font-size: 15px; }
  .pay-block { width: auto; min-width: 150px; flex: 0 1 auto; }
  .pay-block.paid { padding: 11px 16px; }
}
/* ---- mobile: dedicated reservation card (.bk-m), desktop card hidden ---- */
.bk-m { display: none; }
@media (max-width: 600px) {
  .booking-card { display: none; }
  .booking-list { gap: 12px; }
  .bk-m { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--panel); box-shadow: var(--shadow-sm); }

  .bk-m-head { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
  .bk-m-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
  .bk-m-head-info { flex: 1; min-width: 0; }
  .bk-m-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; letter-spacing: -.2px; }
  .bk-m-area { color: rgba(0,0,0,.55); font-size: 11.5px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

  .bk-m-body { padding: 11px 13px; }
  .bk-m-guest { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
  .bk-m-guest-name { font-weight: 700; font-size: 16px; letter-spacing: -.3px; }
  .bk-m-guest-sub { color: var(--muted); font-size: 12px; flex: none; }
  .bk-m-rows { display: flex; flex-direction: column; gap: 7px; }
  .bk-m-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #383c43; }
  .bk-m-row .ic { width: 16px; text-align: center; flex: none; font-size: 13px; opacity: .85; }
  .bk-m-row > span:last-child { min-width: 0; }
  .bk-m-email { overflow-wrap: anywhere; }

  .bk-m-foot { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-top: 1px solid var(--line); background: #fafbfc; flex-wrap: wrap; }
  .bk-m-agent { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; }
  .bk-m-agent-txt { min-width: 0; line-height: 1.3; }
  .bk-m-agent-txt b { font-weight: 700; font-size: 13px; display: block; }
  .bk-m-agent-txt span { font-size: 11px; color: var(--muted); }
  .bk-m-foot-end.paid { margin-left: auto; flex: none; }
  .bk-m-foot-end.pending { flex: 1 1 100%; }
  .bk-m-foot-end.pending .btn { width: 100%; }
}

/* calendar mobile: show 1 avatar + count badge (no cramped stack/clipping) */
.cal-count { display: none; }
@media (max-width: 640px) {
  .cal-cell { min-height: 60px; padding: 5px 3px; }
  /* thin colour bars on mobile (names hidden, tiny avatar at the start) */
  .cbars { margin: 5px -3px 0; gap: 2px; }
  .cbar { height: 13px; gap: 0; padding: 0 2px; font-size: 0; border-radius: 3px; }
  .cbar.rl { border-top-left-radius: 4px; border-bottom-left-radius: 4px; box-shadow: inset 2.5px 0 0 var(--c); }
  .cbar.rr { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
  .cbar-name { display: none; }
  .cbar .av.bar { width: 10px; height: 10px; box-shadow: 0 0 0 1px #fff; }
  .cbar-more { font-size: 9px; padding-left: 4px; }
}

/* owner: per-homestay calendar header */
.home-cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.home-cal-head .hch-img { width: 64px; height: 64px; border-radius: 13px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.home-cal-head .hch-info h1 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 2px; letter-spacing: -.6px; }
.home-cal-head .hch-info p { margin: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; }
@media (max-width: 600px) {
  .home-cal-head { gap: 12px; margin-bottom: 14px; }
  .home-cal-head .hch-img { width: 52px; height: 52px; border-radius: 11px; }
}

/* day-page card headers tinted by agent colour (match calendar bars) */
.bc-left { box-shadow: inset 4px 0 0 var(--c, transparent); }
.bk-m-head { box-shadow: inset 4px 0 0 var(--c, transparent); }
