/* Home-booking customer site. Ink green, ivory and brass; serif display type. */
:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --wash: #efeae0;
  --ink: #14201b;
  --muted: #5f6861;
  --line: #e3ddd0;
  --field-line: #cfc8b8;
  --accent: #173328;
  --accent-hover: #0f2219;
  --on-accent: #fbf8f1;
  --gold: #b08d57;
  --gold-soft: #d9c49c;
  --gold-wash: #f3ead8;
  --hero: #0f1c17;
  --hero-copy: #e6e3d9;
  --hero-muted: #b9beb4;
  --focus: #b08d57;
  --success-surface: #e8efe6;
  --notice-surface: #f6eedc;
  --notice-ink: #6b5024;
  --error-surface: #f7e7e2;
  --error: #8a3a29;
  --scrim: rgb(10 18 14 / 58%);
  --shadow-sm: 0 1px 2px rgb(20 32 27 / 5%), 0 6px 18px rgb(20 32 27 / 6%);
  --shadow-md: 0 2px 6px rgb(20 32 27 / 6%), 0 18px 44px rgb(20 32 27 / 12%);
  --shadow-lg: 0 30px 80px rgb(10 18 14 / 30%);
  --radius: 14px;
  --radius-sm: 9px;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 70px);
  --page: 1280px;
}

:root:lang(zh-CN) { --display: "Iowan Old Style", Palatino, "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif; }
:root:lang(zh-TW) { --display: "Iowan Old Style", Palatino, "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", serif; }
:root:lang(ja) { --display: "Iowan Old Style", Palatino, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:root:lang(ko) { --display: "Iowan Old Style", Palatino, "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 0.24em; text-decoration-color: var(--gold-soft); }
a:hover { color: var(--accent-hover); text-decoration-color: var(--gold); }

button, .hero-action {
  min-height: 44px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 9px 20px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}

button:not(:disabled):hover { background: var(--wash); border-color: var(--gold-soft); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.primary, .primary:visited {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px rgb(23 51 40 / 18%);
}

.primary:hover, button.primary:not(:disabled):hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 10px 24px rgb(23 51 40 / 26%);
  transform: translateY(-1px);
}

.page-width { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 20;
  inset: 10px auto auto var(--gutter);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.test-banner { padding: 9px var(--gutter); text-align: center; background: var(--notice-surface); color: var(--notice-ink); font-size: .85rem; }

.logo-mark { flex: 0 0 auto; width: 38px; height: 38px; color: var(--ink); }
.logo-gold { stroke: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 244 238 / 86%);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand-text > span { display: block; font: 600 clamp(1.2rem, 2.2vw, 1.45rem)/1 var(--display); letter-spacing: .005em; }
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font: 600 .62rem/1 var(--body);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.masthead nav { display: flex; align-items: center; gap: clamp(2px, 1vw, 10px); margin-inline-start: auto; }
.masthead nav button { position: relative; padding: 8px 14px; border-color: transparent; background: transparent; font-size: .9rem; font-weight: 500; white-space: nowrap; box-shadow: none; }
.masthead nav button:not(:disabled):hover { background: transparent; border-color: transparent; color: var(--gold); }
.masthead nav button[aria-current="page"]::after { content: ""; position: absolute; inset: auto 14px 4px; height: 2px; border-radius: 2px; background: var(--gold); }
.masthead nav .account-button { border-color: var(--ink); padding-inline: 18px; margin-inline-start: 6px; }
.masthead nav .account-button:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
#locale {
  min-height: 40px;
  max-width: 8rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .85rem;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
h1, h2 { font-family: var(--display); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: .005em; }
p, figure { margin: 0; }

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 46vw, 640px);
  margin-block: 26px 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--hero);
  color: var(--on-accent);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(10 18 14 / 88%) 0%, rgb(10 18 14 / 62%) 36%, rgb(10 18 14 / 10%) 68%, transparent 100%),
    linear-gradient(0deg, rgb(10 18 14 / 55%) 0%, transparent 42%);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: start; min-width: 0; max-width: 640px; padding: clamp(28px, 5vw, 72px); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold-soft); font-size: .72rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero-intro { max-width: 36ch; color: var(--hero-copy); margin-block: 18px 30px; font-size: 1.05rem; line-height: 1.75; }
.hero-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 52px; padding-inline: 26px; text-decoration: none; border-color: var(--gold);
  background: var(--gold); color: #17140c; font-size: .95rem;
}
.hero-action:hover { background: var(--gold-soft); color: #17140c; border-color: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 12px 30px rgb(0 0 0 / 30%); }
.hero-action:focus-visible { outline-color: var(--on-accent); }
.hero-action svg { flex: 0 0 20px; }
.service-note { color: var(--hero-muted); max-width: 44ch; margin-top: 16px; font-size: .84rem; line-height: 1.65; }
.hero-media { position: absolute; inset: 0; z-index: 0; min-width: 0; background: var(--hero); }
.hero-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 54%; }
.hero-media figcaption { position: absolute; z-index: 3; inset: 18px 20px auto auto; padding: 5px 14px; border-radius: 999px; color: var(--hero-copy); background: rgb(10 18 14 / 55%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .74rem; letter-spacing: .04em; }

/* Status lines sit above the hero so the search card can overlap the hero's lower edge. */
main { display: flex; flex-direction: column; }
main > #message, main > #mail-unavailable, main > #account { order: -1; margin-block: 16px 0; }
main > #account { max-width: none; margin-inline: 0; text-align: end; }
#catalog, #search { scroll-margin-top: 96px; }
#room-results { padding-top: 44px; scroll-margin-top: 90px; }
#room-results .section-heading { margin-top: 0; }
#search {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, .23fr) auto;
  align-items: end;
  gap: 16px;
  width: min(100% - 2 * clamp(12px, 4vw, 56px), 980px);
  margin: -44px auto 0;
  padding: 22px clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
input:not([type=checkbox]) {
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: border-color .2s, box-shadow .2s;
}
input:not([type=checkbox]):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(176 141 87 / 22%); }
input::placeholder { color: #9aa097; opacity: 1; }
#search button { min-height: 46px; padding-inline: clamp(20px, 3vw, 38px); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-block: 30px 10px; }
.section-heading h2::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 14px; background: var(--gold); }
.result-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.result-tools a { font-size: .875rem; }
#count, .muted, .meta { color: var(--muted); font-size: .875rem; }
.catalog-note { margin-bottom: 28px; max-width: 70ch; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.room-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash); transition: transform .6s ease; }
.card:hover img.room-photo { transform: scale(1.04); }
.photo-placeholder { display: grid; place-content: center; padding: 12px; color: var(--muted); font-size: .85rem; }
.card-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 22px; background: var(--surface); }
.property { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { font: 600 1.35rem/1.3 var(--display); }
.room-facts { display: flex; flex-wrap: wrap; gap: 3px 14px; min-height: 1.3rem; color: var(--muted); font-size: .85rem; }
.detail-link { align-self: start; min-height: 36px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: .3em; font-size: .85rem; font-weight: 500; box-shadow: none; }
button.detail-link:not(:disabled):hover { background: transparent; color: var(--gold); }
.card-bottom { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.price { display: flex; flex-direction: column; color: var(--ink); }
.price strong { font: 600 clamp(1.35rem, 2vw, 1.7rem)/1.25 var(--display); font-variant-numeric: tabular-nums; }
.price small { font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.request-action { padding-inline: 20px; font-size: .86rem; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
button.request-action:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.account-section, .account-name { max-width: 900px; margin-inline: auto; }
.account-name { margin-top: 18px; overflow-wrap: anywhere; }
.account-section { min-height: 320px; margin-block: 40px; }
.account-section .section-heading { align-items: center; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--field-line); border-radius: var(--radius); }
#message { margin-block: 18px; padding: 13px 18px; border-radius: var(--radius-sm); background: var(--success-surface); overflow-wrap: anywhere; }
#message.error, .error { background: var(--error-surface); color: var(--error); }

.order, .notice { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); padding: 24px clamp(18px, 3vw, 28px); margin-top: 18px; overflow-wrap: anywhere; }
.order-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.order h3 { font: 600 1.3rem/1.3 var(--display); }
.order-id { color: var(--muted); font-size: .72rem; letter-spacing: .04em; margin-bottom: 6px; }
.order p { margin-block: 10px; }
.pill { flex: 0 0 auto; padding: 5px 13px; border-radius: 999px; background: var(--success-surface); color: var(--accent); font-size: .78rem; font-weight: 600; }
.order.refund .pill, .note { background: var(--notice-surface); color: var(--notice-ink); }
.note { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .87rem; line-height: 1.65; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 16px; font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.amounts > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); }
.amounts strong { display: block; margin-top: 3px; color: var(--ink); font: 600 1.2rem/1.3 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.terms { white-space: pre-wrap; background: var(--paper); border-left: 2px solid var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; font-size: .88rem; max-height: 220px; overflow: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.timeline { border-left: 2px solid var(--gold-soft); margin-block: 16px; padding-inline-start: 16px; font-size: .87rem; }
.timeline summary { cursor: pointer; width: fit-content; color: var(--accent); }
.timeline time { color: var(--muted); margin-inline-end: 12px; }
.notice small { color: var(--muted); }
.notice button { margin-top: 10px; overflow-wrap: anywhere; max-width: 100%; }

dialog {
  width: min(620px, 100% - 32px);
  max-height: min(88vh, 780px);
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-top button { border-color: transparent; background: var(--paper); font-size: 1.3rem; font-weight: 400; padding: 0; width: 40px; min-height: 40px; flex: 0 0 40px; }
#auth-dialog form { display: grid; gap: 14px; margin-top: 20px; }
#auth-dialog form button { justify-self: start; }
#code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
#auth-message, #request-error { color: var(--error); font-size: .875rem; }
#auth-message:not(:empty), #request-error:not(:empty) { margin-block: 10px; }
.room-selection { color: var(--gold); font-weight: 600; font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 20px; }
#contact-email { overflow-wrap: anywhere; font-size: .9rem; margin-top: 6px; }
.check { flex-direction: row; align-items: start; gap: 10px; margin-block: 16px; cursor: pointer; font-size: .88rem; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); background: var(--wash); }
.detail-copy { white-space: pre-wrap; font-size: .92rem; margin: 5px 0 14px; overflow-wrap: anywhere; }

.support { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 72px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--gold-wash)); }
.support h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.support p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.support a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 22px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; overflow-wrap: anywhere; transition: background .2s, color .2s; }
.support a:hover { background: var(--ink); color: var(--on-accent); }
footer { margin-top: 64px; background: var(--hero); color: var(--hero-muted); font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 30px 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--hero-copy); font-family: var(--display); font-size: 1rem; }
.footer-brand .logo-mark { width: 30px; height: 30px; color: var(--on-accent); }
.footer-brand .logo-gold { stroke: var(--gold-soft); }
footer div div { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--hero-copy); text-decoration: none; }
footer a:hover { color: var(--gold-soft); }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .masthead { min-height: 0; flex-wrap: wrap; padding-block: 10px 6px; row-gap: 4px; }
  .masthead nav { order: 3; width: 100%; margin: 0; gap: 0 2px; flex-wrap: wrap; }
  .masthead nav button { padding-inline: 10px; }
  .masthead nav .account-button { padding-inline: 14px; margin-inline-start: auto; min-height: 38px; }
  #locale { margin-inline-start: auto; }
  .logo-mark { width: 32px; height: 32px; }
  .hero { min-height: 430px; margin-top: 14px; border-radius: 18px; }
  .hero::after { background: linear-gradient(0deg, rgb(10 18 14 / 92%) 0%, rgb(10 18 14 / 66%) 48%, rgb(10 18 14 / 12%) 100%); }
  .hero-copy { padding: 26px 22px 60px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); text-wrap: initial; }
  .hero-intro { margin-block: 10px 20px; font-size: 1rem; }
  .hero-action { width: min(100%, 360px); }
  .hero-media figcaption { display: none; }
  #search { gap: 12px; margin-top: -36px; padding: 16px; }
  .section-heading { margin-top: 26px; }
  .amounts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 500px) {
  :root { --gutter: 16px; }
  #search { grid-template-columns: minmax(0, 1fr) auto; }
  #search label:first-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .card-body { padding: 16px 18px 18px; }
  .request-action { flex: 1 1 auto; }
  .catalog-note { margin-bottom: 18px; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .order-top { flex-wrap: wrap; }
  .support { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- Discovery: search, filters, map, detail ------------------------------------------ */
#search { grid-template-columns: minmax(0, 1.5fr) minmax(138px, .8fr) minmax(138px, .8fr) minmax(86px, .42fr) auto; width: min(100% - 2 * clamp(12px, 3vw, 40px), 1120px); }
input[type=date] { font-variant-numeric: tabular-nums; }
select { min-height: 40px; padding: 6px 12px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
#area-chips { margin-block: 18px 14px; }
.chip { min-height: 40px; padding: 7px 16px; border-color: var(--line); background: var(--surface); font-weight: 500; font-size: .9rem; box-shadow: none; }
.chip.small { min-height: 36px; padding: 5px 14px; font-size: .84rem; }
.chip .chip-count { margin-inline-start: 8px; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.chip.active, button.chip.active:not(:disabled):hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip.active .chip-count { color: var(--gold-soft); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 18px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.filter-row .push { margin-inline-start: auto; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.view-toggle button { min-height: 34px; padding: 4px 16px; border: 0; background: transparent; font-size: .85rem; font-weight: 500; box-shadow: none; }
.view-toggle button[aria-pressed=true], .view-toggle button[aria-pressed=true]:hover { background: var(--accent); color: var(--on-accent); }
#date-note { margin-bottom: 14px; }
#clear-filters { min-height: 0; }

.card-media { position: relative; display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: var(--wash); aspect-ratio: 3 / 2; overflow: hidden; cursor: pointer; box-shadow: none; }
.card-media .room-photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.photo-count, .area-tag { position: absolute; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.photo-count { inset: auto 12px 12px auto; background: rgb(10 18 14 / 62%); color: #f3efe6; }
.area-tag { inset: 12px auto auto 12px; background: rgb(255 253 249 / 90%); color: var(--ink); }
.title-link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; color: inherit; text-align: start; box-shadow: none; }
button.title-link:not(:disabled):hover { background: transparent; color: var(--gold); }
.access { color: var(--muted); font-size: .84rem; }
.access::before { content: "◎ "; color: var(--gold); }
.per-night { font: 500 .78rem var(--body); color: var(--muted); letter-spacing: 0; }
.price .estimate { margin-top: 3px; color: var(--accent); font-weight: 600; letter-spacing: 0; font-size: .78rem; }
.more-row { display: flex; justify-content: center; margin-top: 34px; }
.more-row button { padding-inline: 30px; border-color: var(--ink); }

#map-view { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
#map { position: sticky; top: 96px; height: min(72vh, 660px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--wash); z-index: 0; }
#map-list { display: flex; flex-direction: column; gap: 14px; }
.map-hint { color: var(--muted); font-size: .88rem; font-weight: 600; }
.price-pin { width: auto !important; height: auto !important; margin: 0 !important; }
.price-pin span { display: block; transform: translate(-50%, -100%); white-space: nowrap; padding: 5px 11px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 .78rem var(--body); box-shadow: 0 4px 12px rgb(10 18 14 / 25%); cursor: pointer; }
.price-pin.active span, .price-pin span:hover { background: var(--accent); color: var(--on-accent); border-color: var(--gold); }
.leaflet-container { font-family: var(--body); }
.card.compact { flex-direction: row; }
.card.compact:hover { transform: none; }
.card.compact .card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
.card.compact .card-body { padding: 14px 16px; gap: 4px; }
.card.compact h3 { font-size: 1.08rem; }
.card.compact .photo-count, .card.compact .access { display: none; }
.card.compact .card-bottom { padding-top: 10px; }
.card.compact .price strong { font-size: 1.15rem; }
.card.compact .request-action { min-height: 38px; padding: 6px 14px; }

dialog.detail-wide { width: min(1120px, 100% - 24px); max-height: 94vh; }
.detail-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 24px; align-items: start; }
.gallery-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--hero); }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; width: 44px; min-height: 44px; padding: 0; transform: translateY(-50%); border: 0; background: rgb(255 253 249 / 88%); font-size: 1.5rem; line-height: 1; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; inset: auto 12px 12px auto; padding: 3px 11px; border-radius: 999px; background: rgb(10 18 14 / 62%); color: #f3efe6; font-size: .76rem; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: 0 0 84px; min-height: 0; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--wash); opacity: .72; box-shadow: none; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--gold); opacity: 1; }
.detail-summary { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.detail-summary .primary { width: 100%; min-height: 50px; font-size: 1rem; }
.fact-list, .amenity-list { margin: 0; padding: 0; list-style: none; }
.fact-list { display: grid; gap: 7px; font-size: .92rem; }
.fact-list li::before { content: "—"; margin-inline-end: 8px; color: var(--gold); }
.estimate-note { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.detail-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-section h3 { font: 600 1.25rem/1.3 var(--display); margin-bottom: 12px; }
.amenity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; font-size: .92rem; }
.amenity-list li::before { content: "✓"; margin-inline-end: 8px; color: var(--gold); font-weight: 700; }
.detail-copy.strong { font-weight: 600; }
.detail-map { height: 260px; margin-block: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--wash); z-index: 0; }
.map-link { font-size: .9rem; font-weight: 600; }
.other-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

@media (max-width: 960px) {
  #search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #search .f-query { grid-column: 1 / -1; }
  #map-view { grid-template-columns: minmax(0, 1fr); }
  #map { position: relative; top: 0; height: 52vh; }
  .detail-top { grid-template-columns: minmax(0, 1fr); }
  .detail-summary { position: static; }
  .filter-row .push { margin-inline-start: 0; }
}
@media (max-width: 500px) {
  #search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #search label:first-child { grid-column: 1 / -1; }
  #search button { grid-column: 1 / -1; }
  dialog.detail-wide { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; padding: 16px; }
  .thumb { flex-basis: 68px; height: 48px; }
  .card.compact .card-media { flex-basis: 34%; min-height: 128px; }
}

/* ---- Orders: progress and receipt ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0 6px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 30px; text-align: center; font-size: .76rem; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 50%; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; transform: translateX(-50%); border: 1px solid var(--field-line); border-radius: 50%; background: var(--surface); font-size: .7rem; font-weight: 600; }
.steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 1px; background: var(--field-line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.steps li.done::after, .steps li.current::after { background: var(--accent); }
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.current::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(176 141 87 / 20%); color: var(--ink); }
.receipt-link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px; border: 1px solid var(--gold); border-radius: 999px; color: var(--ink); background: var(--gold-wash); font-weight: 600; font-size: .9rem; text-decoration: none; }
.receipt-link:hover { background: var(--gold-soft); color: var(--ink); }
.receipt-link::before { content: "↓"; margin-inline-end: 8px; }

/* ---- How it works ----------------------------------------------------------------------- */
.how { margin-top: 72px; }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: 26px; padding: 0; list-style: none; counter-reset: how; }
.how-grid li { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: how; }
.how-grid li::before { content: "0" counter(how); display: block; margin-bottom: 14px; color: var(--gold); font: 500 1.9rem/1 var(--display); }
.how-grid b { display: block; margin-bottom: 6px; font: 600 1.1rem/1.4 var(--display); }
.how-grid span { color: var(--muted); font-size: .88rem; line-height: 1.7; }
@media (max-width: 960px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .steps li { font-size: .68rem; } .how { margin-top: 44px; } }

/* Detail window: the title bar with the close button stays visible while scrolling. */
dialog.detail-wide { padding: 0; }
.detail-wide .dialog-top { position: sticky; top: 0; z-index: 5; margin: 0; padding: 14px clamp(18px, 3vw, 32px); background: var(--surface); border-bottom: 1px solid var(--line); }
.detail-wide .dialog-top button { background: var(--ink); color: var(--on-accent); border-color: var(--ink); }
.detail-wide .dialog-top button:hover { background: var(--accent-hover); color: var(--on-accent); }
.detail-wide #detail-body { padding: clamp(18px, 3vw, 32px); }
@media (max-width: 500px) { .detail-wide #detail-body { padding: 16px; } dialog.detail-wide { padding: 0; } }

/* ---- Phone layout ---------------------------------------------------------------------- */
.detail-cta { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* Header: one slim row; navigation becomes a bottom tab bar. */
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .masthead { flex-wrap: nowrap; min-height: 60px; padding-block: 8px; }
  .brand-text > span { font-size: 1.15rem; }
  .masthead nav { position: fixed; inset: auto 0 0 0; z-index: 30; order: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: auto; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 253 249 / 96%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -6px 20px rgb(20 32 27 / 8%); }
  .masthead nav button, .masthead nav .account-button { min-height: 52px; margin: 0; padding: 4px 2px; border: 0; border-radius: 12px; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .masthead nav .account-button:not(:disabled):hover { background: transparent; color: var(--gold); }
  .masthead nav button[aria-current="page"] { color: var(--ink); background: var(--gold-wash); }
  .masthead nav button[aria-current="page"]::after { inset: 4px 34% auto; }
  .masthead nav .account-button { color: var(--accent); }
  /* Hero: short, so search is on the first screen. */
  .hero { min-height: 280px; margin-top: 10px; }
  .hero-copy { padding: 22px 20px 54px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .eyebrow { margin-bottom: 10px; }
  .hero-intro { margin-block: 8px 16px; font-size: .95rem; }
  .hero-action { min-height: 46px; width: auto; padding-inline: 20px; }
  .service-note { margin-top: 10px; font-size: .78rem; }
  /* Search: query; dates side by side; guests next to the button. */
  #search { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 16px); gap: 10px 12px; padding: 14px; margin-top: -40px; border-radius: 16px; }
  #search .f-query { grid-column: 1 / -1; }
  #search button { grid-column: auto; align-self: end; padding-inline: 10px; }
  input:not([type=checkbox]) { min-height: 46px; padding-inline: 12px; }
  /* Chips scroll sideways instead of stacking. */
  #area-chips, #amenity-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #area-chips::-webkit-scrollbar, #amenity-chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-block: 12px; }
  .filter-row label.inline { flex-direction: column; align-items: stretch; gap: 4px; white-space: normal; }
  .filter-row select { width: 100%; }
  .filter-row #amenity-chips { grid-column: 1 / -1; order: 3; }
  .filter-row .push { margin: 0; }
  /* List / map switch floats above the tab bar. */
  .view-toggle { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25; transform: translateX(-50%); padding: 4px; border-color: var(--ink); background: var(--ink); box-shadow: 0 10px 28px rgb(10 18 14 / 35%); }
  .view-toggle button { min-height: 38px; padding-inline: 20px; color: #d7dbd2; }
  body:not(.results-in-view) .view-toggle { opacity: 0; pointer-events: none; }
  .view-toggle { transition: opacity .2s; }
  .request-action { white-space: nowrap; }
  .card.compact .card-bottom { flex-wrap: wrap; gap: 8px; }
  .card.compact .request-action { flex: 1 1 100%; }
  .card.compact .card-media { flex-basis: 32%; }
  .view-toggle button[aria-pressed=true], .view-toggle button[aria-pressed=true]:hover { background: var(--gold); color: #17140c; }
  #room-results { padding-top: 30px; }
  .section-heading h2 { font-size: 1.6rem; }
  .card-bottom { flex-wrap: nowrap; }
  .more-row { margin-top: 24px; }
  #map { height: 46vh; min-height: 300px; }
  /* Detail: booking bar stays at the bottom of the window. */
  .detail-cta { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 22px rgb(20 32 27 / 10%); }
  .detail-cta .price strong { font-size: 1.2rem; }
  .detail-cta .primary { flex: 0 0 auto; min-height: 48px; padding-inline: 26px; }
  .detail-summary .primary { display: none; }
  .detail-summary { padding: 16px; gap: 10px; }
  .gallery-stage { margin-inline: -16px; border-radius: 0; }
  .gallery-nav { width: 38px; min-height: 38px; }
  .amenity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-rooms { grid-template-columns: minmax(0, 1fr); }
  /* Dialogs use the full width; orders and receipts breathe less. */
  dialog:not(.detail-wide) { width: calc(100% - 20px); padding: 20px 18px; border-radius: 18px; }
  .order, .notice { padding: 18px 16px; }
  .actions > * { flex: 1 1 auto; justify-content: center; text-align: center; }
  .support { padding: 22px 18px; }
  .support a { width: 100%; justify-content: center; }
  .footer-inner { padding-block: 24px; }
}
@media (max-width: 720px) {
  .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .amounts > div { padding: 9px 8px; }
  .amounts strong { font-size: .98rem; }
}
