/* Pool Villa Hub — deep lagoon teal, white surfaces, script accent for the hero lines */
:root {
  --brand-900: #0A2B2C;
  --brand-800: #0F3B3C;
  --brand-700: #13504F;
  --brand-600: #186664;
  --brand-100: #E3F0EE;
  --brand-50: #F1F7F6;
  --ink: #142727;
  --muted: #5F7473;
  --line: #E1E8E7;
  --bg: #F7F9F9;
  --surface: #FFFFFF;
  --gold: #F2B33D;
  --ok: #1E9467;   --ok-bg: #E2F5EC;
  --warn: #C9790E; --warn-bg: #FDF0DC;
  --bad: #CC4B44;  --bad-bg: #FBE6E4;

  --f-head: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Parisienne", "Brush Script MT", cursive;

  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(10, 43, 44, .05), 0 10px 30px rgba(10, 43, 44, .08);
  --shadow-lg: 0 20px 50px rgba(10, 43, 44, .18);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* icons */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }
.star { color: var(--gold); width: 15px; height: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 20px; font-weight: 600; cursor: pointer; background: var(--brand-700); color: #fff; transition: background .2s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--brand-800); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--brand-700); border-color: var(--brand-700); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--brand-50); }
.btn--danger { background: var(--bad); }
.btn--danger:hover { background: #a83a34; }
.btn--sm { padding: 7px 12px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--brand-600); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.chip .i { width: 14px; height: 14px; }
.chip--glass { background: rgba(10, 43, 44, .55); color: #fff; backdrop-filter: blur(6px); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--confirmed, .status--active { background: var(--ok-bg); color: var(--ok); }
.status--pending { background: var(--warn-bg); color: var(--warn); }
.status--cancelled, .status--inactive { background: var(--bad-bg); color: var(--bad); }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.stars b { font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--brand-800); color: #fff; }
.site-header--overlay { position: fixed; left: 0; right: 0; top: 0; background: transparent; transition: background .25s, box-shadow .25s; }
.site-header--overlay.is-scrolled, .site-header--overlay.nav-open { background: var(--brand-800); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brand-800); flex: none; }
.logo--light, .site-header .logo { color: #fff; }
.logo-mark { width: 44px; height: 36px; }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-family: var(--f-head); font-size: 16px; letter-spacing: .06em; }
.logo small { font-size: 10.5px; opacity: .8; letter-spacing: .02em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: 6px; font-size: 14.5px; opacity: .9; white-space: nowrap; }
.main-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-mobile-only { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn .badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: var(--brand-900); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin-inline: 6px; }
.login-link { font-size: 14px; padding: 8px 4px; white-space: nowrap; }
.login-link:hover { text-decoration: underline; }
.account-link { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--brand-900); display: grid; place-items: center; font-weight: 700; font-family: var(--f-head); }
.menu-btn { display: none; }

@media (max-width: 1120px) {
  .menu-btn { display: grid; }
  .hide-sm { display: none; }
  .divider { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--brand-800); flex-direction: column; padding: 8px 16px 16px; display: none; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .nav-mobile-only { display: block; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 6px; padding-top: 6px; }
  .nav-mobile-only a { display: block; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, .78); margin-top: 80px; padding-top: 56px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .muted { color: rgba(255, 255, 255, .5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.req { color: var(--bad); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.input.is-invalid { border-color: var(--bad); }
.textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--bad); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-700); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.kind-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-pick legend { margin-bottom: 6px; padding: 0; }
.kind-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; background: var(--surface); }
.kind-pick label:has(input:checked) { border-color: var(--brand-700); background: var(--brand-50); }
.kind-pick input { margin-top: 4px; accent-color: var(--brand-700); }
.kind-pick b { display: block; font-size: 14.5px; }
.kind-pick small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 420px) { .kind-pick { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- search bar (home + results) ---------- */
.searchbar { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; align-items: stretch; padding: 8px; gap: 4px; color: var(--ink); }
.searchbar .sb-field { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: var(--r-sm); min-width: 0; }
.searchbar .sb-field + .sb-field { border-left: 1px solid var(--line); }
.searchbar .sb-field:focus-within { background: var(--brand-50); }
.searchbar .sb-field > .i { color: var(--brand-600); width: 22px; height: 22px; }
.searchbar .sb-field div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.searchbar label { font-size: 13px; font-weight: 600; }
.searchbar input, .searchbar select { border: 0; padding: 0; background: transparent; font-size: 14px; color: var(--muted); width: 100%; min-width: 0; }
.searchbar input:focus, .searchbar select:focus { outline: none; color: var(--ink); }
.searchbar .btn { padding-inline: 28px; }
@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .sb-field:first-child, .searchbar .sb-field:nth-child(4) { grid-column: 1 / -1; }
  .searchbar .sb-field + .sb-field { border-left: 0; }
  .searchbar .sb-field { border: 1px solid var(--line) !important; }
  .searchbar .btn { grid-column: 1 / -1; padding-block: 13px; }
}

/* ---------- home ---------- */
.hero { position: relative; color: #fff; padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px)); padding-bottom: 64px; overflow: hidden; background: var(--brand-800); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 43, 44, .55) 0%, rgba(10, 43, 44, .2) 45%, rgba(10, 43, 44, .65) 100%); }
.hero > .container { position: relative; z-index: 1; }
.script { font-family: var(--f-script); font-weight: 400; display: block; font-size: 1.15em; line-height: 1; margin-bottom: .05em; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__lead { font-size: clamp(16px, 2vw, 19px); margin-top: 16px; max-width: 46ch; opacity: .95; }
.trust { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 32px; }
.trust div { display: flex; align-items: center; gap: 12px; }
.trust .i { width: 30px; height: 30px; stroke-width: 1.4; }
.trust b { display: block; font-family: var(--f-head); font-size: 15px; }
.trust small { font-size: 12.5px; opacity: .85; }
.hero .searchbar { margin-top: 36px; }

.section { padding-top: clamp(48px, 7vw, 80px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--brand-800); }
.section-head p { color: var(--muted); margin-top: 6px; }

.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dest-card { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: var(--brand-700); }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dest-card:hover img { transform: scale(1.05); }
.dest-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 43, 44, .85)); }
.dest-card > *:not(img) { position: relative; z-index: 1; }
.dest-card h3 { font-size: 24px; font-weight: 600; }
.dest-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-top: 2px; }
.dest-card .row span:last-child { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; opacity: .9; }
@media (max-width: 760px) { .dest-grid { grid-template-columns: 1fr; } .dest-card { aspect-ratio: 16 / 9; } }
@media (max-width: 420px) { .dest-card { aspect-ratio: 4 / 5; } .dest-card h3 { font-size: 20px; } }

.villa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .villa-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .villa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .villa-grid { grid-template-columns: 1fr; } }
.villa-card { position: relative; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.villa-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.villa-card__media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--brand-100); overflow: hidden; }
.villa-card__media img { width: 100%; height: 100%; object-fit: cover; }
.villa-card__media .chip { position: absolute; left: 10px; bottom: 10px; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.wish-btn[aria-pressed="true"] { color: #E0475B; }
.wish-btn[aria-pressed="true"] .i { fill: currentColor; }
.villa-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.villa-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.villa-card h3 { font-size: 16.5px; font-weight: 600; }
.villa-card h3 a:hover { color: var(--brand-600); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 13.5px; }
.meta .i { width: 15px; height: 15px; }
.price { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 14px; }
.price b { color: var(--brand-800); font-family: var(--f-head); font-size: 19px; }

.story { position: relative; margin-top: clamp(56px, 8vw, 96px); color: #fff; background: var(--brand-800); overflow: hidden; }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 43, 44, .82) 0%, rgba(10, 43, 44, .55) 50%, rgba(10, 43, 44, .88) 100%); }
.story .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.story h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
.story h2 .script { font-size: 1.1em; }
.story p.lead { margin-top: 14px; font-size: 17px; max-width: 34ch; opacity: .92; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.features div { display: flex; gap: 14px; }
.features .i { width: 30px; height: 30px; stroke-width: 1.4; color: var(--gold); }
.features b { font-family: var(--f-head); font-size: 16px; display: block; }
.features small { font-size: 13.5px; opacity: .85; }
@media (max-width: 820px) { .story .container { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

.steps-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-band article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps-band .n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-family: var(--f-head); }
.steps-band h3 { font-size: 17px; }
.steps-band p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .steps-band { grid-template-columns: 1fr; } }

/* ---------- page banner ---------- */
.banner { position: relative; color: #fff; padding-block: 44px 72px; background: var(--brand-800); overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 43, 44, .85), rgba(10, 43, 44, .35)); }
.banner .container { position: relative; z-index: 1; }
.banner h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.banner p { opacity: .9; margin-top: 6px; }
.banner + .container .searchbar { margin-top: -36px; position: relative; z-index: 2; box-shadow: var(--shadow); }

/* ---------- search results ---------- */
.results-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 18px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; }
.filters__head h2 { font-size: 17px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0; display: grid; gap: 9px; }
.filters legend { font-weight: 600; font-size: 14.5px; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.amen-more { display: grid; gap: 9px; }
.amen-more summary { cursor: pointer; color: var(--brand-700); font-weight: 600; font-size: 14px; }
.amen-more[open] summary { margin-bottom: 2px; }
.amen-group { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.amen-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 4px; }
.range-out { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--brand-700); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.filters-toggle { display: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h2 { font-size: 18px; }
.results-head .select { width: auto; padding-block: 8px; }
.result-list { display: grid; gap: 16px; }
.result { display: grid; grid-template-columns: 280px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; transition: box-shadow .2s; }
.result:hover { box-shadow: var(--shadow); }
.result__media { position: relative; min-height: 200px; background: var(--brand-100); }
.result__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result__media .chip { position: absolute; left: 10px; top: 10px; background: var(--gold); color: var(--brand-900); }
.result__media .loc { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); display: flex; align-items: center; gap: 4px; }
.result__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.result__body h3 { font-size: 18px; padding-right: 40px; }
.result__body h3 a:hover { color: var(--brand-600); }
.amen-row { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.amen-row span { display: inline-flex; align-items: center; gap: 5px; }
.amen-row .i { width: 15px; height: 15px; }
.result__foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result__foot .total { font-size: 13px; color: var(--muted); }
.result .wish-btn { border: 1px solid var(--line); }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h3 { color: var(--ink); }
@media (max-width: 960px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}
@media (max-width: 640px) { .result { grid-template-columns: 1fr; } .result__media { aspect-ratio: 16 / 10; min-height: 0; } }

/* ---------- villa detail ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); padding-block: 18px; }
.breadcrumb .i { width: 14px; height: 14px; }
.breadcrumb a:hover { color: var(--brand-600); }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--r-lg); overflow: hidden; height: clamp(260px, 42vw, 460px); }
.gallery button { border: 0; padding: 0; cursor: zoom-in; position: relative; background: var(--brand-100); overflow: hidden; min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__main { grid-row: 1 / 3; }
.gallery .gallery__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); cursor: pointer; overflow: visible; }
.gallery .gallery__all .i { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; height: auto; }
  .gallery__main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery > button:not(.gallery__main):not(.gallery__all) { aspect-ratio: 1; }
}

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-title { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; color: var(--brand-800); }
.detail-title .sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.detail-title .sub span { display: inline-flex; align-items: center; gap: 4px; }
.detail-price { text-align: right; }
.detail-price b { font-family: var(--f-head); font-size: 28px; color: var(--brand-800); }
.detail-price small { display: block; color: var(--muted); font-size: 12.5px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 18px; margin-top: 18px; border-block: 1px solid var(--line); }
.spec-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.spec-row .i { color: var(--brand-600); }
/* the line under tabs is an inset shadow, so the active underline needs no negative margin (that made Windows show a scrollbar) */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px var(--line); margin-top: 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.tab-panel { padding-top: 22px; }
.tab-panel p { max-width: 68ch; }
.overview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 20px; }
@media (max-width: 720px) { .overview { grid-template-columns: 1fr; } }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bullets li { display: flex; gap: 8px; align-items: center; }
.bullets .i { color: var(--ok); width: 16px; height: 16px; }
.map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; max-width: 100%; background: var(--brand-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map a { position: absolute; left: 10px; bottom: 10px; background: var(--surface); padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.amen-grid div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.amen-grid .i { color: var(--brand-600); }
.amen-grid .off { color: var(--muted); text-decoration: line-through; opacity: .7; }
.photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.photo-strip button { border: 0; padding: 0; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; background: var(--brand-100); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }

.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.book-card .head { display: flex; justify-content: space-between; align-items: baseline; }
.book-card .head b { font-family: var(--f-head); font-size: 24px; color: var(--brand-800); }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.date-pair .field { padding: 8px 12px; gap: 2px; }
.date-pair .field + .field { border-left: 1px solid var(--line); }
.date-pair label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.date-pair input { border: 0; padding: 0; font-size: 14.5px; background: transparent; width: 100%; }
.date-pair input:focus { outline: none; }
.breakdown { display: grid; gap: 8px; font-size: 14.5px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown div span:last-child { font-variant-numeric: tabular-nums; }
.breakdown .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 16px; }
.book-note { font-size: 12.5px; color: var(--muted); text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 20, 20, .92); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 0; }
.lightbox > img { max-height: 72vh; margin: auto; border-radius: var(--r-sm); object-fit: contain; }
.lightbox > button { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; margin: auto; }
.lightbox .close { position: absolute; top: 16px; right: 16px; }
.lightbox { grid-template-rows: 1fr auto; }
.lightbox .lb-thumbs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 0; justify-content: safe center; }
.lightbox .lb-thumbs button { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .55; }
.lightbox .lb-thumbs button.is-on { border-color: #fff; opacity: 1; }
.lightbox .lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox .count { position: absolute; top: 24px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---------- booking ---------- */
.stepper { display: flex; justify-content: center; gap: 0; padding-block: 28px 8px; }
.stepper li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; width: clamp(96px, 20vw, 180px); font-size: 13.5px; color: var(--muted); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font-weight: 700; z-index: 1; font-family: var(--f-head); }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--brand-600); }
.stepper li.is-done .dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper li.is-current .dot { border-color: var(--brand-600); color: var(--brand-700); }
.stepper li.is-current, .stepper li.is-done { color: var(--ink); font-weight: 600; }
.booking-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 20px; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } .booking-layout .summary { order: -1; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.panel > h2 { font-size: 20px; margin-bottom: 18px; }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary .villa-mini { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.summary .villa-mini img { width: 110px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--brand-100); }
.villa-mini h3 { font-size: 15.5px; }
.villa-mini p { font-size: 13px; color: var(--muted); }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-600); }
.pay-opt input { accent-color: var(--brand-700); width: 18px; height: 18px; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }
.pay-detail { margin-top: 18px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
@media (max-width: 560px) { .pay-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.dropzone { margin-top: 18px; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 20px; text-align: center; color: var(--muted); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone img { max-height: 160px; border-radius: var(--r-sm); }
.success { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 16px; }
.success .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.success .tick .i { width: 36px; height: 36px; stroke-width: 2.4; }
.success h2 { font-size: 26px; }
.success .code { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; background: var(--brand-50); padding: 8px 16px; border-radius: var(--r-sm); letter-spacing: .05em; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth__art { position: relative; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 72px); overflow: hidden; background: var(--brand-800); }
.auth__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10, 43, 44, .4), rgba(10, 43, 44, .85)); }
.auth__art > *:not(img) { position: relative; z-index: 1; }
.auth__art h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; margin-top: 6px; }
.auth__art .eyebrow { font-size: 18px; opacity: .9; }
.auth__perks { display: grid; gap: 16px; margin-top: 36px; }
.auth__perks div { display: flex; align-items: center; gap: 14px; }
.auth__perks .i { width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; }
.auth__form { display: flex; justify-content: center; align-items: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px); }
.auth__box { width: 100%; max-width: 420px; }
.auth__box .tabs { margin-top: 0; margin-bottom: 26px; }
.auth__box .tabs button { flex: 1; font-size: 16px; }
.auth__box form { display: grid; gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__art { padding-block: 40px; } .auth__perks { display: none; } }

/* ---------- account ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.dash-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.profile { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.profile .avatar { width: 52px; height: 52px; font-size: 22px; }
.profile b { display: block; font-family: var(--f-head); }
.profile small { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink); border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.side-nav a:hover, .side-nav button:hover { background: var(--brand-50); }
.side-nav a[aria-current="page"] { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.side-nav .i { color: var(--brand-600); }
.side-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; padding: 10px 12px 2px; }
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.dash-main > h1 { font-size: 26px; color: var(--brand-800); margin-bottom: 4px; }
.subtabs { display: flex; gap: 4px; box-shadow: inset 0 -1px var(--line); margin-block: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.subtabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subtabs button[aria-selected="true"] { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.subtabs .count { font-size: 12px; background: var(--brand-50); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.booking-list { display: grid; gap: 14px; }
.booking-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; align-items: center; }
.booking-item img { width: 150px; height: 104px; object-fit: cover; border-radius: var(--r-sm); background: var(--brand-100); }
.booking-item h3 { font-size: 16.5px; }
.booking-item p { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.booking-item p .i { width: 15px; height: 15px; }
.booking-item .amt { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--brand-800); margin-top: 4px; }
.booking-item .act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; } .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .side-nav hr { display: none; } .side-label { grid-column: 1 / -1; } }
@media (max-width: 600px) { .booking-item { grid-template-columns: 96px 1fr; } .booking-item img { width: 96px; height: 80px; } .booking-item .act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* confirm dialog (in-page) */
.modal-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(5, 20, 20, .55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal header h2 { font-size: 18px; }
.modal .body { padding: 20px 22px; display: grid; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--brand-900); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 200; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.img-failed { opacity: 0; }

/* ---------- availability calendar ---------- */
.cal { position: relative; }
.cal-nav { position: absolute; top: -2px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; }
.cal-nav button:hover { background: var(--brand-50); }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cal-title { text-align: center; font-family: var(--f-head); font-weight: 600; margin-bottom: 10px; line-height: 28px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; position: relative; color: var(--ink); }
.cal-day:hover:not([disabled]) { background: var(--brand-50); }
.cal-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand-600); }
.cal-day.is-past { color: #b7c3c2; cursor: default; }
.cal-day.is-busy { color: var(--muted); text-decoration: line-through; background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 4px, #e8eeed 4px, #e8eeed 8px); }
.cal-day.is-booking { background: var(--brand-100); color: var(--brand-700); text-decoration: none; font-weight: 600; }
.cal-day.is-owner, .cal-day.is-manual { background: var(--warn-bg); color: var(--warn); text-decoration: none; font-weight: 600; }
.cal-day.is-ical { background: #ECE6F8; color: #6B4FB0; text-decoration: none; font-weight: 600; }
.cal-day.is-sel { background: var(--brand-600); color: #fff; text-decoration: none; }
.cal-day.is-start, .cal-day.is-end { background: var(--brand-800); color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.lg-free { background: var(--surface); }
.lg-busy { background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 3px, #dfe7e6 3px, #dfe7e6 6px); }
.lg-booking { background: var(--brand-100); }
.lg-owner { background: var(--warn-bg); }
.lg-ical { background: #ECE6F8; }
.lg-sel { background: var(--brand-600); }
.cal-hint { min-height: 1.4em; margin-top: 8px; font-size: 13px; color: var(--brand-700); }

/* ---------- owner page ---------- */
.owner-head { display: flex; gap: 16px; align-items: center; padding-block: 28px 8px; }
.owner-head img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--brand-100); }
.owner-head h1 { font-size: clamp(22px, 3vw, 28px); color: var(--brand-800); }
.owner-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .owner-grid { grid-template-columns: 1fr; } }
.block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; }
.block-list small { display: block; color: var(--muted); font-size: 12.5px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.tag-booking { background: var(--brand-100); color: var(--brand-700); }
.tag-owner, .tag-manual { background: var(--warn-bg); color: var(--warn); }
.tag-ical { background: #ECE6F8; color: #6B4FB0; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: 13px; font-family: ui-monospace, Consolas, monospace; }

/* ---------- pay page ---------- */
.how-pay { margin-top: 18px; background: var(--brand-50); border-radius: var(--r); padding: 14px 18px; font-size: 14.5px; }
.how-pay ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.how-pay small { color: var(--muted); }
.pay-amount { margin-top: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--brand-50); display: grid; gap: 2px; }
.pay-amount span { font-size: 13.5px; color: var(--muted); }
.pay-amount b { font-family: var(--f-head); font-size: 30px; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.pay-amount small { color: var(--muted); }
.qr-real { display: grid; gap: 6px; justify-items: center; text-align: center; }
.qr-real img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.qr-real small { color: var(--muted); font-size: 12.5px; max-width: 200px; }
.acct { margin: 0; display: grid; gap: 10px; align-content: start; }
.acct div { display: grid; gap: 2px; }
.acct dt { font-size: 12.5px; color: var(--muted); }
.acct dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct code { font-size: 17px; letter-spacing: .03em; }
.pay-detail { grid-template-columns: 220px 1fr; }
.owed { margin-top: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--warn-bg); display: grid; gap: 6px; }
.owed div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.owed b { font-family: var(--f-head); font-size: 24px; color: var(--warn); font-variant-numeric: tabular-nums; }
.owed small { color: var(--muted); }
.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guest-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.guest-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.guest-card header small { display: block; color: var(--muted); font-size: 12px; }
.guest-card dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.guest-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.guest-card dt { color: var(--muted); }
.guest-card dd { margin: 0; min-width: 0; }
.guest-card dd small { color: var(--muted); }
.guest-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- conversion details ---------- */
.hero__price { margin-top: 10px; font-size: clamp(15px, 1.8vw, 18px); }
.hero__price b { font-family: var(--f-head); font-size: 1.35em; color: var(--gold); }
.badge-new { font-size: 11.5px; font-weight: 700; color: var(--brand-700); background: var(--brand-100); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.stars .muted { font-size: 12.5px; font-weight: 400; margin-left: 2px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-row span { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--warn-bg); color: #8a5208; }
.tag-row .tag-perhead { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.price-row { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; border-top: 1px dashed var(--line); }
.price-row .price { margin: 0; padding: 0; }
.per-head { margin: 0; text-align: right; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.per-head b { font-family: var(--f-head); font-size: 16px; color: var(--brand-600); }
.villa-card .meta { font-size: 13px; }

.occasions-wrap { padding-top: 40px; }
.occasions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.occasion { display: grid; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.occasion:hover { border-color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.occasion b { font-family: var(--f-head); font-size: 16px; color: var(--brand-800); }
.occasion small { color: var(--muted); font-size: 13px; }
.occasion span { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 4px; }
.occasion span .i { width: 14px; height: 14px; }
@media (max-width: 960px) { .occasions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .occasions { grid-template-columns: 1fr 1fr; } }
.occ-chips { margin-bottom: 14px; }

.line-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #06C755; color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(6, 199, 85, .35); transition: transform .2s; }
.line-fab:hover { transform: translateY(-2px); }
.line-fab .i { width: 24px; height: 24px; }
@media (max-width: 560px) { .line-fab span { display: none; } .line-fab { padding: 14px; } }
.contact-list svg { width: 18px; height: 18px; }
.deadline { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--warn-bg); color: #7a4a06; font-size: 14px; }
.deadline .i { flex: none; margin-top: 2px; }
.find-box { max-width: 460px; margin: 48px auto 0; }
.legal { max-width: 760px; margin: 0 auto; padding-block: 36px 24px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 34px); color: var(--brand-800); }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; color: var(--brand-800); }
.legal p, .legal li { line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 4px; margin: 8px 0; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.guide-toc a { font-size: 13.5px; padding: 5px 12px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.guide h2 { scroll-margin-top: calc(var(--header-h) + 12px); }
.legal .note { background: var(--brand-50); border-radius: var(--r); padding: 12px 16px; margin-top: 18px; font-size: 14px; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.check .link { display: inline; }
.cal-day.has-price { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.1; }
.cal-price { font-size: 9.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-price.is-special { color: #b45309; font-weight: 700; }
.cal-day.is-sel .cal-price, .cal-day.is-start .cal-price, .cal-day.is-end .cal-price { color: rgba(255,255,255,.85); }
.lg-special { background: #fdf0dc; border-color: #b45309 !important; }
.base-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .base-form { grid-template-columns: 1fr 1fr; } .base-form .btn { grid-column: 1 / -1; } }
.pick-bar { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.pick-range { font-weight: 600; color: var(--brand-800); }
.pick-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.pick-row .field { flex: 1 1 200px; }

/* Villa form (admin + owners) */
.form-sep { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.photo-grid figure { position: relative; margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-100); border: 2px solid transparent; }
.photo-grid figure.is-cover { border-color: var(--gold); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .cover-tag { position: absolute; left: 6px; top: 6px; background: var(--gold); color: var(--brand-900); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 3px; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.photo-grid figcaption button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: rgba(255,255,255,.92); cursor: pointer; font-size: 13px; line-height: 1; }
.photo-grid figcaption button:hover { background: #fff; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.url-row { display: flex; gap: 6px; flex: 1 1 260px; }
.notice { background: var(--warn-bg); color: #7a4a06; border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; }
.notice--action { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; margin-bottom: 16px; cursor: pointer; text-align: left; font-weight: 600; }
.notice--bad { background: var(--bad-bg); color: var(--bad); }
.status--rejected { background: var(--bad-bg); color: var(--bad); }
.review-list { display: grid; gap: 8px; margin: 0; }
.review-list div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; font-size: 14px; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .review-list div { grid-template-columns: 1fr; gap: 2px; } }

/* Owner listing page (/host.html) */
.host { padding-block: 32px 48px; display: grid; gap: 28px; }
.host-hero { background: linear-gradient(180deg, rgba(10,43,44,.92), rgba(15,59,60,.86)), url("https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=1400&q=60") center / cover var(--brand-800); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; }
.host-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; }
.host-hero h1 span { color: var(--gold); }
.host-hero > p b { color: var(--gold); }
.host-kicker { font-size: 14px; letter-spacing: .5px; color: var(--gold); font-weight: 600; opacity: 1 !important; }
.host-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.host-cta .btn { padding: 13px 26px; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--brand-900); }
.btn--gold:hover { background: #e0a22f; }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.host-sample__grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; margin-top: 12px; }
.host-sample .villa-card { pointer-events: none; }
.sample-tag { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--gold); color: var(--brand-900); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.host-sample__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.host-sample__notes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; font-size: 14px; color: var(--muted); }
.host-sample__notes b { display: block; color: var(--ink); font-size: 15.5px; }
.host-sample h2 { font-size: 21px; color: var(--brand-800); }
@media (max-width: 720px) { .host-sample__grid { grid-template-columns: 1fr; } }
.host-who ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.host-who li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--muted); }
.host-who li b { display: block; color: var(--ink); font-size: 16px; }
.host-who h2, .host-faq h2 { font-size: 21px; color: var(--brand-800); margin-bottom: 6px; }
.host-faq { max-width: none; }
.host-hero > p { opacity: .85; max-width: 60ch; }
.host-perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.host-perks li { background: rgba(255, 255, 255, .08); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.host-perks b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.host-steps h2, .host-mine__head h2 { font-size: 21px; color: var(--brand-800); }
.host-steps ol { list-style: none; counter-reset: s; margin: 12px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.host-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 56px; position: relative; font-size: 14px; color: var(--muted); }
.host-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: 700; display: grid; place-items: center; }
.host-steps li b { display: block; color: var(--ink); }
.host-mine__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.host-list { display: grid; gap: 14px; }
.host-card { display: grid; grid-template-columns: 220px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.host-card > img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; background: var(--brand-100); }
.host-card__body { padding: 14px 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.host-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.host-card__top h3 { font-size: 18px; }
.host-card .muted { font-size: 13.5px; }
.host-bookings { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; }
.host-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .host-card { grid-template-columns: 1fr; } .host-card > img { height: 180px; } }

/* Zone page FAQ (rendered by server/seo.js) */
.zone-faq { max-width: 860px; display: grid; gap: 10px; }
.zone-faq h2 { font-size: 21px; color: var(--brand-800); margin-bottom: 4px; }
.zone-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.zone-faq summary { cursor: pointer; font-weight: 600; }
.zone-faq details p { margin-top: 8px; color: var(--muted); }

/* small phones (360px): header and account menu must fit without sideways scrolling */
.dash > * { min-width: 0; }
@media (max-width: 400px) {
  .header-tools a.icon-btn[href="/search.html"] { display: none; }
  .site-header .logo small { display: none; }
  .header-row { gap: 8px; }
}
