/* =========================================================================
   Logements — page de liste (ordinateur)
   -------------------------------------------------------------------------
   Colonne de filtres à gauche façon Booking, grille de cartes à droite.
   Même palette que la version téléphone : bleu du logo, marine pour les
   valeurs, rouge pour le cœur.

   Chargée par la seule vue reservation/locationsApp.php.
   ========================================================================= */

:root {
  --lgd-blue: var(--yb-blue, #0d65c9);
  --lgd-navy: var(--yb-navy, #0d233e);
  --lgd-red:  var(--yb-red, #ce130d);
  --lgd-ink:  #101828;
  --lgd-body: #667085;
  --lgd-line: #e7eaf0;
  --lgd-page: #f6f8fb;
}

.lgd { background: var(--lgd-page); padding: 0 0 70px; }

/* ---------- Héros --------------------------------------------------------- */

/* Même construction que le héros de la page événements : photo, voile dégradé,
   titre en trois temps dont un accent bleu. */
.lgd-hero {
  position: relative; overflow: hidden;
  /* bread-bg7.jpg est un gabarit « 1920x765 », pas une photo : on reprend un
     visuel réel déjà présent dans le projet. */
  background: url("../uploads/apparts/hotel1.jpg") center 60% / cover no-repeat, #0b1220;
  padding: 46px 0 54px;
}
.lgd-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,15,28,.88) 0%, rgba(9,15,28,.64) 48%, rgba(9,15,28,.28) 100%);
}
.lgd-hero > .container { position: relative; z-index: 1; }
.lgd-hero__title {
  margin: 0; color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.8px; line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.lgd-hero__title span { color: var(--lgd-blue); }
.lgd-hero__rule { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--lgd-blue); margin: 14px 0 12px; }
.lgd-hero__sub { margin: 0; max-width: 560px; font-size: 15.5px; color: rgba(255,255,255,.90); }

/* Pastilles de catégorie, posées à cheval sur le bas du héros. */
.lgd-cats {
  position: relative; z-index: 2; margin: -26px auto 26px;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 10px 30px rgba(16,24,40,.12);
}
.lgd-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--lgd-line);
  font-size: 14px; font-weight: 700; color: var(--lgd-ink) !important;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
/* L'icône porte le sens quand le libellé dit l'usage (« Pour travailler ») et
   non le type de bien ; elle est donc un peu plus grande que le texte. */
.lgd-cat > .la { font-size: 18px; line-height: 1; }
.lgd-cat:hover { border-color: var(--lgd-blue); color: var(--lgd-blue) !important; }
.lgd-cat.is-on {
  background: var(--lgd-blue); border-color: var(--lgd-blue); color: #fff !important;
  box-shadow: 0 5px 14px rgba(37,99,235,.30);
}

/* ---------- Colonne de filtres ------------------------------------------- */

.lgd-filtres {
  position: sticky; top: 18px;
  padding: 20px; border-radius: 16px; background: #fff;
  border: 1px solid var(--lgd-line); box-shadow: 0 4px 16px rgba(16,24,40,.06);
}
.lgd-filtres h2 {
  margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--lgd-ink);
  display: flex; align-items: center; gap: 8px;
}
.lgd-filtres h2 i { color: var(--lgd-blue); }
.lgd-groupe { margin-bottom: 16px; border: 0; padding: 0; }
/* Les mesures vivent dans .lgd-duo > div : sans les viser, leurs libellés
   retombaient sur le style de titre du thème et sortaient plus gros que les
   autres. */
.lgd-groupe > label, .lgd-groupe legend, .lgd-duo > div > label {
  display: block; width: auto; margin: 0 0 6px; padding: 0; float: none;
  font-size: 11.5px; font-weight: 700; color: var(--lgd-body);
}
.lgd-groupe select, .lgd-groupe input[type="number"] {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--lgd-line); border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--lgd-ink); outline: none;
}
.lgd-groupe select:focus, .lgd-groupe input:focus { border-color: var(--lgd-blue); }
/* auto-fit : une seule mesure occupe toute la largeur, deux se partagent la
   ligne. Une grille figée à deux colonnes laissait une case vide en vue « Tous ». */
.lgd-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

.lgd-equips { display: grid; gap: 7px; }
.lgd-equip { margin: 0; cursor: pointer; }
.lgd-equip input { position: absolute; opacity: 0; pointer-events: none; }
.lgd-equip span {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--lgd-line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--lgd-ink);
}
.lgd-equip span i { font-size: 16px; color: var(--lgd-body); }
/* La sélection se lit au fond autant qu'à la couleur : la teinte seule ne suffit
   pas pour qui distingue mal les couleurs. */
.lgd-equip input:checked + span { border-color: var(--lgd-blue); background: #eef4ff; color: var(--lgd-blue); }
.lgd-equip input:checked + span i { color: var(--lgd-blue); }
.lgd-equip input:focus-visible + span { outline: 2px solid var(--lgd-blue); outline-offset: 2px; }

.lgd-actions { display: flex; gap: 9px; margin-top: 18px; }
.lgd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.lgd-btn--plein { background: var(--lgd-blue); color: #fff !important; box-shadow: 0 4px 12px rgba(37,99,235,.28); }
.lgd-btn--plat { background: #fff; color: var(--lgd-body) !important; border: 1px solid var(--lgd-line); }
.lgd-actions .lgd-btn { flex: 1 1 0; }

/* ---------- Barre de résultats et grille --------------------------------- */

.lgd-barre {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.lgd-barre h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--lgd-ink); }
.lgd-barre p { margin: 2px 0 0; font-size: 14px; color: var(--lgd-body); }
.lgd-barre select {
  height: 42px; padding: 0 34px 0 12px;
  border: 1px solid var(--lgd-line); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--lgd-ink);
}

.lgd-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (min-width: 1400px) { .lgd-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .lgd-grille { grid-template-columns: 1fr; } }

.lgd-carte {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(16,24,40,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lgd-carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.14); }
.lgd-carte__media { position: relative; overflow: hidden; }
/* style.css impose « .d-block img { min-height:260px; max-height:260px } » à
   cette page : on cadre explicitement pour que la grille reste régulière. */
.lgd-carte__media img {
  width: 100%; height: 214px; min-height: 0 !important; max-height: none !important;
  object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.lgd-carte:hover .lgd-carte__media img { transform: scale(1.06); }
.lgd-coeur {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.93); color: #98a2b3; font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,24,40,.16);
}
.lgd-coeur.is-on { color: var(--lgd-red); }
.lgd-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--lgd-navy);
  font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(16,24,40,.16);
}

.lgd-carte__corps { padding: 16px 17px 17px; display: flex; flex-direction: column; flex: 1 1 auto; }
.lgd-carte__titre { margin: 0; font-size: 18.5px; font-weight: 800; letter-spacing: -.3px; color: var(--lgd-ink); }
.lgd-carte__titre a { color: inherit !important; }
.lgd-carte__lieu { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--lgd-body); }

.lgd-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.lgd-chips li {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: #f2f4f7;
  font-size: 12.5px; font-weight: 700; color: var(--lgd-ink);
}
.lgd-chips li i { font-size: 14px; color: var(--lgd-body); }
.lgd-chips li.is-vide { background: #fff7ed; color: #b45309; font-weight: 600; }

.lgd-carte__pied {
  margin-top: auto; padding-top: 15px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.lgd-prix { margin: 0; }
.lgd-prix strong { font-size: 22px; font-weight: 800; color: var(--lgd-blue); }
.lgd-prix span { display: block; font-size: 12.5px; color: var(--lgd-body); }
.lgd-prix__absent { font-size: 14px; font-weight: 600; color: var(--lgd-body); }

.lgd-vide {
  padding: 46px 24px; border-radius: 16px; background: #fff; text-align: center;
  color: var(--lgd-body); box-shadow: 0 4px 18px rgba(16,24,40,.08);
}
.lgd-vide i { font-size: 40px; color: #cbd2e0; display: block; margin-bottom: 10px; }

.lgd-pages { margin-top: 26px; }
.lgd-pages .pagination { justify-content: center; flex-wrap: wrap; gap: 5px; }
.lgd-pages .page-link { border-radius: 9px; }
