:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-strong: #eef4fb;
  --text: #101828;
  --muted: #64748b;
  --line: #dfe7f1;
  --primary: #2463eb;
  --primary-dark: #174ac4;
  --secondary: #d98524;
  --secondary-dark: #b86b12;
  --success: #128c4a;
  --success-dark: #0c743b;
  --charcoal: #263238;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 241, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(36, 99, 235, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #475569;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #edf3ff;
  color: var(--primary);
}

.main-nav a.nav-cta {
  color: #fff;
  background: var(--primary);
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  min-height: calc(86svh - var(--header-height));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17, 24, 39, 0.62);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  text-align: center;
  padding: 48px 0 56px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 800;
}

.hero p,
.page-hero p {
  margin: 24px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 24px);
}

.hero-actions,
.contact-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  justify-content: center;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(36, 99, 235, 0.24);
}

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

.button.secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(217, 133, 36, 0.24);
}

.button.secondary:hover {
  background: var(--secondary-dark);
}

.button.whatsapp {
  background: var(--success);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 140, 74, 0.18);
}

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

.button.outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2.3a9.4 9.4 0 0 0-8 14.3L3 21.7l5.2-1.3A9.4 9.4 0 1 0 12 2.3zm0 1.8a7.6 7.6 0 1 1 0 15.2c-1.3 0-2.5-.3-3.6-.9l-.4-.2-2.6.7.7-2.5-.2-.4a7.6 7.6 0 0 1 6.1-11.9zm-3.2 3.7c-.2 0-.5.1-.7.3-.3.3-1 1-1 2.4 0 1.4 1 2.8 1.2 3 .2.2 2 3.2 5 4.3 2.5.9 3 .7 3.6.6.6-.1 1.8-.8 2.1-1.5.3-.8.3-1.4.2-1.5-.1-.2-.3-.2-.7-.4l-2.1-1c-.3-.1-.6-.2-.8.2-.2.3-.8 1-1 1.2-.2.2-.4.2-.7.1-.4-.2-1.4-.5-2.6-1.6-1-.8-1.6-1.9-1.8-2.2-.2-.4 0-.5.1-.7l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6l-.9-2.2c-.3-.6-.5-.6-.7-.6z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.section-heading h2,
.contact-info h2,
.submit-copy h2,
.two-column h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading p,
.feature-card p,
.service-card p,
.location-grid p,
.contact-info p,
.submit-copy p,
.two-column p,
.property-detail-copy p {
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid,
.service-grid,
.property-grid,
.location-grid {
  display: grid;
  gap: 24px;
}

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

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

.property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

.feature-card,
.service-card,
.location-grid article,
.property-card,
.form-card,
.address-panel,
.info-list div,
.detail-fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card,
.service-card,
.location-grid article {
  padding: 28px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--primary);
  background: #edf3ff;
  font-weight: 800;
  margin-bottom: 22px;
}

.feature-card h3,
.service-card h3,
.location-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-card p,
.service-card p,
.location-grid p {
  margin: 0;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  background: var(--surface);
  padding: 24px;
}

.metric strong {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  color: var(--primary);
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
}

.property-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-strong);
  overflow: hidden;
}

.property-media img {
  height: 100%;
  object-fit: cover;
}

.badges {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.badge.available {
  background: rgba(18, 140, 74, 0.9);
}

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

.property-price {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.property-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.property-location {
  margin: 0;
  color: var(--muted);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.property-meta span {
  border-radius: 999px;
  background: var(--surface);
  color: #475569;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.card-actions .button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.locations {
  padding: 88px max(18px, calc((100% - 1180px) / 2));
  background: var(--surface);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 76px max(18px, calc((100% - 1180px) / 2));
  background: var(--primary);
  color: #fff;
}

.cta-band h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

.cta-band p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 86px max(18px, calc((100% - 1180px) / 2)) 70px;
  color: #fff;
  background:
    linear-gradient(rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.7)),
    url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.page-hero.compact {
  min-height: 310px;
  background:
    linear-gradient(rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.72)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.services-hero {
  background:
    linear-gradient(rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.72)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.about-hero {
  background:
    linear-gradient(rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.72)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.page-hero > div {
  max-width: 780px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: 0;
  transition: border 180ms ease, box-shadow 180ms ease;
}

input,
select {
  min-height: 46px;
}

textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.12);
}

.results-line {
  min-height: 28px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.contact-layout,
.property-submit-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.contact-info,
.submit-copy {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.contact-actions {
  margin: 28px 0;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.info-list div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.info-list strong {
  color: #111827;
}

.info-list span,
.info-list a {
  color: var(--muted);
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions.full-span {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.submit-copy .button {
  margin-top: 26px;
}

.address-panel {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
}

.address-panel span {
  color: var(--muted);
}

.two-column img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.testimonial-band {
  padding: 74px max(18px, calc((100% - 920px) / 2));
  text-align: center;
  background: var(--surface);
}

.testimonial-band p {
  margin: 0 auto 22px;
  max-width: 880px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 700;
}

.testimonial-band strong {
  color: var(--primary);
}

.property-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: start;
}

.detail-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.property-detail-copy {
  display: grid;
  gap: 18px;
}

.detail-back {
  width: fit-content;
  color: var(--primary);
  font-weight: 800;
}

.property-detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-fact {
  padding: 16px;
}

.detail-fact strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.detail-fact span {
  color: var(--text);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(18, 140, 74, 0.32);
}

.floating-whatsapp .whatsapp-icon {
  width: 34px;
  height: 34px;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2.3a9.4 9.4 0 0 0-8 14.3L3 21.7l5.2-1.3A9.4 9.4 0 1 0 12 2.3zm0 1.8a7.6 7.6 0 1 1 0 15.2c-1.3 0-2.5-.3-3.6-.9l-.4-.2-2.6.7.7-2.5-.2-.4a7.6 7.6 0 0 1 6.1-11.9zm-3.2 3.7c-.2 0-.5.1-.7.3-.3.3-1 1-1 2.4 0 1.4 1 2.8 1.2 3 .2.2 2 3.2 5 4.3 2.5.9 3 .7 3.6.6.6-.1 1.8-.8 2.1-1.5.3-.8.3-1.4.2-1.5-.1-.2-.3-.2-.7-.4l-2.1-1c-.3-.1-.6-.2-.8.2-.2.3-.8 1-1 1.2-.2.2-.4.2-.7.1-.4-.2-1.4-.5-2.6-1.6-1-.8-1.6-1.9-1.8-2.2-.2-.4 0-.5.1-.7l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.6l-.9-2.2c-.3-.6-.5-.6-.7-.6z'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

body[data-route="contact"] .floating-whatsapp,
body[data-route="new-property"] .floating-whatsapp {
  display: none;
}

.ai-agent {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 65;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.ai-launcher {
  min-width: 76px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.28);
  font-weight: 900;
  pointer-events: auto;
}

.ai-spark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 3px),
    conic-gradient(from 45deg, #6ee7b7, #60a5fa, #f59e0b, #6ee7b7);
}

.ai-panel {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ai-agent.open .ai-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: #fff;
  background: #111827;
}

.ai-header div {
  display: grid;
  gap: 2px;
}

.ai-header strong {
  font-size: 16px;
}

.ai-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.ai-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.ai-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
}

.ai-message {
  width: fit-content;
  max-width: 92%;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
}

.ai-message.user {
  justify-self: end;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.ai-message a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 800;
}

.ai-message.user a {
  color: #fff;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.ai-quick-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px 16px;
}

.ai-form input {
  min-height: 42px;
}

.ai-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  padding: 0 14px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 54px max(18px, calc((100% - 1180px) / 2));
  background: var(--charcoal);
  color: #fff;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 14px 18px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .feature-grid,
  .service-grid,
  .property-grid,
  .location-grid,
  .filter-bar,
  .metrics-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout,
  .property-submit-layout,
  .two-column,
  .property-detail {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .submit-copy {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: calc(82svh - var(--header-height));
    place-items: end center;
  }

  .hero-content {
    padding: 44px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions,
  .form-actions {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .section-heading.split,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .service-grid,
  .property-grid,
  .location-grid,
  .filter-bar,
  .metrics-band,
  .form-card,
  .detail-facts,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .locations,
  .cta-band,
  .page-hero,
  .page-hero.compact,
  .testimonial-band,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .ai-agent {
    right: 14px;
    bottom: 82px;
  }

  body[data-route="contact"] .ai-agent,
  body[data-route="new-property"] .ai-agent {
    bottom: 16px;
  }

  .ai-panel {
    width: calc(100vw - 28px);
  }

  .ai-messages {
    max-height: 260px;
  }
}
