/*
 * Findar — canonical property detail layout v2
 * Scoped to .fdp-property-detail so archive/search pages remain untouched.
 */

.fdp-property-detail {
  --fdp-blue: #1638d8;
  --fdp-blue-dark: #0b217d;
  --fdp-ink: #0b1220;
  --fdp-muted: #667085;
  --fdp-line: #e5e7eb;
  --fdp-soft: #f7f8fb;
  --fdp-card: #fff;
  --fdp-green: #168a4a;
  --fdp-radius: 18px;
  --fdp-property-header-height: 0px;
  --fdp-section-nav-height: 50px;
  background: #fff;
  color: var(--fdp-ink);
  font-family: Outfit, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fdp-property-detail *,
.fdp-property-detail *::before,
.fdp-property-detail *::after {
  box-sizing: border-box;
}

.fdp-property-detail a {
  color: inherit;
}

.fdp-property-shell {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.fdp-property-header {
  display: none;
}

.fdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 16px;
  color: var(--fdp-muted);
  font-size: 13px;
  font-weight: 650;
}

.fdp-breadcrumb a {
  color: var(--fdp-blue);
  font-weight: 800;
  text-decoration: none;
}

.fdp-breadcrumb span[aria-hidden="true"] {
  color: #b7bfcc;
}

/* Sticks directly under the fixed Findar header. The offset is read from
   the header's own published height, never hardcoded.
 *
 * The admin bar term matters: .findar-header-mount shifts down by
 * --fmp16d-admin-h (32px desktop / 46px <=782px) when body.admin-bar is
 * present, via site-header.css. This rule used to stick at the header's
 * height alone, ignoring that shift, so the header's fixed bottom edge sat
 * --fmp16d-admin-h below where the nav stuck -- the header painted over the
 * nav's top edge (z-index 200 vs 60) as soon as sticky engaged, leaving only
 * a sliver of the nav visible. --fmp16d-admin-h is the token the other PDP
 * sticky systems already use for this same offset; it defaults to 0px and is
 * global (declared on :root / body.admin-bar), so it resolves correctly here
 * with no dependency on which stylesheet defines it. */
.fdp-section-nav {
  position: sticky;
  top: calc(var(--fmp16d-admin-h, 0px) + var(--findar-header-height-actual, var(--findar-header-height, 64px)));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: var(--fdp-section-nav-height);
  margin: 0 0 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.fdp-section-nav::-webkit-scrollbar {
  display: none;
}

.fdp-section-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 11px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.fdp-section-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: transparent;
}

.fdp-section-nav a.is-active,
.fdp-section-nav a[aria-current="true"] {
  color: var(--fdp-blue);
  background: #f3f6ff;
}

.fdp-section-nav a.is-active::after,
.fdp-section-nav a[aria-current="true"]::after {
  background: var(--fdp-blue);
}

.fdp-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #eef1f5;
}

.fdp-gallery-track {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 4px;
  min-height: 504px;
}

.fdp-gallery-slide {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8ecf2;
}

.fdp-gallery-slide:first-child {
  grid-row: 1 / 3;
}

.fdp-gallery-slide:nth-child(n+6) {
  display: none;
}

.fdp-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .28s ease;
}

@media (hover: hover) {
  .fdp-gallery-slide:hover img {
    transform: scale(1.018);
  }
}

.fdp-gallery-placeholder {
  display: grid;
  min-height: 504px;
  place-items: center;
  color: var(--fdp-muted);
  font-weight: 800;
}

.fdp-gallery-badge,
.fdp-gallery-counter,
.fdp-gallery-more {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.fdp-gallery-badge {
  top: 14px;
  left: 14px;
}

.fdp-gallery-counter {
  right: 14px;
  bottom: 14px;
}

.fdp-gallery-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.fdp-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
  color: var(--fdp-ink);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.fdp-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 26px 4px 24px;
  border-bottom: 1px solid var(--fdp-line);
}

.fdp-summary-main {
  min-width: 0;
}

.fdp-summary-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--fdp-blue);
  font-size: 13px;
  font-weight: 850;
}

.fdp-summary-kicker span + span::before {
  content: "•";
  margin-right: 8px;
  color: #a8b0bd;
}

.fdp-summary h1 {
  margin: 0;
  max-width: 820px;
  color: var(--fdp-ink);
  font-size: clamp(25px, 3.1vw, 39px);
  line-height: 1.08;
  letter-spacing: -.03em;
  unicode-bidi: plaintext;
}

.fdp-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  color: var(--fdp-muted);
  font-size: 15px;
  font-weight: 650;
}

.fdp-price-block {
  min-width: 210px;
  text-align: right;
}

.fdp-price {
  display: block;
  color: var(--fdp-ink);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.fdp-price-note {
  display: block;
  margin-top: 7px;
  color: var(--fdp-muted);
  font-size: 12px;
  font-weight: 700;
}

.fdp-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.fdp-fact {
  display: grid;
  gap: 2px;
  min-height: 74px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--fdp-line);
  border-radius: 14px;
  background: #fff;
}

.fdp-fact strong {
  color: var(--fdp-ink);
  font-size: 18px;
  font-weight: 900;
}

.fdp-fact span {
  color: var(--fdp-muted);
  font-size: 12px;
  font-weight: 700;
}

.fdp-insights {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.fdp-insight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe5f3;
  border-radius: 999px;
  background: #f8faff;
  color: #3f4b61;
  font-size: 12px;
  font-weight: 750;
}

.fdp-insight strong {
  color: var(--fdp-ink);
  font-weight: 900;
}

.fdp-mobile-quick-actions {
  display: none;
}

.fdp-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding-top: 26px;
}

.fdp-main-column {
  min-width: 0;
}

.fdp-section {
  scroll-margin-top: calc(var(--fdp-property-header-height) + var(--fdp-section-nav-height) + 22px);
  padding: 20px 0;
  border-bottom: 1px solid var(--fdp-line);
}

.fdp-section:first-child {
  padding-top: 0;
}

.fdp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.fdp-section-heading > div {
  min-width: 0;
}

.fdp-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--fdp-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdp-section h2 {
  margin: 0;
  color: var(--fdp-ink);
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.fdp-section-heading p,
.fdp-section-intro {
  margin: 7px 0 0;
  max-width: 720px;
  color: var(--fdp-muted);
  font-size: 14px;
  line-height: 1.55;
}

.fdp-description-wrap {
  position: relative;
}

.fdp-description {
  max-width: 790px;
  color: #293142;
  font-size: 16px;
  line-height: 1.72;
  unicode-bidi: plaintext;
}

.fdp-description > :first-child {
  margin-top: 0;
}

.fdp-description > :last-child {
  margin-bottom: 0;
}

.fdp-description.is-collapsed {
  max-height: 186px;
  overflow: hidden;
}

.fdp-description.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 80%);
}

.fdp-description-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fdp-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.fdp-neighborhood-browser {
  overflow: hidden;
  border: 1px solid var(--fdp-line);
  border-radius: var(--fdp-radius);
  background: #fff;
}

.fdp-neighborhood-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
}

.fdp-neighborhood-reset {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--fdp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fdp-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.fdp-poi-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fdp-poi-tabs::-webkit-scrollbar {
  display: none;
}

.fdp-poi-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--fdp-line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fdp-poi-tabs button.is-active,
.fdp-poi-tabs button[aria-selected="true"] {
  border-color: #cbd7ff;
  background: #edf2ff;
  color: var(--fdp-blue);
}

.fdp-neighborhood-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  min-height: 390px;
  border-top: 1px solid var(--fdp-line);
}

.fdp-map-frame {
  position: relative;
  min-height: 390px;
  background: #e9edf2;
}

.fdp-map-frame #findar-map,
.fdp-map-frame .findar-map {
  width: 100%;
  height: 100%;
  min-height: 390px;
}

.fdp-map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 18px rgba(15, 23, 42, .12);
  color: #344054;
  font-size: 11px;
  font-weight: 850;
}

.fdp-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fdp-blue);
}

.fdp-neighborhood-results {
  min-height: 390px;
  max-height: 390px;
  overflow: auto;
  padding: 14px;
  border-left: 1px solid var(--fdp-line);
  background: #fbfcfe;
}

.fdp-neighborhood-results .fmp40-initial,
.fdp-neighborhood-results .fmp40-empty,
.fdp-neighborhood-results .fmp40-error {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--fdp-muted);
  font-size: 13px;
}

.fdp-data-note {
  margin: 12px 18px 16px;
  color: var(--fdp-muted);
  font-size: 11px;
  line-height: 1.55;
}

.fdp-map-empty {
  padding: 20px;
  border: 1px dashed #cfd5df;
  border-radius: 14px;
  background: var(--fdp-soft);
  color: var(--fdp-muted);
  font-size: 14px;
}

.fdp-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fdp-detail-item {
  display: grid;
  gap: 5px;
  min-height: 76px;
  align-content: center;
  padding: 13px 14px;
  border: 1px solid var(--fdp-line);
  border-radius: 13px;
  background: #fff;
}

.fdp-detail-item span {
  color: var(--fdp-muted);
  font-size: 11px;
  font-weight: 750;
}

.fdp-detail-item strong {
  color: var(--fdp-ink);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fdp-extra-characteristics {
  margin-top: 16px;
}

.fdp-extra-characteristics .fmp-fiche-section,
.fdp-extra-characteristics section {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.fdp-quartier-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--fdp-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f9fbff, #fff);
}

.fdp-quartier-card strong {
  display: block;
  color: var(--fdp-ink);
  font-size: 17px;
  font-weight: 900;
}

.fdp-quartier-card p {
  margin: 5px 0 0;
  color: var(--fdp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fdp-location-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf8f1;
  color: #177245;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.fdp-location-status.is-approximate {
  background: #fff6df;
  color: #8a5a08;
}

.fdp-nearby-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--fdp-blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.fdp-sun-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fdp-sun-card {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  padding: 14px;
  border: 1px solid #f0e3bd;
  border-radius: 14px;
  background: #fffaf0;
}

.fdp-sun-card span {
  color: #8b6a1e;
  font-size: 11px;
  font-weight: 750;
}

.fdp-sun-card strong {
  color: #45320a;
  font-size: 17px;
  font-weight: 900;
}

.fdp-sun-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--fdp-muted);
  font-size: 12px;
  line-height: 1.55;
}

.fdp-empty-state {
  display: grid;
  gap: 5px;
  padding: 17px;
  border: 1px dashed #d5dbe5;
  border-radius: 14px;
  background: var(--fdp-soft);
}

.fdp-empty-state strong {
  color: var(--fdp-ink);
  font-size: 15px;
}

.fdp-empty-state span {
  color: var(--fdp-muted);
  font-size: 13px;
}

.fdp-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 20px;
  border-radius: 18px;
  background: #0d1c58;
  color: #fff;
}

.fdp-decision span {
  display: block;
  margin-bottom: 4px;
  color: #bfcaff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fdp-decision h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.fdp-decision p {
  margin: 6px 0 0;
  max-width: 650px;
  color: #dbe2ff;
  font-size: 13px;
  line-height: 1.5;
}

.fdp-decision a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 11px;
  background: #fff;
  color: #102475;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

/* Sticks below the fixed header AND below the section nav, computed from the
   sticky-stack tokens. The hardcoded 74px it replaced predated the current
   header height and put the card behind the nav. */
.fdp-contact-column {
  position: sticky;
  top: calc(
    var(--findar-header-height-actual, var(--findar-header-height, 64px))
    + var(--findar-property-nav-height, 52px)
    + var(--findar-space-4, 16px)
  );
}

.fdp-contact-card {
  overflow: hidden;
  border: 1px solid var(--fdp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.fdp-contact-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--fdp-line);
}

.fdp-contact-avatar {
  flex: 0 0 auto;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--fdp-blue);
  font-size: 19px;
  font-weight: 950;
}

.fdp-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fdp-contact-head strong {
  display: block;
  color: var(--fdp-ink);
  font-size: 16px;
  font-weight: 900;
}

.fdp-contact-head span {
  display: block;
  margin-top: 2px;
  color: var(--fdp-muted);
  font-size: 12px;
  font-weight: 700;
}

.fdp-contact-body {
  display: grid;
  gap: 9px;
  padding: 16px 18px 18px;
}

.fdp-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--fdp-blue);
  border-radius: 11px;
  background: var(--fdp-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.fdp-contact-action.is-secondary {
  background: #fff;
  color: var(--fdp-blue) !important;
}

.fdp-contact-action.is-whatsapp {
  border-color: #168a4a;
  background: #168a4a;
}

.fdp-contact-meta {
  display: grid;
  gap: 6px;
  margin: 3px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--fdp-line);
  color: var(--fdp-muted);
  font-size: 11px;
  line-height: 1.45;
}

.fdp-contact-meta strong {
  color: var(--fdp-ink);
}

.fdp-prudence {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
  color: #684d13;
  font-size: 11px;
  line-height: 1.45;
}

.fdp-prudence strong {
  display: block;
  margin-bottom: 2px;
}

.fdp-property-detail :focus-visible {
  outline: 3px solid rgba(22, 56, 216, .28);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .fdp-property-shell {
    width: min(920px, calc(100% - 28px));
  }

  .fdp-content-layout {
    grid-template-columns: 1fr;
  }

  .fdp-contact-column {
    position: static;
  }

  .fdp-contact-card {
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .fdp-property-detail {
    --fdp-property-header-height: 56px;
    --fdp-section-nav-height: 0px;
  }

  .fdp-property-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: var(--fdp-property-header-height);
    padding: 0 10px;
    border-bottom: 1px solid rgba(229, 231, 235, .94);
    background: rgba(255, 255, 255, .985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .fdp-property-header-left,
  .fdp-property-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .fdp-property-header-actions {
    justify-content: flex-end;
  }

  .fdp-property-brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }

  .fdp-property-brand img {
    display: block;
    width: auto;
    height: 23px;
    max-width: 84px;
    object-fit: contain;
  }

  .fdp-property-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 5px;
    border-radius: 9px;
    color: #243044;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
  }

  .fdp-property-back > span[aria-hidden="true"] {
    font-size: 19px;
    line-height: 1;
  }

  .fdp-property-header-actions .fdp-icon-button {
    width: 38px;
    height: 38px;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
    font-size: 20px;
  }

  .fdp-property-shell {
    width: 100%;
    padding: 0 0 52px;
  }

  .fdp-breadcrumb {
    display: none;
  }

  .fdp-section-nav {
    display: none;
  }

  .fdp-gallery {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 5;
    border-radius: 0;
  }

  .fdp-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fdp-gallery-track::-webkit-scrollbar {
    display: none;
  }

  .fdp-gallery-slide,
  .fdp-gallery-slide:first-child,
  .fdp-gallery-slide:nth-child(n+6) {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
  }

  .fdp-gallery-placeholder {
    min-height: 100%;
  }

  .fdp-gallery-actions,
  .fdp-gallery-more {
    display: none;
  }

  .fdp-gallery-badge {
    top: 12px;
    left: 12px;
  }

  .fdp-gallery-counter {
    right: 12px;
    bottom: 12px;
  }

  .fdp-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px 16px 14px;
  }

  .fdp-price-block { order: 1; }
  .fdp-summary-main { order: 2; }
  .fdp-facts { order: 3; }
  .fdp-insights { order: 4; }
  .fdp-mobile-quick-actions { order: 5; }

  .fdp-summary-kicker {
    margin: 7px 0 5px;
    font-size: 11px;
    line-height: 1.25;
  }

  .fdp-summary h1 {
    font-size: clamp(21px, 5.7vw, 25px);
    line-height: 1.1;
    letter-spacing: -.025em;
  }

  .fdp-location {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .fdp-price-block {
    margin: 0;
    min-width: 0;
    text-align: left;
  }

  .fdp-price {
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1;
  }

  .fdp-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #edf0f4;
  }

  .fdp-fact {
    display: inline-flex;
    min-height: 0;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .fdp-fact strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .fdp-fact span {
    font-size: 11px;
    line-height: 1.25;
  }

  .fdp-insights {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 10px -16px 0;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fdp-insights::-webkit-scrollbar { display: none; }

  .fdp-insight {
    flex: 0 0 auto;
    min-height: 29px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .fdp-mobile-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .fdp-mobile-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--fdp-blue);
    border-radius: 11px;
    background: var(--fdp-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .fdp-mobile-quick-actions a.is-secondary {
    background: #fff;
    color: var(--fdp-blue);
  }

  .fdp-content-layout {
    display: block;
    padding: 0;
  }

  .fdp-main-column {
    display: flex;
    flex-direction: column;
  }

  .fdp-main-column > #description { order: 1; }
  .fdp-main-column > #caracteristiques { order: 2; }
  .fdp-main-column > #autour { order: 3; }
  .fdp-main-column > #quartier { order: 4; }
  .fdp-main-column > #ensoleillement { order: 5; }
  .fdp-main-column > .fdp-decision { order: 6; }

  .fdp-section {
    padding: 20px 16px;
  }

  .fdp-section:first-child {
    padding-top: 20px;
  }

  .fdp-section-heading {
    display: block;
    margin-bottom: 10px;
  }

  .fdp-section h2 {
    font-size: 21px;
    line-height: 1.15;
  }

  .fdp-description {
    font-size: 14px;
    line-height: 1.58;
  }

  .fdp-description.is-collapsed {
    max-height: 132px;
  }

  .fdp-neighborhood-head {
    display: block;
    padding: 15px 14px 12px;
  }

  .fdp-neighborhood-reset {
    margin-top: 10px;
  }

  .fdp-poi-tabs {
    padding: 0 14px 12px;
  }

  .fdp-neighborhood-workspace {
    display: block;
    min-height: 0;
  }

  .fdp-map-frame,
  .fdp-map-frame #findar-map,
  .fdp-map-frame .findar-map {
    min-height: 225px;
    height: 225px;
  }

  .fdp-neighborhood-results {
    min-height: 130px;
    max-height: 220px;
    border-top: 1px solid var(--fdp-line);
    border-left: 0;
  }

  .fdp-data-note {
    margin: 10px 14px 14px;
  }

  .fdp-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .fdp-detail-item {
    min-height: 60px;
    padding: 9px 10px;
  }

  .fdp-quartier-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .fdp-location-status {
    justify-self: start;
  }

  .fdp-sun-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .fdp-sun-card {
    min-height: 70px;
    padding: 10px;
  }

  .fdp-decision {
    grid-template-columns: 1fr;
    margin: 0 16px 20px;
    padding: 15px;
  }

  .fdp-decision a {
    width: 100%;
  }

  .fdp-contact-column {
    margin: 0;
    padding: 0 16px 20px;
  }

  .fdp-contact-card {
    max-width: none;
    box-shadow: none;
  }
}

@media (max-width: 390px) {
  .fdp-property-header {
    padding-inline: 9px;
  }

  .fdp-property-back {
    padding-inline: 5px;
  }

  .fdp-property-header-actions {
    gap: 5px;
  }

  .fdp-property-brand img {
    max-width: 78px;
  }

  .fdp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fdp-property-detail *,
  .fdp-property-detail *::before,
  .fdp-property-detail *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}


/* ==========================================================================
   V46215 — PDP contextual search header: hard mobile authority.
   Unique ID intentionally outranks every legacy .fdp-property-header layer.
   ========================================================================== */
@media (max-width:780px){
  html body #findar-pdp-context-header-v46215{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    position:fixed!important;
    top:var(--fmp16d-admin-h,0px)!important;
    right:0!important;
    left:0!important;
    z-index:2147482000!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
    margin:0!important;
    padding:0 10px!important;
    overflow:visible!important;
    border:0!important;
    border-bottom:1px solid #e9edf3!important;
    background:#fff!important;
    color:#08162b!important;
    box-shadow:0 1px 0 rgba(8,22,43,.04)!important;
    transform:none!important;
    clip:auto!important;
    clip-path:none!important;
  }
  html body.single-propriete .fdp-property-detail,
  html body.findar-mobile-premium-single .fdp-property-detail{
    padding-top:56px!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-header-left{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;overflow:hidden!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-back{
    display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;
    width:auto!important;max-width:100%!important;height:42px!important;min-width:0!important;min-height:42px!important;
    margin:0!important;padding:0 3px!important;border:0!important;background:transparent!important;color:#08162b!important;
    text-decoration:none!important;overflow:hidden!important;font:800 14px/1 Outfit,Inter,system-ui,sans-serif!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-back-arrow{
    display:block!important;flex:0 0 auto!important;font-size:27px!important;font-weight:500!important;line-height:1!important;color:#08162b!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-context-label{
    display:block!important;visibility:visible!important;opacity:1!important;min-width:0!important;max-width:120px!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#08162b!important;
    font:800 14px/1.1 Outfit,Inter,system-ui,sans-serif!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-brand{
    display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    justify-self:center!important;min-width:0!important;text-decoration:none!important;color:#1239b8!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-brand-mark{
    display:block!important;visibility:visible!important;opacity:1!important;width:27px!important;max-width:27px!important;height:27px!important;max-height:27px!important;
    object-fit:contain!important;flex:0 0 auto!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-brand-text{
    display:block!important;visibility:visible!important;opacity:1!important;white-space:nowrap!important;color:#1239b8!important;
    font:800 18px/1 Outfit,Inter,system-ui,sans-serif!important;letter-spacing:-.025em!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-header-actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-header-actions>.fdp-icon-button{display:none!important;}
  html body #findar-pdp-context-header-v46215 .fdp-property-menu{
    display:inline-flex!important;visibility:visible!important;opacity:1!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
    flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;margin:0!important;padding:0 10px!important;
    border:1px solid #dfe5ee!important;border-radius:11px!important;background:#fff!important;color:#08162b!important;box-shadow:none!important;
  }
  html body #findar-pdp-context-header-v46215 .fdp-property-menu>span{
    display:block!important;width:18px!important;height:2px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#08162b!important;opacity:1!important;transform:none!important;
  }
}
@media (max-width:390px){
  html body #findar-pdp-context-header-v46215{padding-inline:8px!important;gap:4px!important;}
  html body #findar-pdp-context-header-v46215 .fdp-property-context-label{max-width:106px!important;font-size:13.5px!important;}
  html body #findar-pdp-context-header-v46215 .fdp-property-brand-mark{width:25px!important;max-width:25px!important;height:25px!important;max-height:25px!important;}
  html body #findar-pdp-context-header-v46215 .fdp-property-brand-text{font-size:17px!important;}
  html body #findar-pdp-context-header-v46215 .fdp-property-menu{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;}
}


/* ======================================================================
   V46217 — PDP mobile contextual header final authority.
   Back label always visible · Findar mark centred · menu on the right.
   Call + WhatsApp sticky actions remain the persistent bottom CTA.
   ==================================================================== */
@media (max-width:780px){
  html body #findar-pdp-context-header-v46216{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    position:fixed!important;
    top:var(--fmp16d-admin-h,0px)!important;
    right:0!important;
    left:0!important;
    z-index:2147482000!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
    margin:0!important;
    padding:0 10px!important;
    overflow:visible!important;
    border:0!important;
    border-bottom:1px solid #e9edf3!important;
    background:#fff!important;
    color:#08162b!important;
    box-shadow:0 1px 0 rgba(8,22,43,.04)!important;
    transform:none!important;
    clip:auto!important;
    clip-path:none!important;
  }
  html body.single-propriete .fdp-property-detail,
  html body.findar-mobile-premium-single .fdp-property-detail{
    padding-top:56px!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-header-left{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;overflow:hidden!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-back{
    display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;
    width:auto!important;max-width:100%!important;height:42px!important;min-width:0!important;min-height:42px!important;
    margin:0!important;padding:0 3px!important;border:0!important;background:transparent!important;color:#08162b!important;
    text-decoration:none!important;overflow:hidden!important;font:800 14px/1 Outfit,Inter,system-ui,sans-serif!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-back-arrow{
    display:block!important;flex:0 0 auto!important;font-size:27px!important;font-weight:500!important;line-height:1!important;color:#08162b!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-context-label{
    display:block!important;visibility:visible!important;opacity:1!important;min-width:0!important;max-width:120px!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#08162b!important;
    font:800 14px/1.1 Outfit,Inter,system-ui,sans-serif!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-brand{
    display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:center!important;gap:0!important;
    justify-self:center!important;min-width:46px!important;width:46px!important;height:44px!important;text-decoration:none!important;color:#1239b8!important;
    border-radius:12px!important;background:#fff!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-brand-mark{
    display:block!important;visibility:visible!important;opacity:1!important;width:44px!important;max-width:44px!important;height:33px!important;max-height:33px!important;
    object-fit:contain!important;flex:0 0 auto!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-header-actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-header-actions>.fdp-icon-button{display:none!important;}
  html body #findar-pdp-context-header-v46216 .fdp-property-menu{
    display:inline-flex!important;visibility:visible!important;opacity:1!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
    flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;margin:0!important;padding:0 10px!important;
    border:1px solid #dfe5ee!important;border-radius:11px!important;background:#fff!important;color:#08162b!important;box-shadow:none!important;
  }
  html body #findar-pdp-context-header-v46216 .fdp-property-menu>span{
    display:block!important;width:18px!important;height:2px!important;margin:0!important;border:0!important;border-radius:999px!important;background:#08162b!important;opacity:1!important;transform:none!important;
  }
  html body .fdp-fact-copy>strong,
  html body .fdp-price,
  html body .fdp-detail-item strong{
    color:#111827!important;
  }
}
@media (max-width:390px){
  html body #findar-pdp-context-header-v46216{padding-inline:8px!important;gap:4px!important;}
  html body #findar-pdp-context-header-v46216 .fdp-property-context-label{max-width:106px!important;font-size:13.5px!important;}
  html body #findar-pdp-context-header-v46216 .fdp-property-brand-mark{width:42px!important;max-width:42px!important;height:31px!important;max-height:31px!important;}
  html body #findar-pdp-context-header-v46216 .fdp-property-menu{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;}
}
