/* ==========================================================================
   INMOPRO - REAL ESTATE DESIGN SYSTEM
   Palette: Executive Navy (#0B192C), Luxury Gold / Warm Amber (#D97706, #D4AF37) & Emerald (#059669)
   Mobile-First & Touch-Optimized
   ========================================================================== */

:root {
  /* Brand Colors - Formal & Striking Real Estate */
  --primary: #0B192C;          /* Deep Corporate Navy */
  --primary-light: #1E3E62;    /* Executive Slate Blue */
  --primary-dark: #070F1A;     /* Midnight Navy */
  
  --secondary: #1E3E62;
  
  --accent: #D4AF37;           /* Luxury Real Estate Gold */
  --accent-hover: #B89628;
  --accent-warm: #D97706;      /* Amber / Warm Gold for CTA and Sale badges */
  --accent-warm-hover: #B45309;
  
  --success: #059669;          /* Emerald Green (Pricing, Active status) */
  --success-light: #ECFDF5;
  --success-dark: #047857;
  
  --danger: #DC2626;           /* Location marker red */
  
  --dark: #0F172A;             /* Slate 900 for high-contrast crisp text */
  --text-muted: #64748B;       /* Slate 500 for secondary text */
  --light: #F8FAFC;            /* Slate 50 pearl background */
  --border: #E2E8F0;           /* Slate 200 border */
  --surface: #FFFFFF;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 25, 44, 0.12);
  --shadow-hover: 0 20px 35px -5px rgba(11, 25, 44, 0.16), 0 10px 15px -5px rgba(11, 25, 44, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 15px rgba(11, 25, 44, 0.04);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand i {
  color: var(--accent-warm);
}

.navbar-custom .nav-link {
  font-weight: 600;
  color: #334155;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary);
  background-color: rgba(30, 62, 98, 0.06);
}

/* Navbar toggle button */
.navbar-toggler {
  border: 1.5px solid var(--border);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-custom {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #B45309 100%);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-custom:hover {
  background: linear-gradient(135deg, #F59E0B 0%, var(--accent-warm) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-custom:active {
  transform: translateY(0);
}

.btn-navy {
  background: var(--primary);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-navy:hover {
  background: var(--primary-light);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.3);
}

.btn-outline-navy {
  border: 1.5px solid var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background-color: transparent;
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION (RESPONSIVE & MOBILE-FIRST)
   ========================================================================== */
.hero {
  position: relative;
  min-height: auto;
  padding: 3rem 0 3.5rem;
  background: linear-gradient(135deg, rgba(7, 15, 26, 0.92) 0%, rgba(15, 37, 55, 0.88) 100%), 
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
}

@media (min-width: 992px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
}

.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.hero h1 span.highlight {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SEARCH BOX (MOBILE-FRIENDLY & TOUCH-OPTIMIZED)
   ========================================================================== */
.search-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  text-align: left;
}

@media (min-width: 768px) {
  .search-box {
    padding: 1.6rem;
  }
}

.search-box .form-label {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
}

.search-box .form-select,
.search-box .form-control {
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  background-color: #F8FAFC;
  transition: all 0.2s ease;
}

.search-box .form-select:focus,
.search-box .form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Live Neighborhood Dropdown */
.nb-dropdown-list {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11, 25, 44, 0.18);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1060;
}

.nb-item-btn {
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  border: none;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
  width: 100%;
  text-align: left;
}

.nb-item-btn:hover,
.nb-item-btn.active {
  background-color: #FEF3C7;
  color: #92400E;
}

.nb-item-btn:hover strong,
.nb-item-btn.active strong {
  color: #92400E;
}

/* Price Range Slider & Interactive Box */
.form-range {
  height: 1.5rem;
  padding: 0;
  cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: -0.4rem;
  background: #0B192C;
  border: 2.5px solid #D97706;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.form-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.35);
}
.form-range::-moz-range-thumb {
  width: 1.3rem;
  height: 1.3rem;
  background: #0B192C;
  border: 2.5px solid #D97706;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: transform 0.15s ease;
}
.form-range::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
}

/* ==========================================================================
   PROPERTY CARDS (LUXURY REAL ESTATE)
   ========================================================================== */
.property-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 119, 6, 0.35);
}

.property-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 215px;
  background-color: #E2E8F0;
}

@media (min-width: 992px) {
  .property-card-img-wrapper {
    height: 230px;
  }
}

.property-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Operation Badges */
.badge-op {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.badge-op-alquiler {
  background: linear-gradient(135deg, #1E3E62 0%, #0B192C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-op-venta {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-op-anticretico {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-op-mixta {
  background: linear-gradient(135deg, #1E3E62 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Body Details */
.property-card .card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.loc-breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #FEF2F2;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #FEE2E2;
  margin-bottom: 0.45rem;
  max-width: 100%;
}

.property-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.address-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369A1;
  background-color: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* Amenities Chips */
.amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 0.9rem;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.amenity-chip i {
  color: var(--primary-light);
}

/* Price Box */
.card-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.card-price-period {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (MOBILE & DESKTOP)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #FFFFFF !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1080;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  background: #1EBE5D;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   MULTI-AGENT WHATSAPP WIDGET
   ========================================================================== */
.whatsapp-multi-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1080;
}

@media (max-width: 767.98px) {
  .whatsapp-multi-widget {
    bottom: 78px !important;
    right: 14px !important;
  }
}

.whatsapp-multi-widget .whatsapp-float-btn {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  border: none;
  cursor: pointer;
  outline: none;
}

.wa-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.whatsapp-multi-card {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 330px;
  max-width: calc(100vw - 28px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(11, 25, 44, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  z-index: 1085;
  animation: waCardSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waCardSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whatsapp-card-header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: #ffffff;
  padding: 14px 16px;
  position: relative;
}

.whatsapp-header-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.online-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-close-wa {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-close-wa:hover {
  color: #ffffff;
}

.whatsapp-card-body {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.whatsapp-agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  cursor: pointer;
}

.whatsapp-agent-item:hover,
.whatsapp-agent-item:active {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.whatsapp-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.avatar-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background-color: #25D366;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.whatsapp-agent-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.2;
}

.whatsapp-agent-role {
  font-weight: 600;
  color: #1e3e62;
  font-size: 0.78rem;
  line-height: 1.2;
}

.whatsapp-agent-desc {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 2px;
}

.whatsapp-agent-arrow {
  color: #94a3b8;
  font-size: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.whatsapp-agent-item:hover .whatsapp-agent-arrow {
  color: #059669;
  transform: translateX(3px);
}

/* ==========================================================================
   FOOTER (EXECUTIVE DARK NAVY)
   ========================================================================== */
footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--accent-warm);
}

footer h3,
footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.2px;
}

footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

footer a {
  color: #94A3B8;
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   BARRA SUPERIOR AZUL (TOPBAR)
   ========================================================================== */
.topbar-blue {
  background: #122C42;
  color: #ffffff;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1040;
}

.topbar-info-item {
  letter-spacing: 0.2px;
}

.topbar-info-item i {
  font-size: 0.85rem;
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
  vertical-align: middle;
}

/* Botones de Redes Sociales */
.topbar-socials {
  gap: 0.5rem;
}

.topbar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.topbar-social-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.topbar-social-btn.fb:hover {
  color: #1877F2 !important;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

.topbar-social-btn.ig:hover {
  color: #E1306C !important;
  box-shadow: 0 4px 10px rgba(225, 48, 108, 0.35);
}

.topbar-social-btn.tk:hover {
  color: #000000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Selector de Idioma (ES / EN) */
.topbar-lang-box {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-topbar-lang {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.btn-topbar-lang:hover {
  color: #ffffff;
}

.btn-topbar-lang.active {
  background: #ffffff;
  color: #122C42;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.topbar-lang-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  user-select: none;
}

@media (max-width: 767.98px) {
  .topbar-blue {
    font-size: 0.76rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  .topbar-blue .container {
    justify-content: center !important;
    text-align: center !important;
    gap: 0.35rem !important;
  }
  .topbar-left,
  .topbar-right {
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  .topbar-social-btn {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   CAMUFLAJE DE GOOGLE TRANSLATE (OCULTAR LOGOS, BANNERS Y POPUPS DE GOOGLE)
   ========================================================================== */
/* Bloquear la barra superior que empuja la web */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate,
iframe[id^=":"][id$=".container"],
.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

/* Ocultar el gadget y dropdown predeterminado de Google */
#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple,
.skiptranslate.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar globos de texto flotantes al pasar el mouse por texto traducido */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar tarjetas flotantes de las nuevas versiones de Google Translate */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-ZVi9od-aZ2wEe,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
  visibility: hidden !important;
}

/* Eliminar resaltados de texto traducido */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ==========================================================================
   BUSCADOR INTELIGENTE Y REGISTRO DE BARRIOS (GLOBAL FRONTEND)
   ========================================================================== */
.nb-search-wrap {
  position: relative;
}
.nb-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1060;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  border: 1px solid #cbd5e1;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 4px;
}
.nb-dropdown-item {
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 0.85rem;
}
.nb-dropdown-item:hover, .nb-dropdown-item.active {
  background-color: #f1f5f9;
}
.nb-new-item {
  background-color: #fefce8;
  border-top: 1px dashed #facc15;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nb-new-item:hover {
  background-color: #fef08a;
}

/* ==========================================================================
   MOBILE APP (APK-LIKE) INTERFACE & PWA STYLES
   ========================================================================== */

/* 1. Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 -4px 22px rgba(15, 23, 42, 0.08);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  user-select: none;
  -webkit-user-select: none;
  overflow: visible !important;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
  padding: 4px 0 2px;
  border-radius: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item.active {
  color: #0b192c;
  font-weight: 700;
}

.mobile-nav-item.active i {
  color: #d97706;
  transform: translateY(-2px);
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

/* Central Action Button (+ Publicar) */
.mobile-nav-item.fab-container {
  overflow: visible !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav-fab {
  width: 50px;
  height: 50px;
  margin-top: -24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  border: 3px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding: 0;
  outline: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-fab i {
  margin: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
  font-size: 1.4rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transform: none !important;
}

.mobile-nav-fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.mobile-nav-item.fab-container span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #d97706;
  margin-top: 2px;
  line-height: 1.1;
  text-align: center;
}

/* 2. Padding para que el contenido no quede tapado por la barra inferior */
@media (max-width: 991.98px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  body {
    padding-bottom: 64px !important; /* Altura exacta de la barra inferior móvil */
  }
  
  /* Ocultar botón flotante de WhatsApp en móvil (ahora integrado en la cabecera superior y menú) */
  .whatsapp-multi-widget,
  .whatsapp-float-btn {
    display: none !important;
  }

  /* Header móvil compacto */
  .navbar-custom {
    padding: 0.5rem 0 !important;
  }
  .navbar-brand img {
    max-height: 32px !important;
  }

  /* Ocultar barra azul en móvil para dar espacio limpio de app */
  .topbar-blue {
    display: none !important;
  }

  /* Ocultar pie de página tradicional en móvil para lograr sensación 100% APK */
  footer {
    display: none !important;
  }

  /* Ajustar padding final de la última sección en móvil para eliminar huecos blancos */
  section.py-5:last-of-type,
  div.py-5:last-of-type {
    padding-bottom: 1.25rem !important;
  }

  /* ==========================================
     PÁGINA DETALLE DE INMUEBLE EN MÓVIL
     ========================================== */
  .property-detail-container {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    margin-top: 0.25rem !important;
  }

  .loc-breadcrumb-pill-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #FEF2F2;
    color: #DC2626;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid #FEE2E2;
    max-width: 100%;
    line-height: 1.35;
    word-break: break-word;
  }

  .prop-mobile-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 0.45rem;
    word-break: break-word;
  }

  .prop-mobile-price-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #bbf7d0;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
  }

  .prop-mobile-price-main {
    font-size: 1.65rem;
    font-weight: 800;
    color: #059669;
    line-height: 1.15;
    display: inline-block;
  }

  #propertyCarousel .carousel-inner {
    height: 260px !important;
    min-height: 220px !important;
    max-height: 280px !important;
    border-radius: 14px;
  }

  .prop-mobile-spec-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.2s ease;
  }

  .property-detail-page .card-body {
    padding: 1.15rem !important;
  }
}

/* 3. PWA Install Banner & Bottom Sheet */
.pwa-install-banner {
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1035;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUpPwa 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpPwa {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.pwa-install-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 50rem;
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.pwa-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. Bottom Sheet Modal (Exclusivo para Móvil < 768px) */
@media (max-width: 767.98px) {
  .modal-bottom-sheet .modal-dialog {
    margin: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-bottom-sheet.show .modal-dialog {
    transform: translateY(0);
  }

  .modal-bottom-sheet .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2) !important;
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  .sheet-handle {
    width: 40px;
    height: 5px;
    background-color: #cbd5e1;
    border-radius: 3px;
    margin: 10px auto 14px;
    display: block;
  }
}

/* Modal en Pantallas de Escritorio (Web >= 768px): Centrado al Medio Perfecto */
@media (min-width: 768px) {
  .modal-bottom-sheet .sheet-handle {
    display: none !important;
  }

  .modal-bottom-sheet .modal-dialog {
    max-width: 490px;
    margin: 1.75rem auto !important;
    position: relative !important;
    transform: none !important;
  }

  .modal-bottom-sheet.fade .modal-dialog {
    transition: transform 0.2s ease-out;
  }

  .modal-bottom-sheet .modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    padding-bottom: 0 !important;
  }
}

/* 5. Chips Horizontales Táctiles (Slider de Categorías) */
.touch-pills-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.touch-pills-slider::-webkit-scrollbar {
  display: none;
}

.touch-pill {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.touch-pill.active,
.touch-pill:active {
  background: #0b192c;
  color: #ffffff;
  border-color: #0b192c;
}

/* 6. Cajón / Offcanvas móvil de menú */
.offcanvas-mobile-app {
  border-radius: 0 24px 24px 0;
  border: none;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.offcanvas-mobile-app .list-group-item {
  border: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.offcanvas-mobile-app .list-group-item:hover,
.offcanvas-mobile-app .list-group-item:active {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* 7. Bottom Sheet para Menú Móvil (Iconografía sobria plomo/grafito) */
.mobile-menu-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.mobile-menu-sheet-item:hover,
.mobile-menu-sheet-item:active {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.menu-sheet-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b; /* Gris plomo sobrio y elegante coincidente con la barra inferior */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: color 0.2s, border-color 0.2s;
}

.mobile-menu-sheet-item:hover .menu-sheet-icon,
.mobile-menu-sheet-item:active .menu-sheet-icon {
  color: #0b192c;
  border-color: #cbd5e1;
}

/* 8. Botón Circular de Idioma con Bandera para Cabecera Móvil (1 Toque) */
.mobile-lang-btn {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:active {
  background-color: #f1f5f9;
  transform: scale(0.92);
}

.mobile-lang-btn span {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   9. SISTEMA DE NOTIFICACIONES EN TIEMPO REAL (AUTO-CIERRE 3s & APK APP FEEL)
   ========================================================================== */
#realtime-toast-container {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding: 0 12px;
}

.realtime-ad-toast {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  background: rgba(11, 25, 44, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 119, 6, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #ffffff;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
  transform: translateY(-130%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  position: relative;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}

.realtime-ad-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.realtime-ad-toast.hide {
  transform: translateY(-130%);
  opacity: 0;
}

.realtime-toast-body {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
}

.realtime-toast-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.realtime-toast-img-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(11, 25, 44, 0.9) 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 1.4rem;
}

.realtime-toast-info {
  flex-grow: 1;
  min-width: 0;
}

.realtime-toast-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 2px;
}

.realtime-toast-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
  display: inline-block;
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.realtime-toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.realtime-toast-meta {
  font-size: 0.74rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.realtime-toast-price {
  color: #34d399;
  font-weight: 700;
}

.realtime-toast-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
}

/* Barra de progreso visual que se consume en 3 segundos */
.realtime-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  width: 100%;
  transform-origin: left;
  animation: shrinkToastProgress 3s linear forwards;
}

@keyframes shrinkToastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Punto Rojo / Badge en la barra inferior móvil */
.mobile-nav-item {
  position: relative;
}

.mobile-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 18px);
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
  animation: pulseBadgeDot 1.8s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes pulseBadgeDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Punto indicador en navbar de escritorio */
.nav-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  animation: pulseDot 1.2s infinite;
}


