:root {
  --ink: #173033;
  --muted: #647274;
  --deep: #113c43;
  --teal: #087c74;
  --mint: #d9f2eb;
  --gold: #c79a3d;
  --coral: #d9694f;
  --paper: #f8f7f1;
  --surface: #ffffff;
  --line: #dde5e1;
  --shadow: 0 18px 50px rgba(23, 48, 51, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 241, 0.93);
  border-bottom: 1px solid rgba(221, 229, 225, 0.72);
  backdrop-filter: blur(18px);
}

.contact-strip {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 22px;
  color: #fff;
  background: var(--deep);
  font-size: 0.84rem;
}

.contact-strip a {
  transition: color 0.2s ease;
}

.contact-strip a:hover {
  color: var(--mint);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 13px 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--deep));
  border: 2px solid rgba(199, 154, 61, 0.45);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 999px;
  color: #2b4447;
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep);
  background: var(--mint);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--coral);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: #fff;
  background: #bd543c;
}

.menu-toggle {
  display: none;
  width: 42px;
  flex: 0 0 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 99px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 45, 49, 0.86), rgba(13, 45, 49, 0.2) 58%, rgba(13, 45, 49, 0.36)),
    var(--hero-image) center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, var(--paper), rgba(248, 247, 241, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.hero-copy {
  width: min(690px, 100%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.89);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--coral);
}

.btn-primary:hover {
  background: #bd543c;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--deep);
  background: #fff;
}

.btn-outline {
  color: var(--deep);
  border-color: var(--line);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--teal);
  background: var(--mint);
}

.search-dock {
  width: min(1220px, calc(100% - 44px));
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(221, 229, 225, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

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

.field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 124, 116, 0.12);
}

.search-form button {
  align-self: end;
  min-width: 120px;
  border: 0;
}

.section,
.page {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0;
}

.page {
  min-height: 64vh;
}

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

.section-kicker {
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.page h1,
.page h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p,
.page-lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.04rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 24px;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
}

.stat:nth-child(2) {
  background: var(--teal);
}

.stat:nth-child(3) {
  background: #7f6230;
}

.stat:nth-child(4) {
  background: #8a4b3d;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

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

.category-link {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 60, 67, 0.16), rgba(17, 60, 67, 0.86)),
    var(--bg) center/cover no-repeat;
}

.category-link strong {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
}

.category-link span {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.segmented button {
  min-height: 37px;
  padding: 8px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
}

.segmented button.active {
  color: #fff;
  background: var(--deep);
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 48, 51, 0.08);
}

.property-media {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #dbe7e3;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.badge-row {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 12px;
  left: 12px;
}

.badge {
  padding: 6px 9px;
  color: #fff;
  border-radius: 999px;
  background: rgba(17, 60, 67, 0.9);
  font-size: 0.73rem;
  font-weight: 850;
}

.badge.gold {
  background: rgba(199, 154, 61, 0.95);
}

.favorite-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 60, 67, 0.74);
}

.favorite-btn.active {
  background: var(--coral);
}

.property-body {
  padding: 18px;
}

.property-body h3 {
  min-height: 56px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.16;
}

.location {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin-bottom: 14px;
  color: var(--deep);
  font-size: 1.38rem;
  font-weight: 900;
}

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

.features li {
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

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

.card-actions .btn {
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.split-band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.split {
  width: min(1220px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  padding: 84px 0;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-item {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.cta-band {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 60, 67, 0.94), rgba(8, 124, 116, 0.8)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=82") center/cover no-repeat;
}

.cta-inner {
  width: min(1220px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  padding: 76px 0;
}

.cta-inner h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
}

.cta-inner p {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  padding: 62px 0 0;
  background:
    linear-gradient(90deg, rgba(17, 60, 67, 0.9), rgba(17, 60, 67, 0.42)),
    var(--hero-image) center/cover no-repeat;
}

.page-hero-inner {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0;
  color: #fff;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filter-panel,
.form-panel,
.info-panel,
.news-card,
.indicator-card,
.map-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.filter-panel,
.form-panel,
.info-panel {
  padding: 20px;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: 116px;
}

.filter-panel h2,
.form-panel h2,
.info-panel h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.filter-panel form,
.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--deep);
  border-radius: var(--radius);
  background: var(--mint);
  font-weight: 750;
}

.form-message.visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery img:first-child {
  grid-column: 1 / -1;
  height: 430px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fact strong {
  display: block;
  color: var(--deep);
  font-size: 1.25rem;
}

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

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

.chips li {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--deep);
  font-weight: 750;
  font-size: 0.86rem;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.contact-item {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.contact-item h3 {
  margin-bottom: 8px;
}

.news-grid,
.indicator-grid,
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  overflow: hidden;
}

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

.news-card div,
.indicator-card,
.map-group {
  padding: 18px;
}

.news-card time,
.ref {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.indicator-card strong {
  display: block;
  margin: 8px 0;
  color: var(--deep);
  font-size: 2rem;
}

.map-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}

.empty-state {
  padding: 42px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.site-footer {
  color: #d8e6e4;
  background: #102f34;
}

.footer-grid {
  width: min(1220px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.7fr;
  gap: 34px;
  margin: 0 auto;
  padding: 54px 0;
}

.footer-brand .brand-mark {
  background: var(--coral);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #d8e6e4;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creci {
  color: #fff;
  font-weight: 850;
}

.social-row {
  display: flex;
  gap: 9px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: 850;
}

.footer-bottom {
  width: min(1220px, calc(100% - 44px));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b6cac8;
  font-size: 0.88rem;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  border-radius: 999px;
  background: #1fa463;
  box-shadow: 0 16px 36px rgba(31, 164, 99, 0.28);
  font-weight: 850;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
    position: relative;
  }

  .nav-links {
    position: fixed;
    inset: 99px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 22px 30px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    border-radius: var(--radius);
  }

  .menu-toggle {
    display: grid;
    place-content: center;
    margin-left: auto;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-form .field:first-child {
    grid-column: 1 / -1;
  }

  .property-grid,
  .news-grid,
  .indicator-grid,
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-grid,
  .detail-layout,
  .split,
  .cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .contact-strip {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .contact-strip::-webkit-scrollbar {
    display: none;
  }

  .contact-strip a:nth-child(n + 3) {
    display: none;
  }

  .main-nav {
    padding-inline: 16px;
  }

  .brand {
    padding-right: 58px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner,
  .search-dock,
  .section,
  .page,
  .split,
  .cta-inner,
  .page-hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 32px, 1220px);
  }

  .hero-inner {
    padding-top: 54px;
    padding-bottom: 96px;
  }

  .eyebrow {
    display: block;
    max-width: 100%;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .eyebrow::before {
    display: inline-block;
    margin-right: 9px;
    vertical-align: middle;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-actions,
  .section-actions,
  .form-actions,
  .toolbar,
  .section-header,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form,
  .form-grid.two,
  .property-grid,
  .news-grid,
  .indicator-grid,
  .map-grid,
  .category-grid,
  .stats-grid,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .property-media {
    height: 220px;
  }

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

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

  .gallery img,
  .gallery img:first-child {
    grid-column: auto;
    height: 245px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  .floating-whatsapp span {
    font-size: 0;
  }

  .floating-whatsapp span::before {
    content: "WA";
    font-size: 0.9rem;
  }
}
