@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  --green-900: #0b1f18;
  --green-800: #0f2f24;
  --green-700: #1c5c3a;
  --green-600: #228a53;
  --green-500: #2db26d;
  --green-100: #e6f7ee;
  --gray-100: #f4f6f3;
  --gray-200: #e4e8e2;
  --gray-700: #2a2e2b;
  --black: #0a0c0b;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(6, 12, 10, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", Tahoma, sans-serif;
  color: var(--gray-700);
  background: radial-gradient(circle at top, #1c3f2c 0%, #0d1411 38%, #0a0c0b 80%);
  min-height: 100vh;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  background: var(--gray-100);
  border-radius: 32px 32px 0 0;
  margin-top: 36px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-100);
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  display: block;
}

.brand-subtitle {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(230, 247, 238, 0.7);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--green-100);
}

.nav a {
  font-size: 0.95rem;
  color: rgba(230, 247, 238, 0.9);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--green-500);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(230, 247, 238, 0.2);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--green-500);
  background: rgba(45, 178, 109, 0.18);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(230, 247, 238, 0.2);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  color: var(--green-100);
}

.hero {
  padding: 120px 0 80px;
  color: var(--green-100);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(45, 178, 109, 0.35), transparent 70%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 3.2vw, 3.6rem);
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(230, 247, 238, 0.82);
  line-height: 1.7;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--green-500);
  color: var(--green-900);
  box-shadow: 0 10px 30px rgba(45, 178, 109, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(230, 247, 238, 0.4);
  color: var(--green-100);
  background: transparent;
}

.hero-card {
  background: rgba(12, 21, 17, 0.76);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 247, 238, 0.08);
}

.hero-card img {
  border-radius: 18px;
  margin-bottom: 18px;
  height: 280px;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat {
  background: rgba(9, 15, 12, 0.7);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(230, 247, 238, 0.08);
}

.stat strong {
  font-size: 1.4rem;
  color: var(--green-500);
  display: block;
}

.stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(230, 247, 238, 0.7);
}

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section h1,
.section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  margin: 0;
  color: var(--green-900);
}

.section p.lead {
  max-width: 580px;
  color: #4b5b52;
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
  color: var(--green-900);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--green-100);
  border-radius: 999px;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.85rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(5, 14, 10, 0.18);
}

.property-card__media {
  position: relative;
}

.property-card__media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.property-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.property-tag {
  background: rgba(10, 12, 11, 0.8);
  color: var(--green-100);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.property-tag--reserved {
  background: #b5482f;
  color: var(--white);
}

.property-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.property-location {
  color: #62726a;
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.property-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #4b5b52;
}

.property-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.property-price {
  color: var(--green-700);
  font-size: 1.05rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.filters input,
.filters select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
}

.filters label,
.contact-form label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5b52;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-row {
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.empty-state {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  color: #4b5b52;
}

.detail-hero {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: var(--green-100);
  padding: 70px 0 40px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 0;
}

.detail-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill--reserved {
  background: #fbe8e3;
  color: #7a2418;
}

.property-gallery {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: -50px;
  display: grid;
  gap: 16px;
}

.property-gallery:focus {
  outline: none;
}

.property-gallery:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 4px;
}

.property-gallery__main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
}

.property-gallery__main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 12, 11, 0.7);
  color: var(--green-100);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gallery-arrow:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

.gallery-arrow--prev {
  left: 16px;
}

.gallery-arrow--next {
  right: 16px;
}

.property-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.property-gallery__thumbs::-webkit-scrollbar {
  height: 6px;
}

.property-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(12, 21, 17, 0.35);
  border-radius: 999px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0;
  background: var(--white);
  overflow: hidden;
  flex: 0 0 auto;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-active {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 10, 0.85);
}

.gallery-lightbox__content {
  position: relative;
  width: min(1100px, 92vw);
  height: min(720px, 86vh);
  background: #0a0c0b;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 247, 238, 0.08);
}

.gallery-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0c0b;
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 12, 11, 0.7);
  color: var(--green-100);
  font-size: 1.4rem;
  cursor: pointer;
}

.gallery-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 12, 11, 0.7);
  color: var(--green-100);
  font-size: 1.8rem;
  cursor: pointer;
}

.gallery-lightbox__arrow--prev {
  left: 16px;
}

.gallery-lightbox__arrow--next {
  right: 16px;
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 12, 11, 0.7);
  color: var(--green-100);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.property-gallery__empty {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  color: #4b5b52;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-card h3 {
  margin-top: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.detail-list li {
  background: var(--gray-100);
  padding: 12px;
  border-radius: 12px;
}

.contact-card {
  background: var(--green-900);
  color: var(--green-100);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 120px;
}

.contact-card a {
  color: var(--green-100);
}

.contact-card p {
  margin: 6px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.about-hero {
  background: linear-gradient(120deg, rgba(11, 31, 24, 0.92), rgba(11, 31, 24, 0.6)),
    url("images/hero-principal.jpg");
  background-size: cover;
  background-position: center;
  color: var(--green-100);
}

.about-hero .lead {
  color: var(--green-100);
}

.about-hero h1,
.about-hero p {
  color: inherit;
}

.about-hero .card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-700);
}

.about-hero .card h3 {
  color: var(--green-900);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.split-cards {
  display: grid;
  gap: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-card img {
  border-radius: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 12px;
  background: var(--green-100);
  color: var(--green-900);
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}

.form-status--visible {
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(12, 22, 18, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(12, 22, 18, 0.35);
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

.footer {
  background: var(--black);
  color: rgba(230, 247, 238, 0.8);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer a {
  color: rgba(230, 247, 238, 0.8);
}

.footer-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(230, 247, 238, 0.7);
}

.fade-in {
  animation: fadeUp 0.9s ease both;
}

.fade-delay-1 {
  animation-delay: 0.2s;
}

.fade-delay-2 {
  animation-delay: 0.4s;
}

.fade-delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .property-grid,
  .detail-layout,
  .about-grid,
  .split-grid,
  .team-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-gallery__main img {
    height: 320px;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    right: 4%;
    top: 70px;
    flex-direction: column;
    background: rgba(8, 12, 10, 0.95);
    border-radius: 18px;
    padding: 18px;
    display: none;
    width: min(260px, 90vw);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-card img {
    height: 200px;
    object-fit: cover;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .property-gallery__main img {
    height: 260px;
  }

  .property-card__media img {
    height: 190px;
  }
}
