/* Cuti D'Melaka — warm Melaka heritage palette (Stadthuys red, cream, brass) */
:root {
  --red: #8B1E2D; --red-dk: #6E1623; --red-lt: #F6E7E3;
  --cream: #FBF6EE; --paper: #FFFFFF; --ink: #2A1A14; --muted: #7A6A62; --line: #EADFD3;
  --brass: #B8892E; --green: #2E7D4F; --green-lt: #E4F2E9; --amber: #B26A00; --amber-lt: #FFF1D6;
  --blue: #1F5E8C; --blue-lt: #E3EEF7; --grey-lt: #EEEAE6;
  --radius: 14px; --shadow: 0 1px 2px rgba(42,26,20,.06), 0 6px 24px rgba(42,26,20,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red); }
h1, h2, h3, .h2 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; margin-top: .3em; }
h4 { margin: 1em 0 .3em; font-size: .95rem; }
code { background: var(--grey-lt); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 90px; outline: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: rgba(251,246,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-mark { background: var(--red); color: var(--cream); font-size: .72rem; letter-spacing: .08em; padding: 7px 8px; border-radius: 10px; }
nav#nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav#nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
nav#nav a.active, nav#nav a:hover { background: var(--red-lt); color: var(--red); }
.who { font-size: .85rem; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.topbar .menu-btn { display: none; margin-left: auto; }
@media (max-width: 760px) {
  .topbar .menu-btn { display: inline-flex; }
  nav#nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  nav#nav.open { display: flex; }
}
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); padding: 10px 16px; border-radius: 11px; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; min-height: 42px; }
.btn:hover { border-color: var(--red); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dk); }
.btn.ghost { background: transparent; }
.btn.danger { background: #B3261E; border-color: #B3261E; color: #fff; }
.btn.danger-ghost { color: #B3261E; border-color: #E8C2BE; background: transparent; }
.btn.sm { padding: 6px 12px; font-size: .85rem; min-height: 34px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; font-size: 1.4rem; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--red-lt); }
.linkish { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; text-decoration: underline; }
input, select, textarea { width: 100%; font: 15px var(--font); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 42px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); }
input.mini { width: 90px; padding: 6px 8px; min-height: 32px; text-align: right; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; color: #4b3a32; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 14px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid-form .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-form { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters > * { width: auto; min-width: 150px; }

/* ---------- layout ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.narrow { max-width: 520px; margin: 40px auto; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split.tight { grid-template-columns: 1fr 1fr; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .split, .grid2, .split.tight { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 76px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; gap: 10px; }
.mt { margin-top: 16px; }
.right { text-align: right; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--brass); margin: 0 0 4px; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.note { background: var(--blue-lt); color: #18476A; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 10px 0; }
.note.warn { background: var(--amber-lt); color: #7A4A00; }
.prose { font-size: .9rem; color: #4b3a32; padding: 6px 0; }
.urgent { color: #B3261E; font-weight: 700; }
.pos { color: var(--green); } .neg { color: #B3261E; } .warn-text { color: var(--amber); font-weight: 600; }
.page-loading { display: flex; justify-content: center; padding: 80px; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; opacity: .7; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- hero & property cards ---------- */
.hero { padding: 28px 0 22px; max-width: 760px; }
.lead { font-size: 1.08rem; color: #4b3a32; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.prop-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prop-photo { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--red) 0%, #B5651D 100%) center/cover; display: flex; align-items: center; justify-content: center; }
.prop-photo span { font-family: var(--serif); font-size: 3rem; color: rgba(255,255,255,.85); }
.prop-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-body .btn { margin-top: auto; }
.facts, .rates { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; font-size: .9rem; }
.rates { grid-template-columns: 1fr 1fr; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- calendar ---------- */
.calendar { position: relative; }
.calendar.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.5); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-legend { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 6px; border: 1px solid var(--line); }
.lg.free { background: #fff; } .lg.booked { background: var(--red); } .lg.hold { background: repeating-linear-gradient(45deg, var(--amber-lt), var(--amber-lt) 3px, #F3C77B 3px, #F3C77B 6px); } .lg.sel { background: var(--brass); }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cal-title { font-family: var(--serif); font-weight: 600; text-align: center; margin-bottom: 6px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 600; }
.cal-cell { aspect-ratio: 1 / .95; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font: 600 .9rem var(--font); color: var(--ink); min-width: 0; position: relative; }
.cal-cell.empty { border: 0; background: none; cursor: default; }
.cal-cell:hover:not(.past):not(.booked):not(.hold) { border-color: var(--brass); }
.cal-cell.past { color: #c9bdb3; background: #faf7f3; cursor: default; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--brass); }
.cal-cell.holiday .cal-num::after { content: '•'; color: var(--brass); position: absolute; top: 1px; right: 5px; }
.cal-cell.booked { background: var(--red); color: #fff; border-color: var(--red); cursor: not-allowed; }
.cal-cell.hold { background: repeating-linear-gradient(45deg, var(--amber-lt), var(--amber-lt) 4px, #F8DDA6 4px, #F8DDA6 8px); color: #7A4A00; cursor: not-allowed; }
.cal-cell.sel-start, .cal-cell.sel-end { background: var(--brass); color: #fff; border-color: var(--brass); }
.cal-cell.in-range { background: #F3E6C8; border-color: #EAD6A8; }
.cal-rate { font-size: .62rem; font-weight: 500; color: var(--muted); }
.cal-msg { min-height: 1.2em; font-size: .85rem; color: #B3261E; text-align: center; opacity: 0; transition: .2s; }
.cal-msg.show { opacity: 1; }
.calendar.admin .cal-cell { aspect-ratio: auto; min-height: 54px; justify-content: flex-start; align-items: stretch; }
.calendar.admin .cal-cell.booked, .calendar.admin .cal-cell.hold { background: #fff; color: var(--ink); cursor: pointer; border-color: var(--line); }
.calendar.admin .cal-num { font-size: .75rem; text-align: left; }
.calendar.admin .cal-label { background: var(--c, var(--red)); color: #fff; font-size: .66rem; border-radius: 5px; padding: 1px 4px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.calendar.admin .cal-cell.hold .cal-label { opacity: .55; }

/* ---------- quote / kv ---------- */
.quote { margin: 12px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; text-align: right; }
.kv .total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; color: var(--ink); }
.kv.small dd, .kv.small dt { font-size: .85rem; }
.qr { width: 100%; max-width: 260px; display: block; margin: 8px auto; border-radius: 12px; border: 1px solid var(--line); }
.qr.small { max-width: 140px; margin: 0; }

/* ---------- badges & lists ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge.green { background: var(--green-lt); color: var(--green); } .badge.amber { background: var(--amber-lt); color: var(--amber); }
.badge.blue { background: var(--blue-lt); color: var(--blue); } .badge.red { background: var(--red-lt); color: var(--red); } .badge.grey { background: var(--grey-lt); color: var(--muted); }
.tag { font-size: .68rem; background: var(--grey-lt); color: var(--muted); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.list { list-style: none; padding: 0; margin: 8px 0; } .list li { padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.item { display: flex; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.item.link, a.item { text-decoration: none; color: inherit; } a.item:hover { background: #fdfaf6; }
section.card > .item:last-child { border-bottom: 0; }
.booking-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.booking-row:hover { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { background: var(--grey-lt); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .8rem; display: inline-flex; gap: 6px; align-items: center; }
.chip .linkish { text-decoration: none; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg a { padding: 6px 12px; text-decoration: none; color: var(--ink); font-size: .85rem; } .seg a.on { background: var(--red); color: #fff; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: -4px 0 16px; padding-bottom: 4px; scrollbar-width: thin; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.tabs a.on { background: var(--ink); color: var(--cream); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; } .kpi b { font-family: var(--serif); font-size: 1.5rem; } .kpi small { color: var(--muted); font-size: .78rem; }
.kpi.alert { border-color: var(--red); background: var(--red-lt); }
.table-wrap { overflow-x: auto; margin: 10px -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr[data-href] { cursor: pointer; } .tbl tbody tr:hover { background: #fdfaf6; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt img { width: 100%; border-radius: 10px; border: 1px solid var(--line); max-height: 70vh; object-fit: contain; background: #f5f1ec; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; margin: 16px 0 6px; }
.bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; font-size: .7rem; color: var(--muted); }
.bar-stack { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 1px; display: inline-block; }
.bar.c0 { background: var(--red); } .bar.c1 { background: var(--brass); } .bar.c2 { background: var(--blue); } .bar.c3 { background: var(--green); }
.legend { display: flex; gap: 14px; font-size: .8rem; } .legend i { width: 12px; height: 12px; display: inline-block; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.cat-sum { columns: 2 280px; column-gap: 30px; font-size: .88rem; } .cat-sum .row { padding: 4px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }

/* ---------- housekeeping ---------- */
.hk-day { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin: 16px 0; }
.hk-day.today { border-left-color: var(--red); }
.hk-date { margin-bottom: 6px; }
.hk-item { display: flex; justify-content: space-between; gap: 12px; background: #fdfaf6; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.hk-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(42,26,20,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: var(--paper); border-radius: 18px; width: 100%; max-width: 480px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal header, .modal footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 8px; }
.modal header { border-bottom: 1px solid var(--line); } .modal header h3 { margin: 0; }
.modal footer { border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); animation: up .2s; }
.toast.err { background: #B3261E; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.wa-fab { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 30; }
@media print { .topbar, .tabs, .wa-fab, .btn, .foot { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* =====================================================================
   Booking-style customer UX (v1.1)
   ===================================================================== */
.mb { margin-bottom: 14px; }
.h1 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 4px; }
.ok-text { color: var(--green); }
.note.ok { background: var(--green-lt); color: #1D5B37; }
.note.big { font-size: 1.05rem; font-weight: 600; }

/* hero band + search */
.hero-band { background: linear-gradient(120deg, var(--red) 0%, #6E1623 60%, #4A0F18 100%); color: #fff; border-radius: 20px; padding: 40px 28px 0; margin: 4px 0 70px; position: relative; }
.hero-inner h1 { color: #fff; margin-bottom: 6px; }
.hero-inner p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 620px; margin: 0 0 30px; }
.hero-search { transform: translateY(50%); margin-top: -10px; }
@media (max-width: 720px) { .hero-band { padding: 28px 18px 0; margin-bottom: 140px; } .hero-search { transform: translateY(40%); } }

.searchbar { display: flex; gap: 4px; background: var(--brass); padding: 4px; border-radius: 14px; box-shadow: 0 10px 30px rgba(42,26,20,.18); }
.searchbar.compact { box-shadow: none; }
.sb-field { flex: 1; display: flex; align-items: center; gap: 12px; background: #fff; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 56px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.sb-field > svg { color: var(--muted); flex: none; }
.sb-text { display: flex; flex-direction: column; min-width: 0; }
.sb-text small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.sb-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-text b.placeholder { color: var(--muted); font-weight: 500; }
.sb-dates { flex: 1.6; }
.sb-guests { cursor: default; }
.sb-go { min-height: 56px; padding: 0 26px; font-size: 1.05rem; border-radius: 10px; }
@media (max-width: 720px) { .searchbar { flex-direction: column; } .sb-go { width: 100%; } }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--red); line-height: 1; }
.stepper button:hover { border-color: var(--red); }
.stepper input { width: 46px; min-height: 30px; padding: 2px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* date picker popover */
.dp-pop { position: fixed; inset: 0; z-index: 70; background: rgba(42,26,20,.35); display: flex; align-items: flex-end; justify-content: center; }
.dp-pop.anchored { position: absolute; background: transparent; align-items: flex-start; justify-content: flex-start; height: max(100%, 100vh); }
.dp-pop.anchored::before { content: ''; position: fixed; inset: 0; }
.dp-sheet { position: relative; background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-height: 92vh; overflow: auto; padding: 12px 16px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dp-pop.anchored .dp-sheet { position: absolute; width: min(680px, 94vw); border-radius: 16px; }
.dp-head, .dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; flex-wrap: wrap; }
.dp-cal .cal-cell { aspect-ratio: 1 / .9; }

/* results */
.results { margin-bottom: 30px; }
.res-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.res-title { font-size: 1.35rem; margin: 0; }
.res-card { display: grid; grid-template-columns: 260px 1fr 230px; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); transition: .15s; }
.res-card:hover { border-color: #d9c6b4; box-shadow: 0 10px 30px rgba(42,26,20,.1); }
.res-card.dim { opacity: .78; }
.res-photo { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.res-photo img, .res-photo .ph-empty { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--red); text-decoration: none; }
.res-name:hover { text-decoration: underline; }
.res-tag { margin: 0; color: #4b3a32; }
.res-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.res-facts span, .hl { background: var(--grey-lt); border-radius: 8px; padding: 3px 10px; font-size: .82rem; font-weight: 600; color: #4b3a32; }
.am-inline { list-style: none; padding: 0; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: #4b3a32; }
.am-inline li { display: inline-flex; align-items: center; gap: 5px; }
.am-inline svg { width: 16px; height: 16px; color: var(--green); }
.res-price { border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 4px; text-align: right; }
.res-price .btn { margin-top: 8px; width: 100%; }
.price-total { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.price-from { display: flex; flex-direction: column; align-items: flex-end; }
.price-from b { font-family: var(--serif); font-size: 1.5rem; }
.price-from small { color: var(--muted); }
.avail-tag { background: var(--green-lt); color: var(--green); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.avail-tag.block { display: block; text-align: center; padding: 8px; border-radius: 10px; margin: 10px 0 0; font-size: .9rem; }
.unavail { color: #B3261E; font-weight: 700; margin: 0; font-size: .9rem; }
@media (max-width: 900px) {
  .res-card { grid-template-columns: 1fr; }
  .res-price { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; align-items: stretch; text-align: left; }
  .price-from { align-items: flex-start; }
}
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.trust span { color: var(--muted); font-size: .88rem; }
.ph-empty { background: linear-gradient(135deg, var(--red) 0%, #B5651D 100%); display: flex; align-items: center; justify-content: center; }
.ph-empty span { font-family: var(--serif); font-size: 2.6rem; color: rgba(255,255,255,.85); }

/* property page */
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.gallery { display: grid; gap: 8px; border-radius: 18px; overflow: hidden; margin-bottom: 18px; height: clamp(240px, 42vw, 440px); grid-template-columns: 1fr; }
.gallery.multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.multi .g0 { grid-row: 1 / 3; }
.g-item { border: 0; padding: 0; position: relative; cursor: zoom-in; overflow: hidden; background: var(--grey-lt); min-height: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
@media (max-width: 720px) {
  .gallery.multi { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 260px; }
  .gallery.multi .g-item:not(.g0) { display: none; }
  .gallery.multi .g0 { grid-row: auto; }
}
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.prop-side { position: sticky; top: 76px; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } .prop-side { position: static; } }
.hl-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.prose.large { font-size: 1rem; line-height: 1.65; }
.am-grid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.am-grid li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.am-grid svg { color: var(--green); flex: none; }
.rates-tbl td { padding: 10px 6px; }
.policy { display: grid; grid-template-columns: 150px 1fr; gap: 12px 18px; margin: 0; }
.policy dt { font-weight: 700; }
.policy dd { margin: 0; color: #4b3a32; font-size: .93rem; }
@media (max-width: 600px) { .policy { grid-template-columns: 1fr; gap: 2px; } .policy dd { margin-bottom: 10px; } }
.reserve { border: 2px solid var(--brass); }
.reserve-price { font-size: 1.05rem; margin-bottom: 12px; }
.reserve-price b { font-family: var(--serif); font-size: 1.6rem; }
.reserve-fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cbb9a8; border-radius: 12px; overflow: hidden; }
.rf { background: #fff; border: 0; border-bottom: 1px solid #cbb9a8; padding: 10px 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf:first-child { border-right: 1px solid #cbb9a8; }
.rf.span2 { grid-column: 1 / -1; border-bottom: 0; cursor: default; flex-direction: row; align-items: center; justify-content: space-between; }
.rf small { font-size: .66rem; font-weight: 800; letter-spacing: .06em; }
.rf b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.large { min-height: 50px; font-size: 1.05rem; }
.tip { cursor: help; color: var(--muted); }
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .mobile-bar b { font-family: var(--serif); font-size: 1.3rem; }
  body:has(.mobile-bar) .wa-fab { bottom: 84px; }
  body:has(.mobile-bar) main { padding-bottom: 120px; }
}
.lb { position: relative; display: flex; align-items: center; justify-content: center; background: #111; border-radius: 12px; min-height: 50vh; }
.lb-img { max-width: 100%; max-height: 65vh; object-fit: contain; }
.lb .icon-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; }
.lb-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; flex: none; cursor: pointer; background: none; }
.lb-thumbs button.on { border-color: var(--brass); }
.lb-thumbs img { width: 80px; height: 56px; object-fit: cover; display: block; }

/* checkout */
.steps { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 4px 0 20px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #cbb9a8; font-size: .85rem; }
.steps li.on { color: var(--ink); } .steps li.on span { background: var(--red); border-color: var(--red); color: #fff; }
.steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.sep { flex: 0 1 50px; height: 2px; background: #e2d4c6; }
@media (max-width: 600px) { .steps li:not(.on):not(.sep) { font-size: 0; gap: 0; } .steps li.sep { flex: 1; } }
.checkout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.sum-prop { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sum-prop img, .sum-prop .ph-empty { width: 86px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.sum-prop .ph-empty span { font-size: 1.2rem; }
.sum-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sum-dates div { display: flex; flex-direction: column; } .sum-dates small { color: var(--muted); font-size: .78rem; }
.co-actions { margin-top: 6px; }

/* admin: amenities & photos */
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; }
legend { font-weight: 700; font-size: .88rem; padding: 0 6px; }
.amen-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; }
.amen-pick label { font-weight: 500; } .amen-pick svg { color: var(--green); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.thumb { width: 120px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.thumb.cover { border: 2px solid var(--brass); }
.thumb img { width: 100%; height: 80px; object-fit: cover; display: block; }
.thumb-actions { display: flex; justify-content: space-between; padding: 4px 8px; font-size: .75rem; }
.co-actions { gap: 12px; }
@media (max-width: 600px) { .co-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; } .co-actions .btn { width: 100%; } }
