*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
}

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

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

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo-main {
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
}

.logo-highlight {
  color: #2563eb;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #6b7280;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.3rem 0.4rem;
}

.nav-cta {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Hero */

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  max-width: 640px;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0.75rem 0 0.4rem;
}

.hero-highlight {
  color: #2563eb;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-small {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Buttons */

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-text {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
}

/* Filters */

.filters-section {
  padding: 0.25rem 0 0.5rem;
}

.filters-card {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
  flex: 1;
}

.filter-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.filters-card input,
.filters-card select {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  outline: none;
}

.filters-card input:focus,
.filters-card select:focus {
  border-color: #2563eb;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.filters-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.6rem;
}

/* Properties */

.properties-section {
  padding: 1.5rem 0 2.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-header p {
  margin: 0.4rem 0 1.2rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.property-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.property-image {
  position: relative;
  overflow: hidden;
  max-height: 190px;
}

.property-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.property-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill,
.badge-hot {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.badge-hot {
  background: #f97316;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill {
  background: rgba(17, 24, 39, 0.75);
  color: #f9fafb;
}

.property-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.property-title {
  font-size: 1rem;
  font-weight: 600;
}

.property-location {
  font-size: 0.85rem;
  color: #6b7280;
}

.property-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.property-price {
  font-weight: 700;
}

.property-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
}

.property-link {
  font-size: 0.85rem;
  color: #2563eb;
}

/* Post Property */

.post-section {
  padding: 2.2rem 0 2.6rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.post-inner {
  max-width: 720px;
}

.post-text h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.post-text p {
  font-size: 0.95rem;
  color: #4b5563;
}

.post-steps {
  margin: 0.9rem 0 1.2rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.post-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Footer */

.site-footer {
  padding: 1.4rem 0 1.6rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  text-align: center;
}

.footer-small {
  margin-top: 0.2rem;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .filters-card {
    border-radius: 1rem;
    align-items: stretch;
  }

  .filter-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .btn-primary,
  .btn-ghost {
    width: auto;
  }
}
