/* Sticky footer pattern */
html, body { 
  height: 100%;
  width: 100%;
  background-color: #000; /* ensures black fills all */ 
  margin: 0;
  padding: 0;  min-height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;           /* body is the flex container */
  flex-direction: column;
  margin: 0;
}

main {
  flex: 1 0 auto;          /* takes remaining space; NOT a flex container */
}

footer {
  margin-top: 0;           /* let flex layout place it, no manual margin */
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  background: transparent; /* instead of black */
}

/* ===== FULL PAGE BACKGROUND IMAGE ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background: 
  linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* top fade overlay */
  url("../img/earth_image.jpg") center / cover no-repeat;
  z-index: -1;
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #000;
}

/* =======================
   HEADER
   ======================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 400px;
  background: transparent;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Header logo sizing fix === */
header .logo {
  height: 250px;          /* Adjust this for desired size */
  width: auto;           /* Keep aspect ratio */
  object-fit: contain;   /* Avoid stretching */
  display: block;
}

/* ===== Header Scroll Behavior ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* keep above everything */
  background: rgba(0, 0, 0, 0.4); /* subtle transparency */
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between; /* space between logo and menu */
  align-items: center;
  padding: 20px 20px; /* adjust as needed */
  transition: top 0.4s ease, opacity 0.4s ease, background 0.4s ease;
  opacity: 1; /* keep header visible by default */
}

header.hidden {
  top: -100px; /* hides header when scrolling down */
  opacity: 0;
  transition: top 0.4s ease, opacity 0.3s ease;
}

/* Unfade when hovered */
header:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Optional: keep nav links bright when hovered */
header:hover a {
  opacity: 1;
}

/* Navigation menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 0;
}

nav a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 400;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Hover or active state - brighter text */
nav a:hover,
nav a.active {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -8px; /* nice and close under the text */
  left: 0;
  width: 100%; /* matches word width */
  height: 2px;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* Center alignment correction */
header img,
header nav {
  display: flex;
  align-items: center;
}

header {
  height: 125px; /* fixed header height */
  align-items: center;
  padding: 0 20px; /* horizontal spacing only */
}


/* === Back Button in Header (Individual Property page) === */

.back-header-btn {
  display: inline-block;
  position: absolute;
  margin-top: 40px; /* roughly your header height */
  margin-left: 30px; /* adjust horizontally */
  padding: 5px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 5;
}

.back-header-btn:hover {
  background-color: #fff;
  color: #000;
}


/* ===== FOOTER ===== */
footer {
  width: 100%;
  height: 200px; /* fixed height — keeps consistent size */
  background: rgba(0, 0, 0, 0.95); /* solid dark */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 60px;
  box-sizing: border-box;
}

.footer-content {
  width: 100%;
  max-width: 1600px; /* more breathing room */
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* balanced sides */
  align-items: center;
  text-align: center;
}

/* Logo (Left) */
.footer-logo {
  height: 200px;
  object-fit: contain;
  justify-self: end; /* pulls logo inward */
  padding-right: 200px; /* move closer to center */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

footer p {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap; /* keep in one line */
  opacity: 0.9;
  justify-self: center;
  transform: translateX(-10px); /* shift text slightly to the left */
}

footer {
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

/* Socials (Right) */
.footer-socials {
  display: flex;
  justify-content: flex-start; /* move inward */
  padding-left: 250px; /* move closer to center */
  gap: 25px;
}

.footer-socials .social-icon {
  color: white;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* General hover effect (scaling) */
.footer-socials .social-icon:hover {
  transform: scale(1.2);
}

/* Facebook hover → blue with glow */
.footer-socials .fa-facebook-f:hover {
  color: #1877f2;
  text-shadow: 0 0 8px rgba(24, 119, 242, 0.6);
  transform: scale(1.2);
}

/* Instagram hover → gradient effect */
.footer-socials .fa-instagram:hover {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none; /* removes the glow, since gradient replaces it */
  transform: scale(1.2);
}

.hero {
  display: flex;
  justify-content: center;   /* horizontally center */
  align-items: center;       /* vertically center (keep this) */
  text-align: center;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;            /* centers within its parent */
  box-sizing: border-box;
}

.hero img,
.hero .background {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero.header-hidden {
  padding-top: 60px; /* reveal more of the image */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 80%;
  margin: 0 auto;
  transform: translateY(-180px);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.hero .btn {
  display: inline-block;
  font-size: 1.2rem;
  padding: 16px 32px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 30px; /* ⬇️ moves button lower */
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease, transform 0.2s ease;
}

.hero .btn:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 0 6px #fff; /* ✨ less glowy than before */
  transform: scale(1.05);  /* gentle lift */
}

.socials a {
  margin: 0 10px;
  color: white;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10;
}

.whatsapp-float img {
  width: 60px;
  filter: drop-shadow(0 0 10px #25d366);
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* Floating Language Selector */
.lang-float {
  position: fixed;
  top: 25px;
  right: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 10000;
}

.lang-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  opacity: 0.9;
}

.lang-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

.lang-btn.active {
  filter: drop-shadow(0 0 20px rgba(187, 134, 252, 0.9))
          drop-shadow(0 0 35px rgba(187, 134, 252, 0.7));
  opacity: 1;
}

.lang-divider {
  width: 3px; /* thicker line */
  height: 32px;
  align-self: center;
  background-color: #ffffff; /* solid white */
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* soft white glow */
}

/* Remove nav underline effect from language buttons */
.lang-btn::after {
  content: none !important;
}

/* ===== PROPIEDADES PAGE ===== */
.propiedades {
  text-align: center;
  padding: 40px 10% 80px;
  color: white;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 80px;
  letter-spacing: 1px;
}

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-items: center;
}

.propiedades-card {
  background: #0c0c0c;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.propiedades-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.propiedades-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease-in-out;
}

.propiedades-info {
  padding: 20px;
}

.propiedades-info h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.propiedades-info p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Coming Soon Cards */
.propiedades-card.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: #111; /* dark background */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: subtle hover effect */
.propiedades-card.coming-soon:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease-in-out;
}

/* ===== CONTACT PAGE ===== */
.contact {
  text-align: center;
  padding: 100px 20px 100px;
  color: white;
}

.contact h1 {
  font-size: 2.8rem;
  margin-bottom: 60px;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #25d366;
  color: #000;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 16px 28px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background-color: #1eb858;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
  transform: scale(1.05);
}

.whatsapp-btn i {
  font-size: 1.6rem;
}



/* === Individual Property Page === */

.property-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start; /* make sure both start at same top line */
  gap: 40px;
  padding: 100px 10%;
  color: #fff;
}

/* ===== PROPERTY IMAGE GALLERY ===== */

.property-gallery {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* or 4/3, depending on your image format */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  margin-top: -569px; /* ⬅️ Lift the gallery upward */
  transition: transform 0.4s ease;
}

/* When English is active, move gallery slightly down */
body[data-lang="en"] .property-gallery {
  transform: translateY(15px); /* adjust this value if needed */
}

.gallery-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 20px;
  object-fit: cover;
  object-position: center center;
}

.gallery-images img:nth-child(2) {
  object-position: center 50%;
}

.gallery-images img:nth-child(4) {
  object-position: center 70%;
}

.gallery-images img.active {
  opacity: 1;
  z-index: 2;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
  z-index: 5; /* 🔥 ensures buttons stay above images */
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.28);
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

/*Property Descritption Box*/

.property-description-box {
  background: rgba(0, 0, 0, 0.55); /* transparent dark box */
  padding: 30px 40px;
  border-radius: 12px;
  backdrop-filter: blur(8px); /* gives it a frosted-glass look */
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  line-height: 1.7;
  text-align: left;
}

/* Title spacing inside the box */
.property-description-box h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.property-description-box h2 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #a586ff; /* subtle purple accent */
}

/* Space between paragraphs */
.property-description-box p {
  margin-bottom: 15px;
}

/* Make sure it's vertically centered with the image */
.property-hero {
  display: flex;
  align-items: center; /* vertical alignment */
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.property-info {
  flex: 1 1 400px;
  max-width: 600px;
  color: #fff; /* change to #000 if background is light */
  padding: 20px;
  line-height: 1.7;
  align-self: flex-start; /* ensures it stays aligned with the gallery top */
}

.property-info h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.property-info h2 {
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.property-info ul {
  list-style-type: "– ";
  margin-left: 20px;
  margin-bottom: 15px;
}

.property-info li {
  margin-bottom: 8px;
}

.property-disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 10px;
  line-height: 1.5;
}

.property-info .btn {
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 25px; /* ⬅️ adds space above button */
}

.property-info .btn:hover {
  background: #1eb858;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ========================================
   🌐 GLOBAL MOBILE LAYOUT FIXES
   ======================================== */

/* ---- General smaller screens ---- */
@media (max-width: 1024px) {
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  section, footer, main {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---- Text scaling ---- */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  p, li, a { font-size: 0.95rem; line-height: 1.5; }
}

/* ========================================
   📱 MOBILE HEADER FIX + NAV MENU
   ======================================== */
@media (max-width: 900px) {
  header {
    padding: 10px 20px;
    height: auto;
  }

  header .logo {
    height: 150px;
    width: auto;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
  }

  nav ul.show {
    max-height: 300px;
    opacity: 1;
    padding: 20px 0;
  }

  nav li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  nav a {
    font-size: 1.1rem;
  }
}


/* ========================================
   🍔 HAMBURGER ICON STYLING & ANIMATION
   ======================================== */

/* === Make hamburger easier to see & tap === */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;   /* total icon width */
  height: 22px;  /* total icon height */
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Show burger on anything smaller than 1300px */
@media (max-width: 1350px) {
  .menu-toggle {
    display: flex;
  }
}

/* Hide burger only on large desktops */
@media (min-width: 1351px) {
  .menu-toggle {
    display: none;
  }
}

/* Hide full nav when burger is visible */
@media (max-width: 1350px) {
  nav ul {
    display: none;
  }

  nav ul.show {
    display: flex; /* show dropdown only when opened */
    flex-direction: column;
  }
}

/* Show full nav again on large desktop */
@media (min-width: 1351px) {
  nav ul {
    display: flex;
  }
}

.header-container {
  align-items: center;
  gap: 10px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Active state turns it into an exact X === */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7.8px, -7.8px);
}

/* ========================================
   📱 FIX HAMBURGER POSITION ON MOBILE
   ======================================== */
@media (max-width: 900px) {
  header {
    padding: 10px 0px; /* remove huge desktop padding */
  }

  .header-container {
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    height: 70px;
    width: auto;
  }

  .menu-toggle {
    position: relative;
    right: 0;
    margin-left: auto;
    margin-right: 300;  /* 👈 removes that off-page shift */
    width: 30px;      /* slightly larger for touch */
    height: 22px;
  }

  nav {
    margin-left: 60px;
  }

  nav ul {
    width: 100%;
    text-align: center;
  }
}


/* ========================================
   💻 TABLET–LAPTOP HEADER (900px–1350px)
   ======================================== */
@media (min-width: 901px) and (max-width: 1350px) {
  header {
    padding: 10px 20px; /* remove huge desktop padding */
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
  }

  .logo {
    height: 70px;
    width: auto;
  }

  .menu-toggle {
    position: relative;     /* ⬅ keeps burger inside header, not fixed */
    right: 0;
    margin-left: auto;
    margin-right: 20px;     /* little gap from right edge */
    transform: none;        /* reset any mobile transforms */
  }

  nav {
    margin-left: 60px;
  }

  nav ul {
    position: absolute;
    top: 75%;              /* dropdown appears below the header */
    left: 0;
    width: 100%;            /* full-width menu */
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1500;
  }

  nav ul.show {
    max-height: 400px;      /* expanded height */
    opacity: 1;
    visibility: visible;
    padding: 20px 0;
  }

  nav li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  nav a {
    display: inline-block;
    padding: 10px 0;
    font-size: 1.2rem;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 140px
  }

  .hero h1 {
    text-align: center;
    margin: 0 auto;
    width: auto;
    line-height: 2;
  }
}

/* ========================================
   🌍 LANGUAGE TOGGLE RESPONSIVE BEHAVIOR
   ======================================== */

/* Default: floating version visible, burger version hidden */
.lang-mobile {
  display: none;
}

/* Mobile: hide floating version, show burger version */
@media (max-width: 2000px) {
  .lang-float {
    display: none !important; /* hide floating one */
  }

  .lang-mobile {
    display: flex;
    justify-content: center;
    margin-top: 0px;
  }

  /* Ensure same look inside burger */
  .lang-mobile .lang-float {
    display: flex !important;
    position: static;       /* remove fixed position */
    top: auto;
    right: auto;
    flex-direction: row;
    gap: 10px;
    filter: none;
    z-index: auto;
  }

  .lang-mobile .lang-btn {
    width: 45px;
    height: 45px;
  }
}



/* ========================================
   🏡 PROPERTY PAGE MOBILE FIX
   ======================================== */
@media (max-width: 900px) {
  .property-hero {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 120px 5% 60px;
  }

  .property-gallery {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    aspect-ratio: 16/10;
  }

  .gallery-btn {
    font-size: 20px;
    padding: 6px 10px;
  }

  .property-description-box {
    padding: 20px;
    max-width: 100%;
    line-height: 1.6;
    font-size: 0.95rem;
  }

  .property-description-box h1 {
    font-size: 1.5rem;
  }
}

/* ========================================
   🦶 RESPONSIVE FOOTER
   ======================================== */
@media (max-width: 1375px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    height: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-logo {
    height: 150px;
    margin: 0 auto;
    padding: 0;
  }

  .footer-socials {
    justify-content: center;
    padding: 0;
  }

  footer p {
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* ========================================
   💬 FLOATING ELEMENTS (WhatsApp & Language)
   ======================================== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float img {
    width: 50px;
  }

  .lang-float {
    top: 15px;
    right: 15px;
    flex-direction: row;
    gap: 6px;
  }

  .lang-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

/* ==========================
   FULLSCREEN LIGHTBOX GALLERY
   ========================== */
.lightbox {
  display: none;                 /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.lightbox.show {
  display: flex;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s ease;
}

.close-lightbox:hover {
  color: #aaa;
}

/* Next/Prev buttons */
.lightbox-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  pointer-events: all;
  padding: 20px;
  transition: color 0.2s ease;
}

.lightbox-controls button:hover {
  color: #aaa;
}


/* Adjust body going behind header */

body {
  padding-top: 200px; /* 👈 match your header height */
}

@media (max-width: 900px) {
  body {
    padding-top: 180px; /* 👈 match mobile header height */
  }
}

/* Tablets & small laptops */
@media (min-width: 901px) and (max-width: 2000px) {
  .property-gallery {
    margin-top: 0px;
  }
}

/* Force all property images to align perfectly center */
.propiedades-grid {
  justify-items: center;
}

.propiedades-card img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
}