:root {
  --bs-body-bg: #f3f4f6;
}
html,
body {
  height: 100%;
  margin: 0;
}
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
}
/* Footer pegado abajo aunque haya pocos resultados: el navbar queda fuera de .wrapper,
   así que el body reparte la altura entre ambos en vez de dar 100% al wrapper. */
body.landing-sticky-footer {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
}
body.landing-sticky-footer > .wrapper {
  flex: 1 0 auto;
  min-height: 0;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #f3f4f6;
}
header .container {
  position: relative;
  z-index: 6;
}
header {
  z-index: 6;
}
.card-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.status-badge {
  background-color: var(--corp-color);
  color: white;
  font-size: 0.9rem;
}
.card-price {
  color: var(--corp-color);
  font-weight: bold;
}
.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 5.5em;
  /* opcional para mayor consistencia */
}
.footer {
  padding: 20px;
}
.card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.card-img-top {
  height: 200px;
  /* o el alto que prefieras */
  object-fit: cover;
  width: 100%;
}
.active > .page-link,
.page-link.active {
  z-index: 1 !important;
  color: var(--bs-pagination-active-color);
  background-color: var(--corp-color);
  border-color: var(--corp-color);
}
.page-link {
  color: black;
}
.form-label {
  color: white;
}
.form-contact-label {
  color: white;
}
header.bg-dark {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  /* ajusta según la altura deseada */
  padding-bottom: 1rem;
  z-index: 10 !important;
}
.pagination {
  position: relative;
  z-index: 4 !important;
}
#scrollTopButton {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: var(--corp-color);
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  transition: opacity 0.3s ease;
}
#scrollTopButton:hover {
  background-color: #333;
}
.filtros {
  background-color: var(--corp-color);
  padding: 1rem;
  border-radius: 10px;
}
.header-text {
  color: var(--corp-color);
}
.primary-logo {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: min(100%, calc(100vw - 2rem));
  object-fit: contain;
  flex-shrink: 1;
}
.logo-home {
  max-height: 130px;
}
.primary-logo-compact {
  max-height: 80px;
}
.function-button {
  background-color: black;
  color: white;
  border: 1px solid white;
  border-radius: 5px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}
.function-button:hover {
  font-weight: bold;
  transform: scale(1.05);
}
.see-more-btn:hover {
  background-color: var(--corp-color);
  color: white !important;
}
.request-form {
  background-color: var(--corp-color);
  color: white !important;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 5rem;
}
#scrollBottomButton {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  background-color: var(--corp-color);
  color: white;
  border: none;
  outline: none;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  transition: opacity 0.3s ease;
}
#scrollBottomButton:hover {
  background-color: #333;
}
.cards-container {
  max-width: 90%;
  margin-top: 1rem !important;
}
.img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.img-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.1rem;
  padding: 1rem;
}
.field-bubble {
  position: absolute;
  z-index: 2000;
  max-width: 280px;
  background: #fff8e1;
  /* fondo tipo warning suave */
  border: 1px solid #ffca2c;
  /* borde ámbar */
  color: #5c3c00;
  /* texto oscuro */
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
}
.field-bubble::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -8px;
  /* flecha arriba */
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #ffca2c transparent;
}
.field-bubble::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -7px;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent #fff8e1 transparent;
}
.price-mask ~ .invalid-feedback {
  display: none !important;
}
/* === Featured carousel compacto =================================== */
.featured-section {
  width: 100%;
  padding: 1.75rem 1rem 1.5rem;
  background: #1f2b3b;
  color: #fff;
}
.featured-section__content {
  width: min(100%, 1350px);
  margin: 0 auto;
}
.featured-section h4 {
  margin: 0 0 0.35rem;
  color: #aeb9c8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.featured-carousel {
  padding: 8px 0 6px;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-right: 0 !important;
  margin-left: 0 !important;
  /* deja que la tarjeta activa sobresalga */
}
/* --- Contenedor de scroll (el que SCROLLEA) ----------------------- */
.featured-carousel .scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  /* permite ver el scale en vertical */
  padding-block: 16px;
  /* colchón para el scale */
  margin-block: -16px;
  /* compensa el layout */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  /* snap sobre el que scrollea */
}
.featured-carousel .scroll-wrapper::-webkit-scrollbar {
  display: none;
}
/* --- Pista: solo layout (NO scrollea) ------------------------------ */
.featured-carousel .track {
  display: flex;
  gap: 16px;
}
/* --- Slides -------------------------------------------------------- */
.featured-carousel .slide {
  flex: 0 0 auto;
  width: calc((100% - 16px) / 2);
  /* base: 2 por vista */
  scroll-snap-align: center;
  /* ancla al centro para destacar la activa */
  position: relative;
  z-index: 0;
  transition: transform 0.25s ease;
}
@media (min-width: 576px) {
  .featured-carousel .slide {
    width: calc((100% - 2 * 16px) / 3);
  }
}
/* 3 por vista */
@media (min-width: 768px) {
  .featured-carousel .slide {
    width: calc((100% - 3 * 16px) / 4);
  }
}
/* 4 por vista */
@media (min-width: 1200px) {
  .featured-carousel .slide {
    width: calc((100% - 4 * 16px) / 5);
  }
}
/* 5 por vista */
/* --- Tarjeta ------------------------------------------------------- */
.feat-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  /* mantiene esquinas al escalar */
  text-decoration: none;
  color: inherit;
  background: #f2f2f2;
  height: 130px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}
@media (min-width: 576px) {
  .feat-card {
    height: 140px;
  }
}
@media (min-width: 768px) {
  .feat-card {
    height: 150px;
  }
}
@media (min-width: 1200px) {
  .feat-card {
    height: 160px;
  }
}
.feat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}
/* Hover suave (opcional) */
.feat-card:hover img {
  transform: scale(1.02);
}
.feat-card img:hover.feat-units {
  opacity: 1;
}
.sold-out-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}
/* --- Overlay reducido --------------------------------------------- */
.feat-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 10px;
  color: #fff;
  z-index: 5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  font-size: 0.85rem;
}
.feat-units {
  position: absolute;
  inset: 0 0 0 auto;
  opacity: 0.8;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.85rem;
  background: linear-gradient(
    to bottom,
    var(--corp-color),
    var(--corp-color),
    rgba(255, 0, 0, 0),
    rgba(255, 0, 0, 0)
  );
}
.feat-offmarket {
  position: absolute;
  inset: 0 0 0 auto;
  background-color: red;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.8;
  background: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.8),
    rgba(255, 0, 0, 0.8),
    rgba(255, 0, 0, 0),
    rgba(255, 0, 0, 0)
  );
  text-align: right;
}
.feat-overlay .ref {
  font-weight: 600;
  margin-bottom: 1px;
}
/* --- Protagonismo: activa vs resto -------------------------------- */
/* Resto: más claros/atenuados y un pelín más pequeños */
.featured-carousel .slide:not(.is-active) .feat-card {
  opacity: 0.6;
  transform: scale(0.98);
}
.featured-carousel .slide:not(.is-active) .feat-card img {
  filter: grayscale(30%) saturate(0.75) brightness(0.88);
  opacity: 0.95;
}
/* Activa: nítida, por encima y con escala */
.featured-carousel .slide.is-active {
  z-index: 4;
}
.featured-carousel .slide.is-active .feat-card {
  opacity: 1;
  transform: translateZ(0) scale(1.05);
  transform-origin: center center;
  backface-visibility: hidden;
}
.featured-carousel .slide.is-active .feat-card img {
  transform: translateZ(0);
}
/* evita borrosidad */
/* --- Controles ----------------------------------------------------- */
.featured-carousel .swiper-controls {
  display: flex;
  /* siempre visibles */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.title-container {
  gap: 1rem;
}
.featured-carousel .btn-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 28px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex !important;
  /* fuerza visibilidad */
  align-items: center;
  justify-content: center;
}
/* --- Accesibilidad (reduce motion) -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .feat-card,
  .feat-card img,
  .featured-carousel .slide {
    transition: none !important;
  }
}
@media (max-width: 1200px) {
  .non-mobile {
    display: none !important;
  }
  .feat-offmarket {
    opacity: 0.8;
    background: linear-gradient(
      to bottom,
      rgba(255, 0, 0, 0.8),
      rgba(255, 0, 0, 0)
    );
    width: 100%;
  }
  .featured-carousel {
    margin-bottom: 2rem;
  }
  .logo-home {
    max-height: 100px !important;
  }
  .locations-allowed {
    display: none;
  }
  .featured-carousel {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .featured-carousel .slide:not(.is-active) .feat-card .feat-overlay,
  .featured-carousel .slide:not(.is-active) .feat-card .feat-offmarket,
  .featured-carousel .slide:not(.is-active) .feat-card .feat-units {
    display: none;
  }
  .main-title {
    font-size: 22px;
  }
  .title-container {
    gap: 0rem !important;
  }
}

#filtersButton.active {
  background-color: var(--corp-color);
  color: #fff;
}
.page-loader {
  position: fixed;
  inset: 0;
  top: var(--landing-nav-height, 0px); /* debajo del navbar (lo calcula navbar.php) */
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 2000;
  transition: opacity 0.25s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  width: auto;
  height: auto;
  max-height: 150px;
  max-width: min(100%, calc(100vw - 2rem));
  object-fit: contain;
}
.loader-text {
  font-size: 2rem;
  color: #333;
  margin-top: 0.5rem;
}
/* Spinner */
.spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid #eee;
  border-top-color: var(--corp-color, #1ab394);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Estado inicial (colapsado): fondo claro, texto y borde corporativo */
#filtersButton.collapsed,
#contactButton.collapsed {
  background-color: #000000;
  color: white;
  border: 1px solid white;
}

/* Estado abierto (activo): fondo corporativo, texto blanco */
#filtersButton.active,
#contactButton.active {
  background-color: white;
  color: var(--corp-color);
  border: 1px solid var(--corp-color);
}
/* Barra de búsqueda bajo destacados */
@media (min-width: 1201px) {
  #filtersCollapse {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }
  #filter-form-point.filtros {
    display: flex;
    width: min(100%, 1400px);
    margin: 0 auto !important;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  #filter-form-point.filtros > .row {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem !important;
    margin: 0;
  }
  #filter-form-point.filtros > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-top: 0; /* .g-3 añade 1rem arriba a cada columna: descuadraba el margen superior */
    padding: 0;
  }
  #filter-form-point.filtros > .row { align-items: center !important; }
  #filter-form-point.filtros .filtros-actions > .form-label { display: none !important; }
  #filter-form-point.filtros .form-label { display: none; }
  #filter-form-point.filtros .form-control,
  #filter-form-point.filtros .form-select,
  #filter-form-point.filtros .dropdown > .form-select {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e1e5eb;
    border-radius: 999px;
    background-color: #fff;
    color: #1f2937;
    font-size: 0.78rem;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #filter-form-point.filtros > .row > :nth-child(1) { order: 1; width: 26%; }
  #filter-form-point.filtros > .row > :nth-child(3) { order: 2; width: 9%; }
  #filter-form-point.filtros > .row > :nth-child(2) { order: 3; width: 8%; }
  #filter-form-point.filtros > .row > :nth-child(4) { order: 4; width: 7%; }
  #filter-form-point.filtros > .row > :nth-child(5) { order: 5; width: 7%; }
  #filter-form-point.filtros > .row > :nth-child(6) { order: 6; width: 8%; }
  #filter-form-point.filtros > .row > :nth-child(7) { order: 7; width: 8%; }
  #filter-form-point.filtros > .row > :nth-child(8) { order: 8; width: 8%; }
  #filter-form-point.filtros > .row > :nth-child(9) { order: 9; width: 9%; }
  /* Properties: buscador, ubicación, tipo, dormitorios, baños, operación, precio desde/hasta, características */
  #filter-form-point.filtros--properties > .row > :nth-child(1) { order: 1; width: 20%; }
  #filter-form-point.filtros--properties > .row > :nth-child(2) { order: 2; width: 10%; }
  #filter-form-point.filtros--properties > .row > :nth-child(3) { order: 3; width: 9%; }
  #filter-form-point.filtros--properties > .row > :nth-child(4) { order: 4; width: 6%; }
  #filter-form-point.filtros--properties > .row > :nth-child(5) { order: 5; width: 6%; }
  #filter-form-point.filtros--properties > .row > :nth-child(6) { order: 6; width: 8%; }
  #filter-form-point.filtros--properties > .row > :nth-child(7) { order: 7; width: 8%; }
  #filter-form-point.filtros--properties > .row > :nth-child(8) { order: 8; width: 8%; }
  #filter-form-point.filtros--properties > .row > :nth-child(9) { order: 9; width: 9%; }
  #filter-form-point.filtros .filtros-actions {
    order: 10;
    width: auto !important;
    flex: 1 0 auto !important;
    justify-content: flex-end !important;
  }
  #filter-form-point.filtros .filtros-actions .function-button {
    min-height: 38px;
    padding: 0.55rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand, #efb347);
    color: var(--brand-contrast, #fff);
    font-size: 0.78rem;
    font-weight: 600;
  }
  #filter-form-point.filtros .filtros-actions .btn-secondary {
    min-height: 38px;
    border: 1px solid #e1e5eb;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
  }
}
.results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.sort-form .form-select {
  min-width: 175px;
  min-height: 38px;
  border: 1px solid #e1e5eb;
  border-radius: 0.4rem;
  color: #64748b;
  font-size: 0.78rem;
}
/* Compactar filtros en móviles */
@media (max-width: 1200px) {
  .loader-text {
    font-size: 1rem;
    color: #333;
    margin-top: 0.5rem;
  }
  .filtros {
    margin: 0 1rem !important;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }
  .filtros .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
  }
  .filtros .form-select,
  .filtros .form-control {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    height: auto;
  }
  /* Poner campos cortos en 2 columnas para ahorrar altura */
  .filtros .col-6,
  .filtros .col-sm-3,
  .filtros .col-md-2,
  .filtros .col-lg-1 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  /* Botones en una línea y pegados */
  .filtros .col-12.col-md-3.d-flex {
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }
  .filtros .function-button,
  .filtros .btn.btn-secondary {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }

  /* Dropdowns grandes (ubicación/estado) ocupan todo el ancho */
  .filtros .dropdown.w-100 .form-select {
    width: 100%;
  }
}
.results-summary {
  width: calc(100% - 2rem);
  max-width: 1400px;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.results-summary > * {
  margin: 0;
}
.results-summary .sort-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.results-summary .results-count {
  color: #64748b;
  font-size: .9rem;
}
.results-summary .results-count strong {
  color: #111827;
  font-weight: 700;
}
.results-summary .sort-form .form-select {
  background-color: #fff;
}
:is(#devsContainer, #propsContainer).cards-container {
  width: calc(100% - 2rem);
  max-width: 1400px;
  margin-right: auto !important;
  margin-left: auto !important;
}
:is(#devsContainer, #propsContainer) .property-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}
:is(#devsContainer, #propsContainer) .img-wrapper {
  height: 202px;
  flex: 0 0 202px;
  overflow: hidden;
}
:is(#devsContainer, #propsContainer) .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
:is(#devsContainer, #propsContainer) .img-wrapper img.is-placeholder {
  object-fit: contain;
  padding: 2rem;
  background: #fff;
}
:is(#devsContainer, #propsContainer) .property-card-shell .card-body {
  display: flex;
  flex: 1;
  padding: 1.1rem 1.1rem 1.1rem;
  color: #64748b;
}
:is(#devsContainer, #propsContainer) .status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  margin: 0;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #374151;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
:is(#devsContainer, #propsContainer) .card-price {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}
:is(#devsContainer, #propsContainer) .development-card-title {
  margin: .35rem 0 .3rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}
:is(#devsContainer, #propsContainer) .development-card-title a {
  color: #0f172a;
  text-decoration: none;
}
:is(#devsContainer, #propsContainer) .development-card-title a:hover {
  text-decoration: underline;
}
:is(#devsContainer, #propsContainer) .card-location {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  color: #64748b;
  font-size: .85rem;
}
:is(#devsContainer, #propsContainer) .card-location i {
  color: var(--brand, #efb347);
}
:is(#devsContainer, #propsContainer) .card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-bottom: .6rem;
  padding: .7rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: .8rem;
  font-weight: 600;
}
:is(#devsContainer, #propsContainer) .card-metrics span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
:is(#devsContainer, #propsContainer) .card-metrics i {
  color: #94a3b8;
  font-size: .8rem;
}
:is(#devsContainer, #propsContainer) .card-completion {
  margin: 0 0 .75rem;
  color: #94a3b8;
  font-size: .78rem;
}
:is(#devsContainer, #propsContainer) .card-completion strong {
  color: #475569;
}
:is(#devsContainer, #propsContainer) .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  flex: 0 0 auto;
  min-height: 0;
  max-height: 3em; /* 2 líneas × line-height 1.5 */
  margin: 0 0 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  background: none;
  color: #64748b;
  font-size: .85rem;
  line-height: 1.5;
}
:is(#devsContainer, #propsContainer) .see-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  font-size: .85rem;
  font-weight: 700;
}
:is(#devsContainer, #propsContainer) .see-more-btn:hover { background: #263247; }
:is(#devsContainer, #propsContainer) .card-contact-btn {
  min-height: 40px;
  font-size: .85rem;
}
@media (max-width: 767px) {
  :is(#devsContainer, #propsContainer).cards-container { width: calc(100% - 1rem); }
  :is(#devsContainer, #propsContainer) .img-wrapper { height: 180px; flex-basis: 180px; }
}
.site-footer {
  margin: 0 !important;
  padding: 3.5rem 1.25rem 1.25rem !important;
  background: #111b2b;
  border: 0;
  color: #fff;
}
.site-footer > .mx-0 {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto !important;
}
.site-footer .request-form {
  display: flex !important;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto !important;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.site-footer .request-form > .col-12 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}
.site-footer .request-form > .col-md-6:first-child {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.25fr);
  column-gap: 3rem;
  align-items: start;
  text-align: left !important;
}
.site-footer .request-form > .col-md-6:first-child > .col-12:first-child {
  display: flex;
  align-items: center;
  grid-column: 1;
  margin: 0;
  text-align: left !important;
}
.site-footer .request-form > .col-md-6:first-child > .col-12:first-child img {
  max-width: 58px;
  max-height: 48px !important;
  padding: .35rem;
  object-fit: contain;
}
.site-footer .footer-company-name {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
}
.site-footer .request-form > .col-md-6:first-child > .mb-4 {
  grid-column: 1;
  margin: .8rem 0 0 !important;
  text-align: left !important;
}
.site-footer .request-form > .col-md-6:first-child > .row {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}
.site-footer .footer-team-title {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: .9rem;
  color: #8190a5;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-footer .request-form > .col-md-6:first-child > .row + .footer-team-title {
  display: none;
}
.site-footer .request-form > .footer-form-col {
  order: 1;
}
.site-footer .request-form > .col-md-6:first-child {
  order: 2;
  margin-top: 3.5rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(148, 163, 184, .12);
}
.site-footer .footer-form-col > .footer-form-panel {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 14px;
  background: rgba(30, 41, 59, .7);
}
.site-footer .footer-title {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
}
.site-footer .footer-form-panel .form-label {
  color: #b8c1ce;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer .footer-form-panel .form-control {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(71, 85, 105, .42);
  color: #fff;
}
.site-footer .footer-form-panel textarea.form-control { min-height: 80px; }
.site-footer .footer-form-panel .form-control:focus {
  border-color: var(--brand, #efb347);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand, #efb347) 18%, transparent);
}
.site-footer .footer-form-panel .form-check-label { color: #b6c1d1; font-size: .78rem; }
.site-footer .footer-form-panel .form-check-label a { color: var(--brand, #efb347); }
.site-footer .footer-form-panel .function-button {
  min-height: 44px;
  border: 0;
  background: var(--brand, #efb347);
  color: var(--brand-contrast, #172033);
  font-weight: 700;
}
.site-footer .footer-form-panel h2 { margin-bottom: 1.25rem !important; }
@media (max-width: 767px) {
  .site-footer { padding-right: 1rem !important; padding-left: 1rem !important; }
  .site-footer .footer-form-panel { padding: 1.25rem 1rem 1.5rem; }
  .site-footer .request-form > .col-md-6:first-child { padding-right: 0; padding-left: 0; }
  .site-footer .request-form > .col-md-6:first-child { display: block; text-align: center !important; }
  .site-footer .request-form > .col-md-6:first-child > * { grid-column: auto !important; grid-row: auto !important; }
}
.bg-semitransparent {
  background-color: rgba(255, 255, 255, 0.5); /* blanco con 50% de opacidad */
}
.agent-item {
  padding: 0.25rem 0;   /* muy compacto */
  line-height: 1.3;
}

.agent-item .fw-bold {
  font-size: 0.95rem;   /* nombre más pequeño */
}

.agent-item .small {
  font-size: 0.8rem;
}
/* Paginador de listados (promociones y propiedades) */
.landing-pagination {
  gap: .5rem;
}
.landing-pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px !important;
  background: #fff;
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.landing-pagination .page-item .page-link i {
  font-size: .7rem;
}
.landing-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  border-color: var(--brand, #efb347);
  color: #172033;
}
.landing-pagination .page-item .page-link:focus-visible {
  outline: 2px solid var(--brand, #efb347);
  outline-offset: 2px;
  box-shadow: none;
}
.landing-pagination .page-item.active .page-link {
  border-color: var(--brand, #efb347);
  background: var(--brand, #efb347);
  color: var(--brand-contrast, #fff);
}
.landing-pagination .page-item.disabled .page-link {
  border-color: #eef1f5;
  background: #f5f7fa;
  color: #cbd2dc;
}
/* Acciones de las cards: "Ver más" + "Contactar" */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.card-actions .see-more-btn {
  width: 100%;
  margin: 0;
}
.card-actions .card-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: .8rem;
  font-weight: 700;
}
.card-actions .card-contact-btn i {
  font-size: .85rem;
}
.card-actions .card-contact-btn:hover,
.card-actions .card-contact-btn:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #111827;
}

/* Desplegable de características (properties): ancho propio, alineado a la
   derecha del botón y opciones en rejilla (antes heredaba el ancho del botón). */
.features-menu {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(460px, 70vh);
  padding: 1rem 1.1rem;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}
.features-menu .feature-group + .feature-group {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #eef1f5;
}
.features-menu .feature-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.features-menu .feature-group-title {
  color: #111827;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.features-menu .toggle-group-btn {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand, #b7802a);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.features-menu .toggle-group-btn:hover { text-decoration: underline; }
.features-menu .feature-group-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem 1rem;
}
.features-menu .form-check {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  min-height: 0;
  margin: 0;
  padding-left: 0;
}
.features-menu .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: .15rem 0 0;
}
.features-menu .form-check-input:checked {
  border-color: var(--brand, #efb347);
  background-color: var(--brand, #efb347);
}
.features-menu .form-check-label {
  color: #334155;
  font-size: .82rem;
  line-height: 1.35;
  white-space: normal;
}
@media (max-width: 575.98px) {
  .features-menu .feature-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Esqueleto de carga de imágenes (sustituye al loader a pantalla completa).
   Los contenedores de foto muestran un bloque gris con brillo animado hasta
   que su imagen carga; image-skeleton.js añade .is-media-loaded al terminar.
   ============================================================ */
@keyframes ld-skeleton-shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
html .img-wrapper,
html .feat-card,
html .ld-detail-hero,
html .ld-detail-thumb {
  background-color: #e5e7eb;
  background-image: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: ld-skeleton-shimmer 1.3s ease-in-out infinite;
}
/* En la banda oscura de destacados, esqueleto translúcido. */
html .featured-section .feat-card {
  background-color: rgba(255, 255, 255, .08);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .06) 75%);
}
html .is-media-loaded {
  animation: none;
  background-image: none;
}
@media (prefers-reduced-motion: reduce) {
  html .img-wrapper, html .feat-card, html .ld-detail-hero, html .ld-detail-thumb { animation: none; }
}
