/* PROPRIO237 — Fiche bien v4 (glass breadcrumb, mesh hero, price band, SEO) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

.property-body {
  --prop-ink: #1c1917;
  --prop-ink-soft: #44403c;
  --prop-muted: #78716c;
  --prop-cream: #faf7f2;
  --prop-paper: #ffffff;
  --prop-line: rgba(28, 25, 23, 0.08);
  --prop-bronze: #9a3412;
  --prop-bronze-light: #c2410c;
  --prop-gold: #b45309;
  --prop-accent-glow: rgba(194, 65, 12, 0.14);
  --prop-shadow: 0 20px 56px rgba(28, 25, 23, 0.08);
  --prop-shadow-sm: 0 8px 28px rgba(28, 25, 23, 0.06);
  --prop-radius: 24px;
  --prop-radius-sm: 14px;
  --prop-font: 'Outfit', system-ui, sans-serif;
  --prop-display: 'Cormorant Garamond', Georgia, serif;
  --prop-aside-sticky: calc(5.5rem + 0.75rem);
  color-scheme: light;
  margin: 0;
  font-family: var(--prop-font);
  font-size: clamp(15px, 0.25vw + 14px, 17px);
  line-height: 1.55;
  color: var(--prop-ink-soft);
  background-color: var(--prop-cream);
  background-image: radial-gradient(ellipse 100% 60% at 0% 0%, rgba(194, 65, 12, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(251, 191, 36, 0.05), transparent 48%),
    linear-gradient(185deg, #fdfcfa 0%, var(--prop-cream) 45%, #f0ebe4 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 960px) {
  .property-body {
    background-attachment: scroll;
  }
}

.property-main {
  padding-left: max(0px, env(safe-area-inset-left, 0));
  padding-right: max(0px, env(safe-area-inset-right, 0));
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0));
  min-height: 55vh;
}

.property-shell {
  width: 100%;
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 max(clamp(0.85rem, 4vw, 1.75rem), env(safe-area-inset-left, 0), env(safe-area-inset-right, 0));
}

@media (max-width: 380px) {
  .property-shell {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0));
  }
}

/* ——— États chargement / erreur ——— */
.property-state {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4rem) 1.25rem;
  color: var(--prop-muted);
}

.property-state--loading {
  max-width: 22rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 2.75rem) 1.5rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 248, 0.9) 100%);
  border-radius: var(--prop-radius);
  border: 1px solid var(--prop-line);
  box-shadow: var(--prop-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.property-state .spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--prop-line);
  border-top-color: var(--prop-bronze-light);
  border-radius: 50%;
  margin: 0 auto 1.15rem;
  animation: prop-spin 0.78s linear infinite;
}

@keyframes prop-spin {
  to {
    transform: rotate(360deg);
  }
}

.property-state--error {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 250, 0.9) 100%);
  border-radius: var(--prop-radius);
  border: 1px solid var(--prop-line);
  box-shadow: var(--prop-shadow-sm);
  max-width: 32rem;
  margin: 0 auto;
}

.property-state--error h1 {
  font-family: var(--prop-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--prop-ink);
  margin: 0 0 0.65rem;
}

.property-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--prop-bronze-light), var(--prop-bronze));
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.property-back-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

/* ——— Fil d’Ariane ——— */
.property-breadcrumb {
  margin-bottom: 1.25rem;
}

.property-breadcrumb--glass {
  display: inline-flex;
  max-width: 100%;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 250, 0.78) 100%);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow: 0 10px 36px rgba(28, 25, 23, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

@media (max-width: 480px) {
  .property-breadcrumb--glass {
    border-radius: 18px;
    padding: 0.45rem 0.75rem;
  }
}

.property-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: clamp(0.78rem, 0.2vw + 0.72rem, 0.86rem);
  font-weight: 500;
  color: var(--prop-muted);
}

.property-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.property-breadcrumb__list li:not(:last-child)::after {
  content: '/';
  color: var(--prop-line);
  font-weight: 400;
  opacity: 0.9;
}

.property-breadcrumb__list a {
  color: var(--prop-bronze-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
  margin: -0.15rem -0.25rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.property-breadcrumb__list a:hover {
  background: rgba(194, 65, 12, 0.08);
  color: var(--prop-bronze);
}

.property-breadcrumb__list [aria-current='page'] span {
  color: var(--prop-ink);
  font-weight: 600;
  max-width: min(52vw, 28rem);
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 480px) {
  .property-breadcrumb__list [aria-current='page'] span {
    max-width: min(70vw, 16rem);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* ——— Grille principale ——— */
.property-detail {
  margin: 0 auto;
}

.property-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.88fr);
  gap: clamp(1.15rem, 3.2vw, 2.25rem);
  align-items: start;
}

@media (max-width: 960px) {
  .property-detail__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Galerie ——— */
.property-detail__gallery {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 250, 0.95) 100%);
  border-radius: var(--prop-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--prop-shadow), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.property-detail__gallery-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.property-detail__gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(194, 65, 12, 0.12), transparent 40%, rgba(251, 191, 36, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.property-detail__hero {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: min(52vw, 420px);
  background: linear-gradient(145deg, #e7e5e4, #d4d1ce);
  isolation: isolate;
}

.property-detail__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(28, 25, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.04) 1px, transparent 1px);
  background-size: min(44px, 10vw) min(44px, 10vw);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
}

@media (max-width: 480px) {
  .property-detail__hero {
    min-height: min(58vw, 280px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .property-detail__hero {
    min-height: 38vh;
    max-height: 48vh;
    aspect-ratio: auto;
  }

  .property-detail__video-aspect {
    max-height: min(55vh, 360px);
  }
}

.property-detail__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(28, 25, 23, 0.07) 100%);
  pointer-events: none;
  z-index: 3;
}

.property-detail__hero img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .property-detail__gallery:hover .property-detail__hero img {
    transform: scale(1.02);
  }
}

.property-detail__thumbs {
  display: flex;
  gap: 0.55rem;
  padding: 0.85rem clamp(0.75rem, 2vw, 1rem);
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.property-detail__thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: var(--prop-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--prop-line);
  scroll-snap-align: start;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
  .property-detail__thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
}

.property-detail__thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--prop-cream), 0 0 0 5px rgba(194, 65, 12, 0.45);
}

.property-detail__thumb.is-active {
  border-color: var(--prop-bronze-light);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.2);
}

.property-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— Vidéo (YouTube, Vimeo, fichier) ——— */
.property-detail__video-wrap {
  margin: 0 clamp(0.5rem, 2vw, 0.85rem);
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(155deg, rgba(28, 25, 23, 0.05) 0%, rgba(194, 65, 12, 0.07) 55%, rgba(251, 191, 36, 0.04) 100%);
  border-radius: calc(var(--prop-radius-sm) + 4px);
  border: 1px solid rgba(194, 65, 12, 0.1);
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.07) inset, 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.property-detail__video-head {
  margin-bottom: 0.75rem;
}

.property-detail__video-title {
  font-family: var(--prop-display);
  font-size: clamp(1.05rem, 1.2vw + 0.85rem, 1.25rem);
  font-weight: 600;
  color: var(--prop-ink);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.property-detail__video-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--prop-muted);
  line-height: 1.45;
}

.property-detail__video-inner {
  border-radius: calc(var(--prop-radius-sm) + 4px);
  overflow: hidden;
  background: #0c0a09;
  box-shadow: 0 16px 48px rgba(12, 10, 9, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.property-detail__video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(70dvh, 620px);
  background: #000;
}

.property-detail__video-aspect iframe,
.property-detail__video-aspect video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.property-detail__video-el {
  object-fit: contain;
  background: #000;
}

.property-detail__video-fallback {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--prop-muted);
}

.property-detail__video-fallback a {
  color: var(--prop-bronze-light);
  font-weight: 600;
}

@media (max-width: 480px) {
  .property-detail__video-wrap {
    margin: 0 0.5rem;
    padding: 0.85rem 0.75rem;
  }

  .property-detail__video-aspect {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

/* ——— Colonne infos ——— */
.property-detail__aside {
  position: sticky;
  top: var(--prop-aside-sticky);
  background: linear-gradient(172deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 248, 0.95) 48%, rgba(255, 250, 245, 0.92) 100%);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: calc(var(--prop-radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--prop-shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 -1px 0 rgba(28, 25, 23, 0.04) inset;
  overflow: hidden;
}

.property-detail__aside-top {
  height: 5px;
  width: calc(100% + 2 * clamp(1.25rem, 3vw, 1.85rem));
  margin-left: calc(-1 * clamp(1.25rem, 3vw, 1.85rem));
  margin-right: calc(-1 * clamp(1.25rem, 3vw, 1.85rem));
  margin-top: calc(-1 * clamp(1.25rem, 3vw, 1.85rem));
  margin-bottom: 1.1rem;
  border-radius: calc(var(--prop-radius) + 4px) calc(var(--prop-radius) + 4px) 0 0;
  background: linear-gradient(90deg, var(--prop-bronze-light) 0%, #f59e0b 45%, var(--prop-gold) 100%);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.25);
}

.property-detail__price-band {
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.07) 0%, rgba(251, 191, 36, 0.06) 100%);
  border-radius: var(--prop-radius-sm);
  border: 1px solid rgba(194, 65, 12, 0.14);
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.06);
}

.property-detail__price-band .property-detail__price {
  margin: 0;
}

@media (max-width: 960px) {
  .property-detail__aside {
    position: relative;
    top: auto;
  }
}

.property-detail__type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--prop-gold);
  margin: 0 0 0.5rem;
}

.property-detail__title {
  font-family: var(--prop-display);
  font-size: clamp(1.45rem, 2.2vw + 1rem, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--prop-ink);
  text-wrap: balance;
}

.property-detail__price {
  font-family: var(--prop-display);
  font-size: clamp(1.35rem, 1.5vw + 1rem, 1.75rem);
  font-weight: 700;
  color: var(--prop-bronze-light);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.property-detail__loc {
  color: var(--prop-muted);
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.45;
}

.property-detail__loc::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prop-bronze-light), #fbbf24);
  flex-shrink: 0;
}

.property-detail__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.property-detail__specs li {
  background: rgba(250, 247, 242, 0.95);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--prop-ink-soft);
  border: 1px solid var(--prop-line);
}

.property-detail__specs a {
  color: var(--prop-bronze-light);
  font-weight: 600;
  text-decoration: none;
}

.property-detail__specs a:hover {
  text-decoration: underline;
}

.property-detail__cta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.property-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.2s ease;
  touch-action: manipulation;
}

.property-cta--primary {
  background: linear-gradient(135deg, var(--prop-bronze-light) 0%, var(--prop-bronze) 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(194, 65, 12, 0.3);
}

.property-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(194, 65, 12, 0.34);
  filter: brightness(1.03);
}

.property-cta--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--prop-ink);
  border: 1px solid var(--prop-line);
}

.property-cta--secondary:hover {
  border-color: rgba(194, 65, 12, 0.28);
  transform: translateY(-1px);
}

.property-detail__hint {
  font-size: 0.8rem;
  color: var(--prop-muted);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.property-detail__badge-trust {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--prop-ink-soft);
  margin: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.9) 0%, rgba(254, 243, 199, 0.5) 100%);
  border-radius: var(--prop-radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.property-detail__badge-trust strong {
  color: var(--prop-ink);
}

/* ——— Sections description / équipements ——— */
.property-detail__section {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 253, 250, 0.92) 100%);
  border-radius: var(--prop-radius);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--prop-shadow-sm);
}

.property-detail__section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--prop-display);
  font-size: clamp(1.15rem, 1.2vw + 0.95rem, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--prop-ink);
  letter-spacing: -0.02em;
}

.property-detail__section h2::before {
  content: '';
  width: 4px;
  height: 0.95em;
  min-height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--prop-bronze-light) 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
  flex-shrink: 0;
}

.property-detail__description {
  white-space: pre-wrap;
  line-height: 1.68;
  color: var(--prop-ink-soft);
  font-size: 0.95rem;
}

.property-detail__amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.property-detail__amenities li {
  padding: 0.42rem 0.85rem;
  background: rgba(250, 247, 242, 0.95);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--prop-ink-soft);
  border: 1px solid var(--prop-line);
}

.property-detail__muted {
  color: var(--prop-muted);
  margin: 0;
  font-size: 0.92rem;
}

/* ——— Signalement ——— */
.property-trust-panel {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--prop-radius);
  box-shadow: var(--prop-shadow-sm);
}

.property-trust-panel h2 {
  font-family: var(--prop-font);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--prop-ink);
}

.property-trust-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--prop-ink-soft);
  line-height: 1.55;
}

.property-report-link {
  font-weight: 600;
  color: var(--prop-bronze-light);
  word-break: break-all;
}

.property-footer a {
  color: var(--prop-bronze-light);
}

.property-footer__inner {
  margin: 0;
  padding: 1rem 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .property-state .spinner {
    animation: none;
    border-top-color: var(--prop-bronze-light);
  }

  .property-detail__hero img,
  .property-cta {
    transition: none;
  }

  @media (hover: hover) {
    .property-detail__gallery:hover .property-detail__hero img {
      transform: none;
    }
  }

  .property-cta--primary:hover,
  .property-cta--secondary:hover {
    transform: none;
  }
}
