:root {
  --bg: #ffffff;
  --ink: #0E2A3D;
  --accent: #5BB8DE;
  --muted: rgba(14, 42, 61, 0.6);
  --hairline: rgba(14, 42, 61, 0.12);
  --soft: rgba(14, 42, 61, 0.04);
  --radius: 14px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 52px; }
.brand-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-nav a { opacity: 0.75; transition: opacity 0.15s; }
.site-nav a:hover { opacity: 1; }
@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }
  .brand { justify-content: center; }
  .site-nav { justify-content: center; flex-wrap: wrap; }
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px;
}
.lang-switch a,
.lang-switch button {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.15s;
}
.lang-switch a.is-active,
.lang-switch button.is-active {
  background: var(--ink);
  color: white;
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px;
  min-height: 60vh;
}

/* Hero */
.hero { margin-bottom: 40px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 18ch;
}
.hero p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 70ch;
}
.hero-cta {
  margin-top: 24px;
}

/* List bar */
.list-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.sort-group { display: flex; gap: 4px; }
.sort-group a,
.sort-group button {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.15s;
}
.sort-group a:hover,
.sort-group button:hover { color: var(--ink); }
.sort-group a.is-active,
.sort-group button.is-active {
  background: var(--soft);
  color: var(--ink);
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 42, 61, 0.08);
}
.card-image {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--soft);
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image .pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card-body { padding: 18px 20px; }
.card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-meta .sep { margin: 0 6px; opacity: 0.5; }
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.card-price { font-size: 17px; font-weight: 600; }
.card-arrow { color: var(--muted); transition: all 0.2s; }
.card:hover .card-arrow { color: var(--accent); transform: translateX(2px); }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.available { background: #e6f7ea; color: #1e7a3e; }
.pill.reserved  { background: #fff4e0; color: #a66509; }
.pill.sold      { background: #f0eeeb; color: #555; }

/* Detail */
.back {
  display: inline-block;
  color: var(--muted);
  padding: 0;
  margin-bottom: 24px;
  font-size: 14px;
}
.back:hover { color: var(--ink); }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.detail-head h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-price {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  text-align: right;
  line-height: 1;
}
.detail-ppsm {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-price, .detail-ppsm { text-align: left; }
}

.hero-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: var(--soft);
  margin-bottom: 12px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 40px;
  overflow: hidden;
}
.stat { padding: 20px; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: none; }
.stat-v { font-size: 26px; font-weight: 600; margin-bottom: 4px; line-height: 1; }
.stat-l {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-l-unit {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.block { margin-bottom: 40px; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.desc {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}
.feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.feats li { display: flex; gap: 10px; font-size: 14px; }
.feats li::before { content: "·"; color: var(--accent); flex-shrink: 0; }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } }

.tour-pano {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0E2A3D, #1f4f6e);
}
.tour-pano .pnlm-container { border-radius: var(--radius); }

.floorplan-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--soft);
}
.floorplan-frame img { display: block; width: 100%; height: auto; }
.tour-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Location map */
.map-frame {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--soft);
  margin: 12px 0 16px;
}
.map-frame iframe { border: 0; display: block; width: 100%; height: 100%; }

.addr {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.source-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-link:hover { opacity: 0.85; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 900px) { .sidebar { position: static; } }

.agent-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}
.agent-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.agent-name { font-weight: 600; font-size: 15px; }
.agent-role { font-size: 12px; color: var(--muted); }
.agent-contacts {
  border-top: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  transition: color 0.15s;
}
.ac-row:hover { color: var(--accent); }
.ac-l {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--soft); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px 12px; font-size: 14px; }

.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--soft);
  color: inherit;
  transition: background 0.15s;
}
.pdf-card:hover { background: rgba(14, 42, 61, 0.07); }
.pdf-icon {
  width: 30px;
  height: 38px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
}
.pdf-text { flex: 1; min-width: 0; }
.pdf-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.pdf-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.other-block {
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: white;
  padding: 56px 32px 24px;
  margin-top: 80px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-tagline { max-width: none; white-space: normal; }
  .footer-strip { justify-content: center; text-align: center; }
}
.footer-logo {
  height: 56px;
  margin-bottom: 12px;
}
.footer-tagline { white-space: nowrap; }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: background 0.15s, color 0.15s;
}
.footer-icon:hover { background: var(--accent); color: white; }
.footer-h {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.footer-link:hover { opacity: 1; color: var(--accent); }
.footer-text { font-size: 13px; opacity: 0.75; line-height: 1.5; }
.footer-strip {
  max-width: var(--max);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.empty {
  padding: 60px 0;
  text-align: center;
}
.empty h2 {
  font-size: 24px;
  margin: 8px 0 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 61, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(14, 42, 61, 0.3);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--soft); color: var(--ink); }
.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.visit-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 184, 222, 0.2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.form-status {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.form-status.ok { background: #e6f7ea; color: #1e7a3e; }
.form-status.err { background: #fdecec; color: #a82424; }
