﻿:root {
  /* Colors */
  --primary-slate: #40916c;
  --text-dark: #2d6a4f;
  --text-gray: #64748b;
  --text-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-light-beige: #f5f5f0;

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3.5rem;
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  font-weight: 500;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-md);
  color: #000000;
  /* User request: Normal text in black */
}

/* Typography Defaults */
body {
  font-family: var(--font-body);
  color: #000000;
  /* User request: Normal text in black */
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--spacing-xl) 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-md {
  gap: var(--spacing-md);
}

/* Navigation Placeholder (updated) */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Ensure high z-index */
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
  padding: 2rem 0;
}

.navbar.scrolled {
  background-color: var(--primary-slate);
  padding: 1rem 0;
  /* Shrink padding slightly on scroll */
  position: fixed;
  /* Fix to top */
  top: 0;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  /* Push content to the right */
  align-items: center;
  position: relative;
}

.logo {
  position: absolute;
  /* Position logo on the left independently */
  left: 0;
  margin-left: 2rem;
  /* Add margin as requested */
  display: block;
  line-height: 0;
}

.logo-img {
  height: 50px;
  /* Adjust as needed based on aspect ratio */
  width: auto;
}

/* Nav Link Styles */
.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: static;
  background-color: transparent;
  width: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  padding: 0;
  box-shadow: none;
}

.nav-links a {
  margin-left: 2.5rem;
  margin-bottom: 0;
  display: inline-block;
  width: auto;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

/* Toggle - Hidden on desktop */
.nav-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar {
    background-color: var(--primary-slate);
    position: absolute;
    width: 100%;
    z-index: 100;
  }

  .logo {
    top: 50%;
    transform: translateY(-50%);
    margin-left: 1.5rem;
    z-index: 102;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    margin-left: auto;
    margin-right: 1.5rem;
    position: relative;
  }

  .hamburger,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    margin-right: 0;
    background-color: var(--primary-slate);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 101;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    margin-left: 0;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Hero Fixes on Mobile */
  .hero-container {
    margin-top: 0;
  }
}

.nav-links a:not(.btn-cta):hover {
  opacity: 0.8;
}

.btn-cta {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--text-light);
  color: var(--primary-slate) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  background:
    linear-gradient(to bottom, rgba(92, 124, 138, 0.4), rgba(255, 255, 255, 0)),
    url("assets/Entrada.png") no-repeat center bottom;
  background-size: cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Center vertically specifically */
  padding-top: 80px;
  /* Adjusted to be less manually spaced, relying on flex centering */
  /* Space for fixed/absolute nav */
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 4rem;
  /* Push content down as requested */
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-hero {
  display: inline-block;
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
  background-color: var(--primary-slate);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.vr-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.vr-badge:hover {
  transform: scale(1.05);
}

.hero-title {
  color: var(--text-light);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 500px;
  font-weight: 300;
}

/* Quality Life Section */
.section-padding {
  padding: 6rem 0;
}

.quality-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

.section-desc {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  gap: 4rem;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .h1 {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .quality-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-row {
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Features Section - reduced spacing */
.features {
  padding-top: 0rem;
  /* Aggressively reduced */
  padding-bottom: 4rem;
  margin-top: -2rem;
  /* Pull up closer to images */
  position: relative;
  z-index: 2;
  /* Ensure it stays above if overlapping */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Dream Home Section */
/* Dream Home Section Refactored */
.dream-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.dream-col-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dream-col-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dream-text-content {
  margin-bottom: 1rem;
}

.dream-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Image Aspect Ratios */
.img-left {
  height: 500px;
}

.img-top-right {
  height: 450px;
}

.img-bottom-right {
  height: 450px;
  /* Corrected height */
}

.dream-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dream-card:hover .dream-img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    /* Force rows on mobile */
  }

  .dream-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .img-left,
  .img-top-right {
    height: 350px;
  }

  .img-bottom-right {
    height: 200px;
  }
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.lang-menu a {
  display: block;
  color: var(--text-dark) !important;
  /* Force dark text */
  padding: 0.5rem 1rem;
  margin: 0 !important;
  font-size: 0.9rem;
  text-transform: none;
}

.lang-menu a:hover {
  background-color: var(--bg-light-beige);
  color: var(--primary-slate) !important;
}

@media (max-width: 768px) {
  .lang-dropdown {
    margin: 1rem 0;
  }

  .lang-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    text-align: center;
    display: none;
    /* Hide for now or implement click toggle */
  }

  .lang-dropdown:hover .lang-menu {
    display: block;
  }

  .lang-menu a {
    color: var(--text-light) !important;
  }
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-slate);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Approximate max height */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-white);
  padding: 4rem 0 2rem;
  border-top: 1px solid #f1f5f9;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }

.footer-brand .logo {
  color: var(--text-dark);
}

.footer-desc {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-slate);
}

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links a {
    margin: 0 1rem;
  }
}

/* =========================================
   Properties Page Styles (Fincas.html)
   ========================================= */

/* Nav Adjustment for non-hero pages */
.relative-nav {
  position: relative;
  background-color: var(--primary-slate);
  /* Keeping it simple and visible */
  padding: 2rem 0;
}

.relative-nav .logo,
.relative-nav .nav-links a {
  color: var(--text-light);
  /* Ensure text is light on dark bg if needed, or adjust */
}

/* Page Layout */
.properties-page {
  padding: 4rem 0;
  min-height: 80vh;
}

.properties-layout {
  display: flex;
  gap: 3rem;
}

/* Sidebar Filters */
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.filter-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.range-separator {
  color: var(--text-gray);
}

.btn-primary {
  background-color: var(--text-dark);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-slate);
}

.full-width {
  width: 100%;
}

/* Grid Container */
.properties-grid-container {
  flex-grow: 1;
}

.properties-header {
  margin-bottom: 2rem;
}

.properties-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 Columns as requested */
  gap: 1.5rem;
}

/* Property Card Design (Reference Style) */
.property-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
  position: relative;
  height: 200px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.3;
}

.card-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.period {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-gray);
}

.card-location {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.card-specs {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

.spec-icon {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-layout {
    flex-direction: column;
  }

  .filters-sidebar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Detail Page Styles (Finca-detail.html)
   ========================================= */

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Gallery */
.main-image-wrapper {
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-row {
  display: flex;
  gap: 1rem;
}

.thumb-img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.thumb-img.active,
.thumb-img:hover {
  opacity: 1;
  border: 2px solid var(--text-dark);
}

.thumb-more {
  width: 100px;
  height: 80px;
  border-radius: 12px;
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

/* Info Card */
.detail-info-card {
  background: #fff;
  /* padding: 2rem;  Optional: if we want a boxed look, but design looks clean/open or boxed */
  border-radius: 24px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.detail-location {
  color: var(--text-gray);
  display: flex;
  align-items: center;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  text-align: right;
}

.detail-period {
  font-size: 1rem;
  color: var(--text-gray);
  display: block;
  text-align: right;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-box {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.spec-icon {
  font-size: 1.2rem;
}

.map-placeholder {
  width: 100%;
  height: 120px;
  background: #eee;
  border-radius: 16px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.action-buttons-row {
  display: flex;
  gap: 1rem;
}

.btn-action {
  flex: 1;
  padding: 1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-action.outline {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--text-dark);
}

.btn-action.outline:hover {
  border-color: var(--text-dark);
}

.btn-action.dark {
  background: var(--text-dark);
  color: #fff;
  border: none;
}

.btn-action.dark:hover {
  background: #000;
}

.btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .main-image-wrapper {
    height: 300px;
  }
}

/* Global Footer Logo Override */
.footer-logo {
  position: static;
  transform: none;
  margin-left: 0;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.info-item.with-icon {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.info-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 500;
}

.contact-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-text a {
  text-decoration: none;
}

.contact-map {
  height: 400px;
  background: #f0f0f0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.map-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.map-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.about-content p {
  font-size: 1.1rem;
  color: #000;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
}

.main-about-img {
  height: 300px;
}

.about-sub-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-sub-images img {
  height: 200px;
}

/* About Preview Section */
.about-preview {
  background-color: var(--bg-light-beige);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
  background: #fff;
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.quote-icon-container {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  color: var(--primary-slate);
  font-size: 3rem;
  font-family: serif;
  line-height: 1;
  margin-top: 20px;
}

.testimonial-info {
  margin-top: auto;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--text-dark);
}

.testimonial-quinta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 4px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-preview-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-preview-img {
    height: 300px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Base class for scroll animations */
.animate-on-scroll {
  opacity: 1; /* Forced visibility to fix blank page issue */
  transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  /* Reset transforms from start state */
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.zoom-in {
  transform: scale(0.9);
}

/* Delay modifiers */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* Gallery Section */
.gallery-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid #f1f5f9;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.gallery-modal-prev {
  left: 30px;
}

.gallery-modal-next {
  right: 30px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-counter {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .gallery-modal-prev {
    left: 10px;
  }

  .gallery-modal-next {
    right: 10px;
  }

  .gallery-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .gallery-modal-prev,
  .gallery-modal-next {
    width: 40px;
    height: 40px;
  }

  .gallery-modal-prev svg,
  .gallery-modal-next svg {
    width: 30px;
    height: 30px;
  }
}

/* About Page Styles */
.about-page {
  padding: 6rem 0;
  min-height: 100vh;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-content {
  padding-right: 2rem;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 1.5rem;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-sub-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content {
    padding-right: 0;
  }

  .about-content h1 {
    font-size: 2.5rem;
  }
}

/* About Rows Layout - No Animations */
.about-rows-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-row.reverse {
    direction: rtl;
    /* Flip direction for zig-zag */
}

.about-row.reverse .about-text {
    direction: ltr;
    /* Restore text direction */
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-slate);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.about-image-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-row-img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .about-row,
    .about-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 1.5rem;
    }
    
    .about-image-wrapper {
        height: 250px;
        order: -1; /* Image always on top on mobile */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* About Page Styles */
.about-page {
    padding: 6rem 0;
    min-height: 100vh;
}

.about-grid {
    display: block;
    width: 100%; /* Use full container width like index */
    margin-bottom: 3rem;
    text-align: left; /* Align to title (left) */
}

.about-content {
    padding-right: 0;
}

.about-content h1 {
    font-size: 2.5rem; /* Reduced from 3.5rem */
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: left;
}

.about-content p {
    font-size: 1rem; /* Reduced from 1.15rem */
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.2rem;
    text-align: left; /* Aligned with title */
    padding: 0;
    max-width: 100%; /* Allow full width */
}

/* Gallery Section Updates */
.gallery-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.photo-gallery {
    display: grid;
    /* Force 4 columns on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-about-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .about-content h1 {
        font-size: 2.5rem;
    }
}


/* Real Estate Detail Page Styles */
.detail-page {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.thumbnails-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb-img:hover, .thumb-img.active {
    opacity: 1;
    border-color: var(--primary-color, #2ecc71);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image-wrapper {
        height: 300px;
    }
}


.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    width: 100%;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}


/* Properties Grid 5 Columns Layout */
.properties-grid-container {
    width: 100% !important;
    max-width: 100% !important;
}

#properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
    #properties-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    #properties-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    #properties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    #properties-grid { grid-template-columns: 1fr; }
}


/* Properties Header Styles */
.properties-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.properties-title {
    margin-bottom: 0;
    font-size: 2.2rem;
    text-align: left;
    color: var(--text-dark);
}

.sort-controls .form-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    background-color: white;
    font-family: inherit;
    font-size: 1rem;
    min-width: 200px;
}

@media (max-width: 768px) {
    .properties-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-controls {
        width: 100%;
    }
    
    .sort-controls .form-select {
        width: 100%;
    }
    
    .properties-title {
        font-size: 1.8rem;
    }
}

/* ========================================= */
/* Language Switcher */
/* ========================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 8px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.lang-switcher:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: 1.5rem 0 0.5rem 0;
    justify-content: center;
  }
  
  .lang-btn {
    font-size: 0.9rem;
    padding: 6px 16px;
  }
}


.footer-contact-link {
  transition: all 0.3s ease;
}
.footer-contact-link:hover {
  opacity: 0.7;
  transform: translateX(4px);
}
