:root {
  --bg: #e7f2e3;
  --text: #0f1a12;
  --muted: rgba(15, 26, 18, 0.75);
  --darkbar: #21372c;
  --underline: #2f6b3f;
  --ratingGreen: #2fa55a;
  --stroke: rgba(33, 55, 44, 0.18);
  --soft: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font-synthesis: none;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.amg-title,
.amg-h2,
.amg-finalTitle,
.amg-filterTitle,
.amg-propTitle {
  font-family: "DM Serif Display", Georgia, serif;
  font-synthesis: none;
}

.amg-kicker {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}

/* NAV */
.amg-header {
  padding: 20px 0;
}

.amg-navbar {
  min-height: 72px;
}

.amg-brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 26, 18, 0.9);
  font-size: 14px;
}

.amg-nav-links .nav-link {
  font-weight: 700;
  font-size: 13px;
  color: rgba(15, 26, 18, 0.82);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.amg-nav-links .nav-link:hover,
.amg-nav-links .nav-link.active {
  background: rgba(47, 107, 63, 0.1);
  color: rgba(15, 26, 18, 0.95);
}

.amg-top-actions {
  min-width: 290px;
  justify-content: flex-end;
}

.amg-lang-btn {
  min-width: 150px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  padding: 11px 14px;
}

.amg-lang-menu {
  border-radius: 16px;
  border: 1px solid var(--stroke);
  padding: 8px;
}

.amg-lang-menu .dropdown-item {
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
}

.amg-lang-menu .dropdown-item.active {
  background: rgba(33, 55, 44, 0.1);
  color: var(--text);
}

.amg-contact-btn,
.amg-btn {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  font-size: 13px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amg-contact-btn {
  background: var(--darkbar);
  color: #fff;
}

.amg-contact-btn:hover {
  background: #1a2d24;
  color: #fff;
}

.amg-toggler {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
}

/* HERO */
.amg-pageHero {
  padding: 30px 0 70px;
}

.amg-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
  margin: 0 0 16px;
  max-width: 13ch;
}

.amg-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 14px;
}

.amg-heroMedia {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 26, 18, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.amg-photo {
  position: relative;
}

.amg-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.amg-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(
    to bottom,
    rgba(231, 242, 227, 0) 0%,
    rgba(33, 55, 44, 0.3) 55%,
    rgba(33, 55, 44, 1) 100%
  );
  pointer-events: none;
}

.amg-bar {
  background: var(--darkbar);
  color: #fff;
  min-height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 0 18px;
  font-weight: 900;
}

.amg-score {
  color: var(--ratingGreen);
}

/* BUTTONS */
.amg-btn--primary {
  background: var(--darkbar);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.amg-btn--primary:hover {
  background: #1b2e25;
  color: #fff;
}

.amg-btn--secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid rgba(15, 26, 18, 0.12);
}

.amg-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

/* FILTER + GRID */
.amg-propertiesSection {
  padding: 20px 0 70px;
}

.amg-filterBox {
  position: sticky;
  top: 18px;
  border: 1px solid rgba(15, 26, 18, 0.1);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.amg-filterHead {
  margin-bottom: 16px;
}

.amg-filterKicker {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.amg-filterTitle {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.amg-filterGroup {
  margin-bottom: 14px;
}

.amg-filterLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 26, 18, 0.82);
}

.amg-filterInput {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(33, 55, 44, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  outline: none;
  min-height: 46px;
}

.amg-filterInput:focus {
  border-color: rgba(47, 107, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 107, 63, 0.12);
}

.amg-filterNote {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(15, 26, 18, 0.65);
}

.amg-resultsTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.amg-resultsCount {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 26, 18, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.amg-h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  margin: 0;
  max-width: 15ch;
}

.amg-propCard {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 26, 18, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.25s ease;
  height: 100%;
}

.amg-propCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.1);
}

.amg-propImg {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.amg-propImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(33, 55, 44, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.amg-badge--buy {
  background: rgba(47, 107, 63, 0.95);
}

.amg-badge--land {
  background: rgba(15, 26, 18, 0.92);
}

.amg-propBody {
  padding: 16px;
}

.amg-propTags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.amg-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(231, 242, 227, 0.72);
  border: 1px solid rgba(15, 26, 18, 0.08);
}

.amg-propTitle {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
  color: rgba(15, 26, 18, 0.92);
}

.amg-propMeta {
  font-size: 12.5px;
  color: rgba(15, 26, 18, 0.7);
  margin-bottom: 10px;
}

.amg-propText {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(15, 26, 18, 0.75);
  line-height: 1.75;
}

.amg-propRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.amg-propPrice {
  font-weight: 900;
  font-size: 14px;
  color: rgba(15, 26, 18, 0.92);
}

.amg-propBtn {
  border: 1px solid rgba(15, 26, 18, 0.12);
  background: rgba(231, 242, 227, 0.6);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 12px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.amg-propBtn:hover {
  background: rgba(231, 242, 227, 0.9);
  transform: translateY(-1px);
}

.amg-emptyState {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 26, 18, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  padding: 28px;
  text-align: center;
}

.amg-emptyState h3 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", Georgia, serif;
}

.amg-emptyState p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* FINAL CTA */
.amg-finalCta {
  padding: 10px 0 80px;
}

.amg-finalBox {
  border-radius: 28px;
  border: 1px solid rgba(15, 26, 18, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75),
    rgba(231, 242, 227, 0.65)
  );
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.amg-finalKicker {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.amg-finalTitle {
  margin: 0 0 8px;
  line-height: 1.12;
  font-size: clamp(20px, 2.2vw, 30px);
  max-width: 40ch;
}

.amg-finalText {
  margin: 0;
  color: rgba(15, 26, 18, 0.72);
  font-size: 13.5px;
}

.amg-finalBtns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* FOOTER */
.amg-footer {
  background: var(--darkbar);
  color: rgba(255, 255, 255, 0.92);
  padding: 54px 0 26px;
}

.amg-footerLogo {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 10px;
}

.amg-footerText {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 13.5px;
}

.amg-footerHead {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.amg-footerLink {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 13px;
}

.amg-footerLink:hover {
  color: #fff;
  text-decoration: underline;
}

.amg-footerMini {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.amg-footerBottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* WHATSAPP */
.wa-pulse {
  animation: waPulse 1.9s infinite;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 9999;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
}

.wa-float__icon {
  font-size: 26px;
  line-height: 1;
}

/* REVEAL */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

.js .reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.16s;
}

.d3 {
  transition-delay: 0.24s;
}

/* FILTER ANIMATION */
.property-item.hidden-by-filter {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .amg-top-actions {
    min-width: 100%;
    margin-top: 16px;
    justify-content: flex-start;
  }

  .amg-title,
  .amg-h2 {
    max-width: none;
  }

  .amg-photo img {
    height: 360px;
  }

  .amg-filterBox {
    position: static;
  }

  .amg-finalBox {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .amg-resultsTop {
    flex-direction: column;
    align-items: flex-start;
  }

  .amg-propRow {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .amg-btn,
  .amg-contact-btn {
    width: 100%;
  }

  .amg-finalBtns {
    width: 100%;
  }

  .amg-finalBtns .amg-btn {
    width: 100%;
  }
}
