/* ==========================================================================
   Homino (site13) — property detail page.

   Everything is namespaced pd- and scoped under .pd-page so it cannot reach
   the shared site shell (layout.css) or any other site13 screen. The palette
   and radii mirror public/css/site13/home.css so a listing card on the
   homepage and the page it links to read as one product.

   Loads after theme13.min.css → styleLtr.css → layout.css, so it wins on
   specificity alone and needs no !important.
   ========================================================================== */

/* The global stylesheet pins Arial with !important, which flattens the type
   hierarchy — restore a stack that actually ships semibold/bold weights. */
.pd-page,
.pd-page h1,
.pd-page h2,
.pd-page h3,
.pd-page h4,
.pd-page b,
.pd-page strong,
.pd-page button,
.pd-page input,
.pd-page select,
.pd-page textarea {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pd-page {
  --t: #142D54;
  --t-dark: #0E2142;
  --t-soft: #F8F1DE;
  --navy: #142D54;
  --ink: #142D54;
  --muted: #5A6B86;
  --line: #E9E4DA;
  --bg: #FFFFFF;
  --bg-soft: #F8F6F1;
  --blue: #2A4A82;
  --purple: #142D54;
  --orange: #9A7421;
  --green: #16A34A;
  --red: #E5484D;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 20px;
  --pill: 999px;

  --sh-sm: 0 2px 10px rgba(20,45,84, .05);
  --sh: 0 10px 30px rgba(20,45,84, .08);
  --sh-lg: 0 20px 55px rgba(20,45,84, .13);

  /* matches layout.css .hm-container so the page body lines up with the
     header logo and the footer columns */
  --max: 1350px;
  --gut: 28px;

  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.pd-page *,
.pd-page *::before,
.pd-page *::after { box-sizing: border-box; }

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

.pd-shell {
  width: min(var(--max), calc(100% - var(--gut) * 2));
  margin-inline: auto;
  padding-bottom: 64px;
}

/* --------------------------------------------------------------------------
   Flash / toast
   -------------------------------------------------------------------------- */
.pd-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  color: #15803D;
  border: 1px solid rgba(20,45,84, .3);
  border-radius: var(--r-sm);
  background: var(--t-soft);
  font-size: 15px;
  font-weight: 600;
}

.pd-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  padding: 13px 22px;
  color: #fff;
  border-radius: var(--pill);
  background: var(--navy);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.pd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.pd-toast--error { background: var(--red); }

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.pd-crumbs a { color: var(--muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--t); }
.pd-crumbs i { font-size: 9px; opacity: .55; }
.pd-crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.pd-gallery { position: relative; margin-bottom: 26px; }

.pd-gallery__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 235px;
  border-radius: var(--r);
  overflow: hidden;
}

.pd-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.pd-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.pd-shot:hover img { transform: scale(1.05); }

/* the lead shot always fills the tall left column */
.pd-shot--lead { grid-column: 1; grid-row: 1 / span 2; }

/* counts below five: rebalance so no cell is left empty */
.pd-gallery__grid[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 480px; }
.pd-gallery__grid[data-count="1"] .pd-shot--lead { grid-row: 1; }

.pd-gallery__grid[data-count="2"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 480px; }
.pd-gallery__grid[data-count="2"] .pd-shot--lead { grid-row: 1; }

.pd-gallery__grid[data-count="3"] { grid-template-columns: 2fr 1fr; }

.pd-gallery__grid[data-count="4"] .pd-shot:nth-child(4) { grid-column: 2 / span 2; }

.pd-gallery__flags {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-flag {
  padding: 6px 12px;
  color: #fff;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(20,45,84, .22);
}

.pd-flag--teal   { background: #D4A843;
  color: #142D54;
}
.pd-flag--purple { background: var(--purple); }
.pd-flag--blue   { background: var(--blue); }
.pd-flag--orange { background: var(--orange); }
.pd-flag--navy   { background: var(--navy); }
.pd-flag--red    { background: var(--red); }

.pd-gallery__all {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--ink);
  border: 0;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .95);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: transform .18s ease;
}

.pd-gallery__all:hover { transform: translateY(-2px); }

.pd-gallery__empty {
  display: grid;
  place-items: center;
  gap: 10px;
  height: 320px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
  font-size: 15px;
}

.pd-gallery__empty i { font-size: 30px; opacity: .5; }

/* --------------------------------------------------------------------------
   Title block
   -------------------------------------------------------------------------- */
.pd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.pd-head__main { flex: 1 1 420px; min-width: 0; }

.pd-eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pd-head h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 31.5px;
  font-weight: 700;
  line-height: 1.25;
}

.pd-head__loc {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.pd-head__loc i { color: var(--t); font-size: 13px; }
.pd-head__loc a { color: var(--muted); text-decoration: none; }
.pd-head__loc a:hover { color: var(--t); text-decoration: underline; }

.pd-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-keys li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg-soft);
  font-size: 14.5px;
  font-weight: 600;
}

.pd-keys i { color: var(--t); font-size: 14px; }
.pd-keys small { color: var(--muted); font-weight: 600; }

.pd-head__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.pd-price {
  color: var(--t);
  font-size: 31.5px;
  font-weight: 700;
  line-height: 1.1;
  text-align: end;
  white-space: nowrap;
}

.pd-price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pd-price em {
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

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

.pd-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.pd-icon:hover { color: var(--t); border-color: var(--t); transform: translateY(-2px); }
.pd-icon--fav:hover { color: var(--red); border-color: var(--red); }
.pd-icon .fi-heart-filled { color: var(--red); }

/* share dropdown */
.pd-share { position: relative; }

.pd-share__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: none;
  min-width: 208px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--sh);
}

.pd-share.is-open .pd-share__menu { display: block; }

.pd-share__menu button,
.pd-share__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.pd-share__menu button:hover,
.pd-share__menu a:hover { background: var(--bg-soft); color: var(--t); }
.pd-share__menu i { width: 16px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Two column body
   -------------------------------------------------------------------------- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: start;
  gap: 40px;
  padding-top: 34px;
}

.pd-block { margin-bottom: 38px; }

.pd-block > h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

/* facts / spec table ------------------------------------------------------ */
.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 6px 24px;
  box-shadow: var(--sh-sm);
}

.pd-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.pd-spec:last-child,
.pd-spec:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

.pd-spec dt { color: var(--muted); font-weight: 600; }
.pd-spec dd { margin: 0; color: var(--ink); font-weight: 600; text-align: end; }
.pd-spec dd a { color: var(--t); text-decoration: none; }
.pd-spec dd a:hover { text-decoration: underline; }

/* amenities --------------------------------------------------------------- */
.pd-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

.pd-chips img { width: 20px; height: 20px; opacity: .75; flex: 0 0 20px; }
.pd-chips i { color: var(--t); font-size: 13px; }

.pd-chips--soft li { background: var(--t-soft); border-color: transparent; }

/* description ------------------------------------------------------------- */
.pd-prose {
  position: relative;
  color: #3B5266;
  font-size: 16px;
  line-height: 1.85;
}

.pd-prose.is-clamped {
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 68%, transparent);
          mask-image: linear-gradient(#000 68%, transparent);
}

.pd-more {
  margin-top: 14px;
  padding: 9px 20px;
  color: var(--t);
  border: 1px solid var(--t);
  border-radius: var(--pill);
  background: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.pd-more:hover { color: #fff; background: var(--t); }

/* documents / floor plans -------------------------------------------------- */
.pd-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.pd-file {
  display: block;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.pd-file:hover { transform: translateY(-3px); box-shadow: var(--sh); }

.pd-file__thumb {
  display: grid;
  place-items: center;
  height: 130px;
  background: var(--bg-soft);
}

.pd-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-file__thumb .pd-file__icon { width: auto; height: 54px; object-fit: contain; }
.pd-file__name {
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-word;
}

/* map --------------------------------------------------------------------- */
.pd-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.pd-map iframe { display: block; width: 100%; height: 380px; border: 0; }

.pd-map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.pd-map__addr {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.pd-map__addr i { color: var(--t); }

/* reviews ----------------------------------------------------------------- */
.pd-review {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.pd-review + .pd-review { margin-top: 12px; }

.pd-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pd-review__who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }

.pd-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: var(--t);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.pd-review__when { color: var(--muted); font-size: 13.5px; }
.pd-review p { margin: 0; color: #3B5266; font-size: 15px; line-height: 1.7; }

.pd-empty {
  padding: 26px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  font-size: 15px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.pd-btn:hover { transform: translateY(-2px); }
.pd-btn--primary { color: #fff; background: var(--t); }
.pd-btn--primary:hover { background: var(--t-dark); color: #fff; }
.pd-btn--ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.pd-btn--ghost:hover { color: var(--t); border-color: var(--t); }
.pd-btn--wa { color: #fff; background: #25D366; }
.pd-btn--wa:hover { background: #1FBA59; color: #fff; }
.pd-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.pd-aside { position: sticky; top: 104px; display: grid; gap: 18px; }

.pd-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.pd-card > h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.pd-agent__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.pd-agent__top img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.pd-agent__name {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.pd-agent__name:hover { color: var(--t); }
.pd-agent__role { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 600; }

.pd-agent__acts { display: grid; gap: 9px; }
.pd-agent__acts .pd-btn { width: 100%; }
.pd-agent__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.pd-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}

.pd-links { display: grid; gap: 0; }

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

.pd-links li + li { border-top: 1px solid var(--line); }

.pd-links a {
  display: block;
  padding: 11px 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.pd-links a:hover { color: var(--t); }

.pd-social { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.pd-social a,
.pd-social span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.pd-social a { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.pd-social a:hover { color: var(--t); border-color: var(--t); }
.pd-social span { color: #9AAFC0; border: 1px solid var(--line); background: var(--bg-soft); cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Similar properties
   -------------------------------------------------------------------------- */
.pd-similar { padding-top: 12px; border-top: 1px solid var(--line); }

.pd-similar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 22px;
}

.pd-similar__head h2 { margin: 0; font-size: 24.5px; font-weight: 700; }

.pd-similar__note {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pd-similar__head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--t);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.pd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.pd-mini {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh);
  transition: transform .22s ease, box-shadow .22s ease;
}

.pd-mini:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.pd-mini__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.pd-mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pd-mini:hover .pd-mini__media img { transform: scale(1.06); }

.pd-mini__media .pd-flag { position: absolute; top: 12px; left: 12px; }

.pd-mini__body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }

.pd-mini__area {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pd-mini__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pd-mini__title a { color: var(--ink); text-decoration: none; }
.pd-mini__title a:hover { color: var(--t); }
.pd-mini__price { margin-bottom: 12px; color: var(--t); font-size: 18px; font-weight: 700; }

.pd-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.pd-mini__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.pd-mini__meta i { color: #9AAFC0; font-size: 12px; }

/* why this listing is being suggested */
.pd-why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.pd-why__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  color: var(--muted);
  border-radius: var(--pill);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pd-why__chip i { font-size: 10px; opacity: .8; }
.pd-why__chip.is-good { color: #15803D; background: var(--t-soft); }

/* fallback when nothing matched the price band */
.pd-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.pd-next__card {
  display: block;
  padding: 26px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pd-next__card:hover { transform: translateY(-3px); box-shadow: var(--sh); }

.pd-next__card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--t);
  border-radius: 12px;
  background: var(--t-soft);
  font-size: 16px;
}

.pd-next__card strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 16.5px; font-weight: 700; }
.pd-next__card span   { display: block; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Sticky action bar (small screens only)
   -------------------------------------------------------------------------- */
.pd-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 26px rgba(20,45,84, .1);
}

.pd-bar__price { color: var(--t); font-size: 17px; font-weight: 700; line-height: 1.2; }
.pd-bar__price small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.pd-bar__acts { display: flex; gap: 8px; }
.pd-bar .pd-btn { padding: 11px 16px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.pd-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: rgba(20,45,84, .95);
}

.pd-lb.is-open { display: block; }
body.pd-lb-open { overflow: hidden; }

/* flex, not grid: an auto-sized grid row resolves max-height:100% circularly
   and the photo spills over the thumbnail strip */
.pd-lb__stage {
  position: absolute;
  inset: 64px 80px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lb__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.pd-lb__count {
  position: absolute;
  top: 22px;
  inset-inline-start: 24px;
  color: rgba(255, 255, 255, .8);
  font-size: 14.5px;
  font-weight: 600;
}

.pd-lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-size: 18px;
  cursor: pointer;
  transition: background .18s ease;
}

.pd-lb__btn:hover { background: rgba(255, 255, 255, .28); }
.pd-lb__close { top: 16px; right: 20px; }
.pd-lb__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.pd-lb__next { top: 50%; right: 20px; transform: translateY(-50%); }

.pd-lb__strip {
  position: absolute;
  inset: auto 0 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 0 20px;
}

.pd-lb__strip img {
  width: 78px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 7px;
  object-fit: cover;
  opacity: .5;
  cursor: pointer;
  flex: 0 0 auto;
}

.pd-lb__strip img.is-active { border-color: var(--t); opacity: 1; }

/* --------------------------------------------------------------------------
   Modals (Bootstrap shell, Homino skin)
   -------------------------------------------------------------------------- */
.pd-modal .modal-content { border: 0; border-radius: var(--r); box-shadow: var(--sh-lg); }
.pd-modal .modal-header { padding: 24px 26px 0; border: 0; }
.pd-modal .modal-title { color: #142D54; font-size: 20px; font-weight: 700; }
.pd-modal .modal-body { padding: 18px 26px 26px; }
.pd-modal label { display: block; margin-bottom: 6px; color: #62778C; font-size: 14px; font-weight: 700; }

.pd-modal .form-control,
.pd-modal .form-select {
  width: 100%;
  padding: 11px 14px;
  color: #142D54;
  border: 1px solid #E8EEF3;
  border-radius: 10px;
  font-size: 15px;
}

.pd-modal .form-control:focus,
.pd-modal .form-select:focus { border-color: #142D54; box-shadow: 0 0 0 3px rgba(20,45,84, .15); outline: 0; }
.pd-modal .mb-3 { margin-bottom: 14px; }
.pd-modal textarea.form-control { min-height: 96px; resize: vertical; }
.pd-modal__lead { margin: 0 0 18px; color: #62778C; font-size: 15px; line-height: 1.6; }
.pd-req { color: #E5484D; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .pd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pd-aside { position: static; margin-bottom: 34px; }

  /* the sidebar CTA is now far down the page, so the bar carries it */
  .pd-bar { display: flex; }
  .pd-shell { padding-bottom: 96px; }

  .pd-head h1 { font-size: 26.5px; }
  .pd-price { font-size: 27.5px; }
  .pd-gallery__grid { grid-auto-rows: 180px; }
}

@media (max-width: 768px) {
  .pd-page { --gut: 16px; }
  .pd-toast { left: 16px; right: 16px; bottom: 84px; transform: translateY(14px); text-align: center; }
  .pd-toast.is-visible { transform: translateY(0); }

  /* flex-basis switches axis with the direction: 420px would become a 420px
     minimum HEIGHT and open a gap above the price */
  .pd-head { flex-direction: column; gap: 16px; }
  .pd-head__main { flex: 0 0 auto; width: 100%; }
  .pd-head__side { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .pd-price { text-align: start; }
  .pd-head h1 { font-size: 23px; }

  /* the grid becomes a swipeable strip so every photo stays reachable */
  .pd-gallery__grid {
    display: flex;
    gap: 8px;
    grid-auto-rows: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

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

  .pd-shot {
    flex: 0 0 86%;
    height: 240px;
    border-radius: 12px;
    scroll-snap-align: center;
  }

  .pd-specs { grid-template-columns: 1fr; padding: 6px 18px; }
  .pd-spec:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .pd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pd-next { grid-template-columns: 1fr; }
  .pd-map iframe { height: 300px; }
  .pd-lb__stage { inset: 56px 8px 88px; }
}

@media (max-width: 520px) {
  .pd-cards { grid-template-columns: 1fr; }
  .pd-keys li { padding: 8px 12px; font-size: 14px; }
  .pd-bar__price { font-size: 15px; }
}
