
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #070f52;
  --muted: #667085;
  --line: #e6dfcf;
  --accent: #070f52;
  --accent-dark: #03072a;
  --gold: #b59a63;
  --gold-light: #efe6d0;
  --shadow: 0 18px 45px rgba(7,15,82,.10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(18px, 4vw, 56px); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.025em; color: var(--accent); }
.brand img { width: 58px; height: 42px; object-fit: contain; display: block; }
.brand span { white-space: nowrap; }
nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
nav a { padding: 9px 12px; border-radius: 999px; color: var(--muted); }
nav a.active, nav a:hover { background: var(--gold-light); color: var(--accent-dark); }
main { max-width: 1180px; margin: 0 auto; padding: 34px clamp(18px, 4vw, 32px) 80px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: clamp(28px, 6vw, 58px); border-radius: 34px; background: radial-gradient(circle at top right, #f5ead1, #fff 46%, #f7f5ef); box-shadow: var(--shadow); margin-bottom: 28px; border: 1px solid rgba(181,154,99,.28); }
.hero.slim { display: block; }
.hero h1, .detail-hero h1 { margin: 6px 0 10px; font-size: clamp(34px, 6vw, 64px); line-height: .95; letter-spacing: -.055em; color: var(--accent); }
.hero p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero-stats { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px 28px; }
.hero-stats strong { display: block; font-size: 46px; color: var(--accent); }
.hero-stats span { color: var(--muted); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; margin: 0; }
.filters { display: flex; gap: 12px; margin: 24px 0; }
.filters input, .filters select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-size: 15px; }
.filters input:focus, .filters select:focus, .inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 3px solid rgba(181,154,99,.25); border-color: var(--gold); }
.filters select { max-width: 240px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(7,15,82,.07); transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { display: block; position: relative; aspect-ratio: 4/3; background: #edf0f6; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--accent); padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; border: 1px solid rgba(181,154,99,.28); }
.card-body { padding: 18px; }
.card h2 { font-size: 20px; line-height: 1.15; margin: 8px 0; letter-spacing: -.02em; }
.meta { min-height: 44px; color: var(--muted); line-height: 1.45; }
.price, .detail-price { font-weight: 900; font-size: 22px; color: var(--accent-dark); }
.empty { padding: 30px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.back { display: inline-block; margin-bottom: 18px; color: var(--accent-dark); font-weight: 800; }
.detail-hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 30px 0; }
.detail-location { color: var(--muted); font-size: 18px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 22px; background: #edf0f6; }
.gallery img:first-child { grid-row: span 2; height: 492px; }
.detail-layout { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.facts { position: sticky; top: 92px; display: grid; gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.fact span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.fact strong { font-size: 16px; }
.content { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 42px); line-height: 1.65; }
.content h2 { margin-top: 30px; letter-spacing: -.025em; color: var(--accent); }
.content h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.contact-box { margin-top: 28px; background: linear-gradient(135deg, #f6edda, #ffffff); border: 1px solid #e8d8ad; border-radius: 24px; padding: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 12px 16px; background: var(--accent); color: #fff; border-radius: 14px; font-weight: 900; border: 1px solid var(--accent); cursor: pointer; font-size: 15px; }
.button:hover { background: var(--gold); border-color: var(--gold); color: var(--accent-dark); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,7,42,.62); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(720px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 32px 80px rgba(0,0,0,.25); }
.modal h2 { margin-top: 4px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--accent); font-size: 26px; line-height: 1; cursor: pointer; }
.inquiry-form { display: grid; gap: 14px; margin-top: 18px; }
.inquiry-form label { display: grid; gap: 7px; font-weight: 800; color: var(--accent); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); font: inherit; }
.inquiry-form textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f1eadb; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
footer { max-width: 1180px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 32px) 48px; color: var(--muted); font-size: 13px; }
code { background: rgba(7,15,82,.08); padding: 2px 5px; border-radius: 6px; }
@media (max-width: 900px) {
  .hero, .detail-layout, .detail-hero { grid-template-columns: 1fr; display: grid; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; height: 320px; }
}
@media (max-width: 640px) {
  .topbar { align-items: flex-start; gap: 12px; flex-direction: column; }
  .brand img { width: 52px; height: 38px; }
  .filters, .form-grid { flex-direction: column; grid-template-columns: 1fr; }
  .filters select { max-width: none; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:first-child { height: 260px; }
  .modal { max-height: 92vh; border-radius: 22px; }
}
.notice { margin: 16px 0 22px; padding: 14px 16px; border-radius: 16px; border: 1px solid #e8d8ad; background: #fff8eb; color: #172033; line-height: 1.5; }
.notice.error { border-color: #ffd6d6; background: #fff1f1; }
.skeleton { background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7); background-size: 240% 100%; animation: shimmer 1.3s infinite linear; border-radius: 20px; min-height: 220px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
