/* Milk/graphite property page with full images, mortgage scenarios and optional Dom+ wishes. */
body:has(#modalBackdrop:not([hidden])) { overflow: hidden; }
.modal:has(> .property-detail) { width: min(1440px,100%); max-height: calc(100dvh - 44px); background:var(--bg); overflow-anchor:none; }
.property-detail { color:var(--text); background:var(--bg); font-size:15px; line-height:1.5; }
.property-detail * { box-sizing:border-box; }
.property-detail button,.property-detail a { touch-action:manipulation; }
.property-detail button:focus-visible,.property-detail a:focus-visible,.property-detail summary:focus-visible { outline:3px solid var(--accent-strong); outline-offset:3px; }
.pd-header { position:sticky; top:0; z-index:4; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 28px; background:var(--panel); border-bottom:1px solid var(--line); }
.pd-header strong { font-size:25px; letter-spacing:-1px; }.pd-header .icon-button { font-size:28px; }
.pd-content { padding:24px 32px 40px; }.pd-breadcrumb { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.pd-title h1 { margin:14px 0 6px; font-size:clamp(26px,3vw,40px); line-height:1.2; letter-spacing:-1px; }.pd-title p { margin:0 0 24px; color:var(--muted); }
.pd-top { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); gap:24px; align-items:start; }.pd-top > *, .pd-details-grid > * { min-width:0; }
.pd-gallery { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); grid-template-rows:185px 185px; gap:12px; }.pd-photo { border:0; padding:0; margin:0; border-radius:14px; overflow:hidden; background:var(--panel-3); cursor:zoom-in; }.pd-photo-main { grid-row:1 / 3; }.pd-gallery:has(> :only-child) { grid-template-columns:1fr; }.pd-gallery:has(> :nth-child(2):last-child) { grid-template-columns:1fr 1fr; }.pd-gallery:has(> :nth-child(2):last-child) > :last-child { grid-row:1 / 3; }
.pd-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }.pd-gallery-controls { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }.pd-no-photo { display:grid; place-items:center; height:300px; background:var(--panel-3); border-radius:16px; color:var(--muted); }
.pd-facts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:18px 0 0; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }.pd-facts dt,.pd-specs dt { color:var(--muted); font-size:12px; }.pd-facts dd,.pd-specs dd { margin:5px 0 0; font-weight:700; overflow-wrap:anywhere; }.pd-facts dd { font-size:15px; }
.pd-price-panel { padding:24px; background:#172125; color:#f4f5f0; border-radius:20px; }.pd-price-panel > small { font-size:11px; letter-spacing:.8px; color:#c2cdc6; }.pd-price-panel > strong { display:block; font-size:clamp(30px,3.6vw,46px); margin-top:8px; line-height:1.2; letter-spacing:-1.1px; }.pd-price-panel .pd-actuality { color:#c2cdc6; font-size:12px; margin:14px 0; }.pd-status { display:grid; gap:7px; margin:18px 0 22px; }.pd-status span { padding:8px 10px; background:#29363b; border-radius:9px; font-size:12px; }.pd-status span:last-child { background:#dcebcf; color:#172125; }.pd-actions { display:grid; gap:10px; }.pd-actions button { justify-content:center; min-height:46px; width:100%; }.pd-price-panel .ghost-button { background:#29363b; border-color:#425056; color:#f4f5f0; }.pd-booking-note { color:#c2cdc6; font-size:12px; line-height:1.4; }.pd-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; }.pd-secondary-actions button { font-size:12px; }.property-detail button:disabled { opacity:.55; cursor:not-allowed; }
.pd-jump-links { display:flex; gap:8px; flex-wrap:wrap; padding:24px 0 18px; }.pd-jump-links button { font-size:13px; }
.pd-details-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.pd-section { margin-bottom:16px; background:var(--panel); border:1px solid var(--line); border-radius:16px; scroll-margin-top:88px; }.pd-section summary { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; list-style:none; cursor:pointer; font-weight:800; font-size:20px; }.pd-section summary::-webkit-details-marker { display:none; }.pd-section summary span { color:var(--muted); font-size:23px; }.pd-section[open] summary span { transform:rotate(45deg); }.pd-section-body { padding:0 20px 20px; }.pd-section-body p { margin-top:0; }.pd-description { white-space:pre-line; overflow-wrap:anywhere; }.pd-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 20px; margin:16px 0 0; }.pd-specs > div { border-bottom:1px solid var(--line); padding-bottom:12px; }.pd-hint { display:block; margin:14px 0 0; font-size:12px; color:var(--muted); line-height:1.5; }.pd-utility { display:inline-block; }.pd-utility.connected::before,.pd-utility.possible::before,.pd-utility.absent::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:7px; background:#5b9727; }.pd-utility.possible::before { background:#ba853b; }.pd-utility.absent::before { background:#8b969b; }
.pd-location { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:16px; }.pd-location img { width:100%; height:160px; object-fit:cover; border-radius:12px; }.pd-location p { font-size:12px; color:var(--muted); margin:7px 0 12px; }.pd-location a { display:inline-flex; text-decoration:none; }
.pd-media-preview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.pd-media-preview article { min-width:0; }.pd-media-preview article > button:first-child { width:100%; border:0; padding:0; border-radius:10px; overflow:hidden; aspect-ratio:4/3; background:var(--panel-3); cursor:zoom-in; }.pd-media-preview img { width:100%; height:100%; object-fit:cover; display:block; }.pd-media-preview .ghost-button { margin-top:6px; padding:7px 5px; width:100%; justify-content:center; font-size:11px; }.pd-media-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }.pd-media-actions button { font-size:12px; }.pd-videos { display:grid; gap:14px; margin-top:16px; }.pd-videos video { width:100%; max-height:280px; border-radius:12px; background:#101512; }.pd-videos button { margin-top:6px; }
.pd-finance { display:grid; gap:8px; padding:15px; margin:14px 0; background:var(--accent-soft); color:#17211c; border-radius:12px; }.pd-finance b { font-size:23px; }.pd-finance span,.pd-finance small { font-size:12px; }
.pd-domplus { display:grid; grid-template-columns:1.4fr 1fr auto; gap:16px 24px; padding:24px; border-radius:18px; background:var(--accent-soft); color:#17211c; margin-top:8px; align-items:center; }.pd-kicker { font-size:12px; font-weight:800; letter-spacing:1.2px; }.pd-domplus h2 { margin:4px 0 7px; font-size:24px; }.pd-domplus p { margin:0; color:#53624c; font-size:14px; }.pd-domplus-categories { display:flex; flex-wrap:wrap; gap:8px; }.pd-domplus-categories span { padding:7px 12px; border-radius:9px; background:#fff; font-size:13px; }.pd-domplus > small { grid-column:1/-1; color:#53624c; font-size:12px; }.pd-mobile-dock { display:none; }
.modal:has(> .photo-viewer) { width:min(1160px,100%); }.photo-viewer-main img { object-fit:contain !important; }
.pd-client-overlay { position:fixed; inset:0; z-index:100; overflow:auto; background:var(--bg); padding:0 max(0px,calc((100vw - 1440px)/2)); }.pd-client-overlay .property-detail { min-height:100dvh; }.pd-client-photo { display:grid; min-height:calc(100dvh - 80px); place-items:center; }.pd-client-photo img { width:100%; height:calc(100dvh - 120px); object-fit:contain; }.client-house-image button { display:block; width:100%; height:100%; padding:0; border:0; cursor:pointer; background:transparent; }.client-house-main h2 button { border:0; padding:0; color:inherit; font:inherit; text-align:left; cursor:pointer; background:transparent; }
@media(max-width:1000px) { .pd-top { grid-template-columns:minmax(0,1fr) minmax(280px,.9fr); gap:18px; }.pd-gallery { grid-template-columns:1fr; grid-template-rows:340px; }.pd-photo:not(:first-child) { display:none; }.pd-photo-main { grid-row:auto; }.pd-facts { grid-template-columns:repeat(3,minmax(0,1fr)); }.pd-domplus { grid-template-columns:1fr auto; }.pd-domplus-categories { grid-column:1/-1; grid-row:2; } }
@media(max-width:720px) {
 .modal-backdrop:has(.property-detail) { padding:0; }.modal:has(> .property-detail) { width:100%; height:100dvh; max-height:100dvh; border:0; border-radius:0; }.pd-content { padding:18px 16px calc(108px + env(safe-area-inset-bottom)); }.pd-header { padding:10px 16px; min-height:64px; }.pd-header strong { font-size:21px; }.pd-header .ghost-button { font-size:12px; padding:10px; }.pd-title h1 { font-size:28px; letter-spacing:-.6px; }.pd-title p { font-size:13px; margin-bottom:16px; }.pd-breadcrumb { font-size:11px; }.pd-top { display:flex; flex-direction:column; gap:18px; }.pd-top > div,.pd-price-panel { width:100%; }.pd-gallery,.pd-gallery:has(> :only-child),.pd-gallery:has(> :nth-child(2):last-child) { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; border-radius:14px; }.pd-photo,.pd-gallery > .pd-photo:not(:first-child),.pd-gallery:has(> :nth-child(2):last-child) > :last-child { display:block; flex:0 0 100%; aspect-ratio:4/3; height:auto; scroll-snap-align:start; }.pd-gallery-controls { margin-top:10px; }.pd-gallery-controls button { flex:1; font-size:12px; padding:10px; }.pd-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:14px; }.pd-facts dd { font-size:13px; }.pd-price-panel { padding:20px; border-radius:16px; }.pd-price-panel > strong { font-size:34px; }.pd-secondary-actions { gap:6px; }.pd-price-panel .pd-actions > .button.primary { display:none; }.pd-price-panel .pd-actions > button[data-action="new-booking"] { display:none; }.pd-details-grid { display:block; }.pd-section summary { font-size:18px; padding:16px; }.pd-section-body { padding:0 16px 16px; }.pd-specs { gap:12px; }.pd-location { grid-template-columns:1fr; }.pd-location img { height:190px; }.pd-media-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }.pd-media-preview .ghost-button { min-height:40px; font-size:12px; }.pd-media-actions { display:grid; }.pd-jump-links { flex-wrap:nowrap; overflow-x:auto; margin-right:-16px; padding-right:16px; }.pd-jump-links button { flex:0 0 auto; min-height:44px; }.pd-domplus { display:flex; align-items:stretch; flex-direction:column; padding:20px; gap:14px; }.pd-domplus-categories { flex-wrap:wrap; }.pd-domplus h2 { font-size:23px; }.pd-mobile-dock { position:sticky; z-index:5; bottom:0; display:flex; gap:10px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:var(--panel); border-top:1px solid var(--line); margin-top:calc(-90px - env(safe-area-inset-bottom)); }.pd-mobile-dock button { flex:1; min-height:48px; padding:10px 8px; font-size:13px; justify-content:center; }.pd-client-overlay { padding:0; }
}
@media(max-width:720px) { .property-detail[data-mode="client"] .pd-actions > .button.primary { display:flex; } }
@media(prefers-reduced-motion:reduce) { .property-detail *, .pd-client-overlay * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
.pd-quality-note{margin:0 0 24px;padding:16px 20px;background:#f2f3e8;color:#303b28;border:1px solid #c5ccae;border-radius:12px}.pd-quality-note p{margin:6px 0 0;font-size:14px;line-height:1.5}

/* Full images: fixed media boxes must not inherit the intrinsic min-size of tall originals. */
.pd-photo { position:relative; min-height:0; min-width:0; }
.pd-photo img { position:absolute; inset:0; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
.pd-media-preview img,.photo-thumbs img,.gallery-grid figure img { object-fit:contain; }
.modal:has(> .photo-viewer) { width:min(1160px,100%); height:min(900px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; overflow:hidden; }
.modal:has(> .photo-viewer) > .modal-header { flex:0 0 auto; min-width:0; gap:12px; }
.modal:has(> .photo-viewer) .modal-title { font-size:clamp(16px,2vw,24px); }
.photo-viewer { flex:1 1 0; min-height:0; min-width:0; display:flex; flex-direction:column; gap:10px; overflow:hidden; }
.photo-viewer-main { flex:1 1 0; min-height:0; min-width:0; height:auto; display:block; }
.photo-viewer-main > img { position:absolute; inset:0; display:block; width:100%; height:100%; max-height:100%; max-width:100%; object-fit:contain!important; }
.photo-thumbs { flex:0 0 auto; min-height:0; margin:0; padding:2px; }
.photo-viewer-footer { flex:0 0 auto; margin:0; min-width:0; }
.photo-viewer-footer > div { display:flex; flex-wrap:wrap; gap:8px; }
.pd-mortgage { margin:24px 0 0; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--panel); scroll-margin-top:80px; }
.pd-tool-heading { display:flex; justify-content:space-between; gap:20px; align-items:start; margin-bottom:20px; }
.pd-tool-heading h2 { margin:5px 0 7px; font-size:26px; letter-spacing:-.7px; line-height:1.2; }
.pd-tool-heading p { margin:0; color:var(--muted); font-size:13px; }
.pd-reference-date { flex:0 0 auto; color:var(--muted); font-size:11px; padding-top:4px; }
.pd-mortgage-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(250px,1fr); gap:24px; }
.pd-mortgage-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-content:start; }
.pd-mortgage-fields label { display:grid; align-content:start; gap:7px; font-size:12px; font-weight:700; color:var(--muted); min-width:0; }
.pd-mortgage-fields input,.pd-mortgage-fields select { width:100%; min-width:0; min-height:46px; padding:10px 12px; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:10px; font:inherit; font-size:15px; }
.pd-full-field { grid-column:1/-1; }.pd-program-note { color:var(--muted); font-size:12px; margin:0; line-height:1.5; }
.pd-field-error { color:#bc3030; }.pd-mortgage-fields input[aria-invalid="true"] { border-color:#bc3030; box-shadow:0 0 0 1px #bc3030; }
.pd-mortgage-result { padding:24px; border-radius:16px; background:#172125; color:#f4f5f0; min-width:0; }
.pd-mortgage-result > span,.pd-mortgage-result > small { display:block; color:#c2cdc6; font-size:12px; }
.pd-mortgage-result > strong { display:block; margin:8px 0; font-size:clamp(25px,3vw,38px); letter-spacing:-1px; line-height:1.2; overflow-wrap:anywhere; }
.pd-mortgage-result p { font-size:13px; color:#c2cdc6; }.pd-mortgage-result dl { display:grid; gap:12px; margin:24px 0 0; }
.pd-mortgage-result dl > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; padding-bottom:10px; border-bottom:1px solid #3a474a; }
.pd-mortgage-result dt { color:#c2cdc6; font-size:12px; }.pd-mortgage-result dd { margin:0; font-size:14px; font-weight:700; }
.pd-mortgage-reference { margin-top:18px; padding:14px 16px; border-radius:12px; background:var(--panel-3); display:grid; gap:6px; font-size:12px; }
.pd-mortgage-reference span { color:var(--muted); }.pd-mortgage-reference a { color:var(--text); text-decoration:underline; text-underline-offset:3px; width:fit-content; }
.pd-domplus { display:block; background:var(--panel); color:var(--text); border:1px solid var(--line); margin-top:24px; padding:24px; }
.pd-domplus .pd-tool-heading p { color:var(--muted); }.pd-domplus h2 { font-size:26px; }.pd-domplus > small { display:block; margin-top:18px; color:var(--muted); line-height:1.5; }
.pd-domplus-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pd-extra-product { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--line); border-radius:14px; color:var(--text); background:var(--bg); text-align:left; font:inherit; cursor:pointer; min-width:0; transition:border-color .15s,background .15s; }
.pd-extra-product:hover { border-color:var(--accent-strong); }.pd-extra-product.is-selected { border:2px solid var(--accent-strong); padding:15px; background:var(--accent-soft); color:#17211c; }
.pd-product-icon { width:72px; height:78px; display:grid; place-items:center; flex:0 0 auto; border-radius:38px 38px 8px 8px; background:var(--panel); color:var(--text); }.pd-product-icon svg { width:56px; height:56px; }
.pd-product-copy { min-width:0; }.pd-product-copy b { display:block; font-size:18px; }.pd-product-copy small { display:block; margin-top:5px; font-size:11px; color:var(--muted); line-height:1.5; }
.pd-product-toggle { display:grid; place-items:center; width:26px; height:26px; flex:0 0 auto; margin-left:auto; border-radius:50%; background:var(--panel); color:var(--text); font-size:21px; }.is-selected .pd-product-toggle { background:var(--accent-strong); color:#17211c; font-size:16px; }
.pd-extras-count { padding:6px 10px; border-radius:8px; font-size:12px; background:var(--accent-soft); color:#17211c; flex:0 0 auto; }
.pd-configuration-save { display:flex; align-items:center; gap:16px; padding-top:16px; }.pd-configuration-save > span { font-size:12px; color:var(--muted); max-width:600px; }
.property-detail[data-mode="client"] .pd-extra-product:disabled { opacity:1; cursor:default; }
.client-house-calculation { margin:8px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
@media(max-width:1000px) { .pd-extra-product { flex-wrap:wrap; }.pd-product-copy { flex:1; }.pd-product-icon { width:56px; height:62px; }.pd-product-icon svg { width:45px; height:45px; }.pd-product-copy b { font-size:16px; } }
@media(max-width:720px) {
 .pd-mortgage,.pd-domplus { padding:18px 16px; border-radius:16px; }.pd-mortgage-layout { grid-template-columns:1fr; gap:16px; }.pd-tool-heading { flex-wrap:wrap; gap:10px; }.pd-tool-heading h2,.pd-domplus h2 { font-size:23px; }.pd-reference-date { padding:0; }
 .pd-domplus-products { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 12px; gap:12px; }.pd-extra-product { flex:0 0 228px; min-height:120px; scroll-snap-align:start; flex-wrap:nowrap; }.pd-configuration-save { align-items:stretch; flex-direction:column; }.pd-configuration-save .button { justify-content:center; min-height:48px; }
 .modal:has(> .photo-viewer) { height:100dvh; max-height:100dvh; border-radius:0; }.modal-backdrop:has(.photo-viewer) { padding:0; }.modal:has(> .photo-viewer) > .modal-header { padding:10px; flex-wrap:wrap; }.modal:has(> .photo-viewer) .modal-header > div { flex:1; min-width:0; }.modal:has(> .photo-viewer) .modal-header .ghost-button { padding:9px; font-size:12px; }
 .photo-viewer { padding:10px; }.photo-thumbs button { width:58px; height:46px; }.photo-viewer-footer { font-size:10px; gap:8px; }.photo-viewer-footer .ghost-button { min-height:40px; font-size:11px; padding:8px; }.photo-arrow { width:34px; height:46px; }.photo-arrow.prev { left:6px; }.photo-arrow.next { right:6px; }
}
