/* ===========================
   ESTILOS GENERALES
=========================== */

body {
  padding-top: 72px;
  background-color: #f5f7fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  margin: 0;
}

/* Contenedor principal para que el footer no suba */
.page-wrapper {
  min-height: 70vh;
}

/* ===========================
   NAVBAR / LOGO
=========================== */

.navbar {
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  height: 72px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo en el header */
.logo-img {
  display: block;
  max-height: 200px;   /* tamaño en escritorio */
  width: auto;
}

@media (max-width: 991.98px) {
  .navbar {
    height: auto;
  }
  .logo-img {
    max-height: 64px;  /* 🔹 más grande en móviles */
  }
}

/* ===========================
   HERO (FONDO AZUL + BOGOTÁ)
=========================== */

/* El hero usa class="hero" en index.php */
.hero {
  padding: 80px 0 50px;

  /* Fallback sólido antes del rgba (evita la advertencia) */
  background-color: #0b1120;

  /* Fondo compuesto:
     1) capa oscura transparente para legibilidad
     2) foto de Bogotá de fondo */
  background-image:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.70),
      rgba(15, 23, 42, 0.70)
    ),
    url('../images/bogota-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f9fafb; /* texto blanco en todo el hero */
}

.hero-title {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
}

.hero p.lead {
  font-size: 1.1rem;
}

/* Por si tu hero usa contenido en columnas (texto + formulario) */
.hero .form-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

/* ===========================
   TARJETAS DE PROPIEDADES
=========================== */

.property-card {
  border-radius: 1rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.property-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

/* Estados de operación */
.badge-venta {
  background-color: #2563eb;
}

.badge-arriendo {
  background-color: #16a34a;
}

/* ===========================
   FORMULARIOS / CARDS
=========================== */

.form-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===========================
   TABLAS DASHBOARD
=========================== */

.table-dashboard th,
.table-dashboard td {
  vertical-align: middle;
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP (general)
=========================== */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 1000;
  display: flex;              /* 🔹 centro el icono */
  align-items: center;
  justify-content: center;
}

.whatsapp-float svg {
  width: 26px;                /* 🔹 tamaño del icono */
  height: 26px;
  fill: currentColor;
}

/* ===========================
   FOOTER
=========================== */

footer.bg-dark {
  background-color: #0f172a !important;
  color: #e5e7eb;
}

footer a {
  color: #9ca3af;
}

footer a:hover {
  color: #e5e7eb;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 767.98px) {
  body {
    padding-top: 64px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}

.badge-op {
  background: #198754;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.price-muted {
  opacity: 0.6;
  text-decoration: line-through;
}

.status-note {
  font-size: 0.85rem;
  color: #dc3545;
}

/* ===== Hero y tarjeta de búsqueda ===== */
.hero-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-title {
  font-size: 2.2rem;
}

/* Reforzamos la card del hero (aquí se pisa el anterior, pero con mismos valores) */
.form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ===== Tarjetas de propiedad ===== */
.property-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.6);
}

.property-image {
  height: 220px;
  object-fit: cover;
}

/* ===== Badges venta / arriendo ===== */
.badge-venta {
  background: #16a34a;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-arriendo {
  background: #2563eb;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Badge estado (vendida, arrendada, reservada) ya usa bg-* de Bootstrap,
   pero puedes suavizarlo un poco: */
.badge.bg-danger,
.badge.bg-primary,
.badge.bg-warning {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ===== Filtros avanzados en propiedades.php ===== */
.filter-panel {
  background: #f9fafb;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Chips de características */
.filter-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.filter-chip .form-check-input {
  cursor: pointer;
}

.filter-chip .form-check-label {
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-chip:hover {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Cuando el checkbox está seleccionado, resaltamos el chip */
.filter-chip .form-check-input:checked ~ .form-check-label {
  font-weight: 600;
}

/* Asegura que los filtros luzcan bien en móviles */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .property-image {
    height: 190px;
  }
}

/* =====================================================
   LIGHTBOX – Imagen a pantalla completa
   ===================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  z-index: 1050;
}

.lightbox-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 32px;
  cursor: pointer;
  z-index: 1060;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: none;
  color: #e5e7eb;
  font-size: 30px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1060;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Hover suave en botones */
.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

/* =====================================================
   BOTÓN FLOTANTE – Compartir por WhatsApp (propiedad)
   ===================================================== */
.wa-floating-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  font-size: 26px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.wa-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

/* ===== Galería de propiedad: foto principal y miniaturas ===== */
.property-main-photo {
  width: 100%;
  height: 380px;              /* altura fija para que siempre se vea igual */
  object-fit: cover;          /* recorta la imagen para llenar el espacio */
  border-radius: 10px;
  cursor: zoom-in;
}

/* Contenedor de miniaturas */
.property-thumbs-row {
  margin-top: 8px;
}

/* Miniaturas: todas con la misma proporción */
.property-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.property-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* En pantallas pequeñas, bajamos un poco las alturas */
@media (max-width: 768px) {
  .property-main-photo {
    height: 260px;
  }

  .property-thumb {
    width: 78px;
    height: 60px;
  }
}

/* ===== Características principales en ficha de propiedad ===== */
.property-features {
  background: #f9fafb;
  border-radius: 18px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.feature-pill {
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.feature-label {
  color: #6b7280;
  font-weight: 500;
}

.feature-value {
  font-weight: 600;
  color: #111827;
}

/* Tag verde para características tipo "Sí" */
.feature-tag-yes {
  background: #dcfce7;
  color: #166534;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Ajuste en móviles: que respiren mejor */
@media (max-width: 768px) {
  .property-features {
    padding: 12px 10px;
  }
}

/* ===== Píldoras de características usadas como filtros (propiedades.php) ===== */
.property-features-filters {
  padding: 10px 12px;
}

.feature-pill-filter {
  cursor: pointer;
}

/* Que el checkbox no rompa el diseño dentro de la píldora */
.feature-pill-filter .form-check-input {
  margin-right: 8px;
  cursor: pointer;
}

/* Cuando el filtro está activo, resaltamos un poco el texto */
.feature-pill-filter .form-check-input:checked ~ .feature-label {
  font-weight: 600;
  color: #111827;
}

/* Logo NAV */
.logo-img--nav{
  height: 56px;        /* tamaño normal móvil/tablet */
  width: auto;
  max-height: none;    /* evita que una regla vieja lo haga pequeño */
}

/* En desktop más compacto y elegante */
@media (min-width: 992px){
  .logo-img--nav{
    height: 64px;
  }
}

/* iPhone / pantallas pequeñas: más grande aún */
@media (max-width: 430px){
  .logo-img--nav{
    height: 74px;
  }
}

/* Banner Mantenimientos */
.maintenance-banner{
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13,110,253,.10), rgba(25,135,84,.08));
}

.maintenance-icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,.12);
  flex: 0 0 auto;
}

.maintenance-icon svg{
  width: 22px;
  height: 22px;
  fill: rgba(13,110,253,.9);
}

@media (max-width: 575px){
  .maintenance-banner .card-body{ padding: 18px !important; }
}

