/* =====================================================================
   Property details — luxury layout (/property/{slug})
   Loaded only on that page, after premium.css. Uses the premium tokens
   (--p-navy, --p-gold, --p-serif ...) defined on .premium-ui.
   ===================================================================== */

.pd {
    --pd-gap: clamp(20px, 3vw, 36px);
    --pd-radius: 20px;
    --pd-card: #fff;
    padding: 18px 0 clamp(48px, 7vw, 96px);
    background:
        radial-gradient(1200px 420px at 100% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
        var(--p-canvas, #f6f7fb);
}
.pd-noscroll, .pd-noscroll body { overflow: hidden; }

/* preview banner for unpublished listings */
.pd-notice { background: #fff8e1; border-bottom: 1px solid #f1d98a; color: #7a5b00; font-size: 0.9rem; padding: 10px 0; }
.pd-notice .bi { margin-right: 6px; }

/* ---------- Breadcrumb (replaces the big banner) ---------- */
.pd-crumbs ol {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
    list-style: none; margin: 0 0 18px; padding: 0;
    font-size: 0.82rem; letter-spacing: 0.02em; color: var(--p-muted, #6b7088);
    overflow: hidden; white-space: nowrap;
}
.pd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.pd-crumbs li + li::before { content: ''; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: var(--p-gold, #d4af37); flex: none; }
.pd-crumbs a { color: var(--p-muted, #6b7088); text-decoration: none; transition: color 0.2s; }
.pd-crumbs a:hover { color: var(--p-navy, #061058); }
.pd-crumbs li[aria-current] { color: var(--p-navy, #061058); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Title + price ---------- */
.pd-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
    margin-bottom: 24px;
}
.pd-head-main { min-width: 0; flex: 1 1 auto; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pd-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--p-navy, #061058); background: #fff; border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
}
.pd-tag-gold { background: var(--p-gold-grad); border-color: transparent; color: #241a00; }
.pd-tag-dark { background: var(--p-navy, #061058); border-color: transparent; color: #fff; }
.pd-tag-dark .bi { color: var(--p-gold-light, #ecd27f); }
.pd-tag-verified .bi { color: #1f9d55; }
.pd-status.is-sold { background: #fdecec; color: #b42318; border-color: #f7c9c5; }
.pd-status.is-rented { background: #eef2ff; color: #3538cd; border-color: #c7d2fe; }
.pd-status.is-pending { background: #fff6e0; color: #93640b; border-color: #f4dca0; }

.pd-title {
    font-family: var(--p-serif, 'Barlow', sans-serif);
    font-weight: 600;
    font-size: clamp(1.75rem, 3.4vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--p-navy, #061058);
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}
.pd-location { margin: 0; color: var(--p-muted, #6b7088); font-size: 1rem; display: flex; gap: 8px; align-items: flex-start; }
.pd-location .bi { color: var(--p-gold-deep, #b8932a); margin-top: 2px; }

.pd-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: none; text-align: right; }
.pd-price { display: flex; flex-direction: column; align-items: flex-end; }
.pd-price-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--p-muted, #6b7088); font-weight: 600; }
.pd-price-value {
    font-family: var(--p-serif, 'Barlow', sans-serif);
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 600; line-height: 1.15; color: var(--p-navy, #061058);
    font-variant-numeric: lining-nums;
}
.pd-currency { color: var(--p-gold-deep, #b8932a); margin-right: 2px; }
.pd-price-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 0.85rem; color: var(--p-muted, #6b7088); }
.pd-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: #eef0f6; color: var(--p-ink, #1d2340); }
.pd-pill.is-neg { background: #e7f6ec; color: #1f7a45; }

.pd-actions { display: flex; gap: 10px; }
.pd-icon-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
    color: var(--p-navy, #061058); font-size: 1.05rem;
    box-shadow: var(--p-shadow-sm, 0 2px 10px rgba(6, 16, 88, 0.06));
    transition: transform 0.25s var(--p-ease, ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.pd-icon-btn:hover { transform: translateY(-2px); border-color: var(--p-gold, #d4af37); color: var(--p-gold-deep, #b8932a); }
.pd-icon-btn.btn-favorite.active { background: #fff0f2; border-color: #f5b5c0; color: #e11d48; }

/* ---------- Gallery ---------- */
.pd-gallery { position: relative; margin-bottom: 28px; }
.pd-mosaic {
    display: grid; gap: 10px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: clamp(380px, 46vw, 560px);
    border-radius: var(--pd-radius); overflow: hidden;
}
.pd-tile {
    position: relative; padding: 0; border: 0; margin: 0;
    overflow: hidden; background: #e7eaf3; cursor: zoom-in; min-height: 0;
}
.pd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--p-ease, ease), filter 0.5s; }
.pd-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(3, 8, 53, 0.25)); opacity: 0; transition: opacity 0.4s; }
.pd-tile:hover img { transform: scale(1.045); }
.pd-tile:hover::after { opacity: 1; }
.pd-tile:first-child { grid-row: 1 / span 2; }
.pd-tile-more {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(3, 8, 53, 0.55); color: #fff;
    font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 2rem;
    backdrop-filter: blur(2px);
}
/* fewer photos: let the mosaic adapt */
.pd-gallery--n1 .pd-mosaic { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-gallery--n2 .pd-mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.pd-gallery--n2 .pd-tile:first-child { grid-row: auto; }
.pd-gallery--n3 .pd-mosaic { grid-template-columns: 2fr 1fr; }
.pd-gallery--n4 .pd-mosaic { grid-template-columns: 2fr 1fr 1fr; }
.pd-gallery--n4 .pd-tile:nth-child(4) { grid-column: 2 / span 2; }

.pd-allphotos {
    position: absolute; right: 18px; top: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.92); color: var(--p-navy, #061058);
    font-size: 0.85rem; font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px -10px rgba(3, 8, 53, 0.5);
    transition: transform 0.25s var(--p-ease, ease), background 0.25s;
}
.pd-allphotos b { background: var(--p-navy, #061058); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; }
.pd-allphotos:hover { transform: translateY(-2px); background: #fff; }

.pd-strip, .pd-strip-count { display: none; }

/* ---------- Key facts ---------- */
.pd-facts {
    list-style: none; margin: 0 0 var(--pd-gap); padding: 6px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    background: var(--pd-card); border-radius: var(--pd-radius);
    border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
    box-shadow: var(--p-shadow-sm, 0 2px 10px rgba(6, 16, 88, 0.06));
}
.pd-facts li {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: 14px; align-items: center;
    padding: 16px 20px; position: relative;
}
.pd-facts li + li::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--p-line, rgba(6, 16, 88, 0.08)); }
.pd-facts .bi {
    grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(212, 175, 55, 0.12); color: var(--p-gold-deep, #b8932a); font-size: 1.15rem;
}
.pd-fact-value { font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 1.35rem; font-weight: 600; color: var(--p-navy, #061058); line-height: 1.1; }
.pd-fact-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-muted, #6b7088); }

/* ---------- Two-column layout ---------- */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--pd-gap); align-items: start; }
.pd-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.pd-block {
    background: var(--pd-card); border-radius: var(--pd-radius);
    border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
    padding: clamp(22px, 3vw, 36px);
}
.pd-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--p-gold-deep, #b8932a); margin-bottom: 8px;
}
.pd-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.pd-h2 {
    font-family: var(--p-serif, 'Barlow', sans-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600;
    color: var(--p-navy, #061058); margin: 0 0 18px; letter-spacing: -0.01em;
}

.pd-desc {
    color: #3b4160; font-size: 1.02rem; line-height: 1.85;
    white-space: pre-line; overflow-wrap: anywhere;
    max-height: 13.5em; overflow: hidden; position: relative;
    transition: max-height 0.6s var(--p-ease, ease);
}
.pd-desc:not(.expanded)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
.pd-desc.expanded { max-height: 400em; }
.pd-more {
    margin-top: 12px; padding: 0; border: 0; background: none;
    color: var(--p-navy, #061058); font-weight: 600; font-size: 0.9rem;
    border-bottom: 1px solid var(--p-gold, #d4af37);
}

.pd-amenities {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px;
}
.pd-amenities li { display: flex; align-items: center; gap: 12px; color: var(--p-ink, #1d2340); padding: 8px 0; border-bottom: 1px dashed var(--p-line, rgba(6, 16, 88, 0.08)); }
.pd-amenities .bi {
    width: 26px; height: 26px; flex: none; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--p-navy, #061058); color: var(--p-gold-light, #ecd27f); font-size: 0.9rem;
}

.pd-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.pd-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--p-line, rgba(6, 16, 88, 0.08)); }
.pd-details dt { font-weight: 500; color: var(--p-muted, #6b7088); font-size: 0.9rem; }
.pd-details dd { margin: 0; font-weight: 600; color: var(--p-navy, #061058); text-align: right; overflow-wrap: anywhere; }

.pd-video { border-radius: 16px; overflow: hidden; background: #000; }
.pd-video iframe { border: 0; }
.pd-map { border-radius: 16px; overflow: hidden; height: 360px; background: #e7eaf3; }
.pd-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
.pd-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--p-muted, #6b7088); font-size: 0.92rem; }
.pd-map-foot .bi-geo-alt { color: var(--p-gold-deep, #b8932a); }
.pd-link-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    color: var(--p-navy, #061058); font-weight: 600; font-size: 0.9rem; text-decoration: none;
    border-bottom: 1px solid var(--p-gold, #d4af37); padding-bottom: 2px;
    transition: gap 0.25s var(--p-ease, ease), color 0.2s;
}
.pd-map-foot .pd-link-btn { margin-top: 0; }
.pd-link-btn:hover { gap: 12px; color: var(--p-gold-deep, #b8932a); }
.pd-admin { border-style: dashed; border-color: #f1b4b4; background: #fffafa; }
.pd-admin .pd-eyebrow { color: #b42318; }

/* ---------- Concierge sidebar ---------- */
.pd-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.pd-concierge {
    background: var(--pd-card); border-radius: var(--pd-radius); overflow: hidden;
    border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
    box-shadow: var(--p-shadow, 0 10px 30px -8px rgba(6, 16, 88, 0.18));
    padding: 0 24px 24px;
}
.pd-concierge-price {
    margin: 0 -24px 20px; padding: 20px 24px;
    background: var(--p-navy-grad, linear-gradient(135deg, #0a1a7a, #061058 55%, #030835));
    color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.pd-concierge-price::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%); }
.pd-concierge-price span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.pd-concierge-price strong { font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 1.65rem; font-weight: 600; color: var(--p-gold-light, #ecd27f); }

.pd-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pd-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--p-gold, #d4af37); flex: none; }
.pd-agent-role { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-muted, #6b7088); }
.pd-agent-name { font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 1.15rem; font-weight: 600; color: var(--p-navy, #061058); text-decoration: none; }
.pd-agent-name:hover { color: var(--p-gold-deep, #b8932a); }
.pd-agent-actions { display: flex; gap: 8px; }
.pd-agent-actions .pd-btn { flex: 1 1 0; }
.pd-agent-actions .pd-btn-ghost { flex: 0 0 48px; }

.pd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer;
    transition: transform 0.25s var(--p-ease, ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.pd-btn:hover { transform: translateY(-2px); text-decoration: none; }
.pd-btn-dark { background: var(--p-navy, #061058); color: #fff; }
.pd-btn-dark:hover { color: #fff; box-shadow: 0 12px 24px -10px rgba(6, 16, 88, 0.6); }
.pd-btn-wa { background: #e9f8ef; color: #128c4a; border-color: #bfe8cf; }
.pd-btn-wa:hover { background: #25d366; color: #fff; }
.pd-btn-ghost { background: #fff; color: var(--p-navy, #061058); border-color: var(--p-line, rgba(6, 16, 88, 0.12)); }
.pd-btn-ghost:hover { border-color: var(--p-gold, #d4af37); color: var(--p-gold-deep, #b8932a); }
.pd-btn-gold { background: var(--p-gold-grad); color: #241a00; box-shadow: 0 10px 24px -12px rgba(184, 147, 42, 0.9); }
.pd-btn-gold:hover { color: #241a00; box-shadow: 0 16px 30px -12px rgba(184, 147, 42, 0.95); }
.pd-btn-gold .bi { transition: transform 0.25s var(--p-ease, ease); }
.pd-btn-gold:hover .bi { transform: translateX(4px); }
.pd-btn.is-busy { opacity: 0.7; pointer-events: none; }

.pd-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--p-muted, #6b7088); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pd-divider::before, .pd-divider::after { content: ''; flex: 1; height: 1px; background: var(--p-line, rgba(6, 16, 88, 0.1)); }

/* floating-label fields */
.pd-field { position: relative; margin-bottom: 12px; }
.pd-field input, .pd-field textarea {
    width: 100%; border: 1px solid #dfe2ec; border-radius: 12px; background: #fbfbfd;
    padding: 22px 14px 8px; font-size: 16px; color: var(--p-ink, #1d2340);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; resize: vertical;
}
.pd-field textarea { min-height: 96px; line-height: 1.5; }
.pd-field label {
    position: absolute; left: 15px; top: 15px; pointer-events: none;
    color: var(--p-muted, #6b7088); font-size: 0.95rem;
    transform-origin: left top; transition: transform 0.2s var(--p-ease, ease), color 0.2s;
}
.pd-field input:focus, .pd-field textarea:focus { outline: none; border-color: var(--p-gold, #d4af37); background: #fff; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }
.pd-field input:focus + label, .pd-field input:not(:placeholder-shown) + label,
.pd-field textarea:focus + label, .pd-field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(0.74); color: var(--p-gold-deep, #b8932a); }
.pd-form-status { margin: 10px 0 0; font-size: 0.88rem; min-height: 0; }
.pd-form-status:empty { display: none; }
.pd-form-status.ok { color: #1f7a45; background: #e7f6ec; border-radius: 10px; padding: 10px 12px; }
.pd-form-status.err { color: #b42318; background: #fdecec; border-radius: 10px; padding: 10px 12px; }
.pd-form-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--p-muted, #6b7088); display: flex; gap: 6px; align-items: center; justify-content: center; }
.pd-form-note .bi { color: #1f9d55; }

.pd-share {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--p-line, rgba(6, 16, 88, 0.08));
}
.pd-share span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-muted, #6b7088); margin-right: 4px; }
.pd-share a, .pd-share button {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--p-line, rgba(6, 16, 88, 0.1)); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--p-navy, #061058);
    transition: background 0.25s, color 0.25s, transform 0.25s var(--p-ease, ease);
}
.pd-share a:hover, .pd-share button:hover { background: var(--p-navy, #061058); color: var(--p-gold-light, #ecd27f); transform: translateY(-2px); }
.pd-share button.done { background: #1f9d55; color: #fff; }

/* ---------- Similar ---------- */
.pd-related { margin-top: clamp(48px, 6vw, 80px); }
.pd-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pd-related-head .pd-h2 { margin: 0; }
.pd-related-head .pd-link-btn { margin: 0; }

/* ---------- Photo viewer ---------- */
.pd-viewer {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
    background: rgba(3, 6, 30, 0.97); color: #fff;
    opacity: 0; transition: opacity 0.25s ease;
}
.pd-viewer[hidden] { display: none; }
.pd-viewer.open { opacity: 1; }
.pd-viewer-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.pd-viewer-title { flex: 1; text-align: center; font-family: var(--p-serif, 'Barlow', sans-serif); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-viewer-close, .pd-viewer-nav {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.pd-viewer-close:hover, .pd-viewer-nav:hover { background: rgba(212, 175, 55, 0.25); border-color: var(--p-gold, #d4af37); }
.pd-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 76px; min-height: 0; }
.pd-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity 0.25s; }
.pd-viewer-stage img.is-loading { opacity: 0.25; }
.pd-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.pd-viewer-nav.prev { left: 16px; }
.pd-viewer-nav.next { right: 16px; }
.pd-viewer-caption { text-align: center; margin: 10px 20px 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); min-height: 1.3em; }
.pd-viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 18px; justify-content: safe center; scrollbar-width: thin; }
.pd-viewer-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: 0.5; background: #111; transition: opacity 0.2s, border-color 0.2s; }
.pd-viewer-thumbs button.active, .pd-viewer-thumbs button:hover { opacity: 1; border-color: var(--p-gold, #d4af37); }
.pd-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .pd-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991.98px) {
    .pd-layout { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
    .pd-head { flex-direction: column; align-items: stretch; }
    .pd-head-side { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
    .pd-price { align-items: flex-start; }
    .pd-mosaic { height: clamp(320px, 52vw, 460px); }
}
@media (max-width: 767.98px) {
    .pd { padding-top: 12px; padding-bottom: 120px; }
    .pd-crumbs ol { margin-bottom: 12px; font-size: 0.78rem; }
    .pd-crumbs li:nth-child(3):not(:last-child) { display: none; }

    /* phones: full-bleed swipe strip instead of the mosaic, shown above the title */
    .pd > .container { display: flex; flex-direction: column; }
    .pd-crumbs { order: 0; }
    .pd-gallery { order: 1; margin: 0 calc(50% - 50vw) 20px; }
    .pd-head { order: 2; }
    .pd-facts { order: 3; }
    .pd-layout { order: 4; }
    .pd-related { order: 5; }

    .pd-mosaic { display: none; }
    .pd-strip {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        height: 64vw; max-height: 420px; min-height: 240px;
    }
    .pd-strip::-webkit-scrollbar { display: none; }
    .pd-strip-item { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: #e7eaf3; }
    .pd-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .pd-strip-count {
        display: inline-block; position: absolute; left: 14px; bottom: 14px; z-index: 2;
        padding: 4px 10px; border-radius: 999px; background: rgba(3, 8, 53, 0.65); color: #fff; font-size: 0.78rem;
        backdrop-filter: blur(6px);
    }
    .pd-allphotos { top: auto; right: 14px; bottom: 14px; padding: 7px 12px; font-size: 0.78rem; }
    .pd-allphotos span { display: none; }

    .pd-head { gap: 16px; margin-bottom: 18px; }
    .pd-tags { margin-bottom: 10px; }
    .pd-title { font-size: 1.65rem; }
    .pd-location { font-size: 0.92rem; }
    .pd-head-side { align-items: center; }
    .pd-price-value { font-size: 1.6rem; }
    .pd-icon-btn { width: 40px; height: 40px; }

    .pd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
    .pd-facts li { padding: 12px 12px; column-gap: 10px; }
    .pd-facts li + li::before { display: none; }
    .pd-facts li:nth-child(n+3) { border-top: 1px solid var(--p-line, rgba(6, 16, 88, 0.08)); }
    .pd-facts li:nth-child(even) { border-left: 1px solid var(--p-line, rgba(6, 16, 88, 0.08)); }
    .pd-facts .bi { width: 36px; height: 36px; font-size: 1rem; }
    .pd-fact-value { font-size: 1.15rem; }

    .pd-block { padding: 20px 18px; border-radius: 16px; }
    .pd-details { grid-template-columns: 1fr; }
    .pd-amenities { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
    .pd-amenities li { font-size: 0.9rem; }
    .pd-map { height: 260px; }
    .pd-concierge { padding: 0 18px 20px; }
    .pd-concierge-price { margin: 0 -18px 18px; padding: 16px 18px; }
    .pd-related-head { align-items: flex-start; flex-direction: column; }

    .pd-viewer-stage { padding: 0; }
    .pd-viewer-nav { display: none; }
    .pd-viewer-thumbs button { width: 60px; height: 44px; }

    /* compact sticky contact bar (one row) */
    .premium-ui .property-mobile-agent-sheet {
        display: flex; align-items: center; gap: 12px;
        border-radius: 20px 20px 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    }
    .premium-ui .property-mobile-agent-meta { margin: 0; flex: 1 1 auto; min-width: 0; }
    .premium-ui .property-mobile-agent-label { font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 1.1rem; color: var(--p-navy, #061058); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .premium-ui .property-mobile-agent-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
    .premium-ui .property-mobile-agent-actions { display: flex; gap: 8px; flex: none; }
    .premium-ui .property-mobile-action-btn { min-height: 44px; padding: 0 16px; font-size: 0.9rem; }
    /* the bar is the page's call to action: hide the generic floating buttons behind it */
    .premium-ui:has(.property-mobile-agent-bar) .contact-float-widget,
    .premium-ui:has(.property-mobile-agent-bar) .add-listing-float-container { display: none !important; }
}
@media (max-width: 359.98px) {
    .pd-amenities { grid-template-columns: 1fr; }
    .premium-ui .property-mobile-action-btn span { display: none; }
    .premium-ui .property-mobile-action-btn { width: 46px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pd *, .pd-viewer { transition: none !important; }
}

@media print {
    .navbar-main, .top-bar, .footer, .pd-actions, .pd-allphotos, .pd-share, .pd-form, .pd-divider,
    .pd-related, .pd-map, .pd-video, .property-mobile-agent-bar, .contact-float-widget, .add-listing-float-container,
    .pd-more, .pd-viewer { display: none !important; }
    .pd { padding: 0; background: #fff; }
    .pd-layout { grid-template-columns: 1fr 260px; }
    .pd-aside { position: static; }
    .pd-desc { max-height: none; }
    .pd-desc::after { display: none; }
    .pd-block, .pd-facts, .pd-concierge { box-shadow: none; break-inside: avoid; }
    .pd-mosaic { height: 360px; }
}

/* listing without photos: branded panel instead of a grey placeholder */
.pd-nophoto {
    height: clamp(200px, 22vw, 280px); border-radius: var(--pd-radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
    color: rgba(255, 255, 255, 0.75);
    background:
        radial-gradient(600px 220px at 85% 0%, rgba(212, 175, 55, 0.28), transparent 65%),
        var(--p-navy-grad, linear-gradient(135deg, #0a1a7a, #061058 55%, #030835));
}
.pd-nophoto .bi { font-size: 2rem; color: var(--p-gold-light, #ecd27f); }
.pd-nophoto strong { font-family: var(--p-serif, 'Barlow', sans-serif); font-size: 1.4rem; font-weight: 600; color: #fff; }
@media (max-width: 767.98px) { .pd-nophoto { border-radius: 0; height: 200px; } }
