/**
 * Findar V46145 — results trust and public-navigation cleanup.
 * Final additive cascade. Findar blue carries actions and transaction state;
 * green remains reserved for WhatsApp and verified trust signals.
 */

/* Estimator is intentionally deferred. Keep its route intact but remove every
 * public navigation entry, including hard-coded parent-theme footer links. */
body:not(.wp-admin) a[href*="/estimer-votre-bien/"],
body:not(.wp-admin) a[href$="/estimer-votre-bien"] {
  display: none !important;
}

/* The useful semantic content remains above the results. This old auto-output
 * block duplicated the dark footer and is also disabled server-side. */
body:not(.wp-admin) .findar-seo-footer {
  display: none !important;
}

/* One brand language: rental is a product state, not a WhatsApp state. */
.fmp-transaction-badge.is-rent {
  border-color: rgba(255, 255, 255, .54) !important;
  background: rgba(24, 87, 255, .95) !important;
  color: #fff !important;
}

.fmp-property-price-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.fmp-property-price small {
  margin-inline-start: 3px;
  color: #526175;
  font-size: .5em;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.fmp-property-price-note {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #f7f9fc;
  color: #5f6e83;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
}

.fmp-property-price-note.is-review {
  border-color: #e9cfa0;
  background: #fff9ec;
  color: #795518;
}

body.findar-mobile-premium-search .fmp-property-mainline {
  align-items: flex-start !important;
}

body.findar-mobile-premium-search .fmp-property-facts {
  display: flex !important;
  overflow: hidden !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
}

body.findar-mobile-premium-search .fmp-property-facts span {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 26px !important;
  padding: 0 9px !important;
  border: 1px solid #e1e7ef !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #25344a !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.findar-mobile-premium-search .fmp-property-facts span::after {
  content: none !important;
}

body.findar-mobile-premium-search .fmp-property-facts i {
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: #1857ff;
  box-shadow: 0 0 0 3px rgba(24, 87, 255, .10);
}

body.findar-mobile-premium-search .fmp-property-facts .is-area i {
  border-radius: 1px;
  background: #526175;
  box-shadow: none;
}

body.findar-mobile-premium-search .fmp-property-location {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

body.findar-mobile-premium-search .fmp-property-location > span {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1.7px solid #68778c;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

body.findar-mobile-premium-search .fmp-property-location > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #68778c;
  content: "";
}

.fmp-property-card.has-no-photo .fmp-property-media,
.fmp-property-card.has-no-photo .fmp-property-photo-link {
  background:
    radial-gradient(circle at 18% 20%, rgba(24, 87, 255, .13), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(8, 20, 38, .08), transparent 30%),
    linear-gradient(145deg, #f7f9fd, #e9eef6) !important;
}

.fmp-property-card.has-no-photo .fmp-property-no-photo {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 28px !important;
  color: #223149 !important;
  text-align: center !important;
}

.fmp-property-card.has-no-photo .fmp-property-no-photo svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #1857ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.fmp-property-card.has-no-photo .fmp-property-no-photo strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.fmp-property-card.has-no-photo .fmp-property-no-photo small {
  color: #68778c;
  font-size: 11px;
  font-weight: 750;
}

.fmp45-single-price-note {
  color: #795518 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

html[dir="rtl"] .fmp-property-card.has-no-photo .fmp-property-no-photo,
html[dir="rtl"] .fmp-property-price-stack {
  align-items: flex-end;
}

html[dir="rtl"] body.findar-mobile-premium-search .fmp-property-location > span {
  transform: rotate(135deg);
}

@media (max-width: 768px) {
  body.findar-mobile-premium-search .fmp-property-facts {
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
  }

  body.findar-mobile-premium-search .fmp-property-facts::-webkit-scrollbar {
    display: none;
  }

  .fmp-property-price-note {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmp-property-card,
  .fmp-property-card img {
    transition: none !important;
  }
}
