/* FICHE IMMEUBLE - LPL */

.lpl-single-immeuble {
  background: #f5f7fb;
  padding: 40px 0 70px;
}

.lpl-single-hero {
  display: grid;
  grid-template-columns: 56% 44%;
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(13, 27, 53, .10);
}

.lpl-single-hero-image {
  min-height: 560px;
  overflow: hidden;
}

.lpl-single-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

.lpl-single-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.lpl-single-eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #e5eefc;
  color: #1f5fbf;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.lpl-single-hero-content h1 {
  margin: 0 0 30px;
  color: #0d1b35;
  font-size: clamp(42px, 4vw, 66px);
  line-height: 1.03;
  font-weight: 800;
}

.lpl-single-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 16px 26px;
  border-radius: 999px;
  background: #1f5fbf;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(31, 95, 191, .25);
  transition: all .2s ease;
}

.lpl-single-btn:hover {
  background: #12376f;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 980px) {
  .lpl-single-immeuble {
    padding: 24px 0 50px;
  }

  .lpl-single-hero {
    grid-template-columns: 1fr;
    width: 92%;
    min-height: 0;
    border-radius: 22px;
  }

  .lpl-single-hero-image,
  .lpl-single-hero-image img {
    min-height: 320px;
  }

  .lpl-single-hero-content {
    padding: 40px 24px;
  }

  .lpl-single-hero-content h1 {
    font-size: 38px;
  }
}

.lpl-building-apartments {
  padding: 70px 0;
  background: #f5f7fb;
}

.lpl-building-apartments-inner {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
}

.lpl-building-apartments .lpl-section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.lpl-building-apartments .lpl-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #1f5fbf;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lpl-building-apartments h2 {
  color: #0d1b35;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 800;
}

.lpl-building-apartments .lpl-section-title p {
  margin-top: 10px;
  color: #5f6b7a;
  font-size: 17px;
}

.lpl-appartements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.lpl-app-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(13, 27, 53, .08);
}

.lpl-app-card-link {
  display: block;
  color: inherit;
}

.lpl-app-card-content {
  padding: 26px;
}

.lpl-app-card-content h3 {
  color: #0d1b35;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.lpl-app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lpl-app-card-meta span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f5fbf;
  font-size: 13px;
  font-weight: 700;
}

.lpl-app-card-btn {
  display: inline-flex;
  margin-top: 22px;
  color: #1f5fbf;
  font-weight: 800;
}

.lpl-more-apartments {
  margin-top: 36px;
}

.lpl-no-apartments {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: #5f6b7a;
}

@media (max-width: 980px) {
  .lpl-building-apartments {
    padding: 50px 0;
  }

  .lpl-appartements-grid {
    grid-template-columns: 1fr;
  }
}


.lpl-app-card-premium {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(13, 27, 53, .08);
  transition: all .25s ease;
}

.lpl-app-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(13, 27, 53, .13);
}

.lpl-app-card-premium-link {
  display: block;
  color: inherit;
}

.lpl-app-card-premium-image {
  height: 220px;
  background: #e8eef8;
  overflow: hidden;
}

.lpl-app-card-premium-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lpl-app-card-premium-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f5fbf;
  font-weight: 800;
}

.lpl-app-card-premium-content {
  padding: 26px;
}

.lpl-app-card-premium-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e5eefc;
  color: #1f5fbf;
  font-size: 13px;
  font-weight: 800;
}

.lpl-app-card-premium-content h3 {
  margin: 0 0 18px;
  color: #0d1b35;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.lpl-app-card-premium-price {
  margin-bottom: 18px;
  color: #1f5fbf;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.lpl-app-card-premium-price span {
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 700;
}

.lpl-app-card-premium-details {
  display: grid;
  gap: 9px;
  color: #5f6b7a;
  font-size: 15px;
  font-weight: 700;
}

.lpl-app-card-premium-btn {
  display: inline-flex;
  margin-top: 24px;
  color: #1f5fbf;
  font-size: 15px;
  font-weight: 900;
}
/* Page demande de location */
.page-id-6134 #main-content {
  background: #f5f7fb;
}

.page-id-6134 #left-area {
  width: 100% !important;
  padding: 70px 0;
}

.page-id-6134 #sidebar {
  display: none;
}

.page-id-6134 #main-content .container:before {
  display: none;
}

.page-id-6134 .entry {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(13, 27, 53, .10);
}

.page-id-6134 h3 {
  color: #0d1b35;
  font-size: 38px;
  font-weight: 800;
}

.page-id-6134 label {
  display: block;
  margin-bottom: 18px;
  color: #0d1b35;
  font-weight: 700;
}

.page-id-6134 input,
.page-id-6134 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px !important;
  border: 1px solid #d7deea !important;
  border-radius: 12px;
  font-size: 16px;
}

.page-id-6134 textarea {
  min-height: 160px;
}

.page-id-6134 input[readonly] {
  background: #eef4ff;
  color: #1f5fbf;
  font-weight: 800;
}

.page-id-6134 input[type="submit"] {
  width: auto;
  padding: 15px 26px !important;
  border: none !important;
  border-radius: 999px;
  background: #1f5fbf;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 95, 191, .25);
}

.page-id-6134 input[type="submit"]:hover {
  background: #12376f;
}

/* Amélioration lisibilité du titre sur les cartes immeubles */

.lpl-immeuble-overlay {
  background: linear-gradient(
    to top,
    rgba(13, 27, 53, 0.88) 0%,
    rgba(13, 27, 53, 0.68) 38%,
    rgba(13, 27, 53, 0.18) 72%,
    rgba(13, 27, 53, 0) 100%
  ) !important;
}

.lpl-immeuble-overlay h2,
.lpl-immeuble-titre {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

.lpl-immeuble-overlay .lpl-immeuble-secteur {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.30) !important;
}

/* =========================================================
   PAGE NOS IMMEUBLES
========================================================= */

.lpl-buildings-page {
    --lpl-blue: #1f5fbf;
    --lpl-blue-dark: #12376f;
    --lpl-dark: #0d1b35;
    --lpl-text: #68758c;
    --lpl-light: #f5f7fb;
    --lpl-white: #ffffff;
    --lpl-border: #e3e8f0;

    width: 100%;
    padding: 90px 24px 110px;
    background: var(--lpl-light);
}

.lpl-buildings-header {
    width: min(900px, 100%);
    margin: 0 auto 44px;
    text-align: center;
}

.lpl-buildings-header .lpl-section-kicker {
    margin-bottom: 14px;
    color: var(--lpl-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lpl-buildings-header h1 {
    margin: 0 0 20px;
    color: var(--lpl-dark);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.08;
}

.lpl-buildings-header p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--lpl-text);
    font-size: 19px;
    line-height: 1.65;
}

/* Filtres */

.lpl-buildings-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(1300px, 100%);
    margin: 0 auto 45px;
}

.lpl-buildings-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--lpl-border);
    border-radius: 999px;
    background: var(--lpl-white);
    color: var(--lpl-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.lpl-buildings-filter:hover,
.lpl-buildings-filter.is-active {
    border-color: var(--lpl-blue);
    background: var(--lpl-blue);
    color: var(--lpl-white);
    transform: translateY(-1px);
}

/* Grille */

.lpl-buildings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(1400px, 100%);
    margin: 0 auto;
}

.lpl-building-card {
    overflow: hidden;
    border: 1px solid var(--lpl-border);
    border-radius: 22px;
    background: var(--lpl-white);
    box-shadow: 0 18px 45px rgba(13, 27, 53, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.lpl-building-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(13, 27, 53, 0.13);
}

.lpl-building-card-image {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #e9edf4;
}

.lpl-building-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.lpl-building-card:hover .lpl-building-card-image img {
    transform: scale(1.04);
}

.lpl-building-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--lpl-text);
    font-weight: 600;
}

.lpl-building-status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(13, 27, 53, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.lpl-building-status.is-available {
    background: var(--lpl-blue);
    color: var(--lpl-white);
}

.lpl-building-status.is-full {
    background: rgba(255, 255, 255, 0.94);
    color: var(--lpl-text);
}

.lpl-building-card-content {
    padding: 27px 28px 30px;
}

.lpl-building-sector {
    margin-bottom: 8px;
    color: var(--lpl-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lpl-building-card h2 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
}

.lpl-building-card h2 a {
    color: var(--lpl-dark);
}

.lpl-building-card h2 a:hover {
    color: var(--lpl-blue);
}

.lpl-building-address,
.lpl-building-neighbourhood {
    margin: 0 0 8px;
    color: var(--lpl-text);
    font-size: 16px;
    line-height: 1.5;
}

.lpl-building-unit-types {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--lpl-border);
}

.lpl-building-unit-types span {
    display: block;
    margin-bottom: 4px;
    color: var(--lpl-text);
    font-size: 13px;
}

.lpl-building-unit-types strong {
    color: var(--lpl-dark);
    font-size: 15px;
    font-weight: 600;
}

.lpl-building-card-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--lpl-blue);
    font-size: 14px;
    font-weight: 700;
}

.lpl-building-card-link:hover {
    color: var(--lpl-blue-dark);
}

/* Aucun résultat */

.lpl-buildings-empty {
    width: min(700px, 100%);
    margin: 0 auto;
    padding: 50px 30px;
    border-radius: 20px;
    background: var(--lpl-white);
    text-align: center;
}

.lpl-buildings-empty h2 {
    margin-bottom: 12px;
    color: var(--lpl-dark);
}

.lpl-buildings-empty p {
    margin-bottom: 22px;
    color: var(--lpl-text);
}


/* Menu déroulant mobile */

.lpl-buildings-mobile-filter {
    display: none;
    width: min(600px, 100%);
    margin: 0 auto 32px;
}

.lpl-buildings-mobile-filter label {
    display: block;
    margin-bottom: 9px;
    color: var(--lpl-dark);
    font-size: 14px;
    font-weight: 700;
}

.lpl-buildings-select-wrap {
    position: relative;
}

.lpl-buildings-select-wrap::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--lpl-blue);
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-58%);
}

.lpl-buildings-mobile-filter select {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 50px 12px 16px;
    border: 1px solid var(--lpl-border);
    border-radius: 12px;
    background-color: var(--lpl-white);
    color: var(--lpl-dark);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}


/* Tablette */

@media (max-width: 1100px) {
    .lpl-buildings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 700px) {
    .lpl-buildings-page {
        padding: 65px 20px 80px;
    }

    .lpl-buildings-header {
        margin-bottom: 32px;
    }

    .lpl-buildings-header h1 {
        font-size: 40px;
    }

    .lpl-buildings-header p {
        font-size: 17px;
    }

.lpl-buildings-filters {
    display: none;
}

.lpl-buildings-mobile-filter {
    display: block;
}

    .lpl-buildings-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .lpl-building-card-image {
        height: 235px;
    }

    .lpl-building-card-content {
        padding: 24px 22px 27px;
    }

    .lpl-building-card h2 {
        font-size: 24px;
    }

    .lpl-building-status {
        right: 13px;
        bottom: 13px;
        max-width: calc(100% - 26px);
        font-size: 12px;
    }
}

/* =========================================================
   Finition du filtrage dynamique
   ========================================================= */

.lpl-buildings-results-meta {
    display: flex;
    justify-content: flex-end;
    width: min(1220px, 100%);
    margin: -14px auto 18px;
    color: var(--lpl-text);
    font-size: 15px;
}

.lpl-buildings-count {
    font-weight: 700;
}

.lpl-building-card.is-filter-entering {
    animation: lpl-card-filter-in 280ms ease both;
}

@keyframes lpl-card-filter-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lpl-building-card.is-filter-entering {
        animation: none;
    }
}

@media (max-width: 700px) {
    .lpl-buildings-results-meta {
        justify-content: flex-start;
        margin-top: -12px;
        margin-bottom: 16px;
    }
}


/* =========================================================
   CARTE DES IMMEUBLES
   ========================================================= */

.lpl-buildings-map-section {
    --lpl-blue: #1f5fbf;
    --lpl-blue-dark: #12376f;
    --lpl-dark: #0d1b35;
    --lpl-text: #68758c;
    --lpl-light: #f5f7fb;
    --lpl-white: #ffffff;
    width: 100%;
    padding: 80px 24px;
    background: var(--lpl-white);
}

.lpl-buildings-map-heading {
    width: min(900px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.lpl-buildings-map-heading h2 {
    margin: 7px 0 13px;
    color: var(--lpl-dark);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.12;
    font-weight: 800;
}

.lpl-buildings-map-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--lpl-text);
    font-size: 18px;
    line-height: 1.65;
}

.lpl-buildings-map {
    display: block;
    width: min(1220px, 100%);
    height: 580px;
    min-height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #e8edf5;
    box-shadow: 0 22px 60px rgba(13, 27, 53, 0.12);
}

.lpl-map-popup {
    width: 280px;
    max-width: 100%;
    color: var(--lpl-dark);
    font-family: inherit;
}

.lpl-map-popup-image {
    display: block;
    width: 100%;
    height: 145px;
    margin-bottom: 13px;
    border-radius: 12px;
    object-fit: cover;
}

.lpl-map-popup-content h3 {
    margin: 0 0 7px;
    color: var(--lpl-dark);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
}

.lpl-map-popup-address,
.lpl-map-popup-status {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
}

.lpl-map-popup-address {
    color: var(--lpl-text);
}

.lpl-map-popup-status {
    color: var(--lpl-blue);
    font-weight: 700;
}

.lpl-map-popup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.lpl-map-popup-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--lpl-blue);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.lpl-map-popup-links a:last-child {
    background: var(--lpl-light);
    color: var(--lpl-blue) !important;
}

@media (max-width: 700px) {
    .lpl-buildings-map-section {
        padding: 60px 20px;
    }

    .lpl-buildings-map-heading {
        margin-bottom: 25px;
        text-align: left;
    }

    .lpl-buildings-map-heading h2 {
        font-size: 36px;
    }

    .lpl-buildings-map-heading p {
        font-size: 16px;
    }

    .lpl-buildings-map {
        height: 470px;
        min-height: 400px;
        border-radius: 18px;
    }
}

/* Bouton Faire une demande dans les cartes d’appartement */
.lpl-app-card-premium .lpl-app-card-premium-request {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #1f5fbf !important;
    border-radius: 7px;
    background-color: #ffffff !important;
    color: #1f5fbf !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    text-indent: 0 !important;
}

.lpl-app-card-premium .lpl-app-card-premium-request:hover {
    background-color: #eef4ff !important;
    color: #12376f !important;
}

/* Les deux boutons restent bien alignés */
.lpl-app-card-premium .lpl-app-card-premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
