/* Compass Property — луксозна тема (Модел 1) */
:root {
  --bg: #0F0E0D;
  --surface: #1A1816;
  --ph: #24211E;
  --line: #33302B;
  --text: #F2EEE6;
  --text-2: #CFC9BE;
  --muted: #A39E94;
  --accent: #C9A45C;
  --accent-hover: #D9B872;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.lead { color: var(--text-2); font-size: 18px; }
.muted { color: var(--muted); }

/* Снимка-заместител: махнете класа .ph, когато сложите истинска снимка */
.ph {
  background: var(--ph);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 16px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Бутони */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 32px;
  background: var(--accent); color: var(--bg);
  border: 0; font: 600 16px var(--sans); letter-spacing: .05em; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--bg); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg); }
.link-line { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; font-size: 15px; }

/* Лента „тестов режим“ — махнете елемента .test-banner от страниците при пускане */
.test-banner {
  background: var(--accent); color: var(--bg);
  text-align: center; font-weight: 600; font-size: 15px; letter-spacing: .03em;
  padding: 10px 16px;
}

/* Хедър */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 28px; padding-bottom: 28px;
}
.logo { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.logo:hover { color: var(--text); } .logo { display: inline-flex; align-items: center; gap: 14px; } .logo-mark { height: 48px; width: auto; display: block; flex-shrink: 0; } @media (max-width: 640px) { .logo-mark { height: 36px; } .logo { gap: 10px; } }
.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 48px; height: 48px; cursor: pointer;
}
.header-phone { padding: 12px 22px; font-size: 15px; min-height: 0; }

/* Начало */
.hero { position: relative; color: var(--text); height: 640px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 64px; text-align: left; }
.hero .ph-label { position: absolute; top: 24px; right: 24px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; max-width: 820px; }
.hero .lead { margin: 24px 0 0; font-size: 19px; max-width: 560px; }

.search {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line);
}
.search label {
  background: var(--surface); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.search select, .search input {
  background: transparent; border: 0; color: var(--text);
  font: 17px var(--sans); padding: 4px 0; letter-spacing: 0; text-transform: none;
}
.search select option { background: var(--surface); }
.search .btn { min-height: 80px; }

.section { padding-top: 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head h2, .h2 { font-size: clamp(36px, 4.5vw, 52px); }

/* Карти с имоти */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 18px; color: var(--text); }
.card:hover { color: var(--text); }
.card:hover h3 { color: var(--accent); }
.card .ph { height: 380px; }
.card-tag { color: var(--accent); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.card h3 { font-size: 30px; line-height: 1.15; transition: color .2s; }
.card-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--text-2); font-size: 15px; }
.card-foot strong { color: var(--text); }
.empty { color: var(--muted); padding: 48px 0; }

/* За нас */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: center; }
.split .ph { height: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.stat-num { font-family: var(--serif); font-size: 44px; color: var(--accent); }
.stat-label { color: var(--muted); font-size: 14px; }

/* Призив */
.cta { border: 1px solid var(--line); padding: 72px 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-size: 46px; margin-bottom: 12px; }
.cta p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 640px; }

.hero.hero-photo { height: auto; padding: 0; display: block; background: none; } .hero-img { width: 100%; height: auto; display: block; } .hero-photo > :not(.hero-img) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* Каталог */
.page-head { padding-top: 48px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(44px, 6vw, 68px); }
.filters { margin-bottom: 48px; }
.result-count { color: var(--muted); margin: 0 0 24px; }

/* Страница на имот */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 260px 260px; gap: 8px; }
.gallery .ph:first-child { grid-row: span 2; }
.ph.has-img { padding: 0; }
.gallery-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-more .ph { height: 160px; }
.prop-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 64px; padding-top: 56px; }
.prop-title { font-size: clamp(38px, 5vw, 56px); margin-bottom: 12px; }
.prop-price { font-family: var(--serif); font-size: 40px; color: var(--accent); margin: 24px 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); margin: 32px 0; }
.specs div { background: var(--surface); padding: 20px; }
.specs dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.specs dd { margin: 4px 0 0; font-size: 18px; }
.features { columns: 2; padding-left: 20px; color: var(--text-2); }
.map { height: 320px; margin-top: 24px; }
.aside-box { background: var(--surface); padding: 32px; position: sticky; top: 24px; }
.aside-box h2 { font-size: 30px; margin-bottom: 8px; }

/* Форми */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.form input, .form textarea, .form select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 14px; font: 16px var(--sans);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form-msg { color: var(--accent); margin: 0; min-height: 1.6em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list span { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* Футър */
.site-footer .wrap {
  padding-top: 120px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  color: var(--muted); font-size: 14px;
}
.site-footer .logo { font-size: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Правни страници */
.legal { max-width: 780px; padding-bottom: 24px; }
.legal h2 { font-size: 32px; margin: 48px 0 16px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 12px; vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* Таблет и телефон */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-phone { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100px; z-index: 10;
    flex-direction: column; gap: 0; background: var(--surface); border-top: 1px solid var(--line);
  }
  .nav a { padding: 16px 32px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .site-header { position: relative; }
  .prop-layout { grid-template-columns: 1fr; }
  .aside-box { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 24px; }
  .hero { height: 520px; padding: 32px 24px; }
  .section { padding-top: 80px; }
  .card .ph { height: 260px; }
  .split .ph { height: 320px; }
  .cta { padding: 40px 24px; }
  .cta h2 { font-size: 36px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .gallery .ph:not(:first-child) { display: none; }
  .gallery .ph:first-child { grid-row: auto; }
  .features { columns: 1; }
  .stat-num { font-size: 34px; }
}
