/* annonces — CSS commun à listings_v2.html et en/listings.html.
   Extrait des deux pages le 31/10/2026 : une seule copie à maintenir.
   La langue de la page vient de <html lang> (voir _tl). */

/* ── bloc 0 ── */

    #resultsGrid {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
      gap: 1.2rem !important;
    }
    .listing-card {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,.07);
      transition: transform .2s, box-shadow .2s;
    }
    .listing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }
    .listing-badge {
      position: absolute; top: 10px; left: 10px;
      background: #111; color: #fff;
      border-radius: 999px; padding: .25rem .65rem;
      font-size: .75rem; font-weight: 800;
    }
    .listing-badge.premium { background: #ff7a00; }
    .fav-btn {
      position: absolute; top: 10px; right: 10px;
      background: rgba(255,255,255,.9); border: none;
      border-radius: 50%; width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: .95rem; color: #ff7a00;
      transition: transform .2s;
    }
    .fav-btn:hover { transform: scale(1.15); }

    /* ── Pagination ── */
    .pagination {
      display: flex; align-items: center; justify-content: center;
      gap: .4rem; margin: 2.5rem 0 1rem; flex-wrap: wrap;
    }
    .page-btn {
      min-width: 38px; height: 38px; padding: 0 .6rem;
      border: 1.5px solid #e5e5e5; background: #fff;
      border-radius: 10px; font-family: inherit; font-size: .85rem;
      font-weight: 700; color: #555; cursor: pointer;
      transition: all .2s; display: flex; align-items: center; justify-content: center;
    }
    .page-btn:hover { border-color: #ff7a00; color: #ff7a00; }
    .page-btn.active { background: #ff7a00; border-color: #ff7a00; color: #fff; }
    .page-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
    .page-btn.prev-next { gap: .3rem; padding: 0 .9rem; }
    .pagination-info {
      text-align: center; font-size: .82rem; color: #aaa;
      margin-bottom: .5rem;
    }
    /* ── Bouton alerte ── */
    .alert-bar {
      display: flex; align-items: center; justify-content: flex-end;
      margin: .75rem 0 0; gap: .6rem;
    }
    .btn-alert {
      display: inline-flex; align-items: center; gap: .4rem;
      background: none; border: 1.5px solid #ff7a00; color: #ff7a00;
      border-radius: 999px; padding: .42rem 1rem;
      font-family: inherit; font-size: .82rem; font-weight: 700;
      cursor: pointer; transition: all .18s;
    }
    .btn-alert:hover { background: #ff7a00; color: #fff; }
    .alert-popover {
      display: none; background: #fff; border-radius: 14px;
      box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 1.2rem 1.4rem;
      margin-top: .5rem; max-width: 420px; margin-left: auto;
    }
    .alert-popover.open { display: block; }
    .alert-popover h4 { font-size: .92rem; font-weight: 800; margin-bottom: .6rem; color: #111; }
    .alert-popover p  { font-size: .8rem; color: #666; margin-bottom: .8rem; }
    .alert-email-row  { display: flex; gap: 8px; }
    .alert-email-row input {
      flex: 1; border: 1.5px solid #e5e5e5; border-radius: 10px;
      padding: .55rem .85rem; font-family: inherit; font-size: .85rem;
    }
    .alert-email-row input:focus { outline: none; border-color: #ff7a00; }
    .btn-alert-submit {
      background: #ff7a00; color: #fff; border: none; border-radius: 10px;
      padding: .55rem 1rem; font-family: inherit; font-size: .82rem;
      font-weight: 800; cursor: pointer; white-space: nowrap;
    }
    .alert-msg { font-size: .8rem; margin-top: .5rem; font-weight: 600; }
    .alert-msg.ok  { color: #22c55e; }
    .alert-msg.err { color: #ef4444; }

    /* ── Multi-select district ── */
    .ms-field { position: relative; }
    .ms-trigger {
      display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
      cursor: pointer; min-height: 42px; padding: .42rem .75rem;
      background: rgba(255,255,255,.08); border: none;
      border-radius: 10px; font-family: inherit; font-size: .9rem;
      color: rgba(255,255,255,.7);
    }
    .ms-trigger:focus { outline: 2px solid #ff7a00; }
    .ms-placeholder { font-size: .88rem; color: rgba(255,255,255,.5); }
    .ms-chip {
      background: #ff7a00; color: #fff; border-radius: 999px;
      padding: .18rem .55rem; font-size: .75rem; font-weight: 700;
      display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
    }
    .ms-chip-rm {
      background: none; border: none; color: #fff; cursor: pointer;
      font-size: .72rem; padding: 0; line-height: 1; opacity: .8;
    }
    .ms-chip-rm:hover { opacity: 1; }
    .ms-arrow { margin-left: auto; font-size: .72rem; opacity: .5; flex-shrink: 0; transition: transform .2s; }
    .ms-field.open .ms-arrow { transform: rotate(180deg); }
    .ms-dropdown {
      display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
      background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
      z-index: 200; overflow: hidden;
    }
    .ms-field.open .ms-dropdown { display: block; }
    .ms-search {
      width: 100%; border: none; border-bottom: 1px solid #f0f0f0;
      padding: .6rem .85rem; font-family: inherit; font-size: .85rem;
      outline: none; color: #333;
    }
    .ms-options { max-height: 210px; overflow-y: auto; }
    .ms-opt {
      display: flex; align-items: center; gap: .6rem;
      padding: .52rem .85rem; cursor: pointer; font-size: .85rem; color: #333;
      transition: background .15s;
    }
    .ms-opt:hover { background: #f8f9fa; }
    .ms-opt input[type=checkbox] { accent-color: #ff7a00; cursor: pointer; flex-shrink: 0; }
    .ms-footer {
      display: flex; justify-content: space-between; align-items: center;
      padding: .55rem .85rem; border-top: 1px solid #f0f0f0;
    }
    .ms-clear { background: none; border: none; font-family: inherit; font-size: .78rem; color: #999; cursor: pointer; }
    .ms-clear:hover { color: #333; }
    .ms-count { font-size: .75rem; color: #ff7a00; font-weight: 700; }

    /* ── Chips quartiers similaires ── */
    .similar-wrap {
      display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
      margin-top: 1.8rem; padding: .9rem 1.1rem;
      background: #f8f9fa; border-radius: 12px;
      border: 1.5px solid #f0f0f0;
    }
    .similar-label {
      font-size: .78rem; font-weight: 700; color: #aaa;
      white-space: nowrap; margin-right: .2rem;
    }
    .similar-chip {
      background: #fff; border: 1.5px solid #e5e5e5;
      color: #444; border-radius: 999px;
      padding: .32rem .9rem; font-size: .8rem; font-weight: 700;
      text-decoration: none; transition: all .18s; white-space: nowrap;
    }
    .similar-chip:hover { border-color: #ff7a00; color: #ff7a00; background: #fff8f0; }
    /* Intertitre du second lot de resultats. `grid-column: 1/-1` le fait
       courir sur toute la largeur de la grille au lieu d'occuper une case. */
    .ch-plus-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: .9rem;
      margin: 1.6rem 0 .2rem; color: #8a909a; font-size: .82rem; font-weight: 800;
      letter-spacing: .04em; text-transform: uppercase; }
    .ch-plus-sep::before, .ch-plus-sep::after { content: ''; flex: 1; height: 1px; background: #e5e5e1; }
