:root {
  color-scheme: light;
  --ink: #14231e;
  --ink-soft: #22352f;
  --paper: #fbfaf7;
  --warm: #f0eadf;
  --line: #d8d0c1;
  --muted: #65726b;
  --green: #0f5f4d;
  --green-deep: #073f34;
  --gold: #c8a15b;
  --clay: #b56944;
  --white: #ffffff;
  --shadow: 0 20px 55px rgb(20 35 30 / 0.16);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 32px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

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

button {
  cursor: pointer;
}

.icon-sprite {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(18px, calc((100vw - 1160px) / 2));
  background: rgb(251 250 247 / 0.92);
  border-bottom: 1px solid rgb(216 208 193 / 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-official {
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgb(127 93 30 / 0.18));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  box-shadow: 0 8px 18px rgb(20 35 30 / 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.header-cta {
  color: var(--white);
  background: #25d366;
}

.whatsapp-icon-only {
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  padding: 0;
}

.whatsapp-icon-only svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: none;
}

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

.btn-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: rgb(255 255 255 / 0.18);
}

.btn-ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
  backdrop-filter: blur(12px);
}

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

.hero {
  position: relative;
  min-height: clamp(460px, 68svh, 680px);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 24 18 / 0.86) 0%, rgb(8 24 18 / 0.58) 38%, rgb(8 24 18 / 0.15) 78%),
    linear-gradient(0deg, rgb(20 35 30 / 0.55), transparent 42%);
}

.hero-content {
  width: var(--container);
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 44px 0 78px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  min-width: 118px;
  padding: 14px 18px;
  border-right: 1px solid rgb(255 255 255 / 0.16);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-size: 1.28rem;
  font-weight: 850;
}

.hero-stats dd {
  margin: 1px 0 0;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.82rem;
}

.search-band {
  position: relative;
  z-index: 5;
  width: var(--container);
  margin: -54px auto 0;
}

.search-shell {
  display: grid;
  grid-template-columns: auto 1.25fr 0.8fr 0.85fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 44px;
  padding: 3px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-width: 72px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 760;
}

.segment.is-active {
  color: var(--white);
  background: var(--green);
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.catalog-toolbar label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.field input,
.field select,
.field textarea,
.catalog-toolbar select {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.field input,
.field textarea {
  padding: 10px 12px;
}

.field select,
.catalog-toolbar select {
  padding: 0 36px 0 12px;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.catalog-toolbar select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(15 95 77 / 0.14);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
}

.section-head {
  max-width: 720px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section h3 {
  margin: 0;
  font-size: 1.05rem;
}

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

.section-head p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 760;
}

.catalog-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.property-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgb(20 35 30 / 0.09);
}

.property-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1.28;
  overflow: hidden;
  background: var(--warm);
}

.property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.property-card:hover img {
  transform: scale(1.035);
}

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--white);
  background: rgb(20 35 30 / 0.84);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge.gold {
  color: var(--ink);
  background: var(--gold);
  border-color: rgb(20 35 30 / 0.08);
}

.property-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.property-title {
  display: grid;
  gap: 5px;
}

.property-title h3 {
  line-height: 1.18;
}

.property-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.property-location svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--clay);
}

.property-price {
  font-size: 1.45rem;
  font-weight: 850;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-specs li {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--ink-soft);
  background: var(--warm);
  border: 1px solid rgb(216 208 193 / 0.75);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 740;
}

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

.property-actions .btn {
  min-height: 42px;
  padding: 0 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 38px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(58px, 8vw, 96px) max(18px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background:
    linear-gradient(120deg, rgb(20 35 30 / 0.96), rgb(7 63 52 / 0.94)),
    var(--green-deep);
}

.feature-copy p {
  color: rgb(255 255 255 / 0.76);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-list article {
  min-height: 210px;
  padding: 20px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
}

.feature-list svg {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--gold);
}

.feature-list p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(20 35 30 / 0.08);
}

.field-wide {
  grid-column: 1 / -1;
}

.lead-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.company-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.company-facts {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.company-facts div:last-child {
  border-bottom: 0;
}

.company-facts dt {
  color: var(--muted);
  font-weight: 760;
}

.company-facts dd {
  margin: 0;
  font-weight: 720;
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 22px max(18px, calc((100vw - 1160px) / 2));
  color: rgb(255 255 255 / 0.78);
  background: var(--ink);
}

.site-footer p,
.site-footer a {
  margin: 0;
}

.footer-company {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-dev {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  text-align: center;
}

.footer-dev strong,
.footer-dev a {
  color: var(--white);
}

.footer-dev a:hover,
.footer-dev a:focus-visible {
  color: var(--gold);
}

.floating-whatsapp {
  position: fixed;
  right: max(16px, calc((100vw - 1160px) / 2));
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--white);
  background: #25d366;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgb(20 35 30 / 0.24);
  font-weight: 850;
}

.floating-whatsapp svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

.legal-main {
  background: var(--paper);
}

.legal-hero {
  padding: clamp(54px, 8vw, 88px) max(18px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background:
    linear-gradient(115deg, rgb(20 35 30 / 0.98), rgb(7 63 52 / 0.92)),
    var(--green-deep);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 1.05rem;
}

.legal-wrap {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 72px) 0;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.legal-card {
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(20 35 30 / 0.08);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-card h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.legal-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink-soft);
  background: var(--warm);
  border: 1px solid rgb(216 208 193 / 0.75);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 740;
}

.legal-card a {
  color: var(--green);
  font-weight: 760;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: var(--clay);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 820;
}

.property-dialog {
  width: min(900px, calc(100vw - 28px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.property-dialog::backdrop {
  background: rgb(20 35 30 / 0.62);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dialog-layout img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.dialog-content {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
}

.dialog-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.dialog-content p {
  margin: 0;
  color: var(--muted);
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.dialog-meta div {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dialog-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.dialog-meta dd {
  margin: 4px 0 0;
  font-weight: 820;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
    border: 0;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--warm);
  }

  .header-cta {
    justify-self: end;
  }

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

  .segment-control,
  .search-shell .btn-dark {
    grid-column: 1 / -1;
  }

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

  .feature-band,
  .contact-section,
  .company-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 24px, 1160px);
  }

  .site-header {
    gap: 10px;
    min-height: 66px;
    padding-inline: 12px;
  }

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

  .brand-official {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand small,
  .header-cta span {
    display: none;
  }

  .header-cta,
  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .nav-links {
    inset: 66px 12px auto;
  }

  .hero {
    min-height: 500px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgb(8 24 18 / 0.88), rgb(8 24 18 / 0.44) 62%, rgb(8 24 18 / 0.72)),
      rgb(8 24 18 / 0.14);
  }

  .hero-content {
    padding: 32px 0 82px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .hero-copy {
    max-width: 95%;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 10px;
  }

  .search-band {
    margin-top: -42px;
  }

  .search-shell,
  .lead-form,
  .property-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar label {
    min-width: 0;
  }

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

  .feature-list article {
    min-height: 0;
  }

  .company-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-layout img {
    aspect-ratio: 1.25;
    min-height: 0;
  }

  .dialog-content {
    padding: 22px;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    top: 76px;
    right: 12px;
    bottom: auto;
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }

  .floating-whatsapp span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
