:root {
  --navy: #0f1a2b;
  --charcoal: #1a2433;
  --ink: #1a2433;
  --muted: #5c6570;
  --gold: #c4a46a;
  --gold-deep: #a8884e;
  --page: #f6f5f2;
  --card: #ffffff;
  --line: #e4e0d8;
  --white: #ffffff;
  --wa: #1ebe5d;
  --shadow: 0 18px 50px rgba(15, 26, 43, 0.16);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: Arial, Helvetica, "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --wrap: 1120px;
  --header: 4.6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.012em; color: var(--navy); }
p { margin: 0 0 0.95rem; }
.wrap { width: min(var(--wrap), calc(100% - 2.4rem)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: white;
  padding: 0.5rem 0.8rem; z-index: 20;
}
.skip:focus { top: 0.6rem; }

.site-header { position: relative; z-index: 5; }
.home .site-header {
  position: absolute; inset: 0 0 auto 0; color: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header); padding: 0.75rem 0;
}
.inner .site-header {
  position: sticky; top: 0; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--navy);
}
.brand { text-decoration: none; display: grid; gap: 0.05rem; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.brand-meta { font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.85; }
.nav-toggle {
  border: 1px solid currentColor; background: transparent; padding: 0.4rem 0.75rem; cursor: pointer;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700;
}
.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); color: var(--navy); padding: 1rem 1.2rem 1.2rem;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav.is-open { display: grid; gap: 0.35rem; }
.nav a { text-decoration: none; padding: 0.45rem 0.2rem; font-weight: 600; letter-spacing: 0.04em; }
.nav a[aria-current="page"] { color: var(--gold-deep); }
.lang-switch { display: inline-flex; flex-shrink: 0; border: 1px solid currentColor; overflow: hidden; }
.lang-switch a {
  text-decoration: none; padding: 0.32rem 0.65rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; white-space: nowrap;
}
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 0.55rem; }

.hero {
  min-height: 100svh;
  background-color: var(--navy);
  background-size: cover;
  background-position: center 58%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 7.1rem 0 6.4rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 28, 0.72) 0%, rgba(10, 16, 28, 0.46) 46%, rgba(10, 16, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.28) 0%, rgba(10, 16, 28, 0.08) 42%, rgba(10, 16, 28, 0.38) 100%);
}
.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.55rem;
}
.hero-copy { max-width: 42rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.95rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(3.15rem, 5.5vw, 4.85rem);
  margin: 0 0 1.05rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.hero-lede {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
  margin-bottom: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.55rem; }

.search-card {
  background: var(--white);
  color: var(--ink);
  color-scheme: light;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.85rem;
}
.search-card .field span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.search-card input,
.search-card select {
  width: 100%;
  color: var(--navy);
  background-color: var(--white);
  border: 1px solid #d5d1c9;
  border-radius: 0;
  padding: 0.68rem 0.75rem;
  line-height: 1.3;
  min-height: 2.75rem;
}
.search-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.4 6 6.4 11 1.4' fill='none' stroke='%235c6570' stroke-width='1.4' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.72rem 0.48rem;
}
.search-card input::placeholder { color: #8a9098; opacity: 1; }
.search-card .btn { min-height: 2.75rem; padding: 0.68rem 1.15rem; align-self: end; }
.field { display: grid; gap: 0.25rem; }
.field span, .check { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 0;
  padding: 0.75rem 0.8rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.95rem 1.25rem; text-decoration: none; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; background: var(--gold); color: var(--navy);
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; border-radius: 0;
}
.btn.outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.navy { background: var(--navy); color: var(--white); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.slim { padding: 0.55rem 0.8rem; }

.section { padding: 5rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.section-head h2, .page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 0; }
.section-head a { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); text-decoration: none; }

.about-grid { display: grid; gap: 1.75rem; }
.portrait img { width: 100%; height: auto; object-fit: contain; background: #efeae4; }
.about-points { display: grid; gap: 1rem; margin: 1.4rem 0 1rem; }
.about-points div { border-top: 2px solid var(--gold); padding-top: 0.75rem; }
.about-points h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.2rem; }
.about-points p { margin: 0; color: var(--muted); }
.about-reg { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; }

.cards { display: grid; gap: 1.15rem; }
.card { background: var(--card); overflow: hidden; border: 1px solid var(--line); }
.card a { text-decoration: none; display: grid; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #ece8e1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 0.7rem; left: 0.7rem; background: var(--navy); color: var(--white);
  padding: 0.25rem 0.55rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.badge.alt { background: var(--gold); color: var(--navy); }
.kind {
  position: absolute; right: 0.7rem; bottom: 0.7rem; background: var(--white);
  padding: 0.2rem 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.card-body { padding: 1.05rem 1.1rem 1.2rem; }
.card-place { margin: 0; color: var(--gold-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.card h3 { margin: 0.25rem 0 0.35rem; font-size: 1.55rem; }
.meta { color: var(--muted); margin: 0; }
.price { font-family: var(--serif); font-size: 1.55rem; margin: 0.5rem 0 0; color: var(--navy); }
.price small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.area-grid, .split-2, .contact-grid, .calc-grid, .steps { display: grid; gap: 1rem; }
.area-panel {
  min-height: 280px; padding: 1.6rem; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none;
  background: var(--navy);
}
.area-panel.kl { background: var(--charcoal); }
.area-panel h3 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.4rem; }
.building-card, .step, .calc-card, .info-card {
  background: var(--card); padding: 1.25rem 1.3rem; border: 1px solid var(--line);
}
.building-card { text-decoration: none; display: block; }
.building-card:hover, .card:hover { border-color: var(--gold); }
.band { background: var(--navy); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .btn.ghost { color: var(--white); }

.page-hero { padding: 3rem 0 0.6rem; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.8rem; letter-spacing: 0.04em; }
.crumbs a { color: var(--navy); }
.listing-layout { display: grid; gap: 1.6rem; padding-bottom: 3rem; }
.gallery-frame { position: relative; background: #ece8e1; overflow: hidden; }
.gallery-frame img { width: 100%; max-height: 72vh; object-fit: cover; }
.gallery-nav { position: absolute; inset: auto 0.6rem 0.6rem auto; display: flex; gap: 0.4rem; }
.gallery-nav button, .thumb { border: 0; background: var(--white); padding: 0.45rem 0.7rem; cursor: pointer; }
.thumbs { display: flex; gap: 0.45rem; margin-top: 0.55rem; overflow-x: auto; padding-bottom: 0.2rem; }
.thumb { padding: 0; overflow: hidden; border: 2px solid transparent; flex: 0 0 auto; }
.photo-count { margin: 0.35rem 0 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.thumb img { width: 84px; height: 64px; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--gold); }
.photo-note { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; margin: 1rem 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 0.45rem; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; }
.prose h2 { font-size: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: 0.3rem 0.7rem; font-size: 0.92rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.share p { margin: 0 0.4rem 0 0; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.lang-inline { margin: 0.2rem 0 1rem; }
.enquiry, .filter-bar { background: var(--card); border: 1px solid var(--line); padding: 1.15rem; }
.filter-bar { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg button { border: 1px solid var(--line); background: var(--white); padding: 0.45rem 0.75rem; cursor: pointer; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card.is-hidden { display: none; }
.muted { color: var(--muted); }
.notice { background: #f3ecdf; padding: 0.7rem 0.8rem; }
details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
summary { cursor: pointer; font-weight: 700; }
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.88); padding: 2.4rem 0 6rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 0.4rem; }
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  background: var(--wa); color: white; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(15, 26, 43, 0.22);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); }
.result-total { font-family: var(--serif); font-size: 1.8rem; margin: 0.4rem 0; color: var(--navy); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.check input { width: auto; margin-top: 0.3rem; }
.cred { font-weight: 700; color: var(--navy); }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; background: none; color: inherit; box-shadow: none;
    border: 0; padding: 0; gap: 1rem; align-items: center; flex-wrap: wrap; margin-left: auto;
  }
  .nav a { padding: 0; }
  .search-card { grid-template-columns: 1.5fr 0.85fr 1fr auto; align-items: end; padding: 1.2rem 1.3rem 1.3rem; }
  .about-grid { grid-template-columns: 45% 1fr; align-items: center; gap: 3.5rem; }
  .about-points { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card-feature { grid-column: 1 / -1; }
  .cards .card-feature a { grid-template-columns: 1.15fr 0.85fr; }
  .cards .card-feature .card-media { aspect-ratio: auto; min-height: 100%; }
  .area-grid, .split-2, .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps, .calc-grid { grid-template-columns: 1fr 1fr 1fr; }
  .calc-grid.two { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .enquiry { position: sticky; top: 5.4rem; }
  .filter-bar { grid-template-columns: 1.3fr auto 0.8fr 0.9fr 0.9fr 0.8fr; align-items: end; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .building-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
}

@media (max-width: 799px) {
  .hero {
    min-height: 100svh;
    justify-content: flex-start;
    background-position: 24% 42%;
    padding: 5.35rem 0 4.6rem;
  }
  .hero-stack { gap: 1rem; }
  .hero .kicker { letter-spacing: 0.16em; font-size: 0.66rem; margin-bottom: 0.55rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.4vw, 2.85rem); margin-bottom: 0.65rem; }
  .hero-lede { font-size: 0.98rem; line-height: 1.45; }
  .hero-actions { margin-top: 0.95rem; gap: 0.5rem; }
  .hero-actions .btn { flex: 1 1 100%; padding: 0.78rem 0.7rem; }
  .search-card { padding: 0.85rem 0.9rem 0.95rem; gap: 0.55rem; }
  .search-card .btn { width: 100%; }
  .brand-meta { max-width: 11.5rem; font-size: 0.66rem; line-height: 1.3; }
  .building-grid { display: grid; gap: 0.8rem; }
  .wa-float { font-size: 0.82rem; padding: 0.65rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
