.oc-owner {
  --owner-paper: #fffcf6;
  --owner-tint: #f2eadb;
  --owner-line: #cdb894;
  --owner-grid: #e6d8c0;
  --owner-ink: #2b1e16;
  --owner-muted: #6f5c4b;
  --owner-gold: #876629;
  --owner-marker: #000;
  color: var(--owner-ink);
  font: 400 14px/1.5 var(--sans, Arial, sans-serif);
  font-variant-numeric: tabular-nums;
}

.oc-owner [hidden] { display: none !important; }
.oc-owner :is(button, a, input, .oc-owner__canvas):focus-visible { outline: 2px solid var(--owner-gold); outline-offset: 3px; }
.oc-owner :is(button, a) { touch-action: manipulation; }
.oc-owner :is(p, strong, dd) { overflow-wrap: anywhere; }

.oc-owner__form { display: grid; gap: 6px; margin-bottom: 18px; }
.oc-owner__form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-owner__form label, .oc-owner__price label { font-weight: 600; }
.oc-owner__form input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--owner-line);
  border-radius: 0;
  color: var(--owner-ink);
  background: var(--owner-paper);
  font: inherit;
}
.oc-owner__form input { width: min(100%, 16rem); font-size: 16px; }
.oc-owner__form input[aria-invalid="true"] { border-color: #97382e; }
.oc-owner__form button {
  min-height: 44px;
  padding: 8px 16px;
  background: var(--owner-ink);
  color: var(--owner-paper);
  font-weight: 600;
}
.oc-owner__form button:hover:enabled { background: #4a382c; }
.oc-owner__form button:disabled { opacity: .65; cursor: wait; }
.oc-owner__status { margin-block: 12px; color: var(--owner-muted); }
.oc-owner__status[data-error] { color: #97382e; }
.oc-owner__status:empty, .oc-owner__notice:empty { margin: 0; }
.bg-choc .oc-owner__form label, .bg-choc .oc-owner__status { color: #f7f2e9; }
.bg-choc .oc-owner__status[data-error] { color: #ffb8ab; }
.bg-choc .oc-owner__form button { border: 1px solid var(--owner-line); }

.oc-owner__panel { background: var(--owner-paper); border: 1px solid var(--owner-line); }
.oc-owner__price { padding: 16px clamp(12px, 3vw, 24px) 12px; background: var(--owner-tint); }
.oc-owner__price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 18px; }
.oc-owner__price-value { font: 600 clamp(24px, 4vw, 36px)/1.1 var(--serif, Georgia, serif); }
.oc-owner__range { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--owner-gold); cursor: pointer; }
.oc-owner .oc-owner__range:focus-visible { outline-offset: -2px; }
.oc-owner__range:disabled { cursor: default; opacity: .55; }
.oc-owner__range-bounds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3px 12px; }
.oc-owner__range-bounds span:nth-child(2) { text-align: center; }
.oc-owner__range-bounds span:last-child { text-align: end; }
.oc-owner__range:disabled + .oc-owner__range-bounds { display: block; }
.oc-owner__range-bounds, .oc-owner__notice { color: var(--owner-muted); font-size: 13px; }
.oc-owner__rating { margin: 8px 0 0; color: var(--owner-ink); font-size: 13px; }
.oc-owner__rating strong { font-weight: 700; }
.oc-owner__rating span:last-child { color: var(--owner-muted); }
.oc-owner__plot { padding: 12px clamp(8px, 1.5vw, 20px) 0; }
.oc-owner__districts { margin: 0 4px 8px; color: var(--owner-muted); font-size: 13px; }
.oc-owner__districts strong { color: var(--owner-ink); font-weight: 600; }
.oc-owner__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 36px 8px 4px; }
.oc-owner__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 20px; flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--owner-muted); }
.oc-owner__legend span { display: inline-flex; align-items: center; gap: 7px; }
.oc-owner__legend-subject { color: var(--owner-ink); font-weight: 600; }
.oc-owner__legend-subject i { flex: none; width: 14px; height: 14px; border: 1px dashed var(--owner-marker); border-radius: 50%; }
.oc-owner__legend .oc-owner__legend-dots { display: inline-flex; align-items: center; gap: 4px; }
.oc-owner__legend-dots i { display: block; flex: none; border-radius: 50%; background: rgba(47, 140, 100, .3); border: 1px solid rgba(47, 140, 100, .55); }
.oc-owner__legend-dots i:nth-child(1) { width: 7px; height: 7px; }
.oc-owner__legend-dots i:nth-child(2) { width: 11px; height: 11px; }
.oc-owner__legend-dots i:nth-child(3) { width: 15px; height: 15px; }
.oc-owner__legend-scale { flex: none; width: 92px; height: 9px; border: 1px solid var(--owner-line); border-radius: 5px; background: linear-gradient(90deg, #b23a3a, #d35a3f, #e58a4e, #edb566, #e8d58a, #b9d58c, #86c27e, #55a86f, #2f8c64, #1c6b55); }
.oc-owner__notice { margin: 6px 4px 0; }
.oc-owner__graph { position: relative; }
.oc-owner__zoom { display: flex; flex: none; gap: 6px; margin-left: auto; }
.oc-owner__zoom button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--owner-gold);
  border-radius: 0;
  background: var(--owner-gold);
  color: #fff8ec;
  font: 600 16px/1 var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.oc-owner__zoom button:hover:enabled { background: #6a4f1f; border-color: #6a4f1f; }
.oc-owner__zoom button:disabled { background: var(--owner-paper); color: var(--owner-gold); opacity: .55; cursor: default; }
.oc-owner__zoom .oc-owner__zoom-reset { min-width: 54px; font-size: 12px; letter-spacing: .02em; background: var(--owner-paper); color: var(--owner-gold); }
.oc-owner__zoom .oc-owner__zoom-reset:hover:enabled { background: var(--owner-tint); color: var(--owner-ink); }
@media (hover: none) {
  .oc-owner__zoom { gap: 5px; }
  .oc-owner__zoom button { min-width: 34px; height: 32px; padding: 0 8px; font-size: 15px; }
  .oc-owner__zoom .oc-owner__zoom-reset { min-width: 48px; font-size: 12px; }
}
.oc-owner__canvas { width: 100%; height: 560px; touch-action: pan-y; }
.oc-owner__canvas--pan { touch-action: none; }
.oc-owner__canvas--pan canvas { cursor: grab !important; }
.oc-owner__canvas--grabbing { user-select: none; }
.oc-owner__canvas--grabbing canvas { cursor: grabbing !important; }
.oc-owner__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.oc-owner__pulse {
  position: absolute;
  width: var(--owner-pulse-size);
  height: var(--owner-pulse-size);
  border: 1.5px solid var(--owner-marker);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .oc-owner__pulse { animation: oc-owner-subject-pulse 1.6s ease-out infinite; }
  .oc-owner__pulse::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1.5px solid var(--owner-marker);
    border-radius: 50%;
    animation: oc-owner-subject-pulse-inner 1.6s ease-out infinite;
    animation-delay: .53s;
  }
}
@keyframes oc-owner-subject-pulse {
  0%, 22% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  38% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}
@keyframes oc-owner-subject-pulse-inner {
  0%, 22% { opacity: 0; transform: scale(1); }
  38% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.4); }
}

.oc-owner__list { padding: 14px clamp(12px, 3vw, 24px) 16px; border-top: 1px solid var(--owner-grid); }
.oc-owner__listing { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.oc-owner__listing img { width: min(29%, 144px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; flex: none; }
.oc-owner__listing-info { min-width: 0; }
.oc-owner__listing strong { display: block; font-size: 16px; }
.oc-owner__listing dl { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0; }
.oc-owner__listing dt { font-size: 12px; color: var(--owner-muted); }
.oc-owner__listing dd { margin: 0; font-weight: 600; }
.oc-owner__listing a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--owner-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oc-owner__listing a:hover { color: var(--owner-ink); }
.oc-owner__tip {
  display: block;
  width: min(228px, 66vw);
  white-space: normal;
  color: var(--owner-ink);
}
.oc-owner__tip img { width: 100%; height: 96px; margin-bottom: 6px; }
.oc-owner__tip dl { gap: 3px 12px; }
.oc-owner__tip a { min-height: 28px; }
.oc-owner__cta { display: flex; justify-content: center; margin: 24px 0 4px; }

@media (max-width: 640px) {
  .oc-owner__canvas { height: 420px; }
  .oc-owner__plot { padding-inline: 6px; }
  .oc-owner__toolbar { padding-right: 22px; }
  .oc-owner__legend { flex: 1 1 100%; }
  .oc-owner__range-bounds { grid-template-columns: 1fr 1fr; }
  .oc-owner__range-bounds span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .oc-owner__list .oc-owner__listing { flex-direction: column; align-items: stretch; gap: 10px; }
  .oc-owner__list .oc-owner__listing img { width: min(100%, 20rem); margin-inline: auto; }
  .oc-owner__list .oc-owner__listing dl { display: grid; gap: 0; margin: 8px 0 0; }
  .oc-owner__list .oc-owner__listing dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--owner-grid); }
  .oc-owner__list .oc-owner__listing dl > div:first-child { padding-top: 0; border-top: 0; }
  .oc-owner__list .oc-owner__listing dl dd { text-align: right; }
  .oc-owner__cta { margin-top: 18px; }
  .oc-owner__cta .btn { width: 100%; }
}

@media (max-width: 450px) {
  .oc-owner__form input { width: 100%; }
}
