/* =========================================================
   FEATURED HOUSE
   Scope uniquement sur le shortcode .featured-house
========================================================= */

.featured-house {
    --fh-border-color: #d9dee3;
    --fh-border: 1px solid var(--fh-border-color);
    --fh-bg: #ffffff;
    --fh-text: #111111;
    --fh-meta: #5f7891;
    --fh-radius: 0;
    --fh-gap: 0;
    --fh-padding: 2rem;
    --fh-image-min-height: 620px;
    --fh-icon-size: 1.35rem;
    --fh-icon-offset: 2rem;
  
    width: 100%;
  }
  
  /* =========================================================
     RESET LOCAL
  ========================================================= */
  
  .featured-house .oo-listheadline,
  .featured-house .oo-detailslink,
  .featured-house .oo-field-label {
    display: none !important;
  }
  
  .featured-house .oo-listtd,
  .featured-house .oo-field-value {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
  }
  
  .featured-house .oo-field-type,
  .featured-house .oo-field-usable-area,
  .featured-house .oo-card-ready .oo-listinfotable {
    display: none !important;
  }
  
  /* =========================================================
     WRAPPER
  ========================================================= */
  
  .featured-house .oo-listframe {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
  }
  
  .featured-house .oo-listobject {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--fh-bg);
    border: var(--fh-border);
  }
  
  .featured-house .oo-listobjectwrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
    align-items: stretch;
    min-height: var(--fh-image-min-height);
    padding: 0;
    background: var(--fh-bg);
    box-shadow: none;
  }
  
  .featured-house .oo-listobjectwrap:hover {
    box-shadow: none;
  }
  /* =========================================================
     IMAGE
  ========================================================= */
  
  .featured-house .oo-listimage {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--fh-image-min-height);
    overflow: hidden;
    background: #f2f2f2;
    border-right: var(--fh-border);
  }
  
  .featured-house .oo-listimage picture,
  .featured-house .oo-listimage .oo-picture,
  .featured-house .oo-listimage img,
  .featured-house .oo-listimage .oo-responsive-image {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .featured-house .oo-listimage img,
  .featured-house .oo-listimage .oo-responsive-image {
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
  }
  
  .featured-house .oo-listobject:hover .oo-listimage img,
  .featured-house .oo-listobject:hover .oo-listimage .oo-responsive-image {
    transform: scale(1.03);
  }
  
  /* =========================================================
     CONTENT COLUMN
  ========================================================= */
  
  .featured-house .oo-listinfo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: var(--fh-padding);
  }
  
  .featured-house .oo-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    gap: 1.5rem;
  }
  
  /* =========================================================
     META
  ========================================================= */
  
  .featured-house .oo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    align-items: center;
    color: var(--fh-meta);
  
    font-family: var(--e-global-typography-2a7b34e-font-family), Sans-serif;
    font-size: var(--e-global-typography-2a7b34e-font-size);
    font-weight: var(--e-global-typography-2a7b34e-font-weight);
    line-height: var(--e-global-typography-2a7b34e-line-height);
    letter-spacing: var(--e-global-typography-2a7b34e-letter-spacing);
  }
  
  .featured-house .oo-card-meta-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding-left: var(--fh-icon-offset);
    white-space: nowrap;
  }
  
  .featured-house .oo-card-meta-item .oo-field-value {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
  }
  
  .featured-house .oo-card-meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--fh-icon-size);
    height: var(--fh-icon-size);
    transform: translateY(-50%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  .featured-house .oo-card-meta-living-area::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/size.svg");
  }
  
  .featured-house .oo-card-meta-plot-size::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/area.svg");
  }
  
  .featured-house .oo-card-meta-rooms::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/Room.svg");
  }
  
  /* =========================================================
     TITLE
  ========================================================= */
  
  .featured-house .oo-card-title-wrap {
    min-width: 0;
  }
  
  .featured-house .oo-listtitle {
    display: block;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;      /* ← autorise retour ligne */
    -webkit-line-clamp: unset;
    line-clamp: unset;
    color: #000;
    text-align: left;
  
    font-family: var(--e-global-typography-569a574-font-family), Sans-serif;
    font-size: var(--e-global-typography-569a574-font-size);
    font-weight: var(--e-global-typography-569a574-font-weight);
    line-height: var(--e-global-typography-569a574-line-height);
    letter-spacing: var(--e-global-typography-569a574-letter-spacing);
  }
  
  /* =========================================================
     PRICE + CITY
  ========================================================= */
  
  .featured-house .oo-card-bottom {
    display: flex;
    column-gap: 1rem;
    align-items: start;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: var(--fh-border);
  }
  
  .featured-house .oo-card-price {
    min-width: 0;
    width:50%;
    color: var(--fh-text);
    white-space: nowrap;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
  }
  
  .featured-house .oo-card-price *,
  .featured-house .oo-card-city * {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  
  .featured-house .oo-card-city {
    width:50%;  
    text-align: right;
    color: var(--fh-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
  }
  
  /* =========================================================
     OPTIONAL LABEL STYLE
     Si tu veux un rendu "featured" plus premium
  ========================================================= */
  
  .featured-house .oo-listinfo::before {
    content: "Featured property";
    display: inline-block;
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.7rem;
    border: var(--fh-border);
    color: var(--fh-meta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    line-height: 1;
  }
  
  /* =========================================================
     RESPONSIVE
  ========================================================= */
  
  @media (max-width: 1200px) {
    .featured-house .oo-listobjectwrap {
      grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    }
  
    .featured-house {
      --fh-image-min-height: 520px;
      --fh-padding: 1.5rem;
    }
  }
  
  @media (max-width: 1024px) {
    .featured-house .oo-listobjectwrap {
      grid-template-columns: 1fr;
    }
  
    .featured-house .oo-listimage {
      min-height: 460px;
      border-right: 0;
      border-bottom: var(--fh-border);
    }
  
    .featured-house .oo-listinfo {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 767px) {
    .featured-house {
      --fh-image-min-height: 340px;
    }
  
    .featured-house .oo-listimage {
      min-height: 340px;
    }
  
    .featured-house .oo-listinfo {
      padding: 1.1rem;
    }
  
    .featured-house .oo-card-content {
      gap: 1rem;
    }
  
    .featured-house .oo-card-meta {
      gap: 0.65rem 1rem;
    }
  
    .featured-house .oo-card-bottom {
      grid-template-columns: 1fr;
      row-gap: 0.35rem;
      align-items: start;
    }
  
    .featured-house .oo-card-city {
      text-align: left;
    }
  
    .featured-house .oo-listtitle {
      -webkit-line-clamp: 5;
      line-clamp: 5;
    }
  }