:root {
  --gold: #b8860b;
  --gold-2: #d4a017;
  --gold-soft: #fff6df;
  --ink: #1f1f1f;
  --muted: #666666;
  --line: #e8e2d5;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --card: #ffffff;
  --success: #1d8f5a;
  --danger: #b93838;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 20px 70px rgba(31, 31, 31, 0.10);
  --shadow-soft: 0 12px 34px rgba(31, 31, 31, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.pill.gold { background: var(--gold-soft); color: #735000; border-color: #f1d796; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 21px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; box-shadow: 0 12px 28px rgba(184, 134, 11, .25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(232, 226, 213, .8);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.brand small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: #404040; font-weight: 750; font-size: 14px; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero:before {
  content: ""; position: absolute; width: 680px; height: 680px; right: -220px; top: -220px;
  background: radial-gradient(circle, rgba(212, 160, 23, .2), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.eyebrow { margin-bottom: 18px; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -3px; margin: 0 0 24px; }
h1 span, .gold-text { color: var(--gold); }
.hero-copy { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 650px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-soft); }
.trust-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.trust-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow);
  min-height: 530px; background: #ddd;
}
.hero-image-wrap img { width: 100%; height: 530px; object-fit: cover; }
.hero-card-floating {
  position: absolute; left: -22px; bottom: 34px; width: min(320px, 80%);
  background: rgba(255,255,255,.93); backdrop-filter: blur(16px); border: 1px solid rgba(232,226,213,.9);
  border-radius: 24px; padding: 18px; box-shadow: var(--shadow);
}
.hero-card-floating strong { display: block; font-size: 18px; }
.hero-card-floating p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; font-size: 14px; }
.section { padding: 76px 0; }
.section-soft { background: linear-gradient(180deg, #fff, #faf8f2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.section-head h2, .center-head h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -2px; line-height: 1.02; margin: 0; }
.section-head p, .center-head p { color: var(--muted); line-height: 1.65; max-width: 700px; margin: 12px 0 0; }
.center-head { text-align: center; max-width: 860px; margin: 0 auto 34px; }
.quick-search { margin-top: 26px; }
.search-panel { background: var(--ink); color: #fff; border-radius: 30px; padding: 26px; box-shadow: var(--shadow); }
.search-panel h2 { margin: 0 0 18px; font-size: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-card {
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px; background: rgba(255,255,255,.05);
  cursor: pointer; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; transition: .2s ease;
}
.category-card:hover, .category-card.active { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.category-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); margin-bottom: 12px; }
.category-card strong { font-size: 15px; line-height: 1.3; }
.filter-bar {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 14px; box-shadow: var(--shadow-soft); margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; outline: 0; background: #fff;
  color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,134,11,.10); }
.textarea { min-height: 112px; resize: vertical; }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.property-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.property-media { position: relative; height: 238px; background: #eee; }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 850; }
.badge.gold { background: var(--gold); color: #fff; }
.property-body { padding: 20px; }
.property-body h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.5px; }
.property-location { color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.property-desc { color: var(--muted); line-height: 1.55; font-size: 14px; min-height: 66px; }
.property-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.property-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.property-price { font-size: 22px; font-weight: 950; color: var(--ink); margin: 12px 0 16px; }
.property-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.rounded-photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.rounded-photo img { width: 100%; height: 520px; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-soft); }
.feature-card h3 { margin: 12px 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.feature-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 900; }
.lead-section { background: var(--ink); color: #fff; border-radius: 38px; padding: 34px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; box-shadow: var(--shadow); }
.lead-section h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -1.5px; }
.lead-section p { color: rgba(255,255,255,.72); line-height: 1.65; }
.lead-form { background: #fff; color: var(--ink); border-radius: 28px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.alert { display: none; border-radius: 16px; padding: 13px 14px; margin-top: 14px; font-weight: 800; }
.alert.ok { display: block; background: #e8f7ef; color: #14623d; }
.alert.err { display: block; background: #fff0f0; color: #982b2b; }
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font-weight: 900; }
.faq p { color: var(--muted); line-height: 1.6; }
.footer { padding: 44px 0 96px; background: #111; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .7fr); gap: 28px; }
.footer p, .footer a { color: rgba(255,255,255,.68); line-height: 1.7; }
.footer strong { color: #fff; }
.footer-admin-wrap { margin-top: 28px; display: flex; justify-content: flex-end; }
.admin-login-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); font-weight: 850; transition: .2s ease; }
.admin-login-link:hover { color: #fff; background: rgba(184,134,11,.22); border-color: rgba(212,160,23,.55); transform: translateY(-1px); }
.admin-login-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(184,134,11,.28); }
.admin-login-icon svg { width: 19px; height: 19px; fill: currentColor; }

.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); gap: 8px; }
.property-detail-hero { padding: 42px 0; background: linear-gradient(180deg, #fff, #faf8f2); }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.gallery-main { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); height: 520px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; height: 94px; background: #eee; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 26px; box-shadow: var(--shadow-soft); position: sticky; top: 100px; }
.detail-panel h1 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -2px; margin-bottom: 14px; }
.detail-price { font-size: 30px; font-weight: 950; margin: 18px 0; color: var(--gold); }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.detail-list div { border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.detail-list span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-list strong { display: block; margin-top: 4px; }
.empty-state { border: 1px dashed var(--line); border-radius: 24px; padding: 30px; color: var(--muted); text-align: center; background: #fff; }
@media (max-width: 1050px) {
  .hero-grid, .split, .lead-section, .detail-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .detail-panel { position: static; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 24px, var(--container)); }
  .nav { height: 68px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 12px; right: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .header .btn-primary { display: none; }
  .hero { padding: 34px 0 18px; }
  h1 { letter-spacing: -2px; }
  .hero-copy { font-size: 16px; }
  .hero-image-wrap, .hero-image-wrap img { min-height: 360px; height: 360px; }
  .hero-card-floating { left: 14px; right: 14px; width: auto; bottom: 14px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .category-grid { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .category-card { min-width: 182px; scroll-snap-align: start; }
  .filter-bar { grid-template-columns: 1fr; border-radius: 22px; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .properties-grid, .feature-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .property-actions { grid-template-columns: 1fr; }
  .lead-section { border-radius: 28px; padding: 22px; }
  .footer { padding-bottom: 110px; }
  .mobile-cta { display: flex; }
  .mobile-cta .btn { flex: 1; padding: 12px 10px; }
  .footer-admin-wrap { justify-content: center; margin-top: 24px; }
  .admin-login-link { width: 100%; justify-content: center; }
  .gallery-main { height: 360px; }
  .detail-list { grid-template-columns: 1fr; }
  .rounded-photo img { height: 360px; }
}
