:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --card: #ffffff;
  --card-hover: #f5f6fa;
  --border: #e8e9f0;
  --text: #2c2f36;
  --text-muted: #7d838f;
  --accent: #4f8fd1;
  --accent-soft: #4f8fd116;
  --accent-hover: #6ba3dd;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(33,38,46,0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.header-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 28px 0 40px;
  background:
    radial-gradient(ellipse at top right, #85b7eb1a 0%, transparent 55%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

.hero p.lead {
  display: none;
}

/* ===== Filter card ===== */
.filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .filter-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .filter-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.field select,
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
}

.field select:focus,
.field input:focus {
  border-color: var(--accent);
}

.range-pair {
  display: flex;
  gap: 10px;
}

.amenities-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 16px;
}

.amenities-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.amenity-chip input {
  display: none;
}

.amenity-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.amenity-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.result-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Trust strip ===== */
.trust-strip {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.trust-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-strip strong {
  color: var(--text);
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== Section ===== */
.section {
  padding: 70px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

/* ===== Cards grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.complex-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.complex-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.complex-card .thumb {
  height: 190px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}

.complex-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(33,38,46,0.1);
}

.badge.status-built { color: #1a9e56; border-color: #1a9e5633; }
.badge.status-progress { color: #d9820a; border-color: #d9820a33; }
.badge.status-soon { color: #2f6fe0; border-color: #2f6fe033; }

.complex-card .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.complex-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.complex-card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 6px;
  align-items: center;
}

.complex-card .price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
}

.complex-card .price span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.amenity-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.amenity-icons .icon {
  font-size: 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 7px;
}

/* ===== Results page layout ===== */
.results-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .results-layout { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.sidebar h4 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.sidebar .field { margin-bottom: 18px; }

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.results-count strong { color: var(--text); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .results-grid { grid-template-columns: 1fr; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 10px;
}

/* ===== Detail page ===== */
.detail-hero {
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: var(--bg-soft);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-title h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.detail-meta-row {
  display: flex;
  gap: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.detail-block {
  margin-bottom: 32px;
}

.detail-block h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amenity-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.apartments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.apartments-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.apartments-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.apartments-table tr:last-child td { border-bottom: none; }

.sticky-contact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.sticky-contact h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.sticky-contact p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
}

.sticky-contact input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.sticky-contact .btn-primary { width: 100%; }

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.breadcrumb a:hover { color: var(--accent); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .logo { margin-bottom: 10px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
