/* =========================================================
   THE LOCAL ESTATE — PROPIEDADES DESTACADAS
   Shortcode [tle_destacadas]
========================================================= */

.tle-featured-grid,
.tle-featured-grid * {
  box-sizing: border-box;
}

.tle-featured-grid {
  --tle-featured-green: #718e72;
  --tle-featured-black: #0b0b0b;
  --tle-featured-white: #ffffff;
  --tle-featured-muted: rgba(255,255,255,.68);

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(58px, 7vw, 108px) clamp(18px, 4vw, 68px);
  overflow: hidden;
  background: var(--tle-featured-black);
  color: var(--tle-featured-white);
  font-family: inherit;
}

.tle-featured-grid__head {
  width: min(1560px, 100%);
  margin: 0 auto clamp(30px, 4vw, 52px);
}

.tle-featured-grid__eyebrow {
  margin: 0 0 12px;
  color: var(--tle-featured-green);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2em;
}

.tle-featured-grid__head h2 {
  margin: 0;
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.02em;
}

.tle-featured-grid__items {
  width: min(1560px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.tle-featured-card {
  min-width: 0;
  overflow: hidden;
  background: #111111;
}

.tle-featured-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tle-featured-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1c1c;
}

.tle-featured-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0) contrast(1.06) brightness(.9);
  transform: scale(1.015);
  transition:
    filter .8s cubic-bezier(.22,1,.36,1),
    transform 1s cubic-bezier(.22,1,.36,1);
}

.tle-featured-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(113,142,114,.16), transparent 55%),
    #181818;
}

.tle-featured-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.04) 20%,
      rgba(0,0,0,.42) 100%
    );
  pointer-events: none;
  transition: opacity .5s ease;
}

.tle-featured-card__operation {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  background: rgba(11,11,11,.82);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tle-featured-card__content {
  position: relative;
  min-height: 210px;
  padding: 24px 24px 26px;
  background: #111111;
  border-top: 1px solid rgba(255,255,255,.08);
}

.tle-featured-card__topline {
  display: grid;
  gap: 10px;
}

.tle-featured-card__topline h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 1.8vw, 31px);
  line-height: 1.04;
  font-weight: 500;
  transition: color .3s ease;
}

.tle-featured-card__price {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.1;
  font-weight: 700;
}

.tle-featured-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.11);
}

.tle-featured-card__fact {
  display: inline-grid;
  gap: 3px;
  min-width: 72px;
}

.tle-featured-card__fact b {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.1;
}

.tle-featured-card__fact small {
  color: var(--tle-featured-muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tle-featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--tle-featured-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tle-featured-card__cta > span {
  font-size: 18px;
  line-height: 1;
  transition: transform .3s ease;
}

.tle-featured-card:hover .tle-featured-card__image,
.tle-featured-card:focus-within .tle-featured-card__image {
  filter: grayscale(0) saturate(1) contrast(1) brightness(1);
  transform: scale(1.06);
}

.tle-featured-card:hover .tle-featured-card__veil,
.tle-featured-card:focus-within .tle-featured-card__veil {
  opacity: .34;
}

.tle-featured-card:hover .tle-featured-card__topline h3,
.tle-featured-card:focus-within .tle-featured-card__topline h3 {
  color: var(--tle-featured-green);
}

.tle-featured-card:hover .tle-featured-card__cta > span,
.tle-featured-card:focus-within .tle-featured-card__cta > span {
  transform: translateX(6px);
}

.tle-featured-card__link:focus-visible {
  outline: 2px solid var(--tle-featured-green);
  outline-offset: -2px;
}

.tle-featured-empty {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #dcdcde;
  background: #fff;
  color: #1d2327;
  font-family: inherit;
}

/* Elementor: quitar espacios del widget que contiene el shortcode */
.elementor-widget-shortcode:has(.tle-featured-grid),
.elementor-widget-shortcode:has(.tle-featured-grid) > .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.e-con:has(.tle-featured-grid),
.e-con-inner:has(.tle-featured-grid) {
  --container-max-width: 100% !important;
  --content-width: 100% !important;
  --gap: 0px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

@media (max-width: 1024px) {
  .tle-featured-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tle-featured-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tle-featured-grid__items {
    grid-template-columns: 1fr;
  }

  .tle-featured-card__content {
    min-height: 0;
    padding: 22px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tle-featured-card__image,
  .tle-featured-card__topline h3,
  .tle-featured-card__cta > span {
    transition: none !important;
  }
}


/* =========================================================
   AJUSTE 0.7.1 — TIPOGRAFÍA CONSISTENTE CON LA HOME
========================================================= */

.tle-featured-grid,
.tle-featured-grid *,
.tle-featured-grid__head h2,
.tle-featured-card__topline h3,
.tle-featured-card__price,
.tle-featured-card__facts,
.tle-featured-card__cta,
.tle-featured-card__operation {
  font-family: inherit !important;
}

.tle-featured-grid__head h2 {
  font-weight: 400;
  letter-spacing: -0.025em;
}

.tle-featured-card__topline h3 {
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* PRECIO: visible y consistente */
.tle-featured-card__price {
  display: block !important;
  margin: 10px 0 0 !important;
  color: #ffffff !important;
  font-size: clamp(18px, 1.5vw, 26px) !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* =========================================================
   AJUSTE 0.7.3 — TÍTULO EXACTO COMO SECCIÓN ANTERIOR
   Desktop:
   clamp(28px, 2.4vw, 40px)
========================================================= */

.tle-featured-grid__eyebrow {
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.tle-featured-grid__head h2 {
  margin: 0 !important;
  max-width: 900px !important;
  color: #ffffff !important;
  font-size: clamp(28px, 2.4vw, 40px) !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

.tle-featured-grid__head h2 span {
  color: #718e72 !important;
  font: inherit !important;
}

/* Igual que tu HTML anterior */
@media (max-width: 1180px) {
  .tle-featured-grid__head h2 {
    font-size: clamp(26px, 2.2vw, 34px) !important;
  }
}

@media (max-width: 900px) {
  .tle-featured-grid__head h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 767px) {
  .tle-featured-grid__head h2 {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .tle-featured-grid__head h2 {
    font-size: 22px !important;
  }
}


/* =========================================================
   AJUSTE 0.7.4 — FORZADO EXACTO CONTRA ELEMENTOR/CACHÉ
   Copia los valores de la sección anterior.
========================================================= */

html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title {
  margin: 0 !important;
  max-width: 900px !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(28px, 2.4vw, 40px) !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title span {
  color: #718e72 !important;
  font: inherit !important;
}

html body .tle-featured-grid .tle-featured-grid__eyebrow {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

@media (max-width: 1180px) {
  html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title {
    font-size: clamp(26px, 2.2vw, 34px) !important;
  }
}

@media (max-width: 900px) {
  html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title {
    font-size: 28px !important;
  }
}

@media (max-width: 767px) {
  html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  html body .tle-featured-grid .tle-featured-grid__head h2#tle-featured-title {
    font-size: 22px !important;
  }
}



/* =========================================================
   PROPERTY CARDS — IMAGE CROP FIX
   v1.0.7
   Las imágenes cubren el cuadro y enfocan centro/abajo.
========================================================= */

.tle-featured-card__media {
  aspect-ratio: 16 / 11 !important;
  height: auto !important;
  min-height: 300px !important;
  overflow: hidden !important;
  background: #111111 !important;
}

.tle-featured-card__image,
.tle-featured-card__media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 300px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center bottom !important;
  transform-origin: center bottom !important;
}

.tle-featured-card:hover .tle-featured-card__image,
.tle-featured-card:hover .tle-featured-card__media img {
  object-position: center bottom !important;
}

@media (max-width: 1180px) {
  .tle-featured-card__media {
    min-height: 280px !important;
  }

  .tle-featured-card__image,
  .tle-featured-card__media img {
    min-height: 280px !important;
  }
}

@media (max-width: 767px) {
  .tle-featured-card__media {
    aspect-ratio: 4 / 3 !important;
    min-height: 260px !important;
  }

  .tle-featured-card__image,
  .tle-featured-card__media img {
    min-height: 260px !important;
  }
}



/* =========================================================
   PROPERTY CARDS — POSITION PER PROPERTY
   v1.0.8
   Usa --tle-card-image-position desde la ficha de cada propiedad.
========================================================= */

.tle-featured-card {
  --tle-card-image-position: center center;
}

.tle-featured-card__image,
.tle-featured-card__media img {
  object-position: var(--tle-card-image-position, center center) !important;
  transform-origin: var(--tle-card-image-position, center center) !important;
}



/* =========================================================
   PROPERTY CARDS — HOVER POSITION FIX
   v1.0.9
   Mantiene la posición elegida por propiedad también en hover.
========================================================= */

.tle-featured-card:hover .tle-featured-card__image,
.tle-featured-card:hover .tle-featured-card__media img,
.tle-featured-card:focus-within .tle-featured-card__image,
.tle-featured-card:focus-within .tle-featured-card__media img {
  object-position: var(--tle-card-image-position, center center) !important;
  transform-origin: var(--tle-card-image-position, center center) !important;
}

.tle-featured-card__image,
.tle-featured-card__media img {
  object-position: var(--tle-card-image-position, center center) !important;
  transform-origin: var(--tle-card-image-position, center center) !important;
}
