/*
Theme Name: CAS Propiedades
Description: Tema inmobiliario profesional para Rosario, Santa Fe
Version: 1.1
Author: CAS Propiedades
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #222222;
  --secondary-color: #54595f;
  --accent-color: #1c5d99;
  --light-accent: #639fab;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --whatsapp: #25d366;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #1c5d99 0%, #2980b9 100%);
  color: white;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
}

/* Logo Styles */
.logo {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo-img {
  height: 140px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}

/* RESPONSIVE LOGO PARA MÓVIL */
@media screen and (max-width: 768px) {
  .nav-wrapper {
    height: 85px;
    padding: 0 15px;
  }

  .logo-img {
    height: 80px !important;
    width: auto;
    margin-right: 8px;
  }
  
  .header {
    padding: 0.3rem 0;
    min-height: 85px;
  }
  
  .container {
    padding: 0 10px;
    max-width: 100%;
    margin: 0;
  }
  
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.logo-main {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 12px;
  font-weight: 400;
  color: #e8f4fd;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.logo-link:hover .logo-main {
  color: #ffd700;
  transition: color 0.3s ease;
}

.logo-link:hover .logo-sub {
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--accent-color);
  background: rgba(28, 93, 153, 0.1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-btn:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 30px;
  justify-content: space-between;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  gap: 15px;
}

.mobile-nav.show {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-medium);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--accent-color);
}

.mobile-phone {
  background: var(--accent-color);
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  border-bottom: none !important;
  margin-top: 10px;
}

/* ===== WHATSAPP BUTTON SIMPLE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-text {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
  margin-top: 2rem;
}

.search-form h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-group {
  display: flex;
  flex-direction: column;
}

.search-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.search-group select,
.search-group input {
  padding: 12px 15px;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.search-group select:focus,
.search-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(28, 93, 153, 0.1);
}

.search-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-btn {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(28, 93, 153, 0.3);
}

.clear-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.clear-btn:hover {
  background: var(--primary-color);
}

/* Search Results */
.search-results {
  padding: 60px 0;
  background: var(--gray-light);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.results-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
}

#results-count {
  background: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

/* Properties Section */
.properties {
  padding: 80px 0;
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

.properties-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--gray-medium);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
  position: relative;
  height: 250px;
  background: var(--gray-medium);
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--success);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.property-badge.rent {
  background: var(--accent-color);
}

.property-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-favorite:hover {
  background: var(--white);
  color: var(--danger);
}

.amenities-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}

.amenity-tag {
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--accent-color);
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.property-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.property-location {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.property-location i {
  margin-right: 8px;
  color: var(--light-accent);
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-feature i {
  color: var(--light-accent);
}

.property-btn {
  width: 100%;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.property-btn:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-medium);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.service-card p {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-card ul li {
  padding: 5px 0;
  color: var(--secondary-color);
  position: relative;
  padding-left: 20px;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Calculators Section */
.calculators {
  padding: 80px 0;
  background: var(--gray-light);
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc-tab-btn {
  background: var(--white);
  border: 2px solid var(--gray-medium);
  color: var(--secondary-color);
  padding: 15px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.calc-tab-btn.active,
.calc-tab-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

.calculator-content {
  display: none;
}

.calculator-content.active {
  display: block;
}

.calculator-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calc-header h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-header p {
  color: var(--secondary-color);
  font-size: 1rem;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(28, 93, 153, 0.1);
}

.calc-btn {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-btn:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(28, 93, 153, 0.3);
}

.calc-result {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--gray-light);
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
  display: none;
}

.calc-result.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-result h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.calc-result .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-medium);
}

.calc-result .result-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 5px;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--secondary-color);
  margin: 0;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--gray-light);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon i {
  font-size: 2rem;
  color: var(--white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--gray-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid var(--gray-medium);
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-details h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-details p {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--light-accent);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.contact-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form .form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 15px;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(28, 93, 153, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  color: var(--white);
  text-decoration: none;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 35px;
  margin-right: 12px;
  filter: brightness(0) invert(1);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  color: var(--white);
  text-decoration: none;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--secondary-color);
  padding-top: 2rem;
}

.footer-bottom-content {
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Property Modal */
.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.property-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.property-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.property-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--gray-medium);
}

.property-modal .modal-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
  padding: 5px;
}

.property-modal .modal-body {
  padding: 2rem;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* ===== CAROUSEL STYLES ===== */
.property-images-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--gray-light);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-image:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--accent-color);
  transform: scale(1.2);
}

/* ===== FULLSCREEN IMAGE MODAL ===== */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.fullscreen-modal.show {
  opacity: 1;
  visibility: visible;
}

.fullscreen-modal .fullscreen-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.fullscreen-modal .close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.fullscreen-modal .close-fullscreen:hover {
  background: white;
  transform: scale(1.1);
}

.fullscreen-modal .fullscreen-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.fullscreen-modal .fullscreen-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.fullscreen-modal .fullscreen-prev {
  left: 30px;
}

.fullscreen-modal .fullscreen-next {
  right: 30px;
}

.fullscreen-modal .fullscreen-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive styles for fullscreen modal */
@media (max-width: 768px) {
  .fullscreen-modal .close-fullscreen {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .fullscreen-modal .fullscreen-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .fullscreen-modal .fullscreen-prev {
    left: 15px;
  }
  
  .fullscreen-modal .fullscreen-next {
    right: 15px;
  }
  
  .fullscreen-modal .fullscreen-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .fullscreen-modal .fullscreen-image {
    max-width: 98%;
    max-height: 98%;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

.price-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.price-location .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.price-location .location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.features-grid .feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--gray-light);
  border-radius: 8px;
  color: var(--secondary-color);
}

.features-grid .feature i {
  color: var(--accent-color);
}

.amenities-list {
  margin-bottom: 2rem;
}

.amenities-list h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.amenity-item {
  padding: 5px 10px;
  background: var(--gray-light);
  border-radius: 15px;
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-align: center;
}

.description {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* Buttons */
.btn-primary {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--light-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(28, 93, 153, 0.3);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.text-center {
  text-align: center;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .search-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .about-content {
    gap: 2rem;
  }

  .logo-title {
    font-size: 1.2rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .cta-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-wrapper {
    height: 85px;
    padding: 0 15px;
  }

  .logo-img {
    height: 80px !important;
    width: auto;
    margin-right: 8px;
  }
  
  .header {
    padding: 0.3rem 0;
    min-height: 85px;
  }
  
  .container {
    padding: 0 10px;
    max-width: 100%;
    margin: 0;
  }
  
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .cta-text {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .search-form {
    padding: 2rem;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-actions {
    flex-direction: column;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calculator-tabs {
    flex-direction: column;
    align-items: center;
  }

  .calc-tab-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-modal .modal-content {
    width: 95%;
    margin: 20px;
  }

  .property-modal .modal-header,
  .property-modal .modal-body {
    padding: 1.5rem;
  }

  .price-location {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-actions {
    flex-direction: column;
  }

  /* WhatsApp mobile */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    height: 60px;
  }

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 15px;
    right: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 90px 0 50px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .search-form {
    padding: 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .calculator-card,
  .contact-form-container {
    padding: 2rem;
  }

  .about-actions {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .mobile-nav-link {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .mobile-nav-link i {
    width: 18px;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}
.text-primary {
  color: var(--primary-color) !important;
}
.text-accent {
  color: var(--accent-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-accent {
  background-color: var(--accent-color) !important;
}
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}
.rounded {
  border-radius: 8px !important;
}
.rounded-lg {
  border-radius: 15px !important;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s
    ease;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
  .mobile-nav-link,
  .property-btn,
  .cta-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Print optimizations */
@media print {
  .whatsapp-float,
  .header,
  .notification {
    display: none !important;
  }
}

/* ===== FAVORITES SYSTEM STYLES ===== */
.favorites-btn {
  background: none !important;
  border: none !important;
  color: #333 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.favorites-btn i {
  font-size: 16px !important;
  color: #dc3545 !important;
  transition: all 0.3s ease;
}

.favorites-btn:hover {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
}

.favorites-btn:hover i {
  color: #dc3545 !important;
  transform: scale(1.1);
}

.favorites-counter {
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  right: 2px;
  animation: pulse 0.5s ease-in-out;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Favorites Modal */
.favorites-modal-content {
  max-width: 700px;
  width: 95%;
}

.favorites-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.favorites-actions button {
  flex: 1;
  min-width: 140px;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.favorites-list {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.favorite-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: white;
  transition: all 0.3s ease;
}

.favorite-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.favorite-info h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.favorite-price {
  color: #1c5d99;
  font-weight: bold;
  font-size: 18px;
  margin: 4px 0;
}

.favorite-location {
  color: #666;
  font-size: 14px;
  margin: 4px 0;
}

.favorite-location i {
  color: #dc3545;
  margin-right: 4px;
}

.favorite-date {
  color: #999;
  font-size: 12px;
}

.favorite-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-view {
  background: #1c5d99;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.btn-view:hover {
  background: #155a8a;
}

.btn-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  background: #c82333;
}

/* Mobile responsive for favorites */
@media (max-width: 768px) {
  .favorites-btn {
    padding: 6px 8px;
    font-size: 14px;
  }
  
  .favorites-counter {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .favorites-modal-content {
    width: 98%;
    max-height: 90vh;
  }
  
  .favorites-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .favorites-actions button {
    width: 100%;
  }
  
  .favorite-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .favorite-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-view, .btn-remove {
    flex: 1;
    justify-content: center;
  }
}

/* Fix mobile share modal issues */
@media (max-width: 768px) {
  .share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 10px;
    align-items: flex-start;
    padding-top: 60px;
    z-index: 10001;
  }
  
  .share-modal-content {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .modal-actions {
    padding: 10px;
    gap: 8px;
  }
  
  .modal-actions button {
    min-height: 48px;
    font-size: 14px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .share-modal {
    padding: 10px 5px;
    padding-top: 40px;
  }
  
  .share-modal-content {
    border-radius: 8px;
  }
  
  .share-header {
    padding: 12px;
  }
  
  .share-body {
    padding: 12px;
  }
  
  .share-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .share-option {
    padding: 14px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
  
  .share-option i {
    font-size: 20px;
    margin-bottom: 0;
    min-width: 24px;
  }
  
  .share-option span {
    font-size: 14px;
    text-align: left;
  }
}

/* Ensure proper z-index stacking */
.property-modal {
  z-index: 10000;
}

.share-modal {
  z-index: 10001;
}

#favorites-modal {
  z-index: 10002;
}

/* Fix any remaining mobile modal issues */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  body.modal-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* ===== SHARE MODAL SYSTEM - RECREATED ===== */
.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-share:active {
    transform: translateY(0);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.share-modal.show .share-modal-content {
    transform: scale(1) translateY(0);
}

.share-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-header h3 i {
    color: #667eea;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.close-share-modal:hover {
    opacity: 1;
}

.share-body {
    padding: 24px;
}

.share-property-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.share-property-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.share-property-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    word-break: break-all;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.share-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 4px;
}

.share-option span {
    font-size: 13px;
    text-align: center;
}

/* Colores específicos para cada red social */
.share-option:first-child {
    border-color: #667eea;
    color: #667eea;
}

.share-option:first-child:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.share-option.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.share-option.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-option.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.share-option.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-option.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.share-option.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-option.email {
    border-color: #ea4335;
    color: #ea4335;
}

.share-option.email:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

/* Ajustar botones de acción del modal */
.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

/* Responsive para modal de compartir */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .share-header {
        padding: 20px 20px 16px;
    }
    
    .share-body {
        padding: 20px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-option {
        padding: 14px 10px;
    }
    
    .share-option i {
        font-size: 20px;
    }
    
    .share-option span {
        font-size: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
        gap: 12px;
    }
    
    .share-option i {
        font-size: 20px;
        margin-bottom: 0;
    }
}

/* Responsive para modal de compartir en móvil */
@media (max-width: 768px) {
    /* FORZAR MODAL DE COMPARTIR EN MÓVIL */
    .share-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 999999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        -webkit-overflow-scrolling: touch;
    }
    
    .share-modal.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .share-modal-content {
        background: white !important;
        border-radius: 16px !important;
        width: 95% !important;
        max-width: 400px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
        transform: scale(0.9) translateY(20px);
        transition: all 0.3s ease;
        position: relative !important;
        margin: 20px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .share-modal.show .share-modal-content {
        transform: scale(1) translateY(0) !important;
    }
    
    /* FORZAR BOTÓN COMPARTIR EN MÓVIL */
    .btn-share {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        padding: 14px 18px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        min-width: 120px !important;
        justify-content: center !important;
        min-height: 48px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .btn-share:hover,
    .btn-share:active,
    .btn-share:focus {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
        color: white !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    .share-header {
        padding: 20px 20px 16px !important;
        border-bottom: 1px solid #eee !important;
        background: white !important;
    }
    
    .share-body {
        padding: 20px !important;
        background: white !important;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .share-option {
        padding: 16px 12px !important;
        min-height: 60px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .share-option i {
        font-size: 22px !important;
    }
    
    .share-option span {
        font-size: 13px !important;
    }
    
    .modal-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .modal-actions button {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
        touch-action: manipulation !important;
    }
    
    /* PREVENIR SCROLL DEL BODY CUANDO MODAL ESTÁ ABIERTO */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification-success {
    border-left-color: #28a745;
    color: #155724;
}

.notification-error {
    border-left-color: #dc3545;
    color: #721c24;
}

.notification-warning {
    border-left-color: #ffc107;
    color: #856404;
}

.notification-info {
    border-left-color: #17a2b8;
    color: #0c5460;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1c5d99;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY & UX IMPROVEMENTS ===== */
html {
    scroll-behavior: smooth;
}

*:focus {
    outline: 2px solid #1c5d99;
    outline-offset: 2px;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
    .mobile-nav-link,
    .property-btn,
    .cta-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print optimizations */
@media print {
    .whatsapp-float,
    .header,
    .notification {
        display: none !important;
    }
}

/* ===== PROPERTY MAP STYLES ===== */
.property-map-section {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.property-map-section h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-map-section h4 i {
    color: #1c5d99;
    font-size: 16px;
}

.property-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.property-address i {
    color: #dc3545;
    font-size: 14px;
}

.property-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
    background: #f5f5f5;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.map-loading i {
    font-size: 24px;
    color: #1c5d99;
}

/* Google Maps custom styles */
.gm-style-iw {
    border-radius: 8px !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
}

.custom-info-window {
    padding: 12px;
    max-width: 250px;
}

.custom-info-window h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.custom-info-window p {
    margin: 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-info-window i {
    color: #dc3545;
}

/* Responsive para mapa */
@media (max-width: 768px) {
    .property-map-section {
        margin: 20px 0;
        padding: 16px;
    }
    
    .property-map {
        height: 250px;
    }
    
    .property-map-section h4 {
        font-size: 16px;
    }
    
    .property-address {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .property-map {
        height: 200px;
    }
    
    .property-map-section {
        padding: 12px;
    }
}