:root {
  --navy: #0e1b3d;
  --navy-light: #16265c;
  --lilac: #9c86d8;
  --lilac-light: #ece7fa;
  --black: #14141a;
  --white: #ffffff;
  --gray-bg: #f6f5fa;
  --gray-border: #e3e1ea;
  --text: #1c1c24;
  --text-muted: #5b5b66;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(14, 27, 61, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 27, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lilac);
  color: var(--navy);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

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

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--gray-border);
    display: none;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #241b4d 100%);
  color: var(--white);
  padding: 90px 0 100px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  background: rgba(156, 134, 216, 0.18);
  border: 1px solid rgba(156, 134, 216, 0.5);
  color: var(--lilac-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-alt {
  background: var(--gray-bg);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lilac-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Coverage pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Property cards */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.property-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><rect width='24' height='24' fill='%23e3e1ea'/></svg>") center/cover;
}

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

.property-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.property-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.property-card .title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.property-card .location {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.property-card .specs {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 4px 0 6px;
}

.property-card .actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.property-card .actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* Contact / footer */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.contact-grid .item {
  padding: 20px;
}

.contact-grid .item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 24px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer .logo {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.social-links a:hover {
  background: var(--lilac);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 26px;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.wa-float:hover {
  background: var(--whatsapp-dark);
}

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

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

.filters-panel {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .filters-panel {
    position: static;
  }
}

.filters-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.filter-group {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 18px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group label.group-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-group select,
.filter-group input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
}

.range-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
}

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

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

.sort-select select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  font-family: inherit;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
}

.pagination button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 61, 0.65);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 60;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.modal-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-bg);
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 26px 28px 30px;
}

.modal-body .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.modal-tags span {
  background: var(--lilac-light);
  color: var(--navy);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-bg) 25%, #eceaf3 37%, var(--gray-bg) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
