/* =====================================================================
   Property detail page — built from the template tokens (style.css):
   ink / azure / amber / porcelain, Bricolage + Hanken Grotesk, radii.
   ===================================================================== */

/* ---------- top: gallery mosaic + headline ---------- */
.pd-top { padding: 1.4rem 0 1.6rem; background: var(--paper); }
.pd-crumbs { font-size: .86rem; color: var(--muted); margin: 0 0 .9rem; }
.pd-crumbs a { color: var(--muted); }
.pd-crumbs a:hover { color: var(--azure); }

.pd-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; height: clamp(260px, 42vw, 460px); }
.pd-mosaic--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-mosaic--n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.pd-mosaic--n2 .pd-mosaic-item--main { grid-row: auto; }
.pd-mosaic--n3 { grid-template-columns: 2fr 1fr; }
.pd-mosaic--n4 .pd-mosaic-item:last-of-type { grid-column: span 2; }
.pd-mosaic-item { position: relative; overflow: hidden; border-radius: var(--r-md); background: #e7ecf2; display: block; }
.pd-mosaic-item--main { grid-row: span 2; border-radius: var(--r-lg); }
.pd-mosaic-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pd-mosaic-item:hover img { transform: scale(1.04); }
.pd-more-photos { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9,18,30,.55); color: #fff; font-weight: 700; font-size: 1.1rem; }
.pd-photo-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: rgba(12,30,51,.78); color: #fff; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pd-photo-count .ic { width: 16px; height: 16px; }

.pd-headline { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pd-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.pd-address { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin: .45rem 0 .9rem; }
.pd-address .ic { width: 18px; height: 18px; color: var(--azure); }
.pd-basics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.pd-basics li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #26394d; font-size: .95rem; }
.pd-basic-ico, .pd-term-ico, .sim-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(46,107,240,.1); color: var(--azure); }
.pd-basic-ico .ic, .pd-term-ico .ic, .sim-ico .ic { width: 16px; height: 16px; }
.pd-price { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.pd-price span, .pd-price small { color: var(--muted); font-size: .85rem; }
.pd-price strong { font-family: var(--f-display); font-size: 2rem; color: #1c8a3f; letter-spacing: -.02em; line-height: 1.1; }
.pd-price .btn { margin-top: .5rem; }

/* ---------- sticky section navigation ---------- */
.pd-nav { position: sticky; top: 74px; z-index: 800; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -18px rgba(12,30,51,.5); }
.pd-nav-inner { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.pd-nav-inner::-webkit-scrollbar { display: none; }
.pd-nav a { flex: none; padding: 1rem .9rem; color: #26394d; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.pd-nav a:hover { color: var(--ink); }
.pd-nav a.is-current { color: var(--azure); border-bottom-color: var(--azure); }
.pd-section { scroll-margin-top: 140px; }
#enquire, #rooms { scroll-margin-top: 140px; }

/* ---------- layout ---------- */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; padding-top: 1.8rem; }
.pd-main { min-width: 0; }
.pd-side { min-width: 0; display: grid; gap: 1.4rem; }
.pd-wide { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.pd-section { margin-bottom: 2rem; }
.pd-bar { font-family: var(--f-body); font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); background: rgba(46,107,240,.1); padding: .7rem 1.1rem; border-radius: var(--r-sm); margin: 0 0 1rem; }
.pd-body { padding: 0 .3rem; }
.pd-lead { font-size: 1.02rem; color: #26394d; margin: 0 0 .6rem; }
.pd-about { color: #3d4f61; line-height: 1.65; }
.pd-muted { color: var(--muted); margin: 0; }
.js .pd-about--hidden:not(.is-open) { display: none; }
.js .pd-about--clamp:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-link { display: inline-flex; align-items: center; gap: .25rem; margin-top: .6rem; padding: 0; border: 0; background: none; color: var(--azure); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: var(--f-body); }
.pd-link::after { content: "⌄"; font-size: .9em; text-decoration: none; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .js-only[hidden] { display: none; }

/* ---------- renting terms ---------- */
.pd-terms { margin: 0; padding: 0 .3rem; display: grid; }
.pd-term { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.pd-term:last-child { border-bottom: 0; }
.pd-term dt { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: #26394d; }
.pd-term dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- tabs (amenities, nearby) ---------- */
.pd-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.pd-tab { border: 1px solid #c9cfd8; background: #fff; color: #26394d; padding: .55rem 1.05rem; border-radius: var(--r-sm); font-family: var(--f-body); font-size: .95rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pd-tab:hover { border-color: var(--ink); }
.pd-tab.is-active { border: 2px solid var(--azure); background: rgba(46,107,240,.06); color: var(--ink); padding: calc(.55rem - 1px) calc(1.05rem - 1px); }
.pd-panel-title { font-family: var(--f-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .8rem 0 .5rem; }
.js [data-tabs] > .pd-tab-panel:not([data-active]) { display: none; }
.js [data-tabs] > .pd-tab-panel .pd-panel-title { display: none; }
.js [data-tabs].show-all > .pd-tab-panel { display: block; }
.js [data-tabs].show-all > .pd-tab-panel .pd-panel-title { display: block; }
.js [data-tabs].show-all > .pd-tab-panel .pd-empty-line { display: none; }
.js [data-tabs].show-all .pd-tabs .pd-tab.is-active { border: 1px solid #c9cfd8; background: #fff; padding: .55rem 1.05rem; }

.pd-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem 1rem; }
.pd-amenities li, .pd-empty-line { display: flex; align-items: center; gap: .55rem; color: #26394d; margin: 0; }
.pd-amenities .ic, .pd-empty-line .ic { width: 20px; height: 20px; color: #2fa84f; }

/* ---------- "view more" lists ---------- */
.js [data-more]:not(.is-expanded) .is-extra { display: none; }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.pd-list-row { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; }
.pd-list-text { flex: 1; color: #26394d; }
.pd-list-text small { display: block; color: var(--muted); font-size: .82rem; }
.pd-list-value { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pd-list-value--light { font-weight: 500; color: #26394d; }
.pd-check { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(46,107,240,.08); color: #26394d; }
.pd-check .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.pd-check--green { border-radius: 5px; background: #3cb66a; color: #fff; }
.pd-nearby-ico { color: #4a5d9b; }
.pd-nearby-ico .ic { width: 20px; height: 20px; }

/* ---------- available rooms ---------- */
.pd-rooms, .enq-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.pd-rooms-title { font-size: 1.2rem; padding: 1.1rem 1.2rem .9rem; margin: 0; }
.pd-room-tabs { display: flex; border-bottom: 2px solid var(--line); }
.pd-room-tab { flex: 1; border: 0; background: none; padding: .8rem .6rem; font-family: var(--f-body); font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pd-room-tab.is-active { color: var(--azure); border-bottom-color: var(--azure); }
.pd-room-card { margin: 1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.js [data-tabs] > .pd-room-card:not([data-active]) { display: none; }
.pd-room-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.pd-room-head h3 { font-family: var(--f-body); font-size: 1.1rem; font-weight: 600; margin: 0; }
.pd-room-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,107,240,.12); color: var(--azure); }
.pd-room-price { margin: 0 0 0 auto; }
.pd-room-price small { color: #26394d; font-size: .85rem; }
.pd-room-price strong { color: #1c8a3f; font-family: var(--f-display); font-size: 1.2rem; }
.pd-room-body { padding: .9rem 1rem; }
.pd-room-sub { font-weight: 600; margin: 0 0 .6rem; color: var(--ink); font-size: .92rem; }
.pd-room-amenities { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem .8rem; }
.pd-room-amenities li { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: #26394d; }
.pd-room-amenities .ic { width: 17px; height: 17px; color: #2fa84f; }
.pd-room-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.pd-room-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.pd-tenants { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #1c8a3f; font-size: .92rem; }
.pd-avatars { display: inline-flex; }
.pd-avatars span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #aab5c3; color: #fff; border: 2px solid #fff; margin-left: -8px; font-size: .72rem; font-weight: 700; }
.pd-avatars span:first-child { margin-left: 0; }
.pd-avatars .ic { width: 15px; height: 15px; }
.pd-avatars .pd-avatar-more { background: #e6e9ee; color: #26394d; }

/* ---------- enquiry panel ---------- */
.enq-panel { padding: 1.2rem; background: linear-gradient(180deg, #fdf3f3 0%, #eef1fb 100%); }
.enq-modes { display: flex; gap: .25rem; background: #fff; padding: .3rem; border-radius: 999px; width: fit-content; margin: 0 auto 1rem; box-shadow: var(--shadow-sm); }
.enq-mode { padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.enq-mode:hover { color: var(--ink); }
.enq-mode.is-active { background: var(--azure); color: #fff; }
.enq-tagline { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 0 0 .9rem; color: #26394d; font-size: .95rem; text-align: center; }
.enq-tagline .ic { width: 16px; height: 16px; color: var(--amber-700); }
.enq-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.enq-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .5rem; background: #fff; border: 2px solid transparent; border-radius: var(--r-md); cursor: pointer; text-align: center; box-shadow: var(--shadow-sm); transition: border-color .15s ease; }
.enq-option input { position: absolute; opacity: 0; pointer-events: none; }
.enq-option:has(input:checked) { border-color: var(--azure); }
.enq-option:has(input:focus-visible) { outline: 3px solid var(--azure); outline-offset: 2px; }
.enq-option-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.enq-option-ico .ic { width: 18px; height: 18px; }
.enq-option-ico--azure { background: rgba(46,107,240,.14); color: var(--azure); }
.enq-option-ico--green { background: #e3f6e9; color: #1c8a3f; }
.enq-option-ico--grey { background: #eceae4; color: #3d4f61; }
.enq-option-label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.enq-panel .cta-field { margin-bottom: .7rem; }
.enq-panel .cta-field span { font-size: .74rem; }
.enq-panel .cta-field input, .enq-panel .cta-field select, .enq-panel .cta-field textarea { background-color: #fff; padding: .65rem .8rem; font-size: .95rem; }
.enq-panel .cta-note { margin: 0 0 1rem; }

/* ---------- map ---------- */
.pd-map { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.pd-map-search { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #cfd6df; border-radius: var(--r-sm); padding: .2rem .3rem .2rem .8rem; box-shadow: var(--shadow-sm); }
.pd-map-search .ic { width: 18px; height: 18px; color: #26394d; flex: none; }
.pd-map-search input { flex: 1; min-width: 0; border: 0; padding: .6rem 0; font-family: var(--f-body); font-size: .95rem; color: var(--ink); background: transparent; }
.pd-map-search input:focus { outline: none; }
.pd-map-search button { border: 0; background: none; padding: .5rem; cursor: pointer; color: #26394d; }
.pd-map-frame { position: relative; aspect-ratio: 16 / 9; min-height: 320px; background: #e7ecf2; }
.pd-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-navigate { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; background: rgba(12,30,51,.82); color: #fff; padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pd-navigate:hover { color: #fff; background: var(--azure); }
.pd-navigate .ic { width: 15px; height: 15px; }

/* ---------- photo gallery ---------- */
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.pd-gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: #e7ecf2; }
.pd-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pd-gallery-item:hover img { transform: scale(1.05); }
.pd-gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .7rem .5rem; background: linear-gradient(180deg, transparent, rgba(9,18,30,.75)); color: #fff; font-size: .82rem; font-weight: 600; }

/* ---------- similar properties ---------- */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.sim-extra { display: contents; }
.js [data-more]:not(.is-expanded) .sim-extra { display: none; }
.sim-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: .7rem; transition: box-shadow .2s ease, transform .2s ease; }
.sim-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sim-media { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: var(--r-sm); overflow: hidden; background: #e7ecf2; }
.sim-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sim-body { display: flex; flex-direction: column; flex: 1; padding: .9rem .2rem .2rem; }
.sim-title { font-family: var(--f-body); font-size: 1.35rem; font-weight: 600; margin: 0 0 .3rem; }
.sim-title a { color: var(--ink); }
.sim-title a:hover { color: var(--azure); }
.sim-loc { color: #3d4f61; margin: 0 0 .8rem; font-size: .95rem; }
.sim-facts { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .55rem; }
.sim-facts li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: #26394d; font-size: .93rem; }
.sim-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--line); }
.sim-price { color: #1c8a3f; font-weight: 700; font-size: .95rem; }

/* ---------- FAQs accordion ---------- */
.pd-faqs { border-top: 0; }
.pd-faq { border-bottom: 1px solid var(--line); }
.pd-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; font-weight: 700; color: var(--ink); cursor: pointer; font-size: .97rem; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary:hover { background: #fafbfc; }
.pd-faq-chev { width: 18px; height: 18px; transition: transform .2s ease; flex: none; }
.pd-faq[open] summary { background: #f4f5f7; }
.pd-faq[open] .pd-faq-chev { transform: rotate(180deg); }
.pd-faq-answer { padding: .3rem 1rem 1rem; color: #3d4f61; line-height: 1.6; }

/* ---------- lightbox ---------- */
.pd-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(9,18,30,.92); display: grid; place-items: center; padding: 3rem 4rem; }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.pd-lb-caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #dbe6f4; margin: 0; font-size: .9rem; }
.pd-lb-close, .pd-lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.pd-lb-close:hover, .pd-lb-nav:hover { background: rgba(255,255,255,.25); }
.pd-lb-close { top: 1rem; right: 1rem; }
.pd-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pd-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-side { position: static; }
}
@media (max-width: 720px) {
  .pd-mosaic, .pd-mosaic--n3, .pd-mosaic--n4, .pd-mosaic--n5 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 380px; }
  .pd-mosaic--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 260px; }
  .pd-mosaic--n2 { grid-template-columns: 1fr; grid-template-rows: 2fr 1fr; }
  .pd-mosaic--n4 .pd-mosaic-item:last-of-type { grid-column: auto; }
  .pd-mosaic-item--main { grid-column: 1 / -1; grid-row: auto; }
  .pd-mosaic-item:nth-child(n+4) { display: none; }
  .pd-price { align-items: flex-start; text-align: left; }
  .pd-room-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-nav { top: 74px; }
  .pd-nav a { padding: .85rem .7rem; font-size: .9rem; }
  .pd-lightbox { padding: 3.5rem .8rem; }
  .pd-lb-nav { top: auto; bottom: 3rem; transform: none; }
}
@media (max-width: 480px) {
  .enq-options { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .enq-option { padding: .7rem .3rem; }
  .enq-option-label { font-size: .8rem; }
  .enq-mode { padding: .55rem .9rem; }
}

/* gallery: only a few thumbnails are rendered; the last one opens the full lightbox */
.pd-gallery-item--more span.pd-gallery-more { inset: 0; top: 0; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(9,18,30,.62); font-size: 1.15rem; font-weight: 700; }
.pd-gallery-all { margin: .9rem 0 0; }
.pd-gallery-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--azure, #2563eb); text-decoration: underline; text-underline-offset: 3px; }
.pd-gallery-link svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .pd-gallery { grid-template-columns: repeat(4, 1fr); } }
