:root {
  --ink: #122238;
  --muted: #5f6d80;
  --line: #d7e0ea;
  --bg: #f3f6fa;
  --white: #ffffff;
  --brand: #163a5f;
  --brand-soft: #224f7c;
  --sale: #0f766e;
  --rent: #7c3aed;
}

* {
  box-sizing: border-box;
}

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

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

.hero {
  position: relative;
  background: url("https://images.unsplash.com/photo-1472220625704-91e1462799b2?auto=format&fit=crop&w=1800&q=80")
    center/cover;
  color: var(--white);
  padding-bottom: 4.5rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 27, 45, 0.9), rgba(22, 58, 95, 0.74));
}

.top-nav,
.hero-content {
  position: relative;
  z-index: 1;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 0;
  background: linear-gradient(110deg, rgba(15, 27, 45, 0.95), rgba(22, 58, 95, 0.85));
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero {
  padding-top: 4.5rem;
}

.brand {
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
}

.brand span {
  color: #b7d4f0;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

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

.partner-btn {
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.hero-content {
  padding-top: 2.3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
  color: #dceaff;
}

.eyebrow.dark {
  color: #355880;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
}

.lead {
  max-width: 760px;
  color: #d3dfec;
  font-size: 1.05rem;
  margin: 1rem 0 1.4rem;
}

.search-bar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 0.95rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr auto;
  gap: 0.8rem;
  padding: 0.8rem;
  max-width: 980px;
}

.search-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.75rem;
  color: #5f6c80;
  font-weight: 600;
}

.search-bar input,
.search-bar select,
.search-bar button {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.search-bar button {
  border: none;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.stats {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats article {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  min-width: 180px;
}

.stats strong {
  display: block;
  font-size: 1.15rem;
}

.stats span {
  font-size: 0.86rem;
  color: #dce8f6;
}

main {
  margin-top: -1.8rem;
  position: relative;
  z-index: 2;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(16, 35, 63, 0.08);
}

.section-head h2 {
  margin: 0;
}

.filter-controls {
  display: flex;
  gap: 0.6rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}


.listing-summary {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.listing-grid {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.property-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5edf4;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06);
  transition: transform 0.2s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(16, 35, 63, 0.12);
}

.property-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 0.95rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.badge {
  display: inline-block;
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
}

.badge.sale {
  background: var(--sale);
}

.badge.rent {
  background: var(--rent);
}

.ref {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-content h3 {
  margin: 0;
  font-size: 1.03rem;
}

.card-content p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.card-meta {
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.card-meta strong {
  font-size: 1.03rem;
}

.card-meta a {
  text-decoration: none;
  color: var(--brand-soft);
  font-weight: 600;
  white-space: nowrap;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.services article {
  background: var(--white);
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid #e5edf4;
}

.services h3 {
  margin-top: 0;
}

.services p {
  color: var(--muted);
  margin-bottom: 0;
}

.cta-panel {
  margin: 1rem 0 2.1rem;
  background: linear-gradient(110deg, #133356, #234f7d);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.cta-panel h2 {
  margin: 0;
}

.cta-panel p {
  color: #d9e5f3;
}

.cta-panel a {
  color: #133356;
  background: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

footer {
  background: #0e2238;
  color: #c8d9ec;
  text-align: center;
  padding: 1.2rem;
}

.hidden {
  display: none;
}

@media (max-width: 960px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }
}

/* Login Button */
.login-btn {
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}
