/* =====================================================================
   INFINITY EXIST — Property Detail ("Estate" redesign)
   LIGHT theme — shares the home/search palette. Presentation only.
   Pairs with design-system.css. Loaded ONLY on pages.non-secure.property_details.
   ===================================================================== */

.pd-page { background: var(--bg); padding-bottom: 0; }

/* ---------- Hero band + search bar ---------- */
.pd-hero {
    background:
        linear-gradient(90deg, rgba(13, 30, 44, .9) 0%, rgba(13, 30, 44, .5) 55%, rgba(13, 30, 44, .28) 100%),
        linear-gradient(120deg, #0f2233 0%, #16344a 100%);
    padding: 40px 0 92px;
}
.pd-searchpage__body { margin-top: -56px; position: relative; z-index: 6; }
.pd-searchbar { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-float); display: flex; align-items: stretch; padding: 8px; }
.pd-sb-field { flex: 1; min-width: 0; padding: 12px 18px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.pd-sb-field + .pd-sb-field { border-left: 1px solid var(--border); }
.pd-sb-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pd-sb-field select, .pd-sb-field input { border: 0; border-bottom: 1px solid var(--border); background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); padding: 4px 0; outline: none; width: 100%; }
.pd-sb-field input { font-weight: 500; }
.pd-sb-field--sel select { -webkit-appearance: none; appearance: none; padding-right: 18px; cursor: pointer; }
.pd-sb-field--sel::after { content: ""; position: absolute; right: 20px; bottom: 16px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.pd-sb-actions { display: flex; align-items: center; gap: 10px; padding: 8px; }
.pd-sb-search { height: 54px; padding: 0 30px; border-radius: 12px; }
.pd-sb-filter { width: 54px; height: 54px; flex: none; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: border-color .16s ease, color .16s ease; }
.pd-sb-filter:hover, .pd-sb-filter.is-open { border-color: var(--accent); color: var(--accent); }
.pd-sb-filter svg { width: 20px; height: 20px; }

/* Advanced filters (collapsed) */
.pd-adv { display: none; margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; }
.pd-adv.is-open { display: block; }
.pd-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pd-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-fld label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pd-fld select, .pd-fld input { height: 46px; width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 13px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.pd-fld select:focus, .pd-fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.pd-adv-features { margin-top: 18px; }
.pd-adv-features > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.pd-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; }
.pd-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); cursor: pointer; }
.pd-check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.pd-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 26px 0 18px; flex-wrap: wrap; }
.pd-crumb a:hover { color: var(--accent); }
.pd-crumb span.sep { color: var(--border); }
.pd-crumb .cur { color: var(--accent); font-weight: 600; }

/* ---------- Main property card ---------- */
.pd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 18px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }

/* Gallery */
.pd-gallery { min-width: 0; }
.pd-gallery__main { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-alt); cursor: zoom-in; }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery__badge { position: absolute; top: 14px; left: 14px; }
.pd-gallery__fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--muted); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: color .16s, transform .16s; }
.pd-gallery__fav:hover, .pd-gallery__fav.is-active { color: var(--danger); transform: scale(1.08); }
.pd-gallery__fav svg { width: 18px; height: 18px; }
.pd-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); cursor: pointer; }
.pd-gallery__nav svg { width: 20px; height: 20px; }
.pd-gallery__nav--prev { left: 12px; }
.pd-gallery__nav--next { right: 12px; }
.pd-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.pd-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4; border: 2px solid transparent; cursor: pointer; background: var(--surface-alt); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--accent); }
.pd-thumb__more { position: absolute; inset: 0; background: rgba(20, 30, 45, .6); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }

/* Summary column */
.pd-summary { display: flex; flex-direction: column; }
.pd-summary__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-summary__title h1 { font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pd-verified { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.pd-verified svg { width: 14px; height: 14px; }
.pd-summary__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.pd-summary__loc svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.pd-priceRow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pd-priceRow__label { font-size: 13px; color: var(--muted); }
.pd-priceRow__price { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.pd-priceRow__actions { display: flex; flex-direction: column; gap: 10px; }
.pd-priceRow__actions form { margin: 0; }
.pd-priceRow__actions .est-btn { width: 100%; }
.pd-keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.pd-keyfact { text-align: center; padding: 4px; }
.pd-keyfact svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.pd-keyfact b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.pd-keyfact span { font-size: 12px; color: var(--muted); }
.pd-metaline { margin-top: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border); }
.pd-metaline b { color: var(--ink); font-weight: 600; }

/* ---------- Facts strip ---------- */
.pd-facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 22px; }
.pd-fact { padding: 20px; text-align: center; }
.pd-fact + .pd-fact { border-left: 1px solid var(--border); }
.pd-fact span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.pd-fact b { font-size: 16px; font-weight: 700; color: var(--ink); }
.pd-fact b.accent { color: var(--accent); }

/* ---------- Two-column body ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 34px; align-items: start; }
.pd-main { min-width: 0; }
.pd-section { margin-bottom: 34px; }
.pd-section h2 { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin-bottom: 16px; }
.pd-overview p { color: var(--body); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.pd-overview { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.pd-overview, .pd-overview * { overflow-wrap: anywhere; word-break: break-word; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-tag { background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-pill); }

/* Location map */
.pd-maprow { position: relative; }
#pd_map { width: 100%; height: 480px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #e9edf3; }
.pd-map-card { position: absolute; top: 90px; left: 16px; background: rgba(255, 255, 255, .97); border: 1px solid rgba(16, 42, 67, .09); border-radius: var(--r); box-shadow: 0 8px 26px rgba(16, 42, 67, .16); backdrop-filter: blur(6px); padding: 13px 16px; max-width: 240px; z-index: 4; }
.pd-map-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); }
.pd-map-card p { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.pd-map-card a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.pd-map-card a svg { width: 14px; height: 14px; }

/* ---------- Map overlay toolbar + controls (shared with search page) ---------- */
.est-toolbar {
    position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6;
    display: flex; align-items: stretch; gap: 6px;
    background: rgba(255, 255, 255, .97); border: 1px solid rgba(16, 42, 67, .09); border-radius: 18px;
    box-shadow: 0 10px 34px rgba(16, 42, 67, .18), 0 2px 6px rgba(16, 42, 67, .08);
    padding: 6px; overflow: hidden; backdrop-filter: saturate(1.1) blur(6px);
}
.est-tb__layers {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 64px; padding: 7px 12px; border: 1.5px solid var(--accent); border-radius: 13px;
    background: #fff; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800;
    box-shadow: 0 1px 3px rgba(16, 42, 67, .08); transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.est-tb__layers svg { width: 21px; height: 21px; color: var(--accent); }
.est-tb__layers.is-on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(30, 166, 154, .4); }
.est-tb__layers.is-on svg { color: #fff; }
.est-tb__nav {
    flex: 0 0 auto; width: 34px; align-self: stretch; border: none; cursor: pointer;
    background: #fff; color: #64748b; font-size: 26px; line-height: 1; font-weight: 300;
    display: grid; place-items: center; border-radius: 11px; transition: background .15s ease, color .15s ease;
}
.est-tb__nav:hover { background: #eef1f5; color: var(--accent); }
.est-toolbar.is-scroll-start .est-tb__nav--prev,
.est-toolbar.is-scroll-end .est-tb__nav--next,
.est-toolbar.is-collapsed .est-tb__nav,
.est-toolbar.is-collapsed .est-tb__scroll { display: none; }
.est-toolbar.is-collapsed { right: auto; }
.est-tb__scroll {
    flex: 1 1 auto; display: flex; align-items: stretch; gap: 2px;
    overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
}
.est-tb__scroll::-webkit-scrollbar { display: none; }
.est-tb__item {
    position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-width: 66px; padding: 7px 9px 6px; border: 1.5px solid transparent; border-radius: 13px;
    background: none; cursor: pointer; color: #475569; font-weight: 600; line-height: 1.1;
    white-space: nowrap; transition: background .14s ease, color .14s ease, transform .12s ease, box-shadow .14s ease;
}
.est-tb__item:hover { background: #f1f5f8; color: var(--ink); transform: translateY(-1px); }
.est-tb__ico { font-size: 20px; line-height: 1; }
.est-tb__lbl { font-size: 10.5px; letter-spacing: .01em; }
.est-tb__item.is-on { background: rgba(30, 166, 154, .14); color: #0b5e56; border-color: var(--accent); box-shadow: 0 3px 10px rgba(30, 166, 154, .22); }
.est-tb__item.is-on .est-tb__lbl { font-weight: 800; }
.est-tb__item.is-loading { opacity: .55; }
.est-tb__item--ai.is-on { background: rgba(124, 58, 237, .15); color: #6d28d9; border-color: #7c3aed; box-shadow: 0 3px 10px rgba(124, 58, 237, .24); }
.est-tb__item.is-soon { color: #aeb6c2; cursor: not-allowed; }
.est-tb__item.is-soon .est-tb__ico { filter: grayscale(1); opacity: .55; }
.est-tb__item.is-soon:hover { background: none; transform: none; color: #aeb6c2; }
.est-tb__item.is-soon::after { content: 'SOON'; position: absolute; top: 3px; right: 6px; font-size: 7px; font-weight: 800; letter-spacing: .04em; color: #fff; background: #b6bdc8; padding: 1px 4px; border-radius: 5px; }
.est-tb__sep { flex: 0 0 auto; width: 1px; align-self: center; height: 32px; background: var(--border); margin: 0 5px; }

/* 3D + zoom */
.est-map-3d { position: absolute; top: 90px; right: 16px; z-index: 5; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.est-3d-btn {
    width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center;
    background: #fff; color: var(--ink); border: 1px solid rgba(16, 42, 67, .09);
    border-radius: 12px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(16, 42, 67, .15);
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.est-3d-btn:hover { border-color: var(--accent); color: var(--accent); }
.est-3d-btn.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.est-zoom { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(16, 42, 67, .09); border-radius: 12px; box-shadow: 0 6px 18px rgba(16, 42, 67, .15); overflow: hidden; }
.est-zoom__btn { width: 44px; height: 42px; border: none; border-radius: 0; box-shadow: none; font-size: 22px; font-weight: 400; }
.est-zoom__btn + .est-zoom__btn { border-top: 1px solid var(--border); }
.est-zoom__btn:hover { background: #f4f6f9; color: var(--accent); }

/* Bottom map action controls */
.est-mapctl { position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 5; display: flex; gap: 8px; max-width: calc(100% - 32px); padding: 2px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.est-mapctl::-webkit-scrollbar { display: none; }
.est-mapctl__btn {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    background: rgba(255, 255, 255, .97); border: 1px solid rgba(16, 42, 67, .09); border-radius: 12px;
    padding: 9px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .15); backdrop-filter: blur(6px);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.est-mapctl__btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.est-mapctl__ico { font-size: 15px; }

/* AI area summary card */
.est-area-card { position: absolute; top: 200px; left: 16px; width: 260px; max-width: calc(100% - 32px); z-index: 6; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 16px 16px 12px; }
.est-area-card__x { position: absolute; top: 8px; right: 10px; border: none; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); }
.est-area-card__x:hover { color: var(--ink); }
.est-area-card__tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: capitalize; color: #6d28d9; background: #f3e8ff; padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px; }
.est-area-card__lead { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.est-area-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.est-area-card__list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.est-area-card__list b { font-weight: 800; min-width: 20px; }
.est-area-card__ico { font-size: 14px; }
.est-area-card__foot { margin-top: 11px; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.est-area-loading, .est-area-card__err { font-size: 13px; color: var(--muted); padding: 8px 0; }
.est-area-card__err { color: #b91c1c; }

/* Amenities */
.pd-amenities { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 26px; }
.pd-amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.pd-amen { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--body); }
.pd-amen svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }

/* Video / virtual tour */
.pd-media video, .pd-media iframe { width: 100%; border-radius: var(--r); border: 0; display: block; }
.pd-media iframe { height: 420px; }

/* ---------- Sidebar ---------- */
.pd-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.pd-owner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.pd-owner__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.pd-owner__title svg { width: 18px; height: 18px; color: var(--accent); }
.pd-owner__person { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.pd-owner__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.pd-owner__avatar svg { width: 24px; height: 24px; }
.pd-owner__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pd-owner__role { font-size: 13px; color: var(--muted); }
.pd-owner__row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body); margin-bottom: 12px; }
.pd-owner__row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.pd-owner form { margin: 6px 0 0; }
.pd-owner .est-btn { width: 100%; }

.pd-share { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.pd-share h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.pd-share__row { display: flex; gap: 10px; }
.pd-share__row a, .pd-share__row button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-alt); color: var(--body); display: grid; place-items: center; cursor: pointer; transition: background .16s, color .16s, transform .16s; }
.pd-share__row a:hover, .pd-share__row button:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.pd-share__row svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.pd-cta { margin: 20px 0 64px; }
.pd-cta__inner { background: var(--accent-soft); border: 1px solid #d4ece8; border-radius: var(--r-lg); padding: 28px 36px; display: flex; align-items: center; gap: 22px; }
.pd-cta__icon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px var(--accent); }
.pd-cta__icon svg { width: 26px; height: 26px; }
.pd-cta__text h3 { font-size: 21px; font-weight: 800; color: var(--ink); }
.pd-cta__text p { color: var(--body); font-size: 15px; margin-top: 4px; }
.pd-cta__btn { margin-left: auto; flex: none; }

/* ---------- Lightbox ---------- */
.pd-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 16, 22, .92); display: none; align-items: center; justify-content: center; padding: 40px; }
.pd-lightbox.is-open { display: flex; }
.pd-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 10px; }
.pd-lightbox__close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.pd-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pd-lightbox__nav svg { width: 24px; height: 24px; }
.pd-lightbox__nav--prev { left: 26px; }
.pd-lightbox__nav--next { right: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .pd-card { grid-template-columns: 1fr; }
    .pd-facts { grid-template-columns: repeat(3, 1fr); }
    .pd-fact:nth-child(3n+1) { border-left: 0; }
    .pd-fact:nth-child(n+4) { border-top: 1px solid var(--border); }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
    .pd-amen-grid { grid-template-columns: repeat(3, 1fr); }
    .pd-searchbar { flex-wrap: wrap; }
    .pd-sb-field { flex: 1 1 40%; }
    .pd-sb-field + .pd-sb-field { border-left: 0; }
    .pd-sb-actions { flex: 1 1 100%; justify-content: flex-end; }
    .pd-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pd-facts { grid-template-columns: repeat(2, 1fr); }
    .pd-adv-grid { grid-template-columns: 1fr; }
    .pd-fact:nth-child(3n+1) { border-left: 1px solid var(--border); }
    .pd-fact:nth-child(2n+1) { border-left: 0; }
    .pd-keyfacts { grid-template-columns: repeat(2, 1fr); }
    .pd-amen-grid { grid-template-columns: 1fr 1fr; }
    .pd-priceRow { flex-direction: column; align-items: flex-start; }
    .pd-cta__inner { flex-direction: column; text-align: center; }
    .pd-cta__btn { margin-left: 0; }
    .pd-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
