/* === Inmobiliaria Quintana - Responsive fixes === */

/* --- Header: hide duplicate site title (logo already has name) --- */
.site-title, .ast-site-title-wrap, .ast-site-identity .site-title {
  display: none !important;
}

/* --- Header: cap logo size across breakpoints --- */
.site-logo-img img,
.custom-logo,
.ast-has-custom-logo img,
.site-branding img {
  max-height: 80px !important;
  height: auto !important;
  width: auto !important;
}

/* --- Header: reduce overall padding so hero isn't covered --- */
.site-header,
.main-header-bar,
.ast-primary-header-bar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* --- Header CTA button: prevent mid-word wrap and size properly --- */
.ast-custom-button,
.ast-custom-button-link,
.ast-builder-button-container a,
header .wp-block-button__link,
header .elementor-button {
  white-space: nowrap !important;
  display: inline-block !important;
  padding: 12px 22px !important;
  line-height: 1.2 !important;
  font-size: 15px !important;
  border-radius: 6px !important;
}

/* --- Header CTA container: give it room --- */
.ast-builder-button-container,
.ast-header-button-1 {
  min-width: auto !important;
  width: auto !important;
}

/* --- Fix stacked text on far-right header button --- */
.ast-builder-layout-element .ast-custom-button {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* --- Tablet (<= 921px): ensure header CTA stays visible and usable --- */
@media (max-width: 921px) {
  .site-logo-img img,
  .custom-logo,
  .ast-has-custom-logo img {
    max-height: 60px !important;
  }
  .ast-builder-button-container,
  .ast-header-button-1 {
    display: inline-flex !important;
  }
}

/* --- Mobile (<= 544px): smaller logo, center hero buttons --- */
@media (max-width: 544px) {
  .site-logo-img img,
  .custom-logo,
  .ast-has-custom-logo img {
    max-height: 50px !important;
  }
  .elementor-widget-button .elementor-button-wrapper {
    text-align: center !important;
  }
  .elementor-button {
    display: inline-block !important;
  }
}

/* --- Elementor buttons: consistent look site-wide --- */
.elementor-button-link.elementor-button {
  white-space: nowrap !important;
  padding: 14px 28px !important;
}

/* --- Hero background overlay for legibility (header is transparent) --- */
header.site-header.ast-theme-transparent-header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0)) !important;
}

/* --- Menu: stop duplicate nav items from overlapping hero --- */
.main-header-menu > .menu-item > a {
  padding: 0 12px !important;
}

/* --- Fix hero title overlap with header on mobile --- */
@media (max-width: 921px) {
  .elementor-section.elementor-section-height-default {
    padding-top: 80px !important;
  }
}


/* === Anti-spam badge under contact form === */
.srfm-form-container { position: relative; }
.srfm-form-container::after {
  content: "🛡 Protegido contra spam — verificamos que seas una persona real";
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #4a5568;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-style: italic;
}

/* === Floating WhatsApp button === */
.iq-wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  background: #25D366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iq-wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.3); color:#fff; }
.iq-wa-float svg { width: 30px; height: 30px; fill: #fff; }
.iq-wa-float::before {
  content: "¡Chatea con nosotros!";
  position: absolute; right: 70px; bottom: 50%; transform: translateY(50%);
  background: #333; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.iq-wa-float:hover::before { opacity: 1; }
@media (max-width: 544px) {
  .iq-wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .iq-wa-float svg { width: 26px; height: 26px; }
  .iq-wa-float::before { display: none; }
}


/* Show home photos uncropped (3-column image row) */
.elementor-element-51f32f0 img,
.elementor-element-8e53c1e img,
.elementor-element-c5effc6 img {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  width: 100% !important;
}


/* Show home photos uncropped (additional gallery row) */
.elementor-element-89f0474 img,
.elementor-element-3406c83 img,
.elementor-element-3a96206 img {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  width: 100% !important;
}


/* ===== IDX SEARCH PAGE - HEADER FIX ===== */
/* Arregla el header en la pagina de resultados IDX /properties/ */

.page-id-9223372036854775807 #masthead.site-header {
  position: relative !important;
  background-color: #1d283d !important;
}
.page-id-9223372036854775807.ast-theme-transparent-header #masthead {
  position: relative !important;
  background-color: #1d283d !important;
}
.page-id-9223372036854775807 .ast-nav-menu .menu-link {
  color: rgba(255,255,255,0.9) !important;
}
.page-id-9223372036854775807 .ast-custom-button {
  background-color: #086afe !important;
  color: #ffffff !important;
}
.page-id-9223372036854775807 .site-header .custom-logo-link img {
  max-height: 80px;
  width: auto;
}