/* Residence pages: hero-connected navigation, useful detail, and direct enquiry. */
.detail-page .project-hero { overflow: hidden; }
.detail-page .project-scroll { display: none; }

.detail-page .project-subnav {
  position: sticky;
  top: 78px;
  z-index: 30;
  margin: -72px 0 0;
  min-height: 72px;
  padding: 9px clamp(24px, 5vw, 88px);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: rgba(35,23,30,.42);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  color: #fff;
  box-shadow: none;
  transition: top .42s cubic-bezier(.22,1,.36,1), background-color .28s ease, color .28s ease, border-color .28s ease;
}
.detail-page .project-subnav.is-pinned {
  border-radius: 0;
  border-bottom-color: rgba(71,17,35,.12);
  background: rgba(249,247,245,.97);
  color: var(--wine);
  box-shadow: none;
}
body.header-hidden.detail-page .project-subnav { top: 0; }
.detail-page .project-subnav > span { color: inherit; font-size: 22px; font-weight: 600; }
.detail-page .project-subnav > div {
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 28px);
}
.detail-page .project-subnav > div a { color: rgba(255,255,255,.78); border-bottom-color: transparent; }
.detail-page .project-subnav > div a:hover,
.detail-page .project-subnav > div a.active { color: #fff; border-bottom-color: #fff; }
.detail-page .project-subnav > div a::after { display: none; }
.detail-page .project-subnav.is-pinned > div a { color: #6f5a63; }
.detail-page .project-subnav.is-pinned > div a:hover,
.detail-page .project-subnav.is-pinned > div a.active { color: var(--wine); border-bottom-color: var(--wine); }
.detail-page .project-subnav .button {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  white-space: nowrap;
  box-shadow: none;
}
.detail-page .project-subnav .button:hover { background: #663346; }
.detail-page { scroll-padding-top: 0; }
.detail-page #presentation,
.detail-page #galerie,
.detail-page #prestations,
.detail-page #proximite,
.detail-page #plans,
.detail-page #devis { scroll-margin-top: 40px; }

.detail-page .gallery-open > span {
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(71,17,35,.78);
  box-shadow: 0 8px 22px rgba(24,8,17,.2);
}

.detail-page .amenities {
  display: block;
  padding-top: clamp(76px, 7vw, 110px);
  padding-bottom: clamp(76px, 7vw, 110px);
  overflow: hidden;
}
.detail-page .amenities-heading {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 390px) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 75px);
  margin-bottom: 38px;
}
.detail-page .amenities-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.detail-page .amenities-heading h2 { max-width: 650px; margin: 0; }
.detail-page .amenities-heading > p:not(.eyebrow) { max-width: 390px; margin: 0 0 4px; color: var(--muted); line-height: 1.75; }
.detail-page .amenity-controls { display: flex; gap: 8px; justify-content: end; }
.detail-page .amenity-controls button {
  width: 47px; height: 47px; padding: 12px;
  display: grid; place-items: center;
  border: 1px solid #c8b8bd; border-radius: 50%;
  background: transparent; color: var(--wine); cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.detail-page .amenity-controls button:hover { background: var(--wine); color: #fff; transform: translateY(-2px); }
.detail-page .amenity-controls button:disabled { opacity: .35; cursor: default; transform: none; }
.detail-page .amenity-controls .icon { width: 20px; height: 20px; }
.detail-page .amenity-carousel {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding: 4px 0 18px;
}
.detail-page .amenity-carousel::-webkit-scrollbar { display: none; }
.detail-page .amenity-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(170px, auto));
  grid-auto-columns: clamp(230px, 26vw, 360px);
  gap: 18px;
  width: max-content;
  min-width: 100%;
}
.detail-page .amenity {
  box-sizing: border-box;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  scroll-snap-align: start;
  padding: 25px;
  border: 1px solid #e1d5d7;
  border-radius: 19px;
  background: #f8f5f3;
  box-shadow: none;
  backdrop-filter: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.detail-page .amenity:hover { border-color: #ad8793; background: #fff; transform: translateY(-3px); }
.detail-page .amenity > .icon { width: 31px; height: 31px; color: var(--wine); }
.detail-page .amenity h3 { margin: 0; max-width: 195px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--wine); }
.detail-page .amenity-grid > .amenity:last-child:nth-child(odd) {
  grid-row: span 2;
  background: radial-gradient(circle at 85% 12%, #77435a, transparent 45%), var(--wine);
  border-color: var(--wine);
}
.detail-page .amenity-grid > .amenity:last-child:nth-child(odd):hover { background: radial-gradient(circle at 85% 12%, #87546a, transparent 45%), #552038; }
.detail-page .amenity-grid > .amenity:last-child:nth-child(odd) > .icon,
.detail-page .amenity-grid > .amenity:last-child:nth-child(odd) h3 { color: #fff; }
.detail-page .amenity-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 32px;
  margin-top: 13px;
}
.detail-page .amenity-dots[hidden] { display: none; }
.detail-page .amenity-dots button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.detail-page .amenity-dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9b7bd;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.detail-page .amenity-dots button:hover::before { background: #8b5b6c; transform: scale(1.2); }
.detail-page .amenity-dots button[aria-pressed="true"]::before {
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(71, 17, 35, .13);
  transform: scale(1.12);
}
.detail-page .amenity-dots button:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }

.nearby-section { background: #ece5e3; padding-top: clamp(76px, 7vw, 110px); padding-bottom: clamp(76px, 7vw, 110px); }
.nearby-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: end; margin-bottom: 48px; }
.nearby-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.nearby-heading h2 { margin: 0; color: var(--wine); }
.nearby-heading > p:not(.eyebrow) { max-width: 470px; margin: 0 0 5px; color: var(--muted); line-height: 1.75; }
.nearby-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nearby-grid:has(.nearby-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nearby-card { padding: 29px; min-height: 210px; border: 1px solid #d4c5c4; border-radius: 18px; background: rgba(255,255,255,.58); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.nearby-card:hover { transform: translateY(-4px); border-color: #b89ba2; box-shadow: 0 15px 35px rgba(71,17,35,.08); }
.nearby-card .icon { width: 29px; height: 29px; color: var(--wine); }
.nearby-card h3 { margin: 28px 0 9px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--wine); }
.nearby-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.nearby-note { margin: 26px 0 0; color: var(--muted); font-size: 11px; }

.project-plans {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 9%; align-items: start;
  padding-top: clamp(76px, 7vw, 110px); padding-bottom: clamp(76px, 7vw, 110px);
  background: #f7f4f0;
}
.plans-copy h2 { color: var(--wine); }
.plans-copy p:not(.eyebrow) { max-width: 530px; color: var(--muted); line-height: 1.75; }
.plan-picker { min-width: 0; }
.plan-types { list-style: none; padding: 0; margin: 15px 0 0; border-top: 1px solid #c9b9b9; }
.plan-types li { position: relative; border-bottom: 1px solid #c9b9b9; }
.plan-type-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0; padding: 15px 17px; border-radius: 13px;
  cursor: pointer; transition: background .22s ease, transform .22s ease;
}
.plan-option:hover { background: rgba(71, 17, 35, .045); transform: translateX(3px); }
.plan-type-input:checked + .plan-option { background: rgba(71, 17, 35, .075); }
.plan-type-input:focus-visible + .plan-option { outline: 2px solid var(--wine); outline-offset: 2px; }
.plan-types strong { font-size: clamp(21px, 2.1vw, 30px); font-weight: 600; color: var(--wine); }
.plan-option-mark {
  display: grid; place-items: center; width: 23px; height: 23px;
  border: 1px solid #a88c96; border-radius: 50%;
  transition: border-color .22s ease, background .22s ease;
}
.plan-option-mark::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; opacity: 0; transform: scale(.5);
  transition: opacity .22s ease, transform .22s ease;
}
.plan-type-input:checked + .plan-option .plan-option-mark { border-color: var(--wine); background: var(--wine); }
.plan-type-input:checked + .plan-option .plan-option-mark::after { opacity: 1; transform: scale(1); }
.plan-request {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-width: 235px; margin-top: 26px; padding: 16px 22px;
  border: 1px solid var(--wine); border-radius: 999px;
  background: var(--wine); color: #fff; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.plan-request:hover { background: #612139; box-shadow: 0 12px 25px rgba(71, 17, 35, .18); transform: translateY(-2px); }
.plan-request:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.plan-request .icon { width: 18px; height: 18px; }
.plans-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.detail-page .project-enquiry {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 9%; align-items: start; text-align: left;
  padding-top: clamp(76px, 7vw, 110px); padding-bottom: clamp(76px, 7vw, 110px);
}
.enquiry-intro h2 { margin: 0 0 28px; }
.enquiry-intro > p:not(.eyebrow) { max-width: 450px; line-height: 1.8; }
.enquiry-phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 23px; font-weight: 600; }
.enquiry-phone .icon { width: 19px; height: 19px; }
.quote-form {
  padding: clamp(28px, 4vw, 53px); border-radius: 22px;
  color: var(--wine); background: #f6f0ed;
  box-shadow: 0 20px 50px rgba(29,3,17,.15);
}
.quote-form-top { display: flex; flex-direction: column; gap: 5px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid #d7c9c6; }
.quote-form-top span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #806a71; }
.quote-form-top strong { font-size: 24px; font-weight: 600; }
.quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.quote-form label { display: block; margin-bottom: 21px; font-size: 12px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  display: block; width: 100%; padding: 12px 0;
  border: 0; border-bottom: 1px solid #c5b6b4; border-radius: 0;
  color: var(--wine); background: transparent; font: inherit; font-size: 14px;
  outline: none; caret-color: var(--wine);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.quote-form :is(input, select, textarea):focus {
  border-bottom-color: var(--wine);
  box-shadow: 0 2px 0 rgba(71, 17, 35, .72);
}
.quote-form textarea { resize: vertical; min-height: 70px; }
.quote-form label > span { color: #8f3f57; }
.quote-form label > .optional-label { margin-left: 4px; color: #85777a; font-size: 11px; font-weight: 400; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.quote-actions .button { min-height: 48px; padding: 12px 17px; font-size: 12px; }
.quote-actions .button.light { color: #fff; background: var(--wine); border-color: var(--wine); }
.quote-actions .quote-email { color: var(--wine); background: transparent; border: 1px solid #b89da4; }
.quote-actions .icon { width: 17px; height: 17px; }
.quote-status { min-height: 1em; margin: 18px 0 0; font-size: 11px; line-height: 1.6; color: #72636a !important; }

.detail-page .next-project {
  padding-top: clamp(76px, 7vw, 110px);
  padding-bottom: clamp(76px, 7vw, 110px);
  background: #f7f4f0;
}
.detail-page .next-project > .eyebrow { margin-bottom: 24px; }
.detail-page .next-project > a {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end; gap: 25px;
  min-height: clamp(350px, 39vw, 520px);
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
}
.detail-page .next-project > a::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(24,9,18,.63), rgba(24,9,18,.08) 85%),
    linear-gradient(0deg, rgba(24,9,18,.56), transparent 70%);
}
.detail-page .next-project > a > img {
  position: absolute; z-index: -2; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.detail-page .next-project > a:hover > img,
.detail-page .next-project > a:focus-visible > img { transform: scale(1.045); }
.detail-page .next-project h2 {
  max-width: 80%; margin: 0;
  color: #fff; font-size: clamp(58px, 8vw, 116px); line-height: .98;
  text-shadow: 0 3px 20px rgba(20,8,15,.16);
}
.detail-page .next-project > a > span {
  flex: 0 0 70px; display: grid; place-items: center;
  width: 70px; height: 70px;
  border: 1px solid rgba(255,255,255,.63); border-radius: 50%;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
  transition: transform .3s ease, background .3s ease;
}
.detail-page .next-project > a:hover > span,
.detail-page .next-project > a:focus-visible > span { transform: translate(3px,-3px); background: rgba(255,255,255,.28); }
.detail-page .next-project > a > span .icon { width: 29px; height: 29px; }
.detail-page .next-project > a:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }

.project-info-fab { display: none; }
@media (max-width: 1100px) {
  .detail-page .project-subnav > div { gap: 13px; }
  .detail-page .project-subnav > div a { font-size: 11px; white-space: nowrap; }
  .detail-page .project-subnav .button { padding: 10px 14px; font-size: 11px; }
  .detail-page .amenities-heading { grid-template-columns: 1fr minmax(210px, 320px); }
  .detail-page .amenity-controls { grid-column: 2; }
  .nearby-grid,
  .nearby-grid:has(.nearby-card:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .detail-page .project-subnav {
    top: 70px; margin: -58px 0 0; min-height: 58px;
    padding: 0 6%; border-radius: 0;
    display: flex; flex-wrap: nowrap; gap: 0;
  }
  .detail-page .project-subnav > span { display: none; }
  .detail-page .project-subnav > div {
    order: 1; width: 100%; overflow-x: auto; justify-content: flex-start;
    gap: 16px; scrollbar-width: none;
  }
  .detail-page .project-subnav > div::-webkit-scrollbar { display: none; }
  .detail-page .project-subnav > div a { flex: 0 0 auto; padding: 17px 0 15px; font-size: 11px; }
  .detail-page .project-subnav .button { display: none; }
  .detail-page #presentation, .detail-page #galerie, .detail-page #prestations,
  .detail-page #proximite, .detail-page #plans, .detail-page #devis { scroll-margin-top: 20px; }
  .detail-page .amenities-heading { display: block; margin-bottom: 23px; }
  .detail-page .amenities-heading h2 { margin: 12px 0 18px; }
  .detail-page .amenities-heading > p:not(.eyebrow) { font-size: 14px; }
  .detail-page .amenity-controls { justify-content: flex-start; margin-top: 22px; }
  .detail-page .amenity-grid { grid-auto-columns: minmax(210px, 72vw); gap: 10px; grid-template-rows: repeat(2, minmax(160px, auto)); }
  .detail-page .amenity { min-height: 160px; padding: 18px; }
  .detail-page .amenity h3 { font-size: 14px; }
  .nearby-heading { display: block; }
  .nearby-heading h2 { margin: 18px 0; }
  .nearby-heading > p:not(.eyebrow) { font-size: 14px; }
  .nearby-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .nearby-card { min-height: 175px; padding: 18px; }
  .nearby-card h3 { margin-top: 20px; font-size: 14px; }
  .nearby-card p { font-size: 12px; }
  .project-plans { grid-template-columns: 1fr; gap: 25px; }
  .plans-copy p:not(.eyebrow) { font-size: 14px; }
  .plan-option { justify-content: flex-start; gap: 17px; }
  .plan-option-mark { order: -1; flex: 0 0 23px; }
  .plan-request { width: 100%; }
  .detail-page .project-enquiry { grid-template-columns: 1fr; gap: 35px; }
  .enquiry-intro > p:not(.eyebrow) { font-size: 14px; }
  .detail-page .next-project > a { min-height: 370px; padding: 28px; border-radius: 19px; }
  .detail-page .next-project h2 { font-size: clamp(49px, 12vw, 76px); }
  .detail-page .next-project > a > span { flex-basis: 52px; width: 52px; height: 52px; }
  .detail-page .next-project > a > span .icon { width: 23px; height: 23px; }
  .project-info-fab {
    position: fixed; z-index: 54;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 50%; color: #fff; background: #471123;
    box-shadow: 0 9px 28px rgba(38,12,27,.23);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(12px) scale(.9);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .project-info-fab.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .project-info-fab .icon { width: 24px; height: 24px; }
  .project-info-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .project-info-fab:focus-visible { outline: 2px solid #e2bbc8; outline-offset: 4px; }
  body:has(.menu-dialog[open]) .project-info-fab,
  body:has(.lightbox[open]) .project-info-fab { visibility: hidden; pointer-events: none; }
}
@media (max-width: 560px) {
  .nearby-grid,
  .nearby-grid:has(.nearby-card:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .nearby-card { min-height: 0; }
  .quote-form { padding: 25px 20px; }
  .quote-fields { grid-template-columns: 1fr; }
  .quote-actions { display: grid; }
  .quote-actions .button { width: 100%; justify-content: space-between; }
  .detail-page .next-project > a { min-height: 335px; }
}
@media (prefers-reduced-motion: reduce) {
  .detail-page .project-subnav, .detail-page .amenity,
  .detail-page .amenity-controls button, .nearby-card, .project-info-fab,
  .detail-page .next-project > a > img, .detail-page .next-project > a > span { transition: none; }
  .detail-page .amenity-carousel { scroll-behavior: auto; }
}
