:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #182230;
  --muted: #4d5c72;
  --primary: #155eef;
  --primary-dark: #0f46bd;
  --border: #d6deea;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0.74rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-nav {
  padding: 0.58rem 0.9rem;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: #e8efff;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}

.pill {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: var(--primary);
  background: #e7efff;
  font-weight: 600;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}

h1 span {
  color: var(--primary);
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 10px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.section {
  padding: 58px 0;
}

.section-muted {
  background: #eef3fb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
}

.active-info {
  font-weight: 600;
  color: var(--primary);
}

.property-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.no-properties {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}

.property-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.property-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
}

.property-head h3 {
  margin: 0 0 5px;
}

.property-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.badge {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
}

.flat-list {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 18px 18px;
}

.property-card.open .flat-list {
  display: block;
}

.flat-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-top: 10px;
  background: #fbfdff;
}

.flat-item strong {
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.contact-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
}

.contact-wrap p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form select {
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.admin-form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-form input,
.admin-form select {
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.checkbox-wrap input {
  margin: 0;
}

.admin-message {
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 500;
}

.admin-login-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.admin-panel-hidden {
  display: none;
}

.admin-panel-visible {
  display: block;
}

.admin-list-wrap {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.admin-list-wrap h3 {
  margin: 0 0 10px;
}

.admin-properties-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #fbfdff;
}

.admin-row p {
  margin: 0;
  color: var(--muted);
}

.admin-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.admin-status.active {
  color: #027a48;
  border-color: #abefc6;
  background: #ecfdf3;
}

.admin-status.inactive {
  color: #b42318;
  border-color: #fecdca;
  background: #fef3f2;
}

.btn.btn-small {
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-wrap {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-wrap a {
  text-decoration: none;
  color: var(--primary);
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-grid,
  .contact-wrap,
  .admin-login-form,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flat-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .flat-item {
    grid-template-columns: 1fr;
  }
}
