/* Property passport. All selectors are scoped to the existing non-modal lot panel. */
dialog.lot-panel .dialog-head { flex: none; padding: 12px 22px; min-height: 60px; }
dialog.lot-panel .dialog-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
dialog.lot-panel .dialog-title h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
dialog.lot-panel .dialog-title > .lot-passport-icon { width: 24px; height: 24px; padding-right: 10px; box-sizing: content-box; border-right: 1px solid var(--line); }
dialog.lot-panel .dialog-body { padding: 0; scrollbar-gutter: auto; }
.lot-passport { min-height: 100%; display: flex; flex-direction: column; background: #fff; }
.lot-passport-content { padding: 22px 22px 0; }
.lot-passport-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-left: 4px solid var(--brand); padding-left: 12px; }
.lot-passport-heading h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.lot-passport-heading .badge { font-size: 12px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.lot-passport-price { display: grid; gap: 8px; margin: 18px 0 14px; font-variant-numeric: tabular-nums; }
.lot-passport-price > strong { font-size: 34px; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; overflow-wrap: anywhere; }
.lot-passport-price > span { color: #858b94; font-size: 16px; }
.lot-passport-summary { display: grid; grid-template-columns: repeat(var(--facts), minmax(0, 1fr)); margin: 0; padding: 22px 0 4px; border-top: 1px solid var(--line); }
.lot-passport-summary > div { display: flex; flex-direction: column; min-width: 0; padding-left: 15px; border-left: 1px solid var(--line); }
.lot-passport-summary > div:first-child { padding-left: 0; border-left: 0; }
.lot-passport-summary dd { order: -1; margin: 0; font-size: 21px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.025em; }
.lot-passport-summary dt { margin-top: 6px; color: #777f8a; font-size: 13px; }
.lot-passport-icon { width: 22px; height: 22px; object-fit: contain; flex: none; }
.lot-passport-location { display: flex; align-items: flex-start; gap: 13px; margin: 25px -10px 18px; padding: 16px; border-radius: 6px; background: #f3f5f7; }
.lot-passport-location > .lot-passport-icon { width: 22px; height: 22px; margin-top: 1px; }
.lot-passport-location > div { min-width: 0; }
.lot-passport-location h4 { margin: 0 0 6px; color: #777f8a; font-size: 12px; line-height: 1.2; font-weight: 650; text-transform: uppercase; letter-spacing: .025em; }
.lot-passport-location p { font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; letter-spacing: -.02em; }
.lot-passport-location small { display: block; margin-top: 7px; color: #737b86; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lot-passport-data h4, .lot-passport-management h4 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.lot-passport-data > dl { margin: 0; }
.lot-passport-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lot-passport-row:last-child { border-bottom: 0; }
.lot-passport-row dt { display: flex; align-items: center; gap: 12px; color: #676e78; font-size: 14px; }
.lot-passport-row dt .lot-passport-icon { width: 21px; height: 21px; opacity: .5; }
.lot-passport-row dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.lot-upload { grid-column: 1 / -1; justify-self: start; margin: 0 0 0 33px; padding: 2px 0; border: 0; background: transparent; color: var(--brand); font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.lot-upload:hover { color: var(--brand-dark); }
.lot-passport-data .lot-plan { margin: 14px 0 0; border-color: var(--line); border-radius: 4px; }
.lot-passport-data .lot-plan img { max-height: 300px; }
.lot-plan-link { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 0; font-size: 13px; }
.lot-passport-data .feature-chips { margin-top: 12px; }
.lot-passport-data .lot-deal { margin-top: 12px; font-size: 12px; }
.lot-passport-sale-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lot-passport-sale-actions .button { flex: 1 1 150px; font-size: 13px; }
.lot-passport-hint { margin-top: 16px; padding: 11px 12px; border-left: 2px solid #d7dce3; background: #f6f7f9; color: #7b838e; font-size: 12px; line-height: 1.55; }
.lot-passport-management { margin-top: 20px; padding: 16px 22px 24px; border-top: 1px solid var(--line); }
.lot-passport-management h4 { margin-bottom: 8px; }
.lot-management-action { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 48px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.lot-management-action > .icon { margin-left: auto; width: 16px; height: 16px; color: #737b86; }
.lot-management-action:hover { background: #faf5f1; color: var(--brand-dark); }
.lot-management-action:focus-visible { outline-offset: -2px; }
.lot-passport-location > .lot-passport-icon, .lot-management-action > .lot-passport-icon, dialog.lot-panel .dialog-title > .lot-passport-icon { filter: invert(32%) sepia(93%) saturate(1789%) hue-rotate(352deg) brightness(88%) contrast(99%); }
@media (max-width: 480px) {
  dialog.lot-panel { height: 100dvh; }
  dialog.lot-panel .dialog-head { min-height: 60px; padding: 12px 20px; }
  .lot-passport-content { padding: 22px 20px 0; }
  .lot-passport-management { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .lot-passport-heading h3 { font-size: 20px; }
  .lot-passport-price > strong { font-size: 28px; }
  .lot-passport-summary dd { font-size: 18px; }
  .lot-passport-summary > div { padding-left: 10px; }
  .lot-passport-row { column-gap: 8px; }
  .lot-passport-row dt, .lot-passport-row dd { font-size: 12px; }
}

/* The open passport already shows the selected lot, so the bottom summary bar would only repeat it. */
body:has(dialog.lot-panel[open]) .lot-inspector { display: none; }
body:has(dialog.lot-panel[open]) .catalog-workspace.has-inspector { padding-bottom: 28px; }
