/* PlexSmart listing cleanup + agent card 2026-11-24 */

/* 1. Description typography and anchors */
.ere__single-property-description h2,
.ere__single-property-description h3,
.ere__single-property-description h4 {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  margin: 18px 0 8px !important;
  color: var(--os-ink, #0f1b29);
}
.ere__single-property-description .ere-heading-style2 h2 {
  font-size: 21px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.ere__single-property-description p:first-of-type strong,
.ere__single-property-description > .ere-property-element > p:first-child strong,
.ere__single-property-description .ere-property-element p:first-of-type strong {
  font-weight: 500;
  font-size: inherit;
  letter-spacing: inherit;
}
.ere__single-property-description ul,
.ere__single-property-description ol {
  margin: 0 0 14px;
  padding-left: 1.15em;
}
.ere__single-property-description li {
  margin: 0 0 6px;
  line-height: 1.45;
}
.single-property .ere-heading-style2 h2::after,
.single-property .ere-heading-style2::after { display: none !important; background: none !important; }

.single-property-area [id],
#investment-summary, #unit-mix, #ps-inquiry-form, #os-contact,
#similar-properties, .ere__single-property-description,
.os-location-card {
  scroll-margin-top: 90px;
}

/* 3. Location card: one address + map */
.os-location-card .ere__property-address-list,
.os-location-card .ere__property-location-item,
.os-location-card li.country,
.os-location-card li.state,
.os-location-card li.city,
.os-location-card li.postal-code,
.os-location-card li.zip { display: none !important; }
.os-location-card .ps-location-address {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 6px;
  color: var(--os-ink, #0f1b29);
}
.os-location-card .ps-location-id {
  font-size: 13px;
  color: var(--os-muted, #526173);
  margin: 0 0 12px;
}
.ps-location-map {
  margin: 12px 0 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--os-line, #e3e8ee);
  background: #eef1f4;
  min-height: 240px;
}
.ps-location-map iframe,
.ps-location-map .ere__map-canvas,
.os-location-card #ere__single_property_map,
.os-location-card .ere__map-canvas {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 240px;
  border: 0;
}
.os-location-card .ere__single-property-map-directions { display: none !important; }
.os-location-card .os-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* 4. Overview tab gone; views-count card gone */
.single-property .ere__single-property-info:not(.property-info-header):not(.ere__single-property-info-footer):not(.property-info-footer),
.single-property .single-property-element.property-info:not(.property-info-header):not(.property-info-footer),
.single-property .ere__views-count,
.single-property .ere__single-property-info-footer:not(:has(.ps-similar)) {
  display: none !important;
}

/* 5. Similar properties + form heading */
.ps-similar {
  grid-column: 1 / -1;
  margin: 28px 0 12px;
  padding: 0;
}
.ps-similar .ere-heading-style2 { margin-bottom: 14px; }
.ps-similar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ps-similar__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--os-line, #e3e8ee);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(14, 36, 56, .04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ps-similar__card:hover { box-shadow: 0 8px 22px rgba(14, 36, 56, .10); transform: translateY(-1px); color: inherit; }
.ps-similar__photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ece9e1; }
.ps-similar__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-similar__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ps-similar__title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--os-ink, #0f1b29); }
.ps-similar__loc { font-size: 13px; color: var(--os-muted, #526173); }
.ps-similar__meta { font-size: 13px; font-weight: 600; color: var(--os-ink, #0f1b29); }
.os-listing-contact .ps-inquiry-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 8px;
  color: var(--os-ink, #0f1b29);
}
.os-listing-contact .os-lc-more,
a.btn.os-lc-more {
  display: block !important;
  text-align: center;
  box-sizing: border-box;
  background: transparent !important;
  color: var(--os-agent-ink, #2F3437) !important;
  border: 1.5px solid var(--os-agent-ink, #2F3437) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  width: 100%;
  margin-top: 8px;
}

/* 7. Agent card redesign (desktop sticky + mobile in-flow) */
.os-listing-contact.ps-agent-card-wrap,
.os-listing-contact {
  border: 1px solid var(--os-line, #e3e8ee);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(14, 36, 56, .06);
  background: #fff;
}
.os-listing-contact .ps-agent-card {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  align-items: stretch !important;
  margin: 0 0 8px !important;
  height: auto !important;
}
.os-listing-contact .ps-agent-card__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.os-listing-contact .ps-agent-card__photo-col,
.os-listing-contact .os-lc-photo-col {
  flex: 0 0 112px !important;
  width: 112px !important;
  max-width: 112px !important;
}
.os-listing-contact .ps-agent-card__photo,
.os-listing-contact .os-lc-photo {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  position: relative !important;
  background: #ece9e1;
}
.os-listing-contact .ps-agent-card__img,
.os-listing-contact .os-lc-photo-img,
.os-listing-contact img.os-lc-photo-img {
  width: 112px !important;
  height: 112px !important;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 0 !important;
}
.os-listing-contact .ps-agent-card__brand { display: none !important; } /* logo is no longer overlaid */
.os-listing-contact .ps-agent-card__body,
.os-listing-contact .os-lc-content,
.os-listing-contact .ere__agent-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}
.os-listing-contact .ps-agent-card__name,
.os-listing-contact .ere__agent-name {
  margin: 0 0 2px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.os-listing-contact .ps-agent-card__role,
.os-listing-contact .ere__agent-position {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--os-muted, #526173) !important;
}
.os-listing-contact .ps-agent-card__logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 12px 0 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--os-line, #e3e8ee);
  border-radius: 8px;
}
.os-listing-contact .ps-agent-card__logo-row img,
.os-listing-contact .ps-agent-card__logo-row .ps-agent-card__logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: 40px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  filter: none;
  mix-blend-mode: normal;
}
.os-listing-contact .ps-agent-card__office {
  margin: 6px 0 0 !important;
  font-size: 12.5px !important;
  line-height: 1.35;
  color: var(--os-muted, #526173);
  font-weight: 500;
}
.os-listing-contact .os-lc-license { font-size: 12px; color: var(--os-muted, #526173); margin: 4px 0 0; }
.os-listing-contact .ps-agent-card__actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
  width: 100%;
}
.os-listing-contact .ps-ac-btn--call,
.os-listing-contact .ps-ac-btn--text {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px !important;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-width: 1.5px;
  border-style: solid;
}
.os-listing-contact .ps-ac-btn--call {
  background: var(--os-agent-ink, #2F3437) !important;
  border-color: var(--os-agent-ink, #2F3437) !important;
  color: #fff !important;
}
.os-listing-contact .ps-ac-btn--call:hover { background: var(--os-agent-ink-hover, #1f2326) !important; color: #fff !important; }
.os-listing-contact .ps-ac-btn--text {
  background: #fff !important;
  border-color: var(--os-agent-ink, #2F3437) !important;
  color: var(--os-agent-ink, #2F3437) !important;
  border-left-width: 1.5px !important;
}
.os-listing-contact .ps-ac-btn--text:hover { background: #f4f1ea !important; }
.os-listing-contact .ps-agent-card__views {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--os-muted, #526173);
}
.os-listing-contact #ps-inquiry-form textarea { min-height: 64px; }

@media (max-width: 1099px) {
  .os-listing-contact {
    margin-top: 8px;
    padding: 18px 16px 16px;
  }
  .os-listing-contact .ps-agent-card__photo-col,
  .os-listing-contact .os-lc-photo-col,
  .os-listing-contact .ps-agent-card__photo,
  .os-listing-contact .os-lc-photo,
  .os-listing-contact .ps-agent-card__img,
  .os-listing-contact .os-lc-photo-img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    flex-basis: 96px !important;
  }
  .ps-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ps-similar__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Call | Text as one equal-width row. Message agent is redundant (form is on the card; mobile has Inquire). */
.os-listing-contact .ps-agent-card__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}
.os-listing-contact .ps-agent-card__actions .ps-ac-btn {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}
.os-listing-contact .ps-agent-card__actions .ps-ac-btn--message {
	display: none !important;
}
/* Logo already shows the brokerage/office name. */
.ps-agent-card:has(.ps-agent-card__logo-row img) .ps-agent-card__office {
	display: none;
}
.ps-unitmix-table-wrap tfoot td {
	font-weight: 700;
	border-top: 1px solid #e6e8ee;
	padding-top: 10px;
}

/* Investment summary: group titles clearly larger than field labels. */
.ps-invest-group__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--os-gold-dark, #9a7232) !important;
  margin: 0 0 14px !important;
  line-height: 1.25;
}
@media (max-width: 767px) {
  .ps-invest-group__title {
    font-size: 15px !important;
    letter-spacing: .12em !important;
    margin: 0 0 12px !important;
  }
}
.ps-invest-fact__label {
  font-size: 11px;
  font-weight: 700;
}
.ps-location-id { display: none !important; }

/* Gallery thumbs: full opacity, no dimming or overlay. Active = 3px brass bar at the bottom. */
.single-property .single-property-image-thumb .owl-item,
.single-property .ere__single-property-gallery .single-property-image-thumb .owl-item,
.single-property .single-property-image-thumb .owl-item.current,
.single-property .single-property-image-thumb .owl-item.active,
.single-property .single-property-image-thumb .owl-item:hover,
.single-property .single-property-image-thumb .owl-item img {
	opacity: 1 !important;
	filter: none !important;
}
.single-property .single-property-image-thumb .property-gallery-item {
	position: relative;
	display: block;
}
.single-property .single-property-image-thumb .owl-item.current .property-gallery-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--os-gold-dark, #9a7232);
	opacity: 1 !important;
	pointer-events: none;
	z-index: 2;
}
.single-property .single-property-image-thumb .owl-item:hover:not(.current) .property-gallery-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--os-gold-dark, #9a7232);
	opacity: .45 !important;
	pointer-events: none;
	z-index: 2;
}
