/* ============================================
   MOONEY BIENES RAICES — Design System
   Bootstrap 5.3 + Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --mooney-orange: #f38120;
  --mooney-orange-hover: #e0710f;
  --mooney-orange-light: rgba(243, 129, 32, 0.1);
  --mooney-dark: #1a1a2e;
  --mooney-gray-900: #212529;
  --mooney-gray-700: #495057;
  --mooney-gray-400: #ced4da;
  --mooney-gray-200: #e9ecef;
  --mooney-gray-100: #f8f9fa;
  --mooney-white: #ffffff;
  --mooney-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mooney-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --mooney-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --mooney-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --mooney-radius: 12px;
  --mooney-radius-sm: 8px;
  --mooney-radius-lg: 16px;
  --mooney-transition: all 0.3s ease;
  --font-primary: 'Inter', sans-serif;
}

/* --- Base / Typography --- */
body {
  font-family: var(--font-primary);
  color: var(--mooney-gray-900);
  background-color: var(--mooney-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--mooney-dark);
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

a {
  color: var(--mooney-orange);
  text-decoration: none;
  transition: var(--mooney-transition);
}

a:hover {
  color: var(--mooney-orange-hover);
}

/* --- Section Titles --- */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mooney-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mooney-orange);
  border-radius: 2px;
}

/* --- Navbar --- */
.navbar-mooney {
  background-color: var(--mooney-orange);
  padding: 0.75rem 0;
  transition: var(--mooney-transition);
  min-height: 80px;
}

.navbar-mooney .navbar-brand img {
  height: 45px;
  width: auto;
  transition: var(--mooney-transition);
}

.navbar-mooney .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  transition: var(--mooney-transition);
}

.navbar-mooney .nav-link:hover,
.navbar-mooney .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--mooney-radius-sm);
}

.navbar-mooney .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.4rem 0.6rem;
}

.navbar-mooney .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar scrolled state */
.navbar-mooney.scrolled {
  background-color: rgba(243, 129, 32, 0.97);
  box-shadow: var(--mooney-shadow);
  padding: 0.5rem 0;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.6) 0%,
    rgba(26, 26, 46, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Search Form --- */
.search-card {
  background: var(--mooney-white);
  border-radius: var(--mooney-radius-lg);
  box-shadow: var(--mooney-shadow-lg);
  padding: 2rem;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.search-card .form-select {
  height: 50px;
  border: 2px solid var(--mooney-gray-200);
  border-radius: var(--mooney-radius-sm);
  font-size: 0.95rem;
  color: var(--mooney-gray-700);
  transition: var(--mooney-transition);
  background-color: var(--mooney-gray-100);
}

.search-card .form-select:focus {
  border-color: var(--mooney-orange);
  box-shadow: 0 0 0 0.2rem var(--mooney-orange-light);
}

/* --- Toggle Filters --- */
.btn-toggle-filters {
  color: var(--mooney-orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--mooney-transition);
}

.btn-toggle-filters:hover {
  color: var(--mooney-orange-hover);
}

.search-card .form-control {
  height: 50px;
  border: 2px solid var(--mooney-gray-200);
  border-radius: var(--mooney-radius-sm);
  background-color: var(--mooney-gray-100);
  transition: var(--mooney-transition);
}

.search-card .form-control:focus {
  border-color: var(--mooney-orange);
  box-shadow: 0 0 0 0.2rem var(--mooney-orange-light);
}

/* --- Buttons --- */
.btn-mooney {
  background: var(--mooney-orange);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--mooney-radius-sm);
  transition: var(--mooney-transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-mooney:hover {
  background: var(--mooney-orange-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--mooney-shadow);
}

.btn-mooney-outline {
  background: transparent;
  color: var(--mooney-orange);
  border: 2px solid var(--mooney-orange);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--mooney-radius-sm);
  transition: var(--mooney-transition);
}

.btn-mooney-outline:hover {
  background: var(--mooney-orange);
  color: white;
}

/* --- Property Cards --- */
.property-card {
  background: var(--mooney-white);
  border-radius: var(--mooney-radius);
  overflow: hidden;
  box-shadow: var(--mooney-shadow-sm);
  transition: var(--mooney-transition);
  border: none;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mooney-shadow-hover);
}

.property-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.property-card .card-img-container .carousel,
.property-card .card-img-container .carousel-inner,
.property-card .card-img-container .carousel-item {
  height: 100%;
}

.property-card .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .carousel-dots {
  opacity: 1;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: white;
}

.property-card .property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--mooney-orange);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.property-card .property-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26, 26, 46, 0.85);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: var(--mooney-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
}

.property-card .card-body {
  padding: 1.25rem;
}

.property-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--mooney-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card .property-location {
  font-size: 0.85rem;
  color: var(--mooney-gray-700);
  margin-bottom: 0.75rem;
}

.property-card .property-location i {
  color: var(--mooney-orange);
  margin-right: 4px;
}

.property-card .property-features {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--mooney-gray-700);
  border-top: 1px solid var(--mooney-gray-200);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Favorites button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: var(--mooney-transition);
  font-size: 1.1rem;
  color: var(--mooney-gray-700);
}

.fav-btn:hover {
  background: white;
  transform: scale(1.15);
}

.fav-btn.active {
  color: #e74c3c;
}

.fav-btn.active i {
  font-weight: 900;
}

.fav-btn.active i::before {
  content: '\F415';
}

@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.fav-btn.pop {
  animation: favPop 0.3s ease;
}

/* Navbar fav badge */
.nav-fav-badge {
  position: relative;
}

.nav-fav-count {
  position: absolute;
  top: 0;
  right: -4px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.property-card .property-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-card .property-features i {
  color: var(--mooney-orange);
  font-size: 0.9rem;
}

/* --- Services Cards --- */
.service-card {
  background: var(--mooney-white);
  border-radius: var(--mooney-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--mooney-shadow-sm);
  transition: var(--mooney-transition);
  border: none;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mooney-shadow);
  border-bottom: 3px solid var(--mooney-orange);
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--mooney-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--mooney-transition);
}

.service-card .service-icon i {
  font-size: 1.75rem;
  color: var(--mooney-orange);
}

.service-card:hover .service-icon {
  background: var(--mooney-orange);
}

.service-card:hover .service-icon i {
  color: white;
}

.service-card h5 {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Detail Page --- */
.detail-carousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--mooney-radius);
}

.detail-carousel .carousel-control-prev-icon,
.detail-carousel .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  background-size: 50%;
  padding: 0.5rem;
}

.detail-info-card {
  background: var(--mooney-white);
  border-radius: var(--mooney-radius);
  box-shadow: var(--mooney-shadow);
  padding: 2rem;
}

.detail-info-card h3 {
  color: var(--mooney-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.detail-info-card .detail-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mooney-orange);
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.detail-features .feature-item i {
  color: var(--mooney-orange);
  width: 20px;
}

.detail-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mooney-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mooney-orange);
  margin-bottom: 1rem;
}

/* WhatsApp button in detail */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--mooney-transition);
  border: none;
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp img {
  width: 24px;
  height: 24px;
}

/* --- Pagination --- */
.pagination .page-link {
  border: none;
  color: var(--mooney-gray-700);
  font-weight: 600;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  margin: 0 3px;
  transition: var(--mooney-transition);
}

.pagination .page-link:hover {
  background: var(--mooney-orange-light);
  color: var(--mooney-orange);
}

.pagination .page-item.active .page-link {
  background: var(--mooney-orange);
  color: white;
}

/* --- Contact Section --- */
.contact-section {
  background: var(--mooney-gray-100);
  padding: 5rem 0;
}

/* --- Footer --- */
.footer-mooney {
  background: var(--mooney-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-mooney h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-mooney a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--mooney-transition);
}

.footer-mooney a:hover {
  color: var(--mooney-orange);
}

.footer-mooney .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-mooney .footer-contact-item i {
  color: var(--mooney-orange);
  font-size: 1.1rem;
  width: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 0.5rem;
  transition: var(--mooney-transition);
}

.footer-social a:hover {
  background: var(--mooney-orange);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Share Bar --- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--mooney-gray-700);
  font-weight: 500;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--mooney-transition);
  text-decoration: none;
}

.share-wa { background: #25d366; color: white; }
.share-wa:hover { background: #1da851; color: white; transform: translateY(-2px); }
.share-fb { background: #1877f2; color: white; }
.share-fb:hover { background: #1565c0; color: white; transform: translateY(-2px); }
.share-copy { background: var(--mooney-gray-200); color: var(--mooney-gray-700); }
.share-copy:hover { background: var(--mooney-orange); color: white; transform: translateY(-2px); }

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 1rem;
  max-width: 85vw;
  overflow-x: auto;
  padding: 4px 0;
}

.lightbox-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  outline: 2px solid var(--mooney-orange);
}

@media (max-width: 767.98px) {
  .lightbox-img { max-width: 95vw; max-height: 60vh; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-thumb { width: 45px; height: 35px; }
}

/* --- Contact Form --- */
.contact-form .form-floating > .form-control,
.contact-form .form-floating > textarea.form-control {
  border: 2px solid var(--mooney-gray-200);
  border-radius: var(--mooney-radius-sm);
  transition: var(--mooney-transition);
}

.contact-form .form-floating > .form-control:focus,
.contact-form .form-floating > textarea.form-control:focus {
  border-color: var(--mooney-orange);
  box-shadow: 0 0 0 0.2rem var(--mooney-orange-light);
}

.contact-form .form-floating > label {
  color: var(--mooney-gray-700);
}

.contact-form-success {
  text-align: center;
  padding: 2rem;
}

.contact-form-success i {
  font-size: 3rem;
  color: #25d366;
}

/* --- WhatsApp Chat Widget --- */
.wa-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.wa-widget-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--mooney-transition);
  animation: waPulse 2s infinite;
  border: none;
  text-decoration: none;
}

.wa-widget-btn:hover {
  transform: scale(1.1);
  color: white;
}

.wa-widget-btn.active {
  animation: none;
  background: #128c4e;
}

/* Notification badge */
.wa-widget-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: badgeBounce 2s ease infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Chat window */
.wa-chat {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: var(--mooney-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.5) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.wa-chat.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Chat header */
.wa-chat-header {
  background: #075e54;
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.wa-chat-header-info h6 {
  color: white;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.wa-chat-header-info small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.wa-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.wa-chat-close:hover {
  color: white;
}

/* Chat body (WhatsApp style) */
.wa-chat-body {
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23d4cfc6' opacity='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23p)' width='400' height='400'/%3E%3C/svg%3E");
  padding: 1.25rem;
  min-height: 120px;
}

.wa-chat-bubble {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 12px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: var(--mooney-gray-900);
  line-height: 1.4;
  position: relative;
}

.wa-chat-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-right: 8px solid white;
  border-bottom: 8px solid transparent;
}

.wa-chat-bubble small {
  display: block;
  text-align: right;
  color: #999;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* Chat footer / input */
.wa-chat-footer {
  padding: 0.75rem;
  background: #f0f0f0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.wa-chat-footer textarea {
  flex: 1;
  border: none;
  background: white;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  resize: none;
  max-height: 80px;
  outline: none;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.wa-chat-footer textarea::placeholder {
  color: #999;
}

.wa-chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.wa-chat-send:hover {
  background: #1da851;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

@media (max-width: 767.98px) {
  .wa-widget {
    bottom: 20px;
    right: 20px;
  }

  .wa-widget-btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .wa-chat {
    bottom: 65px;
    width: calc(100vw - 40px);
  }
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback */
@media (scripting: none) {
  .fade-up { opacity: 1; transform: none; }
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Not Available Banner --- */
.not-available-banner {
  text-align: center;
  padding: 4rem 2rem;
}

.not-available-banner h2 {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mooney-dark);
}

/* --- Map Section --- */
.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: var(--mooney-radius);
}

/* --- Gallery --- */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--mooney-transition);
}

.gallery-item img:hover {
  transform: scale(1.02);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .search-card {
    margin-top: -30px;
    padding: 1.5rem;
  }

  .detail-carousel .carousel-item img {
    height: 300px;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 50vh;
  }

  .search-card {
    margin-top: -20px;
    padding: 1.25rem;
  }

  .property-card .card-img-container {
    height: 180px;
  }

  .wa-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Utility: spacing for fixed navbar --- */
.page-offset {
  padding-top: 100px;
}
