:root {
  --gold: #d9a441;
  --gold-light: #ffd984;
  --gold-dark: #8b5d18;
  --black: #070707;
  --charcoal: #121315;
  --panel: #1b1b1d;
  --paper: #ffffff;
  --muted: #8f949c;
  --line: rgba(255, 255, 255, .12);
  --header-height: 120px;
  --body: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #232323;
  background:
    linear-gradient(rgba(247, 245, 240, .95), rgba(247, 245, 240, .96)),
    url("../assets/images/header-concrete-texture.jpg") center top / 1200px auto;
  font-family: var(--body);
  line-height: 1.5;
  padding-top: var(--header-height);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: var(--header-height);
  padding: 2px clamp(18px, 6vw, 80px);
  color: #2f2618;
  background:
    radial-gradient(ellipse at 86% 18%, rgba(217, 164, 65, .22), transparent 32%),
    linear-gradient(90deg, rgba(255, 253, 248, .94), rgba(250, 246, 237, .9) 54%, rgba(226, 205, 164, .76) 100%),
    linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .82)),
    url("../assets/images/header-concrete-texture.jpg") center top / 1200px auto;
  border-bottom: 1px solid rgba(217, 164, 65, .72);
  box-shadow: 0 8px 24px rgba(91, 69, 32, .16);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.site-header::before {
  position: absolute;
  inset: -4px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 62%, rgba(139, 93, 24, .08)),
    linear-gradient(125deg, rgba(217, 164, 65, .08), transparent 34%, rgba(217, 164, 65, .08) 100%);
  filter: blur(.15px);
  opacity: .68;
  pointer-events: none;
  transform: scale(1.02);
}

.site-header::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: rgba(217, 164, 65, .62);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 310px;
}

.brand img {
  width: auto;
  height: 136px;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  transform: translateY(1px);
  filter: saturate(1.06) contrast(1.02) drop-shadow(0 5px 12px rgba(0, 0, 0, .18));
}

.nav {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: .94rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.nav a {
  color: rgba(49, 39, 26, .92);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .55);
}

.nav a:hover {
  color: #a16a12;
}

.nav-bridge {
  padding: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  color: #b37413 !important;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .5);
  background: transparent;
}

.nav-bridge::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #b37413 18% 82%, transparent);
}

.nav-bridge:hover {
  color: #8b5d18 !important;
  background: transparent;
}

.btn-primary,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #15100a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 16px 38px rgba(217, 164, 65, .24);
  cursor: pointer;
  font-weight: 900;
}

.header-contacts {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: clamp(18px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.header-contact span {
  margin-right: 6px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-contact strong {
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.header-email {
  color: rgba(54, 45, 33, .8);
}

.header-email span,
.header-phone span {
  color: #b37413;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .4);
}

.header-phone {
  color: rgba(54, 45, 33, .8);
}

.header-phone:hover {
  color: #8b5d18;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  color: var(--paper);
  background: var(--black);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .98;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .52), rgba(7, 7, 7, .24) 48%, rgba(7, 7, 7, .06)),
    radial-gradient(circle at 82% 20%, rgba(217, 164, 65, .1), transparent 38%),
    linear-gradient(180deg, rgba(255, 217, 132, .06), transparent 48%);
}

.hero::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 74px;
  content: "";
  background: linear-gradient(180deg, rgba(24, 25, 25, .18), rgba(24, 25, 25, .08) 48%, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.7rem, 6.3vw, 5.9rem);
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.12rem;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  width: min(1040px, 100%);
  margin-top: 34px;
  padding: 10px;
  border: 1px solid rgba(217, 164, 65, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .66);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: #171717;
  background: var(--paper);
}

select,
input {
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(14, 14, 14, .94), rgba(44, 45, 45, .9)),
    url("../assets/images/header-concrete-texture.jpg") center / cover;
  border-block: 1px solid rgba(217, 164, 65, .18);
}

.stats-strip div {
  min-height: 124px;
  padding: 28px clamp(18px, 5vw, 62px);
  border-right: 1px solid rgba(217, 164, 65, .16);
}

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

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  color: var(--gold-light);
  font-size: 1.2rem;
}

.stats-strip span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .68);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(248, 246, 241, .96), rgba(248, 246, 241, .97)),
    url("../assets/images/header-concrete-texture.jpg") center top / 1300px auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.section-heading a {
  color: var(--gold-dark);
  font-weight: 900;
}

.property-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.featured-carousel {
  position: relative;
  width: min(880px, calc(100% - 160px));
  margin: 0 auto 26px;
}

.feature-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.feature-grid {
  display: flex;
  width: 100%;
  margin: 0;
  transition: transform .52s cubic-bezier(.2, .8, .2, 1);
}

.feature-grid .property-card {
  flex: 0 0 100%;
}

.featured-carousel.is-single .carousel-arrow {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 72px;
  height: 72px;
  border: 0;
  color: #ff7a2f;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .22s ease, opacity .22s ease, transform .22s ease;
}

.carousel-arrow:hover {
  color: var(--gold);
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-size: 0;
}

.carousel-arrow::before,
.carousel-arrow::after {
  position: absolute;
  left: 18px;
  width: 46px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: currentColor;
  transform-origin: left center;
}

.carousel-prev::before {
  top: 34px;
  transform: rotate(-32deg);
}

.carousel-prev::after {
  top: 34px;
  transform: rotate(32deg);
}

.carousel-next::before,
.carousel-next::after {
  left: 8px;
  transform-origin: right center;
}

.carousel-next::before {
  top: 34px;
  transform: rotate(32deg);
}

.carousel-next::after {
  top: 34px;
  transform: rotate(-32deg);
}

.carousel-prev {
  left: -108px;
}

.carousel-next {
  right: -108px;
}

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

.property-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, .94), rgba(250, 247, 240, .94)),
    url("../assets/images/gold-texture-background.jpg") center / cover;
  box-shadow: 0 22px 60px rgba(18, 19, 21, .11);
}

.property-card.featured {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  height: 390px;
  min-height: 390px;
  color: var(--paper);
  background: var(--black);
}

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

.property-card.featured img {
  height: 100%;
}

.property-body {
  padding: 18px;
}

.property-card.featured .property-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 164, 65, .24), transparent 32%),
    linear-gradient(145deg, #101010, #222);
}

.property-code,
.property-purpose {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #1f160a;
  background: var(--gold-light);
  font-size: .72rem;
  font-weight: 950;
}

.property-purpose {
  margin-left: 6px;
  background: #f1eee8;
}

.property-card.featured .property-purpose {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.property-card h3 {
  margin: 14px 0 8px;
  font-size: 1.14rem;
  line-height: 1.18;
}

.property-card.featured h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}

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

.property-card.featured .location {
  color: rgba(255, 255, 255, .66);
}

.price {
  margin: 14px 0;
  color: var(--gold-dark);
  font-size: 1.24rem;
  font-weight: 950;
}

.property-card.featured .price {
  color: var(--gold-light);
  font-size: 1.55rem;
}

.property-card p:not(.location):not(.price) {
  color: #62666d;
}

.property-card.featured p:not(.location):not(.price) {
  color: rgba(255, 255, 255, .72);
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.property-meta span {
  padding: 8px 6px;
  border-radius: 6px;
  background: #f4f1ea;
  color: #2a2a2a;
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}

.property-card.featured .property-meta span {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .86);
}

.filter-card {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(139, 93, 24, .12);
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(248, 245, 238, .92)),
    url("../assets/images/header-concrete-texture.jpg") center / 900px auto;
  box-shadow: 0 18px 48px rgba(18, 19, 21, .08);
}

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

.filter-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

#result-count {
  color: var(--gold-dark);
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.filters label span {
  color: #555b61;
}

.filters button {
  min-height: 44px;
  border: 1px solid rgba(139, 93, 24, .34);
  border-radius: 6px;
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.brokers,
.cta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(56px, 8vw, 98px) clamp(18px, 7vw, 96px);
}

.brokers {
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 20%, rgba(217, 164, 65, .2), transparent 30%),
    linear-gradient(145deg, rgba(7, 7, 7, .94), rgba(26, 27, 29, .92)),
    url("../assets/images/header-concrete-texture.jpg") center / cover;
}

.brokers p {
  max-width: 620px;
  color: rgba(255, 255, 255, .72);
}

.broker-grid {
  display: grid;
  gap: 14px;
}

.broker-grid article {
  padding: 24px;
  border: 1px solid rgba(217, 164, 65, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.broker-grid span {
  color: var(--gold-light);
  font-weight: 950;
}

.broker-grid h3 {
  margin: 8px 0 14px;
  font-size: 1.45rem;
}

.broker-grid a {
  color: var(--gold-light);
  font-weight: 950;
}

.cta {
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(110deg, rgba(10, 10, 10, .96), rgba(139, 93, 24, .64)),
    url("../assets/images/gold-texture-background.jpg") center / cover,
    #111;
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, .78);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  color: var(--paper);
  font-weight: 900;
}

.cta-actions span {
  width: 100%;
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
  text-align: right;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: #25d366;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  animation: whatsapp-float 3.8s ease-in-out infinite;
}

.floating-whatsapp svg {
  width: 37px;
  height: 37px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #ff171f;
  font-size: .8rem;
  font-weight: 950;
  opacity: 0;
  transform: scale(.35);
  animation: whatsapp-badge-in .48s cubic-bezier(.2, .9, .2, 1.3) 3s forwards, whatsapp-badge-pulse 2.8s ease-in-out 3.55s infinite;
}

@keyframes whatsapp-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes whatsapp-badge-in {
  0% {
    opacity: 0;
    transform: scale(.35);
  }
  72% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes whatsapp-badge-pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  }
  45% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28), 0 0 0 8px rgba(255, 23, 31, .18);
  }
}

.empty-state {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px dashed rgba(139, 93, 24, .32);
  border-radius: 8px;
  color: #6a5b3f;
  background: #fffaf0;
  text-align: center;
  font-weight: 900;
}

@media (max-width: 980px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    min-width: 230px;
  }

  .brand img {
    height: 124px;
  }

  .nav {
    position: static;
    left: auto;
    top: auto;
    order: 3;
    width: 100%;
    justify-content: space-between;
    transform: none;
  }

  .header-contacts {
    top: 10px;
    right: 18px;
    gap: 8px;
  }

  .header-email {
    display: none;
  }

  .header-phone span {
    display: none;
  }

  .header-phone strong {
    font-size: .76rem;
  }

  .search-panel,
  .stats-strip,
  .property-grid,
  .brokers,
  .cta {
    grid-template-columns: 1fr;
  }

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

  .property-card.featured {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .property-card.featured img {
    height: 220px;
  }

  .featured-carousel {
    width: min(720px, calc(100% - 64px));
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
  }

  .carousel-arrow::before,
  .carousel-arrow::after {
    left: 12px;
    width: 32px;
    height: 2px;
  }

  .carousel-next::before,
  .carousel-next::after {
    left: 4px;
  }

  .carousel-prev {
    left: -56px;
  }

  .carousel-next {
    right: -56px;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .cta-actions span {
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 110px;
  }

  .site-header {
    gap: 8px 14px;
  }

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

  .header-phone strong {
    font-size: .72rem;
  }

  .nav {
    gap: 10px;
    overflow-x: auto;
    font-size: .82rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .search-panel,
  .filters {
    grid-template-columns: 1fr;
  }

  .featured-carousel {
    width: calc(100% - 32px);
  }

  .carousel-arrow {
    top: auto;
    bottom: 12px;
    color: var(--gold-light);
    background: rgba(7, 7, 7, .68);
    border-radius: 50%;
    transform: none;
  }

  .carousel-arrow:hover {
    transform: scale(1.04);
  }

  .carousel-prev {
    left: 12px;
  }

  .carousel-next {
    right: 12px;
  }

  .section-heading,
  .filter-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
