/* ===== FRICAIMMO LISTINGS PAGES ===== */

/* ===== PAGE HEADER ===== */
.listings-header {
  min-height: 340px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #292524 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 60px;
  gap: 32px;
  position: relative;
}

.listings-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(245,158,11,0.14) 0%, transparent 70%);
}

.listings-header-loc::before {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(59,130,246,0.14) 0%, transparent 70%);
}

.listings-header-content { position: relative; }

.listings-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin: 16px 0 12px;
  letter-spacing: -1px;
}

.listings-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
}

.listings-stats {
  display: flex;
  gap: 40px;
  position: relative;
}

.lst-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lst-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.lst-stat span:last-child {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ===== FILTRES ===== */
.listings-filters {
  background: #fff;
  border-bottom: 1.5px solid #e7e5e4;
  padding: 24px 5%;
  position: -webkit-sticky;
  position: sticky;
  top: 108px; /* navbar immo = 64px nav-top + 44px nav-cats */
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 10px 14px;
  border: 1.5px solid #e7e5e4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-filter {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--brand-dark);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  align-self: flex-end;
}

.btn-filter:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ===== GRILLE LISTINGS ===== */
.listings-page {
  background: #fafaf9;
  padding: 60px 5%;
}

.listings-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Bouton de chaque carte */
.listing-btn {
  display: block;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.listing-btn:hover {
  background: var(--gold);
  color: var(--brand-dark);
}

.listing-btn-loc {
  background: #dbeafe;
  color: #1e40af;
}

.listing-btn-loc:hover {
  background: #3b82f6;
  color: #fff;
}

/* CTA card */
.listing-cta {
  background: linear-gradient(135deg, var(--brand-dark), #92400e) !important;
  border-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-cta-inner {
  padding: 40px 28px;
  text-align: center;
}

.listing-cta h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.listing-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Active nav link */
.nav-link.active {
  color: var(--gold) !important;
}

/* ===== SECTIONS MEUBLÉ / NON MEUBLÉ ===== */
.listings-page-meuble {
  background: #f0fdf4;
}

.loc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.loc-section-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.loc-section-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.loc-section-title h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.loc-section-title p {
  font-size: 14px;
  color: #6b7280;
}

.loc-section-link {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  padding: 10px 20px;
  background: #dbeafe;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.loc-section-link:hover {
  background: #3b82f6;
  color: #fff;
}

/* Badges meublé / non meublé */
.etat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.etat-meuble {
  background: #dcfce7;
  color: #15803d;
}

.etat-non-meuble {
  background: #e0f2fe;
  color: #0369a1;
}

/* ===== FORMULAIRES PUBLICATION ===== */

/* Fond bleu pour la page location */
.fi-publish-loc { background: #eff6ff; }
.fi-publish-loc .fi-pub-icon { box-shadow: 0 2px 10px rgba(59,130,246,0.12); }

/* Bouton submit location */
.btn-submit-loc {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: #fff !important;
}

/* Upload zone location */
.fi-upload-zone-loc:hover { border-color: #3b82f6; }

/* Checkboxes équipements */
.fi-equipements {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
}

.fi-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.fi-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.fi-check input[type="checkbox"] { display: none; }

.fi-check span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #bae6fd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  width: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fi-check input[type="checkbox"]:checked + span {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.fi-check span:hover { border-color: #3b82f6; }

/* ===== LOC CHOICE HUB ===== */
.loc-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.loc-choice-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  border: 2px solid #e7e5e4;
  transition: all 0.3s;
  cursor: pointer;
}

.loc-choice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.loc-choice-card .loc-choice-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.loc-choice-card h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.loc-choice-card p {
  font-size: 16px;
  color: #6b7280;
  max-width: 320px;
  margin: 0 auto 28px;
}

.loc-choice-btn {
  display: inline-flex;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none;
}

.loc-choice-btn-blue {
  background: #1e40af;
  color: #fff;
}

.loc-choice-btn-blue:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.loc-choice-btn-green {
  background: #15803d;
  color: #fff;
}

.loc-choice-btn-green:hover {
  background: #166534;
  transform: translateY(-2px);
}

/* ===== MEUBLÉ HEADER TINT ===== */
.listings-header-meuble::before {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(21,128,61,0.14) 0%, transparent 70%);
}

/* ===== ÉQUIPEMENTS TAGS ON LISTING CARDS ===== */
.listing-equipements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.listing-equip-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 100px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  /* nav-cats masquée → navbar réduite à 64px */
  .listings-filters { top: 64px; }
}

@media (max-width: 1024px) {
  .listings-page-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-bar { gap: 12px; }
  .listings-header { padding: 100px 5% 48px; min-height: 280px; gap: 24px; }
}

@media (max-width: 768px) {
  .listings-page-grid { grid-template-columns: 1fr; }
  .listings-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .lst-num { font-size: 1.5rem; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .btn-filter { width: 100%; padding: 13px; font-size: 15px; }
  .listings-filters { position: static; padding: 16px 4%; }
  .loc-choice-grid { grid-template-columns: 1fr; }
  .listings-page { padding: 32px 4%; }
  .listings-header { padding: 88px 5% 36px; min-height: auto; gap: 20px; }
  .listings-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 10px 0 8px; }
  .listings-header p { font-size: 15px; }

  /* Taille de police 16px sur tous les champs → évite le zoom auto iOS/Android */
  .filter-group select,
  .filter-group input,
  .price-range-input,
  .lsb-input { font-size: 16px !important; }

  /* Touch targets : min 44×44px */
  .listing-heart { width: 44px; height: 44px; }
  .listing-share { width: 44px; height: 44px; }
  .listing-compare-btn { width: 44px; height: 44px; border-radius: 10px; }
  .map-toggle-btn { padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 600px) {
  .listings-stats { gap: 12px; }
  .lst-num { font-size: 1.3rem; }
  .lst-stat span:last-child { font-size: 12px; }
  .listings-search-bar { padding: 12px 12px 0; }
  .lsb-input { font-size: 16px !important; padding: 12px 6px; }
  .lsb-btn { padding: 0 14px; font-size: 13px; height: 48px; }

  /* Comparateur : plein écran sur petits mobiles */
  .compare-modal-overlay { padding: 0; align-items: flex-end; }
  .compare-modal { border-radius: 20px 20px 0 0; max-height: 92vh; }

  /* Toast full-width */
  .frica-toast { left: 12px; right: 12px; transform: translateY(20px); white-space: normal; text-align: center; border-radius: 12px; }
  .frica-toast.show { transform: translateY(0); }

  /* Recently viewed : 1 colonne sur très petits écrans */
  .rv-grid { grid-template-columns: 1fr 1fr; }

  /* Compare bar empilée */
  .compare-bar { padding: 12px 4%; gap: 12px; }
  .compare-bar-title { max-width: 100px; }
}

@media (max-width: 400px) {
  .rv-grid { grid-template-columns: 1fr; }
  .listings-page { padding: 24px 3%; }
  .listings-filters { padding: 12px 3%; }
}

/* ===== LEBONCOIN-INSPIRED ENHANCEMENTS ===== */

/* Heart & share overlay buttons */
.listing-img { position: relative; }

.listing-heart {
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s, background 0.18s;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  color: #9ca3af;
  padding: 0;
}
.listing-heart:hover { transform: scale(1.12); }
.listing-heart.active { color: #ef4444; }
.listing-heart.active svg { fill: #ef4444; stroke: #ef4444; }

.listing-share {
  position: absolute;
  top: 10px; right: 56px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.listing-share:hover { background: #fff; color: #111827; transform: scale(1.05); }

/* Seller badge */
.listing-seller-badge {
  display: inline-flex;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0;
  background: #f0f9ff; color: #0369a1;
}
.listing-seller-badge.pro { background: #f0f9ff; color: #0369a1; }

/* Price per m² */
.listing-price-m2 {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Views + date row */
.listing-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 4px;
}
.listing-views { font-size: 12px; color: #9ca3af; }
.listing-date  { font-size: 12px; color: #9ca3af; }

/* Voir le détail button */
.listing-btn-detail {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: #eff6ff;
  color: #1e40af;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px; font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.listing-btn-detail:hover { background: #1e40af; color: #fff; }

/* Results count */
.results-count {
  font-size: 14px; font-weight: 600;
  color: #6b7280;
  padding: 0 0 20px;
}

/* Save search button */
.btn-save-search {
  padding: 10px 16px;
  background: #fef3c7;
  color: #78350f;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  align-self: flex-end;
}
.btn-save-search:hover { background: #f59e0b; border-color: #f59e0b; color: #78350f; }

/* Saved searches bar */
.saved-searches-bar {
  padding: 10px 5%;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ss-label { font-size: 12px; font-weight: 700; color: #78350f; }
.ss-pill {
  padding: 5px 14px;
  background: #fff;
  border: 1.5px solid #fde68a;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  color: #78350f;
  cursor: pointer;
  transition: all 0.2s;
}
.ss-pill:hover { background: #f59e0b; border-color: #f59e0b; }
.ss-manage { font-size: 12px; font-weight: 700; color: #9ca3af; margin-left: auto; }

/* Favorites badge in navbar */
.fav-badge {
  display: none;
  min-width: 18px; height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 11px; font-weight: 800;
  border-radius: 100px;
  padding: 0 5px;
  align-items: center; justify-content: center;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}
.fav-nav-link { display: flex !important; align-items: center; gap: 4px; }

/* Toast notification */
.frica-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.frica-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Recently viewed section */
.rv-section {
  background: #fff;
  padding: 48px 5%;
  border-top: 1.5px solid #f3f4f6;
}
.rv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.rv-header h2 { font-size: 1.3rem; font-weight: 900; color: #111827; }
.rv-clear {
  font-size: 13px; font-weight: 600;
  color: #9ca3af;
  background: none; border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.rv-clear:hover { color: #ef4444; }
.rv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rv-card {
  border: 1.5px solid #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
}
.rv-card:hover { border-color: #f59e0b; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.rv-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.rv-body { padding: 10px 12px; }
.rv-type { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.rv-title { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-loc { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.rv-price { font-size: 13px; font-weight: 800; color: #78350f; }

@media (max-width: 1024px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== COMPARATEUR ===== */
.listing-compare-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.45);
  border: none; font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #6b7280; transition: all 0.2s; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.listing-compare-btn:hover, .listing-compare-btn.active {
  background: #f59e0b; color: #fff;
}
.listing-card.compare-selected {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
/* Floating compare bar */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1c1917; color: #fff;
  padding: 14px 5%; z-index: 8000;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-items { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.compare-bar-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border-radius: 10px; padding: 8px 12px;
}
.compare-bar-thumb {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.compare-bar-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.compare-bar-price { font-size: 11px; color: #f59e0b; }
.compare-bar-remove {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 18px; cursor: pointer; padding: 0 0 0 4px; line-height: 1;
  transition: color 0.2s;
}
.compare-bar-remove:hover { color: #ef4444; }
.compare-bar-placeholder {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 20px; border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 10px; font-size: 12px; color: rgba(255,255,255,0.4);
  text-align: center; line-height: 1.4;
}
.compare-bar-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.compare-bar-btn {
  padding: 10px 24px; background: #f59e0b; color: #78350f;
  border: none; border-radius: 9px; font-family: inherit;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.compare-bar-btn:disabled { opacity: 0.4; cursor: default; }
.compare-bar-btn:not(:disabled):hover { background: #d97706; }
.compare-bar-clear {
  font-size: 13px; color: rgba(255,255,255,0.4); background: none;
  border: none; cursor: pointer; font-family: inherit; transition: color 0.2s;
}
.compare-bar-clear:hover { color: #ef4444; }
/* Comparison modal */
.compare-modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 9500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.compare-modal {
  background: #fff; border-radius: 20px; max-width: 960px; width: 100%;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 32px 100px rgba(0,0,0,0.4);
}
.compare-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; border-bottom: 1.5px solid #f3f4f6; flex-shrink: 0;
}
.compare-modal-header h2 { font-size: 18px; font-weight: 900; color: #111827; }
.compare-modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #f3f4f6; font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #374151; transition: background 0.2s;
}
.compare-modal-close:hover { background: #e5e7eb; }
.compare-modal-body { overflow: auto; padding: 24px 28px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: center; }
.compare-label-col { width: 120px; }
.compare-label { text-align: left; font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px; background: #fafaf9; }
.compare-val { font-size: 14px; color: #111827; border-bottom: 1px solid #f3f4f6; }
.compare-table tbody tr:hover td { background: #fffbeb; }
.compare-th-img {
  height: 80px; border-radius: 10px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.compare-th-title { font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 4px; }
.compare-th-loc { font-size: 12px; color: #6b7280; }
.compare-contact-btn {
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  background: #fef3c7; color: #78350f; border: none;
  border-radius: 7px; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.compare-contact-btn:hover { background: #f59e0b; }
/* Card highlight from map */
.map-highlighted { outline: 3px solid #3b82f6; outline-offset: 2px; }

/* ===== CARTE LEAFLET ===== */
#listings-map {
  width: 100%; height: 580px; border-radius: 12px;
  display: none; margin-bottom: 20px;
}
.map-toggle-btn {
  margin-top: 16px; padding: 9px 20px;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.map-toggle-btn:hover, .map-toggle-btn.active { background: #f59e0b; border-color: #f59e0b; color: #78350f; }
/* Map marker */
.map-marker {
  padding: 5px 10px; border-radius: 8px; color: #fff;
  font-size: 11px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: relative;
}
.map-marker::after {
  content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: inherit;
  border-bottom: none;
}
/* Popup */
.frica-popup .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; }
.frica-popup .leaflet-popup-content { margin: 0; }
.map-popup { width: 240px; overflow: hidden; border-radius: 12px; }
.map-popup-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 36px; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.map-popup-body { padding: 12px 14px; }
.map-popup-type { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; margin-bottom: 4px; }
.map-popup-title { font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 3px; }
.map-popup-loc { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.map-popup-price { font-size: 15px; font-weight: 900; color: #78350f; margin-bottom: 10px; }
.map-popup-btn {
  display: block; width: 100%; padding: 8px; text-align: center;
  background: #f59e0b; color: #78350f; border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.map-popup-btn:hover { background: #d97706; }

/* ===== MULTI-DEVISE ===== */
.currency-widget {
  display: flex; align-items: center; gap: 6px;
}
.currency-flag { font-size: 18px; }
#currency-select {
  padding: 6px 10px;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px; color: #fff; font-family: inherit; font-size: 12px;
  cursor: pointer; max-width: 160px;
}
#currency-select option { background: #1c1917; color: #fff; }
#currency-select:focus { outline: none; border-color: #f59e0b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .compare-bar { flex-direction: column; align-items: stretch; }
  .compare-bar-items { justify-content: center; }
  .compare-table th, .compare-table td { padding: 8px; }
  #listings-map { height: 380px; }
  .compare-modal { border-radius: 12px; }
  .compare-modal-body { padding: 16px; }
}

/* ===== FILTRE PRIX MIN/MAX ===== */
.filter-group-price { min-width: 200px; }
.price-range-wrap { display: flex; align-items: center; gap: 6px; }
.price-range-input {
  width: 80px; padding: 8px 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-family: inherit; font-size: 13px; color: #1c1917; background: white;
  transition: border-color 0.2s;
}
.price-range-input:focus { border-color: #f59e0b; outline: none; }
.price-range-sep { color: #9ca3af; font-weight: 700; }

/* ===== FILTRE ÉQUIPEMENTS ===== */
.amenities-filter-wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 12px 20px; background: white; border-bottom: 1px solid #f3f4f6;
}
.amenities-label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.amenities-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-chip {
  padding: 6px 14px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  background: white; font-family: inherit; font-size: 13px; color: #374151;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.amenity-chip:hover { border-color: #f59e0b; background: #fffbeb; color: #78350f; }
.amenity-chip.active { border-color: #f59e0b; background: #fef3c7; color: #78350f; font-weight: 700; }

/* ===== BADGES CARTE ===== */
.listing-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 4;
}
.listing-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge-nouveau  { background: #10b981; color: white; }
.badge-nouveau-corner {
  position: absolute;
  top: 16px;
  left: 0;
  z-index: 10;
  border-radius: 0 4px 4px 0;
}
.badge-verifie  { background: #3b82f6; color: white; }
.badge-populaire { background: #f59e0b; color: #78350f; }
.badge-certifie {
  background: linear-gradient(135deg, #92400e, #f59e0b);
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(245,158,11,.45);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BARRE DE RECHERCHE LISTINGS ===== */
.listings-search-bar {
  padding: 18px 24px 0;
}
.lsb-inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lsb-inner:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.12);
}
.lsb-icon {
  padding: 0 14px;
  font-size: 18px;
  flex-shrink: 0;
  color: #9ca3af;
}
.lsb-input {
  flex: 1;
  padding: 14px 8px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #1c1917;
  background: transparent;
}
.lsb-input::placeholder { color: #9ca3af; }
.lsb-btn {
  padding: 0 28px;
  height: 52px;
  background: #f59e0b;
  color: #78350f;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.lsb-btn:hover { background: #d97706; }

@media (max-width: 600px) {
  .listings-search-bar { padding: 14px 16px 0; }
  .lsb-input { font-size: 14px; }
  .lsb-btn { padding: 0 18px; font-size: 13px; }
}

/* ===== BOUTONS CONTACT CARTES ===== */
.listing-btn-contact {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #78350f;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,158,11,.22);
  transition: all .2s ease;
}
.listing-btn-contact:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
  transform: translateY(-2px);
}
.listing-btn-contact-loc {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #78350f;
}
.listing-btn-contact-loc:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #78350f;
}
