/* ===============================
   HÉRO PLEIN ÉCRAN (photo)
================================ */
:root {
  --container-max: 1682px;
}
main.product-page{
  background: #F5F1E8;
}
.product-hero-media {
  width: 100vw;
  height: 1120px;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}
.product-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-hero-media .photos-btn {
  position: absolute;
  top: 40px;
  right: 122px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--color-brand);
  border-radius: 6px;
  padding: 12px 40px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  border: solid 1px #004C66;
}
.product-hero-media .photos-btn svg {
  width: 16px;
  height: 16px;
}
.product-hero-media .photos-btn:hover {
  filter: brightness(1.05);
}

/* ===============================
   CARTON BLANC QUI CHEVAUCHE
================================ */
.product-sheet {
  position: relative;
  z-index: 3;
  margin-top: -21px;
}
.product-sheet .container {
  max-width: 1400px;
  padding-inline: clamp(24px, 5vw, 36px);
  padding-top: 36px;
  width: calc(100% - 4rem);
}
.product-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  padding: clamp(20px, 3vw, 36px);
}
section.product-keys {
    padding: 0;
}
/* ===============================
   GRILLE : 1148px (gauche) + 420px (aside)
================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}


/* ===============================
   TÊTE DE FICHE
================================ */
.sheet-title {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 400;
      font-family: var(--font-primary);
}
.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #5a676f;
  font-size: 0.9rem;
  font-weight: 400;
}
span.meta-item.left {
    font-weight: 400;
    color: #222222;
}
span.meta-item.right {
    font-weight: 400;
    color: #222222;
}
.sheet-meta .meta-sep {
  opacity: 0.5;
}
.sheet-sep {
  border: 0;
  height: 1px;
  margin: 22px 0 24px;
  background: #d9d9d9;
}
.process__content {
    padding: 0;
}
/* ===============================
   LIGNE D’ATTRIBUTS (icônes)
   4 par ligne, items 107×32, gap 8px
================================ */
.product-features {
  display: flex;
  column-gap: 32px;
  row-gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 90%;
  flex-wrap: wrap;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 107px;
  height: 32px;
  white-space: nowrap;
  color: #000;
  font-weight: 400;
}
.product-features li span {
  font-size: 1rem;
}
.product-features svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #000;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===============================
   CONTENU GAUCHE
================================ */
.product-desc {
  margin: 4px 0 28px;
}
.product-desc h2,
.product-keys h2,
.product-reg h2 {
  font-size: 2em;
  margin: 0 0 12px;
  font-family: "cormorant-infant", serif;
  font-weight: 500;
}

.key-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.key-tags li {
  background: white;
  color: #0e2a36;
  padding: .5em 1em;
  border: 1.5px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}

.reg-figure {
  margin: 16px 0;
}
.reg-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ===============================
   ASIDE (style maquette)
================================ */
.product-aside {
  width: 100%;
  align-self: start;
  position: sticky;
  top: 0;
  background: #fff;
  border: 1px solid #e6e0d6;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  justify-self: flex-end;
}


/* "VILLA | Ville-d’Avray" */
.aside-kind {
  font-size: 18px;
  color: #0e2a36;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aside-kind .kind-type {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.aside-kind .sep {
  opacity: 0.5;
}
.aside-kind .kind-city {
  font-weight: 600;
}

/* Prix + note */
.product-price {
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: 4px;
  font-family: "cormorant-infant", serif;
}
.price-note {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #5a676f;
  font-style: italic;
}

/* Séparateur dans l’aside */
.aside-sep {
  border: 1px solid #d9d9d9;
  margin: 0;
}

/* Titre "Et si c’était chez vous ?" */
.aside-title {
  margin: 6px 0 2px;
  font-size: 32px;
  font-weight: 500;
  color: #0e2a36;
  font-family: 'big-caslon-fb';
}

/* CTA principal */
.w-100 {
  width: 100%;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.btn--primary {
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: #0a4a5a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn--primary:hover {
  filter: brightness(1.05);
}

.aside-link {
  font-size: 1em;
  color: #004C66;
  text-decoration: underline;
  font-weight: 600;
}

/* ===============================
   BLOCS OPTIONNELS
================================ */
.product-content {
  padding: 40px 0 24px;
}
.product-hero__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
}
.product-hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0.95;
}
.product-hero__meta li {
  font-size: 15px;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.product-stats li {
  padding: 12px 14px;
  background: #f6f3ec;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  color: #5a676f;
}
.stat-val {
  font-weight: 700;
}

.process__inner {
  width: 100%;
  padding: 0;
}
summary.acc__summary {
  padding: 16px 56px 16px 0;
}
div.acc .borderline {
  margin-left: 0;
}
.process__content {
  background: transparent;
}


/* ===============================
   CAROUSEL EN BAS
================================ */
.featured-listings {
  background: white;
  margin-top: 48px;
}
.featured-listings .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
.search-suggest .bleed-right {
  margin-left: 0;
  padding: 0;
  width: 100%;
}
.search-suggest .carousel-viewport {
  overflow: visible;
}
.featured-listings .container {
  margin: 0 auto;
  padding: 0;
}
.featured-listings {
    padding: 34px 3rem 24px;
  }
/* ===============================
   Correctif badge dans l’aside (version dans le flux)
================================ */

.product-aside {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Badge intégré au flux, au-dessus du titre */
.product-aside .badge {
  position: static; /* retire tout positionnement absolu */
  align-self: flex-start;
  background: #fff;
  border: 1px solid #c2ac85;
  border-radius: 6px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #ceae7e;
  margin-bottom: 4px; /* petit espace avant le titre */
}

.section-title {
    font: var(--h2-font);
    margin-bottom: 0;
}

.controls{
  right: 8rem;
}

.newsletter {
  background: white;
    margin-top: 0;
    padding: clamp(2rem, 4vw, 4rem) 1rem;
}

.single-property .home-search {
  top: 1rem;
  margin-top: 0;
}
.single-property .bloc__hero {
  height: auto;
  min-height: 13rem;
  padding: 1rem 0 0rem 0;
}
body .back-link{
  color:var(--color-brand);
}
nav.container{
  position: relative;
  padding-left: 3rem;
  padding-top: 0.5rem;
  /* margin: 0 auto !important; */
}
a.back-link span {
  color: #004C66;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--cta-font-family);
}

.single-property .process__content {
  background: transparent;
  padding: 0;
}
.single-property .process__inner {
  padding: 0;
}
.acc__item[open] .acc__panel,
.product-desc p{
  font-size: 0.9rem;
}
/* =========================
   ≤ 1680px
   ========================= */
@media (max-width: 1680px) {
  /* --- Bloc initial --- */
  /* Contient le hero et évite le scroll horizontal */
  .featured-listings .container {
    padding: 0 clamp(16px, 5vw, 34px);
}
  .single-property .product-hero-media {
    width: 100%;
    height: 860px;
    margin-left: 0;
  }
  .single-property .product-hero-media .photos-btn {
    right: clamp(32px, 6vw, 56px);
  }
  .single-property .product-sheet .container {
    max-width: min(100%, 1360px);
  }

  /* --- SPEC 2024 (overrides) --- */
  /* Homogénéise le duo contenu / aside sans modifier la structure */
  .single-property .product-sheet .container {
    max-width: min(100%, 1480px);
  }
  .single-property .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 36px);
  }
  .product-aside {
    width: 100%;
  }
  .product-sheet {
    width: 95%;
    margin: -21px auto;
  }
  h3.section-title {
    font-size: 2.5rem;
  }
  .section-title {
    margin-left: 0;
  }
  .controls {
      right: 8rem;
    }
  
}

/* =========================
   ≤ 1280px
   ========================= */
@media (max-width: 1280px) {
  /* --- Bloc initial --- */
  /* Réduit la hauteur hero et réorganise les attributs */
  .single-property .product-hero-media {
    height: 720px;
  }
  .single-property .product-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }
  .single-property .product-features li {
    min-width: 0;
    white-space: nowrap;
  }
  .product-features {
    column-gap: 0px;
  }

  /* --- SPEC 2024 (compléments) --- */
  /* Réduit légèrement la colonne aside pour garder l'équilibre */
  .single-property .product-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  }
  .single-property .product-card {
    padding: clamp(20px, 4vw, 28px);
  }
}

/* =========================
   ≤ 1024px
   ========================= */
@media (max-width: 1024px) {
  /* --- Bloc initial --- */
  /* Passage en colonne unique pour la fiche (sera overridé par SPEC) */
  .single-property .product-sheet {
    margin-top: -12px;
  }
  .single-property .product-sheet .container {
    padding-inline: clamp(20px, 5vw, 32px);
  }
  .single-property .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .single-property .product-aside {
    width: 100%;
  }
  .single-property .product-desc,
  .single-property .product-keys,
  .single-property .product-reg {
    margin-inline: 0;
  }
  /* --- SPEC 2024 (overrides) --- */
  /* Contrainte visuelle tout en conservant le layout côte à côte */
  .single-property .product-sheet .container {
    padding-inline: clamp(20px, 5vw, 32px);
  }
  .single-property .product-aside {
    position: static;
    width: 100%;
  }
  .product-price {
    font-size: 48px;
  }
  .controls {
      right: 12rem;
      gap: 2em;
    }
  .featured-listings .container {
        padding: 0 clamp(16px, 5vw, 34px);
    }}
@media (min-width: 1024px) {
     .header {
        padding: 0;
        margin-left: 5rem;
    }
  .home-search {
    margin-top: 0;
    top: 2rem;
}

}

/* =========================
   ≤ 768px
   ========================= */
@media (max-width: 1024px) {
  /* --- Bloc initial --- */
  /* Hero plus bas et grille d'attributs sur deux colonnes */
  .single-property .product-hero-media {
    height: 560px;
  }
  .single-property .product-hero-media .photos-btn {
    top: 28px;
    padding: 10px 24px;
    font-size: 16px;
  }
  .single-property .product-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .badge {
    height: auto;
  }

  /* --- SPEC 2024 (compléments) --- */
  /* Empile le contenu sous 768 */
  .single-property .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    display: flex;
    flex-direction: column;
  }
  .single-property .product-aside {
    /* order: 2; */
  }
    .featured-listings .container {
        margin-left: 0;
        padding: 0;
    }
  .featured-listings {
    padding: 34px 2rem 24px;
}
    .controls{
      /* display: none; */
    }
        .featured-listings .container .header {
        padding: 0 0 0 1rem;
        align-items: flex-start;
    }
}


/* =========================
   ≤ 640px
   ========================= */
@media (max-width: 768px) {
   .controls{
      display: none;
    }
  /* Cartouche pleine largeur et boutons flexibles */
  .single-property .product-hero-media {
    height: 480px;
  }
  .single-property .product-hero-media .photos-btn {
    right: clamp(16px, 5vw, 24px);
    padding: 10px 18px;
  }
  .single-property .product-card {
    padding: clamp(20px, 6vw, 24px);
  }
  .single-property .product-features {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-listings {
        padding: 34px 0;
    }
}

/* =========================
   ≤ 480px
   ========================= */
@media (max-width: 480px) {
  /* Ajustements fins typographiques */
  .single-property .product-hero-media {
    height: 420px;
  }
  .single-property .sheet-title {
    font-size: clamp(24px, 8vw, 30px);
  }
  .single-property .product-hero-media .photos-btn {
    gap: 6px;
  }
  .product-price {
    font-size: 40px;
  }
  h3.section-title{
    font-size: 1.5rem;
  }
  .product-sheet .container{
    width: 100%;
  }
}

/* =========================
   ≤ 375px
   ========================= */
@media (max-width: 375px) {
  /* Compacter les éléments */
  .single-property .product-hero-media {
    height: 360px;
  }
  .single-property .product-card {
    border-radius: 18px;
  }
  .process__content {
    width: 86%;
    padding: 1.5rem 0;
  }
  summary.acc__summary {
    font-size: 1.25rem;
  }
  .product-price {
    font-size: 34px;
  }
  .btn--primary {
    font-size: 0.825rem;
  }
}

/* =========================
   ≤ 320px
   ========================= */
@media (max-width: 320px) {
  /* Dernier garde-fou contre le scroll horizontal */
  .single-property .product-sheet .container {
    padding-inline: 16px;
  }
  .product-price {
    font-size: 28px;
  }
  .btn--primary {
    font-size: 0.75rem;
  }
}


/* OUTER WRAPPER → SPACE FOR ARROWS */
.thumbnail-slider-wrap {
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
    overflow: hidden;
}

/* SWIPER VIEWPORT → HIDES EXTRA SLIDES */
.thumbnail-image-slider {
    width: 100%;
    overflow: initial !important;
}

/* slides */
.thumbnail-image-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  aspect-ratio: 1;
}

/* arrows */
.thumbnail-slider-prev,
.thumbnail-slider-next {
  width: 44px;
  height: 44px;
  color: #9fb7b5;
  z-index: 10;
}

.thumbnail-slider-prev {
  left: -30px !important;
}

.thumbnail-slider-next {
  right: -30px !important;
}

.product-right {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.swiper-button-next.thumbnail-slider-next::after, .swiper-button-prev.thumbnail-slider-prev::after {
    display: none;
}

.swiper-button-prev.thumbnail-slider-prev,.swiper-button-next.thumbnail-slider-next {
    width: 32px;
    height: 32px;
    display: flex;
}

.swiper-button-prev.thumbnail-slider-prev svg, .swiper-button-next.thumbnail-slider-next svg {
    width: 100%;
    height: auto;
}
