/* =========================================================
   ONOFFICE COLLECTION LIST
   Scoped only to .liste-home
========================================================= */

.liste-home {
    --oo-border-color: lightgrey;
    --oo-border: 1px solid var(--oo-border-color);
  
    --oo-bg: #fff;
    --oo-text: #111;
    --oo-meta: #5f7891;
    --oo-image-bg: #f2f2f2;
  
    --oo-card-padding: 0.5rem;
    --oo-card-padding-mobile: 1rem;
  
    --oo-image-height: 400px;
    --oo-icon-size: 1.35rem;
    --oo-icon-offset: 2rem;
    --oo-meta-row-height: 28px;
  }
  
  /* =========================================================
     BASE
  ========================================================= */
  
  .liste-home .oo-estate-sort {
    padding: 0;
  }
  
  .liste-home .oo-listheadline,
  .liste-home .oo-detailslink,
  .liste-home .oo-field-label {
    display: none !important;
  }
  
  .liste-home .oo-listtd,
  .liste-home .oo-field-value {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
  }
  
  .liste-home .oo-field-type,
  .liste-home .oo-field-usable-area,
  .liste-home .oo-card-ready .oo-listinfotable {
    display: none !important;
  }
  
  /* =========================================================
     GRID
  ========================================================= */
  
  .liste-home .oo-listframe {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--oo-bg);
    border-top: var(--oo-border);
    border-left: var(--oo-border);
  }
  
  .liste-home .oo-listobject {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--oo-bg);
    border-right: var(--oo-border);
    border-bottom: var(--oo-border);
  }
  
  /* retire la border-right de fin de ligne */
  .liste-home .oo-listobject:nth-child(3n) {
    border-right: none;
  }
  
  /* retire la border-bottom de dernière ligne si 3 colonnes */
  .liste-home .oo-listobject:nth-last-child(-n + 3) {
    border-bottom: none;
  }
  
  .liste-home .oo-listobjectwrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--oo-card-padding);
    background: var(--oo-bg);
  }
  
  /* =========================================================
     IMAGE
  ========================================================= */
  
  .liste-home .oo-listimage {
    width: 100%;
    height: var(--oo-image-height);
    overflow: hidden;
    background: var(--oo-image-bg);
  }
  
  .liste-home .oo-listimage picture,
  .liste-home .oo-listimage .oo-picture,
  .liste-home .oo-listimage img,
  .liste-home .oo-listimage .oo-responsive-image {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .liste-home .oo-listimage img,
  .liste-home .oo-listimage .oo-responsive-image {
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
  }
  
  .liste-home .oo-listobject:hover .oo-listimage img,
  .liste-home .oo-listobject:hover .oo-listimage .oo-responsive-image {
    transform: scale(1.02);
  }
  
  /* =========================================================
     CARD
  ========================================================= */
  
  .liste-home .oo-listinfo,
  .liste-home .oo-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .liste-home .oo-listinfo {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .liste-home .oo-card-content {
    height: 100%;
  }
  
  /* =========================================================
     META
  ========================================================= */
  
  .liste-home .oo-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
    min-height: var(--oo-meta-row-height);
    color: var(--oo-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);
  }
  
  .liste-home .oo-card-meta:empty {
    display: flex;
    min-height: var(--oo-meta-row-height);
  }
  
  .liste-home .oo-card-meta-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding-left: var(--oo-icon-offset);
    white-space: nowrap;
  }
  
  .liste-home .oo-card-meta-item .oo-field-value {
    white-space: nowrap;
    font-family: inherit;
  }
  
  .liste-home .oo-card-meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--oo-icon-size);
    height: var(--oo-icon-size);
    transform: translateY(-50%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  .liste-home .oo-card-meta-living-area::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/size.svg");
  }
  
  .liste-home .oo-card-meta-plot-size::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/area.svg");
  }
  
  .liste-home .oo-card-meta-rooms::before {
    background-image: url("https://ecomlibary.lu/wp-content/uploads/2026/03/Room.svg");
  }
  
  /* =========================================================
     TITLE
  ========================================================= */
  
  .liste-home .oo-card-title-wrap {
    min-width: 0;
  }
  
  .liste-home .oo-listtitle {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding-top: 0.75rem;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000 !important;
    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);
  }
  
  /* =========================================================
     BOTTOM
  ========================================================= */
  
  .liste-home .oo-card-bottom {
    display: flex;
    column-gap: 1rem;
    align-items: end;
    margin-top: 0;
    padding-top: 1.25rem;
  }
  
  .liste-home .oo-card-price,
  .liste-home .oo-card-city {
    width: 50%;
    color: var(--oo-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);
  }
  
  .liste-home .oo-card-price * {
    white-space: nowrap;
    font-family: inherit;
  }
  
  .liste-home .oo-card-city {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
  }
  
  .liste-home .oo-card-city * {
    font-family: inherit;
  }
  
  /* =========================================================
     RESPONSIVE
  ========================================================= */
  
  @media (max-width: 1180px) {
    .liste-home .oo-listframe {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .liste-home .oo-listobject:nth-child(3n) {
      border-right: var(--oo-border);
    }
  
    .liste-home .oo-listobject:nth-last-child(-n + 3) {
      border-bottom: var(--oo-border);
    }
  
    .liste-home .oo-listobject:nth-child(2n) {
      border-right: none;
    }
  
    .liste-home .oo-listobject:nth-last-child(-n + 2) {
      border-bottom: none;
    }
  }
  
  @media (max-width: 767px) {
    .liste-home .oo-listframe {
      grid-template-columns: 1fr;
    }
  
    .liste-home .oo-listobject {
      border-right: none;
    }
  
    .liste-home .oo-listobject:not(:last-child) {
      border-bottom: var(--oo-border);
    }
  
    .liste-home .oo-listobject:last-child {
      border-bottom: none;
    }
  
    .liste-home .oo-listobjectwrap {
      padding: var(--oo-card-padding-mobile);
    }
  
    .liste-home .oo-listinfo {
      padding-top: 0.85rem;
    }
  }