/* ============================================================
   Property detail page — Editorial Woodland Luxe
   Extends styles.css (shares :root tokens, nav, footer, cards)
   ============================================================ */

/* ---------- Property hero ---------- */
.phero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); overflow: hidden; background: var(--forest);
}
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,26,20,.55) 0%, rgba(18,26,20,.1) 30%, rgba(18,26,20,.35) 60%, rgba(18,26,20,.92) 100%);
}
.phero__content { position: relative; z-index: 2; width: 100%; padding-block: 54px 64px; color: var(--cream); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(246,241,231,.96); text-shadow: 0 1px 4px rgba(12,18,13,.65); margin-bottom: 26px; }
.crumbs a { color: rgba(246,241,231,.96); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { opacity: .6; }
.crumbs [aria-current] { color: var(--amber); }
.phero__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.ptag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; background: rgba(246,241,231,.14);
  border: 1px solid rgba(246,241,231,.28); color: var(--cream); backdrop-filter: blur(3px);
}
.ptag.accent { background: var(--copper-deep); border-color: var(--copper-deep); }
.phero h1 { font-size: clamp(44px, 6.5vw, 88px); line-height: .98; color: #fff; text-wrap: balance; margin-bottom: 14px; }
.phero__sub { font-size: clamp(16px, 1.7vw, 20px); color: rgba(246,241,231,.9); max-width: 56ch; margin: 0 0 30px; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 0 34px; border-top: 1px solid rgba(246,241,231,.24); padding-top: 22px; margin-bottom: 30px; max-width: 720px; }
.phero__fact { padding: 4px 0; }
.phero__fact b { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); display: block; line-height: 1; letter-spacing: -.01em; }
.phero__fact span { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-2); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.phero__call { color: var(--cream); font-weight: 600; font-size: 15px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 9px; padding: 8px 4px; }
.phero__call b { font-family: var(--font-display); font-size: 21px; }
.phero__call:hover { color: var(--amber); }

/* ---------- Layout: content + sticky booking ---------- */
.pbody { background: var(--bone); }
.pbody__grid { display: grid; grid-template-columns: minmax(0,1fr) 372px; gap: clamp(36px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 96px); }
.pcol-main { min-width: 0; }
.pcol-side { position: sticky; top: 92px; }

/* overview */
.poverview h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--forest); margin-bottom: 20px; text-wrap: balance; }
.poverview p { color: var(--ink-soft); font-size: 17.5px; margin: 0 0 18px; }
.phighlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.phl { display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.phl .ic { flex-shrink: 0; width: 30px; height: 30px; color: var(--copper-deep); }
.phl .ic svg { width: 30px; height: 30px; }
.phl b { font-family: var(--font-display); font-size: 19px; color: var(--forest); display: block; margin-bottom: 3px; }
.phl span { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* section divider heading inside main col */
.pblock { margin-top: clamp(48px, 6vw, 76px); }
.pblock__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.pblock__head h2 { font-size: clamp(26px, 3.2vw, 40px); color: var(--forest); white-space: nowrap; }
.pblock__head .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- 3D Matterport tour ---------- */
.ptour { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--forest); box-shadow: var(--shadow-card); }
.ptour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.pgallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; }
.pgallery a { position: relative; overflow: hidden; border-radius: 6px; cursor: pointer; background: var(--forest-2); display: block; }
.pgallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pgallery a:hover img { transform: scale(1.06); }
.pgallery a::after { content: ""; position: absolute; inset: 0; background: rgba(18,26,20,0); transition: background .3s; }
.pgallery a:hover::after { background: rgba(18,26,20,.12); }
.pgallery .g-wide { grid-column: span 2; }
.pgallery .g-tall { grid-row: span 2; }
.pgallery .g-more { display: block; }
.pgallery .g-more img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgallery .g-more::before { content: ""; position: absolute; inset: 0; background: rgba(18,26,20,.66); z-index: 1; }
.pgallery .g-more span { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-family: var(--font-display); font-size: 20px; line-height: 1.2; padding: 8px; }

/* ---------- Amenities ---------- */
.pamen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pamen__card { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.pamen__card h3 { font-family: var(--font-display); font-size: 21px; color: var(--forest); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pamen__card h3 .ic { color: var(--copper-deep); width: 22px; height: 22px; }
.pamen__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pamen__card li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.pamen__card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }

.pnote { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.pnote .chiprule {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sand); color: var(--bark); border-radius: 100px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
}
.pnote .chiprule svg { width: 15px; height: 15px; color: var(--copper-deep); }

/* ---------- Booking card (sticky) ---------- */
.bookcard { background: var(--forest); color: var(--cream); border-radius: 12px; padding: 28px 26px; box-shadow: var(--shadow-card); }
.bookcard .eyebrow { color: var(--sand-2); display: block; margin-bottom: 8px; }
.bookcard h2 { font-size: 27px; color: #fff; margin-bottom: 6px; }
.bookcard .from { font-size: 14px; color: var(--sand); margin-bottom: 20px; }
.bookcard .spec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.bookcard .spec div { background: rgba(246,241,231,.06); border: 1px solid var(--line-dark); border-radius: 8px; padding: 12px 14px; }
.bookcard .spec b { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: #fff; display: block; }
.bookcard .spec span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-2); }
.bookcard .btn { width: 100%; justify-content: center; margin-bottom: 11px; }
.bookcard .btn--ghost { width: 100%; justify-content: center; }
.bookcard__call { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--sand); }
.bookcard__call a { color: var(--amber); font-family: var(--font-display); font-size: 20px; text-decoration: none; }
.bookcard__cal { margin-top: 18px; border-top: 1px solid var(--line-dark); padding-top: 18px; }
.bookcard__cal .slotnote { font-size: 12px; color: var(--sand-2); text-align: center; line-height: 1.5; }
.bookcard__trust { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--sand-2); }
.bookcard__trust svg { width: 15px; height: 15px; color: var(--sage); }

/* ---------- Location / FAQ ---------- */
.ploc { background: var(--forest); color: var(--cream); }
.ploc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.ploc h2 { font-size: clamp(30px, 4vw, 52px); color: #fff; margin-bottom: 18px; text-wrap: balance; }
.ploc h2 em { font-style: italic; color: var(--amber); font-family: Georgia, serif; }
.ploc p { color: rgba(246,241,231,.82); margin: 0 0 28px; max-width: 52ch; }
.distances { list-style: none; margin: 0; padding: 0; }
.distances li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.distances li:last-child { border-bottom: 1px solid var(--line-dark); }
.distances b { font-family: var(--font-display); font-size: 18px; color: var(--cream); font-weight: 400; }
.distances span { font-size: 14px; color: var(--amber); letter-spacing: .04em; white-space: nowrap; }

.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 2px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 19px; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 2px 20px; color: rgba(246,241,231,.8); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }

/* ---------- Related ---------- */
.related { background: var(--bone); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,15,11,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 90vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--sand); font-size: 14px; letter-spacing: .02em; }
.lightbox__count { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: var(--sand-2); font-size: 13px; letter-spacing: .1em; }
.lb-btn { position: absolute; background: rgba(246,241,231,.1); border: 1px solid rgba(246,241,231,.25); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lb-btn:hover { background: rgba(246,241,231,.2); }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lb-close { top: 22px; right: 3vw; width: 48px; height: 48px; font-size: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pbody__grid { grid-template-columns: 1fr; }
  .pcol-side { position: static; max-width: 440px; }
  .ploc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .phighlights, .pamen { grid-template-columns: 1fr; }
  .pgallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .pgallery .g-wide { grid-column: span 2; }
  .pgallery .g-tall { grid-row: span 1; }
  .pgallery .g-more span { font-size: 15px; }
  .phero { min-height: 78vh; }
  .phero__bg::after { background: linear-gradient(180deg, rgba(18,26,20,.6) 0%, rgba(18,26,20,.4) 35%, rgba(18,26,20,.95) 100%); }
  .phero__content { padding-block: 40px 48px; }
  .phero__actions .btn, .bookcard .btn, .bookcard .btn--ghost { white-space: normal; text-align: center; line-height: 1.25; }
  .lb-prev { left: 2vw; } .lb-next { right: 2vw; }
}
