/* =============================================================
   INVESTIR À CHYPRE — Bloc filtres
   /pages/base/filters/style.css
   ============================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --icf-blue:       #004080;
  --icf-blue-lt:    rgba(0, 51, 102, .07);
  --icf-blue-ring:  rgba(0, 51, 102, .12);
  --icf-orange:     #e86a1a;
  --icf-white:      #ffffff;
  --icf-text:       #1a2434;
  --icf-muted:      #6b7a93;
  --icf-border:     #ced6e3;
  --icf-border-hov: #a8b6cc;
  --icf-soft:       #f4f7fb;
  --icf-line:       #eaeff6;

  --icf-r-lg:   18px;
  --icf-r-md:   10px;
  --icf-r-sm:   7px;
  --icf-r-pill: 999px;

  --icf-shadow:      0 1px 4px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .07);
  --icf-shadow-dd:   0 6px 24px rgba(15, 23, 42, .13);
  --icf-shadow-btn:  0 4px 14px rgba(0, 51, 102, .22);

  --icf-h:      46px;   /* hauteur des champs */
  --icf-f:      14.5px;
  --icf-f-lbl:  11px;
  --icf-f-hint: 12px;
}

/* ── Utilitaires ────────────────────────────────────────────── */
.icf *, .icf *::before, .icf *::after { box-sizing: border-box; }
.is-hidden { display: none !important; }

/* ── Wrapper ────────────────────────────────────────────────── */
.icf {
  color: var(--icf-text);
  font-size: var(--icf-f);
  margin: 20px 0 32px;
}

/* ── Panel ──────────────────────────────────────────────────── */
.icf-panel {
  background: var(--icf-white);
  border: 1px solid var(--icf-line);
  border-radius: var(--icf-r-lg);
  box-shadow: var(--icf-shadow);
  padding: 26px 28px;
  position: relative;
  overflow: visible;
}

.icf-panel::before {          /* barre accent top */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--icf-blue) 0%, #2d72c2 100%);
  border-radius: var(--icf-r-lg) var(--icf-r-lg) 0 0;
}

/* ── Résumé filtres actifs ──────────────────────────────────── */
.icf-summary {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 11px;
  margin-bottom: 12px;
  background: var(--icf-blue-lt);
  border: 1px solid var(--icf-blue-ring);
  border-radius: var(--icf-r-sm);
}

.icf-summary__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--icf-blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.icf-summary__text {
  font-size: 12px;
  color: var(--icf-blue);
  opacity: .75;
  line-height: 1.4;
  flex: 1;
}

/* Bouton Réinitialiser inline dans la barre de résumé */
.icf-summary .icf-reset {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--icf-blue);
  opacity: .7;
}
.icf-summary .icf-reset:hover { opacity: 1; color: var(--icf-orange); }

/* ── Ligne principale ───────────────────────────────────────── */
.icf-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Groupe de champs filtres (flex wrap) */
.icf-fields {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
}

/* Colonne droite : boutons Appliquer + Réinitialiser */
.icf-actions-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 160px;
  padding-top: 17px; /* label (11px font-size, line-height:1) + gap (6px) = 17px → aligne le bouton avec les inputs */
}

/* Champ générique : prend de l'espace et empile label + input */
.icf-field {
  flex: 1 1 170px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icf-field--ville { flex-basis: 210px; flex-grow: 1.4; }
.icf-field--price { flex: 0 0 120px; }


/* ── Ligne switch (moyen/long terme) ────────────────────────── */

/* Slot interne (ex : prix conditionnel, item dans dates) */
.icf-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Label ──────────────────────────────────────────────────── */
.icf-label {
  display: block;
  font-size: var(--icf-f-lbl);
  font-weight: 700;
  color: var(--icf-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}

/* ── Input (text / number / date / select) ──────────────────── */
.icf-input {
  width: 100%;
  height: var(--icf-h);
  padding: 0 13px;
  border: 1.5px solid var(--icf-border);
  border-radius: var(--icf-r-md);
  background: var(--icf-white);
  color: var(--icf-text);
  font-size: var(--icf-f);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.icf-input::placeholder       { color: #a0aab8; }
.icf-input:hover               { border-color: var(--icf-border-hov); }
.icf-input:focus               { border-color: var(--icf-blue); box-shadow: 0 0 0 3px var(--icf-blue-ring); }
.icf-input:disabled            { background: var(--icf-soft); color: #a0aab8; cursor: not-allowed; opacity: .65; }

/* Supprimer les flèches sur number */
.icf-input[type="number"]                          { -moz-appearance: textfield; }
.icf-input[type="number"]::-webkit-inner-spin-button,
.icf-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Select natif ───────────────────────────────────────────── */
.icf-select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--icf-muted) 50%),
    linear-gradient(135deg, var(--icf-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% + 1px),
    calc(100% - 11px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ── Hint ───────────────────────────────────────────────────── */
.icf-hint {
  font-size: var(--icf-f-hint);
  color: var(--icf-muted);
  line-height: 1.3;
}

/* ── Grille dates (Du / Au) ─────────────────────────────────── */
.icf-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Rayon (slider + label) ─────────────────────────────────── */
.icf-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icf-range {
  flex: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--icf-r-pill);
  background: linear-gradient(
    to right,
    var(--icf-blue) 0%,
    var(--icf-blue) var(--range-pct, 0%),
    #d4dbe9       var(--range-pct, 0%),
    #d4dbe9       100%
  );
  outline: none;
  cursor: pointer;
}

.icf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--icf-blue);
  border: 2.5px solid var(--icf-white);
  box-shadow: 0 2px 8px rgba(0, 51, 102, .25);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.icf-range:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 51, 102, .35);
}

.icf-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--icf-blue);
  border: 2.5px solid var(--icf-white);
  cursor: pointer;
}

.icf-range-label {
  white-space: nowrap;
  font-size: var(--icf-f-hint);
  font-weight: 600;
  color: var(--icf-blue);
  background: var(--icf-blue-lt);
  padding: 3px 9px;
  border-radius: var(--icf-r-pill);
}

/* ── Ligne "Plus de filtres" ────────────────────────────────── */
.icf-more-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--icf-line);
  display: flex;
  align-items: center;
}

/* ── Switch moyen/long terme ────────────────────────────────── */
.icf-switch-row { margin-top: 12px; }

.icf-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.icf-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.icf-switch__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border: 1.5px solid var(--icf-border);
  border-radius: var(--icf-r-pill);
  background: var(--icf-white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--icf-muted);
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}

/* Indicateur cercle */
.icf-switch__pill::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--icf-border);
  background: var(--icf-white);
  flex-shrink: 0;
  transition: border-color .18s, background .18s;
}

.icf-switch:hover .icf-switch__pill { border-color: var(--icf-border-hov); }

.icf-switch input:checked + .icf-switch__pill {
  background: var(--icf-blue-lt);
  border-color: var(--icf-blue);
  color: var(--icf-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, .07);
}

.icf-switch input:checked + .icf-switch__pill::before {
  border-color: var(--icf-blue);
  background: var(--icf-blue);
  box-shadow: inset 0 0 0 3px var(--icf-white);
}

/* ── Dropdown multiselect ───────────────────────────────────── */
.icf-dd { position: relative; }

.icf-dd__btn {
  width: 100%;
  min-height: var(--icf-h);
  padding: 0 40px 0 13px;
  border: 1.5px solid var(--icf-border);
  border-radius: var(--icf-r-md);
  background: var(--icf-white);
  color: var(--icf-text);
  font-size: var(--icf-f);
  text-align: left;
  cursor: pointer;
  position: relative;
  line-height: 1.3;
  transition: border-color .18s, box-shadow .18s;
}

.icf-dd__btn:hover { border-color: var(--icf-border-hov); }
.icf-dd__btn:focus { outline: none; border-color: var(--icf-blue); box-shadow: 0 0 0 3px var(--icf-blue-ring); }

/* Chevron */
.icf-dd__btn::after {
  content: '';
  position: absolute;
  right: 15px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--icf-muted);
  border-bottom: 2px solid var(--icf-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s, border-color .18s;
  pointer-events: none;
}

.icf-dd.is-open .icf-dd__btn::after  { transform: translateY(-30%) rotate(-135deg); border-color: var(--icf-blue); }
.icf-dd.is-open .icf-dd__btn         { border-color: var(--icf-blue); box-shadow: 0 0 0 3px var(--icf-blue-ring); }
.icf-dd.has-value .icf-dd__btn       { border-color: var(--icf-blue); background: var(--icf-blue-lt); color: var(--icf-blue); font-weight: 600; }

.icf-dd__label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 4px;
}

/* Panneau déroulant */
.icf-dd__panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0; right: 0;
  z-index: 30;
  background: var(--icf-white);
  border: 1.5px solid var(--icf-line);
  border-radius: var(--icf-r-md);
  box-shadow: var(--icf-shadow-dd);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.99);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
}

.icf-dd.is-open .icf-dd__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.icf-dd__list {
  display: grid;
  gap: 2px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}

.icf-dd__list::-webkit-scrollbar       { width: 5px; }
.icf-dd__list::-webkit-scrollbar-thumb { background: #d0daea; border-radius: var(--icf-r-pill); }

/* Option */
.icf-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--icf-r-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--icf-text);
  line-height: 1.3;
  transition: background .14s;
}

.icf-opt:hover               { background: var(--icf-soft); }
.icf-opt:has(input:checked)  { background: var(--icf-blue-lt); }

.icf-opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: 1.5px solid var(--icf-border);
  border-radius: 4px;
  background: var(--icf-white);
  cursor: pointer;
  position: relative;
  transition: border-color .14s, background .14s;
}

.icf-opt input:checked {
  border-color: var(--icf-blue);
  background: var(--icf-blue);
}

.icf-opt input:checked::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--icf-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.icf-opt input:disabled { opacity: .5; cursor: not-allowed; }

/* ── Bouton "Plus / Moins de filtres" ───────────────────────── */
.icf-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--icf-border);
  border-radius: var(--icf-r-pill);
  background: transparent;
  color: var(--icf-blue);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.icf-more-btn:hover   { border-color: var(--icf-blue); background: var(--icf-blue-lt); }
.icf-more-btn.is-open { background: var(--icf-blue-lt); border-color: var(--icf-blue); box-shadow: 0 0 0 3px rgba(0, 51, 102, .07); }

.icf-more-btn::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s;
  flex-shrink: 0;
}

.icf-more-btn.is-open::after { transform: translateY(2px) rotate(-135deg); }

/* ── Boutons d'action ───────────────────────────────────────── */
/* Bouton submit pleine largeur dans la colonne d'actions */
.icf-actions-col .icf-btn { width: 100%; }

.icf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--icf-h);
  padding: 0 22px;
  border: 0;
  border-radius: var(--icf-r-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .15s, box-shadow .18s;
}

.icf-btn:hover { transform: translateY(-1px); }

.icf-btn--primary {
  background: var(--icf-blue);
  color: var(--icf-white);
  box-shadow: var(--icf-shadow-btn);
}

.icf-btn--primary:hover {
  background: var(--icf-orange);
  box-shadow: 0 6px 18px rgba(232, 106, 26, .28);
}

.icf-reset {
  background: transparent;
  border: 0;
  color: var(--icf-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color .15s;
}

.icf-reset::before { content: '×'; font-size: 18px; line-height: 1; font-weight: 400; }
.icf-reset:hover   { color: var(--icf-text); }

/* ── Section avancée ────────────────────────────────────────── */
.icf-more         { width: 100%; }
.icf-more summary { display: none; } /* bouton JS contrôle l'ouverture */

.icf-more__body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--icf-line);
}

.icf-adv {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icf-card {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--icf-soft);
  border: 1px solid var(--icf-line);
  border-radius: var(--icf-r-md);
  padding: 13px 15px;
}

.icf-card__title {
  margin: 0;
  font-size: var(--icf-f-lbl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--icf-blue);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--icf-line);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .icf-field          { flex-basis: 150px; }
  .icf-field--ville   { flex-basis: 190px; }
  .icf-actions-col    { min-width: 140px; }
}

@media (max-width: 860px) {
  /* Passe en colonne : champs en haut, boutons en bas pleine largeur */
  .icf-main {
    flex-direction: column;
    align-items: stretch;
  }

  .icf-actions-col {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .icf-panel         { padding: 18px 16px; }
  .icf-field         { flex: 1 1 100%; }
  .icf-actions-col   { flex-direction: column; align-items: stretch; gap: 8px; }
  .icf-btn           { width: 100%; }
  .icf-reset         { text-align: center; justify-content: center; }
  .icf-dates         { grid-template-columns: 1fr 1fr; }
  .icf-card          { flex: 1 1 100%; }
  .icf-dd__panel     {
    position: static;
    margin-top: 5px;
    box-shadow: none;
    border-color: var(--icf-line);
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    pointer-events: auto;
  }
  .icf-dd.is-open .icf-dd__panel { display: block; }
}

@media (max-width: 400px) {
  .icf-dates { grid-template-columns: 1fr; }
}

/* =============================================================
   ÉTAT VIDE — "Prochainement" + bloc contact (pages annonces)
   ============================================================= */
.listings-coming-soon {
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  font-weight: 700;
  color: #004080;
  text-align: center;
  padding: 3rem 1rem;
  width: 100%;
}

.listing-contact {
  background: #fff;
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.5rem, 3vw, 3rem);
  margin: 1.5rem 0 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  border-top: 4px solid #004080;
}

.listing-contact__title {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
  color: #004080;
  margin: 0 0 0.6rem;
}

.listing-contact__sub {
  color: #555;
  font-size: clamp(0.9rem, 0.82rem + 0.3vw, 1rem);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.listing-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.listing-contact__btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: #004080;
  color: #fff;
  transition: background .15s ease;
}

.listing-contact__btn:hover {
  background: #e86a1a;
}

.listing-contact__btn--wa {
  background: #25d366;
}

.listing-contact__btn--wa:hover {
  background: #1da851;
}
