/* ===== Greens Residencia — brand tokens (from logo) ===== */
:root {
  --blue: #1b75bc;
  --blue-dark: #12568c;
  --green: #22a84a;
  --green-dark: #1d6b3c;
  --green-deep: #0f3d24;
  --lime: #8dc63f;
  --ink: #142019;
  --muted: #5b6b62;
  --bg: #ffffff;
  --bg-soft: #f3f8f1;
  --line: #e2ece0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 61, 36, .10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 36, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--green); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.section__title--light { color: #fff; }
.section__title--light em { color: var(--lime); }
.section__sub { color: rgba(255,255,255,.8); font-size: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(141, 198, 63, .15);
  border: 1px solid rgba(141, 198, 63, .35);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--green-dark); background: rgba(34,168,74,.08); border-color: rgba(34,168,74,.25); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 10px 24px rgba(34,168,74,.35); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(34,168,74,.45); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: #fff; color: var(--green-deep); }
.btn--outline { border-color: var(--green); color: var(--green-dark); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.06); padding: 8px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { height: 46px; width: auto; background: #fff; border-radius: 12px; padding: 4px 6px; }
.nav.is-scrolled .brand__mark { background: transparent; }
.brand__text { font-weight: 600; letter-spacing: .06em; color: #fff; font-size: 15px; white-space: nowrap; }
.brand__text b { font-weight: 800; }
.nav.is-scrolled .brand__text { color: var(--blue); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: rgba(255,255,255,.92); font-weight: 600; font-size: 15px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--lime); transition: width .25s; }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; width: 100%;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  /* Full-width banner photo on top of a branded gradient fallback */
  background:
    url("../assets/banner.jpg") 56% 30% / cover no-repeat,
    linear-gradient(135deg, #0f3d24 0%, #1d6b3c 50%, #12568c 100%);
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
/* Light shading only: darker at the top for the menu and at the bottom for the text panel */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,25,15,.55) 0%, rgba(5,25,15,0) 22%),
    linear-gradient(to top, rgba(5,25,15,.6) 0%, rgba(5,25,15,0) 55%);
}
.hero__content {
  position: relative; max-width: 780px;
  margin: 0 0 96px max(16px, (100% - 1180px) / 2);
  padding: clamp(24px, 3.5vw, 40px);
  background: rgba(8, 38, 22, .62);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--lime);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero__title { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero__title em { color: var(--lime); }
.hero__lead { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ===== Stats strip ===== */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__icon { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-soft); flex-shrink: 0; }
.stat b { display: block; font-size: 20px; color: var(--green-dark); }
.stat small { color: var(--muted); font-size: 14px; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__visual { position: relative; }
.about__card {
  aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center; padding: 12%;
  background:
    radial-gradient(circle at 30% 20%, rgba(141,198,63,.25), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(27,117,188,.18), transparent 55%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}
.about__card img { filter: drop-shadow(0 20px 30px rgba(15,61,36,.15)); }
.about__badge {
  position: absolute; right: -16px; bottom: -24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  padding: 18px 26px; border-radius: 18px; box-shadow: var(--shadow-lg);
  font-family: var(--serif); font-size: 22px; line-height: 1.2;
}
.about__badge b, .about__badge span { display: block; }
.about__badge span { color: var(--lime); }
.about__text p { color: var(--muted); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px; display: grid; place-items: center;
}

/* ===== Amenities ===== */
.amenities { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34,168,74,.14), rgba(27,117,188,.12));
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== Plots ===== */
.plots {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(141,198,63,.18), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(27,117,188,.28), transparent 60%),
    var(--green-deep);
  color: #fff;
}
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; color: var(--ink); border-radius: 22px; padding: 32px 26px;
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.plan h3 { font-family: var(--serif); font-size: 32px; margin: 12px 0 8px; }
.plan p { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 24px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
.plan__tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); background: rgba(34,168,74,.1); padding: 5px 12px; border-radius: 999px; }
.plan__tag--blue { color: var(--blue); background: rgba(27,117,188,.1); }
.plan--featured { background: linear-gradient(160deg, #ffffff 0%, #eef8e6 100%); outline: 3px solid var(--lime); transform: translateY(-10px); }
.plan--featured:hover { transform: translateY(-16px); }
.plan__ribbon { position: absolute; top: -14px; right: 22px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(27,117,188,.4); }

/* ===== Gallery ===== */
.gallery__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  grid-template-areas: "a a b c" "a a d e";
}
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.tile--a { grid-area: a; background: linear-gradient(135deg, #1d6b3c, #12568c); }
.tile--b { grid-area: b; background: linear-gradient(135deg, #8dc63f, #22a84a); }
.tile--c { grid-area: c; background: linear-gradient(135deg, #1b75bc, #0f3d24); }
.tile--d { grid-area: d; background: linear-gradient(135deg, #22a84a, #1b75bc); }
.tile--e { grid-area: e; background: linear-gradient(135deg, #0f3d24, #8dc63f); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s; }
.tile:hover .tile__img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.gallery__more { text-align: center; margin-top: 32px; color: var(--muted); }
.gallery__more a { color: var(--blue); font-weight: 700; }

/* ===== Why / steps ===== */
.why { background: var(--bg-soft); }
.why__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.steps li::before {
  content: "0" counter(step); font-family: var(--serif); font-size: 40px; font-weight: 700;
  background: linear-gradient(135deg, var(--green), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1; margin-bottom: 10px;
}
.steps b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ===== Location ===== */
.location__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.location__text p { color: var(--muted); font-size: 17px; }
.address { display: flex; gap: 10px; font-weight: 600; color: var(--ink) !important; }
.location__map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bg-soft); }
.location__map iframe { width: 100%; height: 100%; border: 0; }
/* The whole map is one link to the society's pin */
.location__map { position: relative; }
.location__map-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; cursor: pointer; }
.location__map-link span {
  background: #fff; color: var(--green-dark); font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .2s, background .2s, color .2s;
}
.location__map-link:hover span { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ===== Contact ===== */
.contact {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(141,198,63,.2), transparent 60%),
    linear-gradient(135deg, var(--blue-dark), var(--green-deep));
  color: #fff;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact__info p { color: rgba(255,255,255,.82); font-size: 17px; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact__list span { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 20px; }
.contact__list a:hover { color: var(--lime); }
.form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.form h3 { font-family: var(--serif); font-size: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 15px; font: inherit; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(34,168,74,.15); }
.form .is-invalid { border-color: #d64545; }
.form__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: #0b2a19; color: rgba(255,255,255,.75); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 150px; background: #fff; border-radius: 18px; padding: 10px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { display: block; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: var(--lime); }
.social { display: flex !important; align-items: center; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 14px; text-align: center; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 25px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .wa-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards, .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .why__grid, .location__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw);
    flex-direction: column; align-items: flex-start; gap: 22px; padding: 100px 28px 28px;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav__links a:not(.btn) { color: var(--ink) !important; font-size: 18px; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle { position: relative; z-index: 2; }
  .nav.is-open .nav__toggle span { background: var(--ink); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; margin: 0 auto; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; grid-template-areas: "a a" "b c" "d e"; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand__text { display: none; }
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .about__badge { right: 8px; font-size: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* Contact details */
.footer__addr { font-size: 15px; line-height: 1.6; }
.footer__grid a { overflow-wrap: anywhere; }

/* Phones & tablets: show the whole banner (gate fully visible), text panel below it */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding: 76px 0 88px; background: var(--green-deep); }
  .hero__bg {
    position: relative; inset: auto; width: 100%; aspect-ratio: 2048 / 768;
    background: url("../assets/banner.jpg") center / cover no-repeat, var(--green-dark);
    transform: none; animation: none;
  }
  .hero__overlay { display: none; }
  .hero__content {
    margin: 12px 12px 0; max-width: none;
    background: rgba(8, 38, 22, .94);
  }
}

/* ===== House for sale page ===== */
.listing-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.listing-hero__bg { position: absolute; inset: 0; background: url("../assets/house/drawing-room.jpg") center / cover no-repeat, var(--green-deep); }
.listing-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,25,15,.6) 0%, rgba(5,25,15,.35) 30%, rgba(5,25,15,.9) 80%); }
.listing-hero .eyebrow { background: rgba(5,25,15,.6); }
.listing-hero__content { position: relative; padding: 140px 0 110px; }
.listing-hero__title { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.02em; max-width: 820px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.listing-hero__title em { color: var(--lime); }
.listing-hero__lead { font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.92); margin-bottom: 26px; }
.listing-sub { color: var(--muted); }
.listing-back { margin-left: 10px; }

.listing-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(360px, 46vw, 540px); }
.listing-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.listing-collage__a { grid-row: 1 / 3; }

.listing-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.lg-item { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.lg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lg-item:hover img { transform: scale(1.05); }
.lg-item:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.lg-item--wide { grid-column: span 2; }
.lg-item--tall { grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 10, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; border-radius: 10px; }
.lightbox__figure figcaption { color: rgba(255,255,255,.85); font-weight: 600; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green); }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

@media (max-width: 1024px) {
  .listing-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .listing-collage { height: 380px; }
}
@media (max-width: 560px) {
  .listing-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .lg-item--wide { grid-column: span 2; }
  .lightbox { padding: 56px 8px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .listing-back { margin: 10px 0 0; }
}

/* Floor layout cards */
.listing-floors { padding-top: 0; }
.floors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.floor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.floor__tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.floor--roof .floor__tag { background: linear-gradient(135deg, #f5a623, #e07b00); }
.floor ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.floor li { font-size: 17px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.floor li:last-child { border-bottom: 0; padding-bottom: 0; }
.floor li b { display: inline-block; min-width: 46px; color: var(--green-dark); font-size: 20px; }
@media (max-width: 860px) { .floors { grid-template-columns: 1fr; } }

/* ===== Properties (marketplace) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.props-head { padding: 130px 0 10px; background: var(--bg-soft); text-align: center; }
.props-head .listing-sub { max-width: 640px; margin: 0 auto; }
.props-filter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 30px 0 26px; }
.props-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.props-tabs a { padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); }
.props-tabs a.is-active { background: var(--green); color: #fff; }
.props-type select { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-weight: 600; background: #fff; box-shadow: var(--shadow); }
.props-list { padding-top: 40px; }
.props-count { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.props-empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.props-empty span { font-size: 54px; }
.props-empty p { color: var(--muted); font-size: 18px; max-width: 460px; }
.props-preview__more { text-align: center; margin-top: 32px; }

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prop-card__img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-card:hover .prop-card__img img { transform: scale(1.05); }
.prop-card__noimg { font-size: 56px; }
.prop-card--sold .prop-card__img img { filter: grayscale(.6); }
.prop-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--green); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.prop-badge--rent { background: var(--blue); }
.prop-card--sold .prop-badge:first-of-type { background: #6b6b6b; }
.prop-badge--featured { left: auto; right: 14px; background: #f5a623; }
.prop-badge--inline { position: static; display: inline-block; margin-right: 8px; box-shadow: none; }
.prop-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prop-card__type { font-size: 13px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .06em; }
.prop-card__body h3 { font-size: 20px; margin: 6px 0 6px; }
.prop-card__loc { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.prop-card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.prop-card__price { margin-top: auto; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--green-dark); }

/* Property detail */
.pv-head { padding: 112px 0 18px; background: var(--bg-soft); }
.pv-back { display: inline-block; color: var(--green-dark); font-weight: 700; margin-bottom: 14px; }
.pv-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pv-title h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); margin: 8px 0 6px; }
.pv-price { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--green-dark); background: #fff; padding: 12px 22px; border-radius: 16px; box-shadow: var(--shadow); }
.pv-gallery-wrap { background: var(--bg-soft); padding-bottom: 30px; }
.pv-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 22px; overflow: hidden; }
.pv-gallery .lg-item { border-radius: 0; }
.pv-gallery__main { grid-row: 1 / 3; }
.pv-gallery__more { display: none; }
.pv-gallery--single { grid-template-columns: 1fr; grid-template-rows: 460px; }
.pv-gallery--n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 440px; }
.pv-gallery--n2 .pv-gallery__main { grid-row: auto; }
.pv-gallery--n3 { grid-template-columns: 2fr 1fr; }
.pv-gallery--n4 .lg-item:nth-child(4) { grid-column: 2 / 4; }
.pv-gallery__count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 800; font-size: 20px; }
.pv-body { padding-top: 40px; }
.pv-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pv-facts div { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; }
.pv-facts small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.pv-facts b { font-size: 18px; color: var(--green-dark); }
.pv-h { font-family: var(--serif); font-size: 26px; margin: 10px 0 14px; }
.pv-desc { color: var(--ink); font-size: 17px; margin-bottom: 26px; }
.pv-side { position: sticky; top: 96px; }
.pv-side .form { box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pv-call { margin-top: 12px; display: grid; gap: 10px; }
.pv-contact { margin: 0; text-align: center; color: var(--muted); }
.pv-wa { border-color: #25d366; color: #128c4a; }
.pv-wa:hover { background: #25d366; color: #fff; }
.pv-facts__wide { grid-column: span 2; }

@media (max-width: 1024px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .pv-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .pv-gallery__main { grid-column: 1 / 3; grid-row: auto; }
  .pv-gallery .lg-item:nth-child(n+6) { display: none; }
  .pv-gallery--single { grid-template-rows: 280px; }
  .pv-gallery--n2 { grid-template-rows: 240px 240px; }
  .pv-gallery--n2 .pv-gallery__main, .pv-gallery--n2 .lg-item { grid-column: 1 / 3; }
  .pv-gallery--n3 { grid-template-rows: 240px 160px; }
  .pv-gallery--n4 .lg-item:nth-child(4) { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .prop-grid { grid-template-columns: 1fr; }
  .props-tabs a { padding: 8px 14px; }
}

/* Property: 3D design and floor plan sections */
.pv-extra { padding-top: 40px; background: var(--bg-soft); }
.pv-extra--plans { background: #fff; }
.pv-extra .section__head { margin-bottom: 30px; }
.pv-designs { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.pv-designs--3 { grid-template-columns: 1fr 1fr; }
.pv-designs--1 { grid-template-columns: 1fr; }
.pv-designs--2 { grid-template-columns: 1fr 1fr; }
.pv-figure { margin: 0; }
.pv-figure .lg-item { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: var(--shadow); }
.pv-designs--3 .pv-figure:first-child { grid-column: 1 / -1; }
.pv-designs--3 .pv-figure:first-child .lg-item { aspect-ratio: 16 / 7; }
.pv-figure figcaption { margin-top: 8px; font-weight: 600; color: var(--muted); text-align: center; }
.pv-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pv-figure--plan figcaption { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; color: var(--ink); text-align: left; }
.pv-figure--plan .lg-item { aspect-ratio: auto; background: #fff; border: 1px solid var(--line); padding: 10px; }
.pv-figure--plan .lg-item img { height: auto; object-fit: contain; }
.pv-figure--plan .lg-item:hover img { transform: none; }
.lightbox__figure img[src$=".png"] { background: #fff; }
@media (max-width: 860px) {
  .pv-designs, .pv-designs--2, .pv-plans { grid-template-columns: 1fr; }
  .pv-designs--3 .pv-figure:first-child .lg-item { aspect-ratio: 3 / 2; }
}
.pv-jump { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
.pv-jump a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--green-dark); }
.pv-jump a:hover { border-color: var(--green); }
