/* ==========================================================================
   Single property page – Description, Details, Site Plan (includes/property-page.php)
   ========================================================================== */

/* Small uppercase section label (replaces Realentor's big H3s in these three cards) */
.realentor-property-details .realentor-shadow h3.up-prop-label {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #667085;
}

/* ---------- Description ---------- */
.realentor-property-details .up-prop-desc .up-desc-heading {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #101828;
}
.realentor-property-details .up-prop-desc .up-desc-heading ~ .up-desc-heading { font-size: 18px; margin-top: 24px; }
.realentor-property-details .up-prop-desc p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: #344054;
}
.realentor-property-details .up-prop-desc p:last-child { margin-bottom: 0; }
.realentor-property-details .up-prop-desc ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.realentor-property-details .up-prop-desc ul li {
  position: relative;
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  line-height: 1.5;
  color: #101828;
}
.realentor-property-details .up-prop-desc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f4fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23179ad6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 11px 11px;
}

/* ---------- Details ---------- */
.realentor-property-details .up-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
}
.realentor-property-details .up-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #eef0f4;
}
.realentor-property-details .up-detail--wide { grid-column: 1 / -1; }
.realentor-property-details .up-detail dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #667085;
}
.realentor-property-details .up-detail dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: #101828;
}
.realentor-property-details .up-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #e8f4fb;
  color: #0f6d99;
}
.realentor-property-details .up-pill--leased,
.realentor-property-details .up-pill--sold { background: #fef3e7; color: #b54708; }
@media (max-width: 600px) {
  .realentor-property-details .up-details-grid { grid-template-columns: 1fr; }
}

/* ---------- Site plan: click to enlarge ---------- */
.realentor-property-details .up-plan-zoom,
.realentor-property-details .up-plan-zoom:hover,
.realentor-property-details .up-plan-zoom:focus {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  box-shadow: none;
  transform: none;
  cursor: zoom-in;
}
.realentor-property-details .up-plan-zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  transition: transform .25s ease;
}
.realentor-property-details .up-plan-zoom:hover img { transform: scale(1.015); }
.realentor-property-details .up-plan-zoom:focus-visible { outline: 2px solid #179ad6; outline-offset: 3px; }
.realentor-property-details .up-plan-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 32px;
  border-radius: 999px;
  background: rgba(16, 24, 40, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat 11px center / 15px 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  pointer-events: none;
}

/* Full-screen viewer */
.up-plan-dialog {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 56px 16px 16px;
  border: 0;
  background: transparent;
  overflow: auto;
}
.up-plan-dialog::backdrop { background: rgba(16, 24, 40, .95); }
.up-plan-dialog[open] { display: flex; align-items: center; justify-content: center; }
.up-plan-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  margin: auto;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}
.up-plan-dialog.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.up-plan-dialog.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.up-plan-bar {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 1;
}
.up-plan-bar a,
.up-plan-bar button,
.up-plan-bar button:hover,
.up-plan-bar button:focus {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .14);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
.up-plan-bar a:hover, .up-plan-bar button:hover { background: rgba(255, 255, 255, .26); }
.up-plan-bar a:focus-visible, .up-plan-bar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.up-plan-bar .up-plan-close { width: 40px; padding: 0; justify-content: center; font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  .realentor-property-details .up-plan-zoom img { transition: none; }
}
