/* ==========================================================================
   Portfolio Moguls — Property detail
   Flattened from raw/Property Detail - Sale.dc.html.
   ========================================================================== */

.pm-prop { padding-block: 28px 8px; }

/* Mobile: one column in reading order — gallery, essentials + verification,
   then the long-form detail. Desktop: gallery and main stack in the left
   track while the side column spans both rows and sticks. */
.pm-prop__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "gallery" "side" "main";
  row-gap: 26px;
}

.pm-prop__gallery { grid-area: gallery; }
.pm-prop__side { grid-area: side; }
.pm-prop__main { grid-area: main; }

@media (min-width: 900px) {
  .pm-prop__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    grid-template-areas:
      "gallery side"
      "main    side";
    column-gap: 44px;
    row-gap: 36px;
    align-items: start;
  }

  .pm-prop__side {
    position: sticky;
    top: calc(var(--pm-header-h) + 26px);
  }

  .pm-prop__main { padding-top: 6px; }
}

/* --------------------------------------------------------------------------
   Gallery — CSS-only slide switching
   -------------------------------------------------------------------------- */

.pm-gallery__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pm-gallery__stage {
  position: relative;
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--pm-border);
  background: var(--pm-stripe-cool);
  aspect-ratio: 16 / 10;
}

.pm-gallery__slide {
  display: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 18px;
}

.pm-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* One rule per slide index — the radio before the stage drives which
   figure shows, and which thumbnail reads as current. */
.pm-gallery__radio:nth-of-type(1):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(1),
.pm-gallery__radio:nth-of-type(2):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(2),
.pm-gallery__radio:nth-of-type(3):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(3),
.pm-gallery__radio:nth-of-type(4):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(4),
.pm-gallery__radio:nth-of-type(5):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(5),
.pm-gallery__radio:nth-of-type(6):checked ~ .pm-gallery__stage .pm-gallery__slide:nth-child(6) {
  display: block;
}

.pm-gallery__radio:nth-of-type(1):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(1),
.pm-gallery__radio:nth-of-type(2):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(2),
.pm-gallery__radio:nth-of-type(3):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(3),
.pm-gallery__radio:nth-of-type(4):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(4),
.pm-gallery__radio:nth-of-type(5):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(5),
.pm-gallery__radio:nth-of-type(6):checked ~ .pm-gallery__thumbs .pm-gallery__thumb:nth-child(6) {
  border-color: var(--pm-action);
  box-shadow: none;
}

/* Keyboard focus lands on the hidden radio, so surface it on the label. */
.pm-gallery__radio:focus-visible ~ .pm-gallery__thumbs .pm-gallery__thumb {
  outline: 2px solid var(--pm-focus);
  outline-offset: 2px;
}

.pm-gallery__verified {
  position: absolute;
  top: 14px;
  left: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.pm-gallery__ref {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.pm-gallery__caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--pm-font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pm-stamp);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 12px;
  border-radius: var(--pm-radius-sm);
  white-space: nowrap;
}

.pm-gallery__count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pm-navy);
  padding: 6px 11px;
  border-radius: var(--pm-radius-sm);
  font-size: 11.5px;
  font-weight: 600;
}

.pm-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.pm-gallery__thumb {
  position: relative;
  /* Grid items default to min-width:auto, so the caption's min-content width
     would stop the track shrinking and push the row past the viewport at
     390px. This lets the track shrink and the caption clip instead. */
  min-width: 0;
  height: 58px;
  border-radius: var(--pm-radius-sm);
  background: var(--pm-stripe-cool);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--pm-border);
  display: flex;
  align-items: flex-end;
  padding: 5px;
  overflow: hidden;
  cursor: pointer;
}

.pm-gallery__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-gallery__thumblabel {
  position: relative;
  min-width: 0;
  font-family: var(--pm-font-ui);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #8f99ad;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-gallery__video {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--pm-white);
  border: 1px solid #C3CCDB;
  color: var(--pm-navy);
  padding: 11px;
  border-radius: var(--pm-radius);
  font-weight: 600;
  font-size: 14px;
}

.pm-gallery__video:hover,
.pm-gallery__video:focus-visible {
  border-color: var(--pm-navy);
  color: var(--pm-navy);
}

.pm-gallery__play { line-height: 0; }

/* --------------------------------------------------------------------------
   Side column — essentials
   -------------------------------------------------------------------------- */

.pm-essentials {
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  padding: 20px 20px 18px;
  margin-bottom: 18px;
  background: var(--pm-white);
}

.pm-essentials__title {
  font-family: var(--pm-font-ui);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.25;
  margin: 8px 0 12px;
  color: var(--pm-navy);
}

.pm-essentials__price {
  font-family: var(--pm-font-ui);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--pm-navy);
  margin: 0;
}

.pm-essentials__sub {
  font-size: 13px;
  color: var(--pm-muted);
  margin: 5px 0 0;
}

.pm-essentials__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.pm-essentials__stamp {
  display: block;
  margin: 14px 0 0;
}

/* --------------------------------------------------------------------------
   Verification panel
   -------------------------------------------------------------------------- */

.pm-verify {
  border: 1px solid var(--pm-border);
  border-top: var(--pm-rule-accent);
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
}

.pm-verify__head {
  background: var(--pm-navy);
  color: var(--pm-on-navy);
  padding: 16px 18px;
}

.pm-verify__figure {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 6px 0 0;
  flex-wrap: wrap;
}

.pm-verify__tick {
  align-self: center;
  line-height: 0;
}

.pm-verify__count {
  font-family: var(--pm-font-ui);
  font-weight: 700;
  font-size: 26px;
}

.pm-verify__caption {
  font-size: 14px;
  color: var(--pm-on-navy-soft);
}

.pm-verify__head .pm-stamp { display: block; margin-top: 8px; }

.pm-verify__list {
  list-style: none;
  margin: 0;
  padding: 4px 18px 10px;
  background: var(--pm-white);
}

.pm-verify__item {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pm-hairline);
  align-items: flex-start;
}

.pm-verify__item:last-child { border-bottom: 0; }

.pm-verify__itemtick {
  flex: none;
  margin-top: 1px;
  line-height: 0;
}

.pm-verify__itembody {
  flex: 1;
  min-width: 0;
}

.pm-verify__itemname {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pm-text);
  line-height: 1.3;
}

.pm-verify__itemnum {
  color: var(--pm-link-hover);
  font-weight: 700;
  margin-right: 6px;
}

.pm-verify__itemnote {
  display: block;
  font-size: 12px;
  color: var(--pm-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.pm-verify__foot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--pm-surface-alt);
  border-top: 1px solid var(--pm-border);
  font-size: 13px;
  font-weight: 600;
}

.pm-verify__foot a { color: var(--pm-navy); }
.pm-verify__foot a:hover,
.pm-verify__foot a:focus-visible { color: var(--pm-link-hover); }

/* --------------------------------------------------------------------------
   CTA card
   -------------------------------------------------------------------------- */

.pm-ctacard {
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  padding: 18px;
  background: var(--pm-white);
}

.pm-ctacard__row {
  display: flex;
  gap: 9px;
  margin-top: 9px;
}

.pm-ctacard__schedule { flex: 1; }
.pm-ctacard__call { flex: none; }

.pm-ctacard__note {
  font-size: 12px;
  color: var(--pm-muted);
  margin: 12px 0 0;
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */

.pm-propsection { margin-bottom: 40px; }

.pm-prop__body {
  font: var(--pm-body);
  color: var(--pm-text);
  max-width: 62ch;
  margin: 12px 0 20px;
}

.pm-prop__body p { margin: 0 0 1em; }
.pm-prop__body p:last-child { margin-bottom: 0; }

.pm-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 28px;
  border-top: 1px solid var(--pm-border);
  margin: 0;
}

.pm-specs__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pm-hairline);
}

.pm-specs__label {
  font-size: 13.5px;
  color: var(--pm-muted);
}

.pm-specs__value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pm-text);
  text-align: right;
  margin: 0;
}

@media (min-width: 600px) {
  .pm-specs { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Money block
   -------------------------------------------------------------------------- */

.pm-money {
  margin-bottom: 40px;
  background: var(--pm-surface-alt);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  padding: 26px;
}

.pm-money__heading {
  font-family: var(--pm-font-ui);
  font-weight: 600;
  font-size: 24px;
  color: var(--pm-navy);
  margin: 6px 0 4px;
}

.pm-money__intro {
  font-family: var(--pm-font-body);
  font-size: 15px;
  color: var(--pm-muted);
  margin: 0 0 20px;
  max-width: 56ch;
}

.pm-money__asking {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--pm-navy);
}

.pm-money__askinglabel {
  font-size: 15px;
  font-weight: 600;
  color: var(--pm-text);
}

.pm-money__askingvalue {
  font-family: var(--pm-font-ui);
  font-weight: 700;
  font-size: 26px;
  color: var(--pm-navy);
}

.pm-money__costsheading {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-stamp);
  font-weight: 700;
  margin: 18px 0 4px;
}

.pm-money__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pm-border);
  font-size: 14px;
  color: var(--pm-text);
}

.pm-money__rowvalue { font-weight: 600; }

.pm-money__subtotal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-navy);
}

.pm-money__pct {
  font-weight: 500;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-money__fee {
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 15px 16px;
  margin-top: 16px;
}

.pm-money__feerow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-text);
}

.pm-money__feequal {
  font-weight: 400;
  color: var(--pm-muted);
}

.pm-money__feevalue {
  font-weight: 700;
  color: var(--pm-navy);
}

.pm-money__feedetail {
  font-size: 12.5px;
  color: var(--pm-muted);
  margin: 5px 0 0;
  line-height: 1.45;
}

.pm-money__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pm-money__disclaimer {
  font-size: 13px;
  color: var(--pm-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Location
   -------------------------------------------------------------------------- */

.pm-location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.pm-location__map {
  position: relative;
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--pm-border);
  background: var(--pm-stripe-green);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-location__map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-location__pin {
  width: 14px;
  height: 14px;
  background: var(--pm-action);
  border: 2px solid var(--pm-white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pm-location__maplabel {
  position: absolute;
  bottom: 12px;
  font-family: var(--pm-font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d857d;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 10px;
  border-radius: var(--pm-radius-sm);
}

.pm-commute { margin: 0; }

.pm-commute__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pm-hairline);
  font-size: 14px;
}

.pm-commute__row dt { color: var(--pm-text); }

.pm-commute__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--pm-muted);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .pm-location { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* --------------------------------------------------------------------------
   Neighborhood block
   -------------------------------------------------------------------------- */

.pm-hoodblock {
  margin-bottom: 40px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-lg);
  padding: 24px;
}

.pm-hoodblock__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-hoodblock__heading {
  font-family: var(--pm-font-ui);
  font-weight: 600;
  font-size: 22px;
  color: var(--pm-navy);
  margin: 0;
}

.pm-hoodblock__body {
  font-family: var(--pm-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pm-text);
  margin: 10px 0 18px;
  max-width: 60ch;
}

.pm-hoodblock__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.pm-hoodblock__stat {
  border-left: 2px solid var(--pm-action);
  padding-left: 12px;
}

.pm-hoodblock__figure {
  display: block;
  font-family: var(--pm-font-ui);
  font-weight: 700;
  font-size: 22px;
  color: var(--pm-navy);
}

.pm-hoodblock__statlabel {
  display: block;
  font-size: 12.5px;
  color: var(--pm-muted);
}

.pm-hoodblock__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pm-hairline);
}

.pm-hoodblock__source {
  font-size: 12px;
  color: var(--pm-stamp);
}

/* --------------------------------------------------------------------------
   NRB note
   -------------------------------------------------------------------------- */

.pm-nrbnote {
  margin-bottom: 8px;
  background: var(--pm-navy);
  color: var(--pm-on-navy);
  border-radius: var(--pm-radius-lg);
  padding: 24px 26px;
}

.pm-nrbnote__heading {
  font-family: var(--pm-font-ui);
  font-weight: 600;
  font-size: 22px;
  margin: 8px 0 10px;
  line-height: 1.3;
}

.pm-nrbnote__body {
  font-family: var(--pm-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pm-on-navy-soft);
  margin: 0 0 16px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Conversion band + similar
   -------------------------------------------------------------------------- */

.pm-convband {
  background: var(--pm-navy);
  color: var(--pm-on-navy);
  margin-top: 36px;
}

.pm-convband__inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pm-convband__heading {
  font-family: var(--pm-font-ui);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.pm-convband__sub {
  font-size: 13.5px;
  color: var(--pm-on-navy-muted);
  margin: 4px 0 0;
}

.pm-convband__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-similar { padding-block: 44px 56px; }

.pm-similar__intro {
  font-size: 14px;
  color: var(--pm-muted);
  margin: 6px 0 22px;
}
