:root {
  --red: #d90d18;
  --red-dark: #ad0710;
  --ink: #17191d;
  --text: #33373d;
  --muted: #69707a;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --soft-warm: #f8f4ef;
  --green: #1f7a56;
  --shadow: 0 18px 45px rgba(23, 25, 29, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 284px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--soft);
  outline: none;
}

.main-nav .nav-whatsapp {
  color: #fff;
  background: var(--green);
}

.main-nav .nav-whatsapp:hover,
.main-nav .nav-whatsapp:focus-visible {
  background: #176143;
}

.hero {
  position: relative;
  min-height: 636px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: opacity 450ms ease;
}

.hero-media img.is-changing {
  opacity: 0;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 14, 17, 0.82), rgba(13, 14, 17, 0.48) 48%, rgba(13, 14, 17, 0.28)),
    linear-gradient(180deg, rgba(13, 14, 17, 0.14), rgba(13, 14, 17, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 42px;
  width: 100%;
  max-width: var(--max);
  min-height: 636px;
  margin: 0 auto;
  padding: 82px 22px 46px;
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

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

.hero .eyebrow {
  color: #ff5660;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 3.45rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.26;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.search-dock {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field,
.announce-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span,
.announce-form span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field select,
.announce-form input,
.announce-form select,
.announce-form textarea {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}

.announce-form textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.announce-form input:focus,
.announce-form select:focus,
.announce-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 13, 24, 0.12);
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 22px rgba(217, 13, 24, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-ghost {
  color: var(--ink);
  background: var(--soft);
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-dark[hidden] {
  display: none;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat {
  min-height: 106px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.1;
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 22px;
}

.section-light {
  max-width: none;
  margin-top: 34px;
  background: var(--soft);
}

.section-light > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.property-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 25, 29, 0.08);
}

.property-card:hover .property-card__image img,
.property-card:focus-within .property-card__image img {
  transform: scale(1.04);
}

.property-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9dde3;
}

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

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

.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: rgba(23, 25, 29, 0.86);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.property-card__body {
  padding: 18px;
}

.property-price {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 900;
}

.property-title {
  min-height: 56px;
  margin-bottom: 8px;
}

.property-title a {
  outline: none;
}

.property-title a:hover,
.property-title a:focus-visible {
  color: var(--red);
}

.property-location {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.spec-list li {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 8px;
  background: var(--soft);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.spec-list span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-link,
.whatsapp-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 900;
}

.card-link {
  color: #fff;
  background: var(--ink);
}

.whatsapp-link {
  padding: 0 12px;
  color: #fff;
  background: var(--green);
}

.load-row {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-tile {
  min-height: 136px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
}

.category-tile:hover,
.category-tile:focus-visible {
  background: var(--red);
  outline: none;
}

.category-tile strong {
  font-size: 1.35rem;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.announce-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: start;
  max-width: none;
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  background: var(--soft-warm);
}

.announce-copy {
  position: sticky;
  top: 102px;
  max-width: 480px;
}

.announce-copy p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.announce-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23, 25, 29, 0.08);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px max(22px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer img {
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 900;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ff7179;
  outline: none;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd1da;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 800;
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 22px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--red);
}

.detail-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 46px;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: center;
}

.detail-title {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.detail-meta .badge {
  background: var(--soft);
  color: var(--ink);
}

.detail-price {
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 86px;
}

.detail-main,
.contact-panel {
  min-width: 0;
}

.detail-block {
  margin-bottom: 34px;
}

.detail-block h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.detail-description {
  white-space: pre-line;
  color: var(--text);
  font-size: 1.04rem;
}

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

.gallery-grid a {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--soft);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.04);
}

.contact-panel {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(23, 25, 29, 0.08);
}

.contact-panel h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

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

.contact-actions {
  display: grid;
  gap: 10px;
}

.back-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 80px;
}

@media (max-width: 1060px) {
  .search-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 840px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
  }

  .brand img {
    width: 238px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.08;
    max-width: 100%;
  }

  h2 {
    font-size: 1.68rem;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 14px;
    margin-right: 14px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .announce-section,
  .detail-hero__grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .announce-copy,
  .contact-panel {
    position: static;
  }

  .detail-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .main-nav a {
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .search-dock,
  .announce-form {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .property-grid,
  .category-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
