/*
 * Property detail preview layouts (?layout=1|2|3) — components in
 * resources/views/components/property/*, pages in
 * resources/views/pages/property-detail/*. Everything is scoped to pd-*
 * classes so nothing here touches the rest of the site.
 *
 *   .pd--v1  Premium MLS        — mosaic gallery, facts bar, sticky agent panel
 *   .pd--v2  Luxury Editorial   — full-bleed hero, serif display type, dark contact band
 *   .pd--v3  Conversion First   — carousel + sticky inquiry card, essentials tiles
 */

/* ── Tokens ─────────────────────────────────────────────────────── */
.pd,
.pd-mobile-cta,
.pd-lightbox,
.pd-switcher {
    --pd-ink: #0f1d2e;
    --pd-ink-2: #344256;
    --pd-muted: #5b6676;
    --pd-line: #e3e7ed;
    --pd-line-strong: #c9d1db;
    --pd-field: #8592a3;
    --pd-surface: #f5f7fa;
    --pd-brand: #00469a;
    --pd-brand-dark: #002966;
    --pd-brand-tint: #eaf1fa;
    --pd-gold: #c08c52;
    --pd-gold-text: #8a6232;
    --pd-positive: #1d6b38;
    --pd-positive-tint: #e5f4ea;
    --pd-caution: #8a5a00;
    --pd-caution-tint: #fdf2dc;
    --pd-negative: #b42318;
    --pd-negative-tint: #fdecea;
    --pd-radius: 8px;
    --pd-font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pd-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    --pd-focus: 0 0 0 3px #fff, 0 0 0 5px #00469a;

    font-family: var(--pd-font);
    color: var(--pd-ink-2);
    -webkit-font-smoothing: antialiased;
}

.pd *,
.pd *::before,
.pd *::after,
.pd-mobile-cta *,
.pd-lightbox *,
.pd-switcher * {
    box-sizing: border-box;
}

/* layouts/app sets p { line-height: 40px !important } sitewide. */
.pd p,
.pd li,
.pd dt,
.pd dd,
.pd address,
.pd-mobile-cta p,
.pd-lightbox p,
.pd-switcher p {
    line-height: 1.6 !important;
    margin: 0;
}

.pd h1,
.pd h2,
.pd h3 {
    margin: 0;
    color: var(--pd-ink);
    letter-spacing: -0.01em;
}

.pd img {
    display: block;
    max-width: 100%;
}

.pd ul,
.pd ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd a {
    color: var(--pd-brand);
}

.pd a:hover {
    color: var(--pd-brand-dark);
}

.pd :focus-visible,
.pd-mobile-cta :focus-visible,
.pd-lightbox :focus-visible,
.pd-switcher :focus-visible {
    outline: none;
    box-shadow: var(--pd-focus);
    border-radius: 4px;
}

.pd-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pd-icon {
    flex-shrink: 0;
}

body.pd-body {
    background: #fff;
}

.pd-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pd-wide {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.pd-muted {
    color: var(--pd-muted);
    font-size: 14px;
}

/* ── Type ───────────────────────────────────────────────────────── */
.pd-h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px !important;
}

.pd-h3 {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--pd-muted) !important;
    margin-bottom: 10px !important;
}

.pd-section {
    padding: 36px 0;
    border-top: 1px solid var(--pd-line);
}

.pd-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
}

.pd-section__head .pd-h2 {
    margin-bottom: 8px !important;
}

.pd-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.pd-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    font: 600 15px/1.2 var(--pd-font);
    color: var(--pd-brand);
    cursor: pointer;
}

.pd-link-button[aria-expanded='true'] .pd-icon {
    transform: rotate(180deg);
}

.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-ink-2) !important;
    text-decoration: none;
}

.pd-back:hover {
    color: var(--pd-brand) !important;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    font: 600 15px/1.2 var(--pd-font, 'Montserrat', sans-serif);
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pd-btn--primary,
a.pd-btn--primary {
    background: #00469a;
    color: #fff !important;
}

.pd-btn--primary:hover {
    background: #002966;
}

.pd-btn--outline,
a.pd-btn--outline {
    background: #fff;
    color: #00469a !important;
    border-color: #00469a;
}

.pd-btn--outline:hover {
    background: #eaf1fa;
}

.pd-btn--dark,
a.pd-btn--dark {
    background: #0f1d2e;
    color: #fff !important;
}

.pd-btn--dark:hover {
    background: #00469a;
}

.pd-btn--ghost,
a.pd-btn--ghost {
    background: transparent;
    color: #0f1d2e !important;
    border-color: #c9d1db;
}

.pd-btn--ghost:hover {
    border-color: #0f1d2e;
}

.pd-btn--block {
    width: 100%;
}

/* ── Status / tags ──────────────────────────────────────────────── */
.pd-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
    background: var(--pd-surface);
    color: var(--pd-ink-2);
}

.pd-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pd-status--positive { background: var(--pd-positive-tint); color: var(--pd-positive); }
.pd-status--caution { background: var(--pd-caution-tint); color: var(--pd-caution); }
.pd-status--negative { background: var(--pd-negative-tint); color: var(--pd-negative); }

.pd-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--pd-line);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pd-ink-2);
}

/* ── Price ──────────────────────────────────────────────────────── */
.pd-price__caption {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-price__value {
    font-weight: 700;
    color: var(--pd-ink);
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.pd-price--lg .pd-price__value { font-size: 28px; }
.pd-price--xl .pd-price__value { font-size: clamp(28px, 3vw, 36px); }

.pd-price--display .pd-price__caption {
    font-size: 11px;
    letter-spacing: 0.16em;
}

.pd-price--display .pd-price__value {
    font-family: var(--pd-serif);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: 0;
}

.pd-price__suffix {
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--pd-muted);
}

.pd-price__secondary {
    margin-top: 4px !important;
    font-size: 14px;
    color: var(--pd-muted);
}

/* ── Key facts ──────────────────────────────────────────────────── */
.pd-facts--bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 24px !important;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
}

.pd-facts--bar .pd-fact {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 18px 16px;
    border-left: 1px solid var(--pd-line);
}

.pd-facts--bar .pd-fact:first-child {
    border-left: 0;
    padding-left: 0;
}

.pd-facts--bar .pd-fact__icon {
    grid-row: 1 / span 2;
    color: var(--pd-brand);
}

.pd-facts--bar .pd-fact__value {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pd-ink);
    overflow-wrap: anywhere;
}

.pd-facts--bar .pd-fact__label,
.pd-facts--editorial .pd-fact__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-facts--editorial {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pd-facts--editorial .pd-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 24px;
    border-left: 1px solid var(--pd-line);
}

.pd-facts--editorial .pd-fact:first-child {
    border-left: 0;
}

.pd-facts--editorial .pd-fact__value {
    font-family: var(--pd-serif);
    font-size: 30px;
    line-height: 1.1;
    color: var(--pd-ink);
}

.pd-facts--editorial .pd-fact__label {
    font-size: 11px;
    letter-spacing: 0.14em;
}

.pd-facts--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-facts--chips .pd-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--pd-surface);
    font-size: 14px;
    color: var(--pd-ink-2);
}

.pd-facts--chips .pd-fact__icon {
    color: var(--pd-brand);
}

.pd-facts--chips .pd-fact__value {
    font-weight: 700;
    color: var(--pd-ink);
}

/* ── Highlights ─────────────────────────────────────────────────── */
.pd-highlights__list {
    display: grid;
    gap: 14px 32px;
}

.pd-highlights--list .pd-highlights__list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.pd-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--pd-ink-2);
}

.pd-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pd-brand-tint);
    color: var(--pd-brand);
}

.pd-highlights--tiles .pd-highlights__list {
    grid-template-columns: repeat(var(--pd-cols, 4), minmax(0, 1fr));
    gap: 12px;
}

.pd-highlights--tiles .pd-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    font-weight: 600;
    font-size: 14px;
    color: var(--pd-ink);
}

.pd-highlights--tiles .pd-highlight__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* ── Description ────────────────────────────────────────────────── */
.pd-description__body {
    max-width: 72ch;
    font-size: 16px;
    color: var(--pd-ink-2);
}

.pd-description__body p + p {
    margin-top: 1em !important;
}

.pd-description__body.is-collapsed {
    max-height: calc(var(--pd-lines, 8) * 1.6em);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* ── Amenities ──────────────────────────────────────────────────── */
.pd-amenity-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px 36px;
}

.pd-amenity-group li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 15px;
    color: var(--pd-ink-2);
}

.pd-amenity-group li .pd-icon {
    margin-top: 3px;
    color: var(--pd-positive);
}

.pd-amenities--editorial .pd-amenity-groups {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 40px;
}

.pd-amenities--editorial .pd-amenity-group li {
    padding: 9px 0;
    border-bottom: 1px solid var(--pd-line);
    font-size: 16px;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--pd-ink-2);
}

.pd-chip .pd-icon {
    color: var(--pd-positive);
}

/* Native <details> disclosure */
.pd-disclosure {
    margin-top: 16px;
}

.pd-disclosure__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--pd-line-strong);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-ink);
    cursor: pointer;
    list-style: none;
}

.pd-disclosure__summary::-webkit-details-marker {
    display: none;
}

.pd-disclosure__summary:hover {
    background: var(--pd-surface);
}

.pd-disclosure[open] > .pd-disclosure__summary .pd-disclosure__chevron {
    transform: rotate(180deg);
}

.pd-disclosure[open] > .pd-disclosure__summary {
    margin-bottom: 20px;
}

/* ── Details ────────────────────────────────────────────────────── */
.pd-details__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 48px;
}

.pd-dl {
    margin: 0;
}

.pd-dl__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pd-line);
    font-size: 14px;
}

.pd-dl dt {
    color: var(--pd-muted);
}

.pd-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--pd-ink);
    text-align: right;
    overflow-wrap: anywhere;
}

.pd-details--editorial .pd-details__groups {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.pd-details--editorial .pd-dl__row {
    display: block;
    padding: 12px 0;
}

.pd-details--editorial .pd-dl dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pd-details--editorial .pd-dl dd {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.pd-details--accordion .pd-details__groups {
    grid-template-columns: 1fr;
    gap: 10px;
}

.pd-details--accordion .pd-disclosure {
    margin-top: 0;
}

.pd-details--accordion .pd-disclosure[open] > .pd-disclosure__summary {
    margin-bottom: 4px;
}

.pd-details--accordion .pd-dl {
    padding: 0 16px 8px;
}

/* ── Availability calendar ──────────────────────────────────────── */
.pd-legend {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--pd-muted);
}

.pd-legend li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pd-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #eef0f3;
}

.pd-legend__swatch--available {
    background: #cdebd5;
}

.pd-cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px 32px;
    margin-top: 18px;
}

.pd-cal {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    font-size: 13px;
}

.pd-cal caption {
    padding: 0 3px 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-cal th {
    padding: 2px 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pd-muted);
}

.pd-cal abbr {
    text-decoration: none;
}

.pd-cal__day {
    height: 34px;
    border-radius: 4px;
    text-align: center;
    color: #626d7c;
}

.pd-cal__day--unavailable {
    background: #f1f3f6;
}

.pd-cal__day--available {
    background: #cdebd5;
    font-weight: 700;
    color: #14532d;
}

/* ── Rates / fees ───────────────────────────────────────────────── */
.pd-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pd-table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.pd-table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--pd-line);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-table td {
    padding: 12px;
    border-bottom: 1px solid var(--pd-line);
    color: var(--pd-ink-2);
}

.pd-table__num {
    text-align: right !important;
    white-space: nowrap;
}

.pd-table td.pd-table__num {
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-fees {
    margin: 24px 0 0;
    padding: 16px 20px;
    border-radius: var(--pd-radius);
    background: var(--pd-surface);
    max-width: 440px;
}

.pd-fees__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 14px;
}

.pd-fees dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.pd-fees__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--pd-line-strong);
    font-weight: 700;
    color: var(--pd-ink);
}

/* ── Location ───────────────────────────────────────────────────── */
.pd-location__address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    font-style: normal;
    font-size: 16px;
    color: var(--pd-ink);
}

.pd-location__address .pd-icon {
    margin-top: 3px;
    color: var(--pd-brand);
}

.pd-map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    height: 380px;
    margin-top: 16px !important;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--pd-surface);
}

.pd-map--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    color: var(--pd-muted);
    font-size: 14px;
}

.pd-location--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    gap: 56px;
    align-items: center;
}

.pd-location--split .pd-map {
    height: 480px;
    margin-top: 0 !important;
}

/* ── Agent ──────────────────────────────────────────────────────── */
.pd-agent__body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pd-agent__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pd-brand);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pd-agent__info {
    min-width: 0;
}

.pd-agent__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-agent__role {
    font-size: 14px;
    color: var(--pd-muted);
}

.pd-agent__contact {
    margin-top: 10px !important;
}

.pd-agent__contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pd-ink-2);
}

.pd-agent__contact li + li {
    margin-top: 4px;
}

.pd-agent__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pd-agent__courtesy {
    margin-top: 12px !important;
    font-size: 12px;
    color: var(--pd-muted);
}

.pd-agent--card {
    padding: 24px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
}

.pd-agent--compact {
    margin: 20px 0 !important;
    padding: 18px 0;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
}

.pd-agent--compact .pd-agent__mark {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.pd-agent--compact .pd-agent__address,
.pd-agent--compact .pd-agent__courtesy {
    display: none;
}

.pd-agent--strip {
    padding: 28px;
    border-radius: 12px;
    background: var(--pd-surface);
}

.pd-agent--strip .pd-agent__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
}

.pd-agent--strip .pd-agent__contact li + li {
    margin-top: 0;
}

.pd-agent--editorial {
    margin-top: 36px !important;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pd-agent--editorial .pd-agent__mark {
    background: var(--pd-gold);
    color: #1a1206;
}

.pd-agent--editorial .pd-agent__name {
    color: #fff;
}

.pd-agent--editorial .pd-agent__role,
.pd-agent--editorial .pd-agent__contact li,
.pd-agent--editorial .pd-agent__courtesy {
    color: rgba(255, 255, 255, 0.78);
}

.pd-agent--editorial .pd-agent__link {
    color: #fff !important;
}

/* ── Inquiry form ───────────────────────────────────────────────── */
.pd-inquiry {
    scroll-margin-top: 24px;
}

.pd-inquiry:focus {
    outline: none;
}

.pd-inquiry__heading {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.pd-inquiry__intro {
    margin: 6px 0 20px !important;
    font-size: 15px;
    color: var(--pd-muted);
}

.pd-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.pd-field {
    margin-bottom: 14px;
    min-width: 0;
}

.pd-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-ink);
}

.pd-field input,
.pd-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--pd-field);
    border-radius: 6px;
    background: #fff;
    font: 400 16px/1.4 var(--pd-font);
    color: var(--pd-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-field textarea {
    min-height: 112px;
    resize: vertical;
}

.pd-field input::placeholder,
.pd-field textarea::placeholder {
    color: #6b7686;
}

.pd-field input:focus,
.pd-field textarea:focus {
    outline: none;
    border-color: var(--pd-brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 154, 0.22);
}

.pd-field [aria-invalid='true'] {
    border-color: var(--pd-negative);
}

.pd-field__error {
    margin-top: 6px !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--pd-negative);
}

.pd-form__captcha {
    max-width: 100%;
    margin: 2px 0 16px;
    overflow: hidden;
}

.pd-form__note {
    margin-top: 10px !important;
    font-size: 13px;
    color: var(--pd-muted);
}

/* Links inside running text are underlined, not just coloured (WCAG 1.4.1). */
.pd .pd-form__note a,
.pd .pd-v1-panel__call a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-alert {
    margin-bottom: 16px !important;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pd-alert--success { background: var(--pd-positive-tint); color: var(--pd-positive); }
.pd-alert--error { background: var(--pd-negative-tint); color: var(--pd-negative); }

.pd-inquiry--plain {
    padding: 28px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
}

.pd-inquiry--card .pd-inquiry__heading {
    font-size: 18px;
}

.pd-inquiry--card .pd-inquiry__intro {
    font-size: 14px;
    margin-bottom: 16px !important;
}

.pd-inquiry--dark .pd-inquiry__heading {
    font-family: var(--pd-serif);
    font-weight: 400;
    font-size: 28px;
    color: #fff;
}

.pd-inquiry--dark .pd-inquiry__intro,
.pd-inquiry--dark .pd-form__note {
    color: rgba(255, 255, 255, 0.75);
}

.pd-inquiry--dark .pd-form__note a {
    color: #fff;
}

.pd-inquiry--dark .pd-field label {
    color: #fff;
}

.pd-inquiry--dark .pd-field input,
.pd-inquiry--dark .pd-field textarea {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    color-scheme: dark;
}

.pd-inquiry--dark .pd-field input::placeholder,
.pd-inquiry--dark .pd-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.pd-inquiry--dark .pd-field input:focus,
.pd-inquiry--dark .pd-field textarea:focus {
    border-color: #e2c296;
    box-shadow: 0 0 0 3px rgba(226, 194, 150, 0.35);
}

.pd-inquiry--dark .pd-btn--primary {
    background: #d6ae7b;
    color: #1a1206 !important;
}

.pd-inquiry--dark .pd-btn--primary:hover {
    background: #e7c89e;
}

.pd-inquiry--dark .pd-field__error {
    color: #ffb4ab;
}

.pd-inquiry--dark :focus-visible {
    box-shadow: 0 0 0 3px #0f1d2e, 0 0 0 5px #e2c296;
}

/* ── Similar listings ───────────────────────────────────────────── */
.pd-similar__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pd-card {
    position: relative;
    display: flex;
    max-width: 520px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-card:hover {
    box-shadow: 0 14px 30px -18px rgba(15, 29, 46, 0.45);
}

.pd-card:focus-within {
    box-shadow: var(--pd-focus);
}

.pd-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--pd-surface);
}

.pd-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pd-muted);
}

.pd-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-card__body {
    padding: 16px 18px 18px;
}

.pd-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-card__price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--pd-muted);
}

.pd-card__title {
    margin-top: 2px !important;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.35;
}

.pd-card__title a {
    color: var(--pd-ink) !important;
    text-decoration: none;
}

.pd-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.pd-card__title a:focus-visible {
    box-shadow: none;
}

.pd-card__locality,
.pd-card__facts {
    font-size: 14px;
    color: var(--pd-muted);
}

.pd-card__facts {
    margin-top: 8px !important;
    color: var(--pd-ink-2);
}

/* ── Photo buttons (shared) ─────────────────────────────────────── */
.pd-photo-button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #e9edf2;
    overflow: hidden;
    cursor: zoom-in;
}

.pd-photo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-photo-button:hover img {
    transform: scale(1.03);
}

.pd .pd-photo-button:focus-visible {
    border-radius: 0;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--pd-brand);
}

.pd-figure {
    margin: 0;
}

.pd-embed {
    aspect-ratio: 16 / 9;
}

.pd-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--pd-radius);
}

.pd-disclaimer {
    padding: 24px 0 8px;
    border-top: 1px solid var(--pd-line);
    font-size: 12.5px;
    color: var(--pd-muted);
}

/* ── Save / share / print ───────────────────────────────────────── */
.pd-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pd-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: 600 14px/1 var(--pd-font);
    color: var(--pd-ink-2);
    cursor: pointer;
}

.pd-action:hover {
    background: var(--pd-surface);
    color: var(--pd-ink);
}

.pd-action[aria-pressed='true'] {
    color: #c81c22;
}

.pd-action[aria-pressed='true'] .pd-icon {
    fill: currentColor;
}

.pd-actions--light .pd-action {
    width: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pd-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pd-actions--light .pd-action:hover {
    background: #fff;
}

.pd-actions--light {
    gap: 8px;
}

/* ════ Gallery: mosaic (V1) ════════════════════════════════════ */
.pd-mosaic {
    position: relative;
}

.pd-mosaic__grid {
    display: grid;
    gap: 8px;
    height: clamp(340px, 36vw, 500px);
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
}

.pd-mosaic__tile {
    min-height: 0;
}

.pd-mosaic__tile:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.pd-mosaic[data-count='4'] .pd-mosaic__tile:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.pd-mosaic[data-count='4'] .pd-mosaic__tile:nth-child(3) { grid-column: 3; grid-row: 1; }
.pd-mosaic[data-count='4'] .pd-mosaic__tile:nth-child(4) { grid-column: 3; grid-row: 2; }

.pd-mosaic[data-count='3'] .pd-mosaic__grid { grid-template-columns: 2fr 1fr; }
.pd-mosaic[data-count='2'] .pd-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.pd-mosaic[data-count='2'] .pd-mosaic__tile:first-child { grid-row: 1; }
.pd-mosaic[data-count='1'] .pd-mosaic__grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }

.pd-mosaic__all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--pd-line);
    border-radius: 6px;
    background: #fff;
    font: 600 14px/1 var(--pd-font);
    color: var(--pd-ink);
    box-shadow: 0 4px 14px rgba(15, 29, 46, 0.18);
    cursor: pointer;
}

.pd-mosaic__all:hover {
    background: var(--pd-surface);
}

.pd-mosaic__counter {
    display: none;
}

/* ════ Gallery: hero (V2) ══════════════════════════════════════ */
.pd--v2 {
    --pd-v2-overlap: 140px;
}

.pd-hero {
    position: relative;
    height: min(88vh, 900px);
    min-height: 480px;
    overflow: hidden;
    background: #1b2430;
}

.pd-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.pd-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 14, 22, 0.55) 0%, rgba(8, 14, 22, 0) 24%, rgba(8, 14, 22, 0) 62%, rgba(8, 14, 22, 0.45) 100%);
}

.pd-hero__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px clamp(16px, 4vw, 48px);
}

.pd .pd-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.pd .pd-hero__back:hover {
    color: #fff;
    background: rgba(8, 14, 22, 0.65);
}

.pd-hero__view {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: calc(var(--pd-v2-overlap) + 24px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font: 600 14px/1 var(--pd-font);
    color: #fff;
    cursor: pointer;
}

.pd-hero__view:hover {
    background: rgba(8, 14, 22, 0.6);
}

/* ════ Gallery: carousel (V3) ══════════════════════════════════ */
.pd-carousel__stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e9edf2;
}

.pd-carousel__track {
    display: flex;
    aspect-ratio: 3 / 2;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.pd-carousel__track::-webkit-scrollbar {
    display: none;
}

.pd-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.pd-carousel__nav {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pd-ink);
    box-shadow: 0 4px 14px rgba(15, 29, 46, 0.25);
    cursor: pointer;
}

.pd-carousel__nav:hover {
    background: #fff;
}

.pd-carousel__nav--prev { left: 16px; }
.pd-carousel__nav--next { right: 16px; }

.pd-carousel__counter {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 29, 46, 0.78);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
}

.pd-carousel__expand {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font: 600 13px/1 var(--pd-font);
    color: var(--pd-ink);
    cursor: pointer;
}

.pd-carousel__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px !important;
    padding-bottom: 4px !important;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pd-carousel__thumb {
    display: block;
    width: 104px;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #e9edf2;
    opacity: 0.72;
    cursor: pointer;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.pd-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-carousel__thumb:hover,
.pd-carousel__thumb[aria-current='true'] {
    opacity: 1;
}

.pd-carousel__thumb[aria-current='true'] {
    border-color: var(--pd-brand);
}

/* ════ Lightbox ════════════════════════════════════════════════ */
.pd-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0b0f14;
    color: #fff;
}

.pd-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.pd-lightbox__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px 10px 20px;
}

.pd-lightbox__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}

.pd-lightbox__counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}

.pd-lightbox__close,
.pd-lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.pd-lightbox__close {
    width: 48px;
    height: 48px;
}

.pd-lightbox__close:hover,
.pd-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.pd-lightbox__stage {
    position: absolute;
    inset: 68px 88px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.pd-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-lightbox__nav {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
}

.pd-lightbox__nav--prev { left: 16px; }
.pd-lightbox__nav--next { right: 16px; }

.pd-lightbox :focus-visible {
    box-shadow: 0 0 0 3px #fff;
    border-radius: 50%;
}

/* ════ Mobile CTA bar ══════════════════════════════════════════ */
.pd-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--pd-line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 29, 46, 0.1);
    transition: transform 0.2s ease;
}

.pd-mobile-cta.is-hidden {
    transform: translateY(110%);
}

.pd-mobile-cta__price {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.pd-mobile-cta__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-mobile-cta__value span {
    font-size: 13px;
    font-weight: 500;
    color: var(--pd-muted);
}

.pd-mobile-cta__caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--pd-muted);
}

.pd-mobile-cta__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--pd-line-strong);
    border-radius: 50%;
    color: var(--pd-brand) !important;
}

.pd-mobile-cta__button {
    flex-shrink: 0;
    padding: 12px 16px;
}

/* ════ Design-preview switcher (dev only) ══════════════════════ */
.pd-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 8px 24px;
    background: #0f1d2e;
    font-size: 13px;
    color: #fff;
}

.pd-switcher__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a9bdd2;
}

.pd-switcher__list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.pd-switcher__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #dbe4ee !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.pd-switcher__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.pd-switcher__link[aria-current='page'] {
    background: #fff;
    color: #0f1d2e !important;
}

.pd-switcher__num {
    font-weight: 700;
}

.pd-switcher__name {
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   VERSION 1 — Premium MLS
   ═══════════════════════════════════════════════════════════════ */
.pd-v1-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 0 12px;
}

.pd-v1-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
    padding-top: 32px;
}

.pd-v1-header {
    padding-bottom: 32px;
}

.pd-v1-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pd-v1-ref {
    font-size: 13px;
    color: var(--pd-muted);
}

.pd-v1-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 16px;
}

.pd-v1-header__title {
    min-width: 0;
}

.pd .pd-v1-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pd-v1-locality {
    margin-top: 6px !important;
    font-size: 17px;
    color: var(--pd-muted);
}

.pd-v1-header__price {
    text-align: right;
}

.pd-v1-header__ctas {
    display: none;
}

.pd-v1-aside {
    position: sticky;
    top: 24px;
}

.pd-v1-panel {
    padding: 24px;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px -24px rgba(15, 29, 46, 0.35);
}

.pd-v1-panel__eyebrow {
    margin-bottom: 10px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-brand);
}

.pd-v1-panel__lead {
    font-size: 15px;
    color: var(--pd-ink-2);
}

.pd-v1-panel__ctas {
    display: grid;
    gap: 10px;
}

.pd-v1-panel__call {
    margin-top: 14px !important;
    font-size: 14px;
    text-align: center;
    color: var(--pd-muted);
}

.pd-v1-panel__call a {
    font-weight: 700;
    text-decoration: none;
}

.pd-v1-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.pd--v1 .pd-similar {
    margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   VERSION 2 — Luxury Editorial
   ═══════════════════════════════════════════════════════════════ */
.pd--v2 .pd-h2 {
    font-family: var(--pd-serif);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0;
    margin-bottom: 32px !important;
}

.pd--v2 .pd-h3 {
    color: var(--pd-gold-text) !important;
    letter-spacing: 0.14em !important;
}

.pd--v2 .pd-section {
    padding: 72px 0;
}

.pd-v2-intro {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--pd-v2-overlap));
    padding: 0 clamp(16px, 4vw, 48px);
}

.pd-v2-intro__panel {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 6vw, 80px);
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(10, 20, 35, 0.45);
    text-align: center;
}

.pd-v2-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pd-gold-text);
}

.pd .pd-v2-title {
    margin-top: 18px;
    font-family: var(--pd-serif);
    font-size: clamp(36px, 5.4vw, 68px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.pd-v2-locality {
    margin-top: 12px !important;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--pd-muted);
}

.pd-v2-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 56px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--pd-line);
}

.pd-v2-intro__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.pd-v2-story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 88px);
}

.pd-v2-kicker {
    margin-bottom: 16px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pd-gold-text);
}

.pd .pd-v2-lead {
    font-family: var(--pd-serif);
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.28 !important;
    color: var(--pd-ink);
}

.pd-v2-ref {
    margin-top: 20px !important;
    font-size: 13px;
    color: var(--pd-muted);
}

.pd-v2-story .pd-section {
    padding: 0;
    border-top: 0;
}

.pd-description--editorial .pd-h2 {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pd .pd-description--editorial .pd-description__body {
    font-size: 17px;
}

.pd .pd-description--editorial .pd-description__body p {
    line-height: 1.8 !important;
}

.pd-description--editorial .pd-description__body p:first-child::first-letter {
    float: left;
    margin: 6px 12px 0 0;
    font-family: var(--pd-serif);
    font-size: 64px;
    line-height: 0.85;
    color: var(--pd-gold-text);
}

.pd-v2-band {
    width: 100%;
}

.pd-v2-band .pd-photo-button {
    aspect-ratio: 21 / 9;
    max-height: 82vh;
}

.pd-v2-highlights {
    padding-top: 72px;
}

.pd-v2-highlights .pd-highlights__list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px 40px;
}

.pd-v2-highlights .pd-highlight__icon {
    background: transparent;
    border: 1px solid var(--pd-line-strong);
    color: var(--pd-gold-text);
}

.pd-v2-amenities {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
    margin-top: 72px;
}

.pd-v2-amenities__photo .pd-photo-button {
    aspect-ratio: 4 / 5;
}

.pd-v2-amenities .pd-section {
    padding-top: 0;
    border-top: 0;
}

.pd-v2-rental .pd-section:first-child {
    border-top: 1px solid var(--pd-line);
}

.pd-v2-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 48px;
}

.pd-v2-pair .pd-photo-button {
    aspect-ratio: 4 / 5;
}

.pd-v2-pair .pd-figure:nth-child(2) {
    margin-top: 96px;
}

.pd-v2-pair--single {
    grid-template-columns: minmax(0, 1fr);
}

.pd-v2-pair--single .pd-photo-button {
    aspect-ratio: 16 / 9;
}

.pd-v2-contact {
    margin-top: 48px;
    padding: clamp(64px, 9vw, 112px) 0;
    background: #0f1d2e;
    color: #fff;
}

.pd-v2-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.pd-v2-contact .pd-v2-kicker {
    color: #e2c296;
}

.pd .pd-v2-contact__title {
    font-family: var(--pd-serif);
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.15 !important;
    color: #fff;
    overflow-wrap: anywhere;
}

.pd-v2-contact__text {
    margin-top: 16px !important;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.pd-similar--editorial .pd-similar__list {
    gap: 40px 32px;
}

.pd-similar--editorial .pd-card {
    border: 0;
    border-radius: 0;
}

.pd-similar--editorial .pd-card:hover {
    box-shadow: none;
}

.pd-similar--editorial .pd-card__media {
    aspect-ratio: 4 / 5;
}

.pd-similar--editorial .pd-card__body {
    padding: 18px 0 0;
}

.pd-similar--editorial .pd-card__price {
    font-family: var(--pd-serif);
    font-weight: 400;
    font-size: 24px;
}

.pd-similar--editorial .pd-card__title {
    font-family: var(--pd-serif);
    font-weight: 400;
    font-size: 19px !important;
}

.pd--v2 .pd-disclaimer {
    margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════════
   VERSION 3 — Conversion First
   ═══════════════════════════════════════════════════════════════ */
.pd-v3-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 0 4px;
}

.pd-v3-header {
    padding-bottom: 20px;
}

.pd .pd-v3-title {
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pd-v3-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 6px !important;
    font-size: 15px;
    color: var(--pd-muted);
}

.pd-v3-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
    align-items: start;
}

.pd-v3-main > .pd-section:first-of-type,
.pd-v3-main > .pd-highlights {
    margin-top: 32px;
}

.pd-v3-summary {
    display: none;
}

.pd-v3-card {
    padding: 24px;
    border: 1px solid var(--pd-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px -22px rgba(15, 29, 46, 0.35);
}

.pd-v3-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-v3-card .pd-facts--chips {
    margin-bottom: 16px !important;
}

.pd-v3-card__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px !important;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--pd-positive-tint);
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-positive);
}

.pd-v3-card__note--neutral {
    background: var(--pd-surface);
    color: var(--pd-ink-2);
}

.pd-v3-card .pd-inquiry {
    padding-top: 18px;
    border-top: 1px solid var(--pd-line);
}

.pd--v3 .pd-similar {
    margin-top: 16px;
}

/* ════ Responsive ══════════════════════════════════════════════ */
@media (min-width: 1024px) and (min-height: 760px) {
    .pd-v3-aside {
        position: sticky;
        top: 16px;
    }
}

@media (max-width: 1180px) {
    .pd-v1-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 40px;
    }

    .pd-v3-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 32px;
    }
}

@media (max-width: 1023px) {
    body.pd-body {
        padding-bottom: 76px;
    }

    .pd-v1-layout,
    .pd-v3-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pd-v1-aside {
        display: none;
    }

    .pd-v1-header__ctas {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .pd-v1-header__ctas .pd-btn {
        flex: 1 1 200px;
    }

    .pd-v3-summary {
        display: grid;
        gap: 14px;
        padding: 20px 0 4px;
    }

    .pd-v3-summary__top {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .pd-v3-aside {
        margin-top: 8px;
        padding-top: 32px;
        border-top: 1px solid var(--pd-line);
    }

    .pd-v3-card {
        max-width: 640px;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .pd-v3-card__head,
    .pd-v3-card .pd-facts--chips {
        display: none;
    }

    .pd-v3-card .pd-inquiry {
        padding-top: 0;
        border-top: 0;
    }

    .pd-v3-card .pd-inquiry__heading {
        font-size: 22px;
    }

    .pd-v2-story,
    .pd-v2-amenities,
    .pd-v2-contact__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .pd-v2-amenities__photo .pd-photo-button {
        aspect-ratio: 16 / 10;
    }

    .pd-location--split {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .pd-location--split .pd-map {
        height: 380px;
        margin-top: 16px !important;
    }

    .pd-v1-contact {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .pd-mobile-cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .pd-container {
        padding: 0 16px;
    }

    .pd-section {
        padding: 28px 0;
    }

    .pd--v2 .pd-section {
        padding: 48px 0;
    }

    .pd-h2 {
        font-size: 20px;
    }

    /* Mosaic → swipeable strip, edge to edge */
    .pd .pd-mosaic__grid {
        display: flex;
        height: auto;
        margin: 0 -16px;
        gap: 0;
        border-radius: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .pd-mosaic__grid::-webkit-scrollbar {
        display: none;
    }

    .pd-mosaic__tile,
    .pd-mosaic[data-count] .pd-mosaic__tile {
        flex: 0 0 100%;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }

    .pd-mosaic__counter {
        position: absolute;
        left: 0;
        margin-left: -4px;
        bottom: 12px;
        display: block;
        padding: 5px 11px;
        border-radius: 999px;
        background: rgba(15, 29, 46, 0.78);
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        pointer-events: none;
    }

    .pd-mosaic__all {
        right: 0;
        bottom: 10px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .pd-facts--bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pd-facts--bar .pd-fact,
    .pd-facts--bar .pd-fact:first-child {
        grid-template-columns: 1fr;
        row-gap: 2px;
        padding: 14px 8px;
        border-left: 0;
        border-bottom: 1px solid var(--pd-line);
    }

    .pd-facts--bar .pd-fact__icon {
        grid-row: auto;
    }

    .pd-facts--bar .pd-fact__value {
        font-size: 18px;
    }

    .pd-v1-header__row {
        align-items: flex-start;
    }

    .pd-v1-header__price {
        text-align: left;
    }

    .pd-details__groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-highlights--tiles .pd-highlights__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-actions--default .pd-action > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pd-actions--default .pd-action {
        padding: 0;
    }

    /* V2 */
    .pd--v2 {
        --pd-v2-overlap: 40px;
    }

    .pd-hero {
        height: 72vh;
        min-height: 400px;
    }

    .pd-hero__view {
        bottom: calc(var(--pd-v2-overlap) + 16px);
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .pd-hero__back {
        font-size: 13px;
    }

    .pd-v2-intro {
        padding: 0 12px;
    }

    .pd-facts--editorial .pd-fact {
        padding: 4px 14px;
    }

    .pd-facts--editorial .pd-fact__value {
        font-size: 24px;
    }

    .pd-v2-intro__ctas .pd-btn {
        width: 100%;
    }

    .pd-v2-band .pd-photo-button {
        aspect-ratio: 4 / 3;
    }

    .pd-v2-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-v2-pair .pd-figure:nth-child(2) {
        margin-top: 0;
    }

    .pd-v2-highlights,
    .pd-v2-amenities {
        padding-top: 48px;
        margin-top: 0;
    }

    /* V3 carousel goes edge to edge */
    .pd-carousel__stage {
        margin: 0 -16px;
        border-radius: 0;
    }

    .pd-carousel__track {
        aspect-ratio: 4 / 3;
    }

    .pd-carousel__nav {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .pd-carousel__nav--prev { left: 10px; }
    .pd-carousel__nav--next { right: 10px; }

    .pd-carousel__expand span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .pd-carousel__thumb {
        width: 76px;
    }

    .pd .pd-similar--compact .pd-similar__list {
        display: flex;
        margin: 0 -16px;
        padding: 0 16px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .pd-similar--compact .pd-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }

    .pd-lightbox__stage {
        inset: 64px 0 80px;
    }

    .pd-lightbox__nav {
        top: auto;
        bottom: 16px;
        width: 48px;
        height: 48px;
        margin-top: 0;
    }

    .pd-lightbox__nav--prev { left: calc(50% - 60px); }
    .pd-lightbox__nav--next { right: calc(50% - 60px); }

    .pd-switcher {
        padding: 8px 16px;
    }

    .pd-switcher__name {
        display: none;
    }
}

@media (max-width: 479px) {
    .pd-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-inquiry--plain {
        padding: 20px 16px;
    }

    .pd-form__captcha .g-recaptcha {
        transform: scale(0.88);
        transform-origin: 0 0;
        height: 69px;
    }

    .pd-mobile-cta__button {
        padding: 12px 14px;
        font-size: 14px;
    }

    .pd-v1-header__meta .pd-v1-ref {
        width: 100%;
    }
}

@media (max-width: 359px) {
    .pd-mobile-cta__price {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd *,
    .pd-mobile-cta,
    .pd-lightbox * {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .pd-photo-button:hover img {
        transform: none;
    }
}

/* ════ Sale page: inquiry form in the v1 side panel ════════════
   (pages/sales/show). Sticky only when the viewport is tall enough to
   show the whole form; below 1024px it sits under the content. */
.pd-v1-aside--form {
    position: static;
}

.pd-v1-aside--form .pd-form__row {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) and (min-height: 860px) {
    .pd-v1-aside--form {
        position: sticky;
        top: 24px;
    }
}

@media (max-width: 1023px) {
    .pd-v1-aside.pd-v1-aside--form {
        display: block;
        margin-top: 8px;
        padding-top: 32px;
        border-top: 1px solid var(--pd-line);
    }

    .pd-v1-aside--form .pd-v1-panel {
        max-width: 640px;
    }
}

@media (min-width: 480px) and (max-width: 1023px) {
    .pd-v1-aside--form .pd-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .pd-v1-aside--form .pd-v1-panel {
        padding: 20px 16px;
    }
}

/* ════ Rental page: searched stay summary (x-property.stay-summary) ═
   Dates + rental total + fees + total, at the top of the inquiry form
   and in the side panel; reuses the .pd-fees table look. */
.pd-stay {
    margin-bottom: 20px;
}

.pd-stay__dates {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-size: 15px;
    color: var(--pd-ink);
}

.pd .pd-stay__fees {
    margin-top: 10px;
    max-width: none;
}

.pd-v1-panel .pd-stay {
    margin: 4px 0 18px;
}

/* ════ Print ═══════════════════════════════════════════════════ */
@media print {
    body.pd-body > header,
    body.pd-body > footer,
    .pd-switcher,
    .pd-mobile-cta,
    .pd-lightbox,
    .pd-actions,
    .pd-back,
    .pd-inquiry,
    .pd-map,
    .pd-link,
    .pd-link-button,
    .pd-btn,
    .pd-mosaic__all,
    .pd-mosaic__counter,
    .pd-hero__bar,
    .pd-hero__view,
    .pd-carousel__nav,
    .pd-carousel__thumbs,
    .pd-carousel__expand,
    .pd-carousel__counter,
    .pd-similar,
    .pd-v1-aside,
    .pd-v2-band,
    .pd-v2-pair,
    .pd-v2-amenities__photo,
    .pd-v2-contact {
        display: none !important;
    }

    body.pd-body {
        padding: 0 !important;
    }

    .pd-description__body.is-collapsed {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .pd-v1-layout,
    .pd-v3-layout,
    .pd-v2-story {
        display: block;
    }

    .pd-hero {
        height: auto;
        min-height: 0;
    }

    .pd-hero__image {
        position: static;
        max-height: 360px;
    }

    .pd-v2-intro {
        margin-top: 0;
    }

    .pd-v2-intro__panel {
        box-shadow: none;
    }

    .pd-carousel__track {
        overflow: hidden;
    }

    .pd-mosaic__grid {
        height: 320px;
    }
}
