.address-summary-page {
  overflow: hidden;
  color: var(--fc-text);
  background: #e9efeb;
  font-family: var(--font-sans);
}

.address-summary-page button,
.address-summary-page input {
  font-family: var(--font-sans);
}

.address-summary-page .address-summary-app {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #e9efeb;
}

.address-summary-page .address-back {
  color: var(--fc-label);
  background: rgba(255, 255, 255, .96);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1;
  text-decoration: none;
}

.address-summary-page .address-search input {
  color: var(--fc-text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
}

.address-summary-page .address-search.locked input {
  color: var(--fc-sub);
}

.address-summary-page .address-search button {
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
}

.address-summary-page .map-hint {
  color: var(--fc-accent);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
}

/* 요약 외 탭에서는 수정할 수 없는 주소창을 없애고, 탭 안내를 그 자리에 둔다. */
.address-summary-page .topbar.context-only .map-hint {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
}

.address-summary-page .bottom-sheet {
  font-family: var(--font-sans);
}

.address-summary-page .bottom-sheet.address-summary-active .sheet-scroll {
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.address-loading {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 122, 80, .13);
  border-radius: 999px;
  color: var(--fc-label);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 7px 22px rgba(24, 53, 40, .13);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.address-loading[hidden] { display: none; }

.address-loading span {
  width: 16px;
  height: 16px;
  border: 2px solid #b9d8c9;
  border-top-color: #087653;
  border-radius: 50%;
  animation: address-spin .75s linear infinite;
}

.address-loading b {
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  white-space: nowrap;
}

@keyframes address-spin { to { transform: rotate(360deg); } }

.dealcheck-map-loading {
  position: absolute;
  z-index: 34;
  top: var(--dealcheck-loading-top, 25dvh);
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: min(calc(100% - 48px), 430px);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 91, 66, .2);
  border-radius: 17px;
  color: var(--fc-text);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(17, 53, 38, .18);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.dealcheck-map-loading[hidden] { display: none; }

.dealcheck-loading-spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #c7dfd3;
  border-top-color: var(--fc-accent);
  border-radius: 50%;
  animation: address-spin .78s linear infinite;
}

.dealcheck-map-loading div { min-width: 0; }

.dealcheck-map-loading small {
  display: block;
  margin-bottom: 2px;
  color: var(--fc-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-strong);
  letter-spacing: .04em;
}

.dealcheck-map-loading b {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  line-height: 1.35;
}

.dealcheck-map-loading p {
  margin-top: 3px;
  color: var(--fc-label);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.address-summary-page .bottom-sheet.sheet-half {
  height: min(54dvh, 590px);
}

.address-summary-page .bottom-sheet.sheet-full {
  height: calc(100dvh - 58px - env(safe-area-inset-top));
}

.address-summary-page .summary-target-icon {
  position: relative;
  width: 25px;
  height: 25px;
  font-family: var(--font-sans);
}

.address-summary-page .summary-target-marker {
  width: 25px;
  height: 25px;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #087653;
  box-shadow: 0 3px 10px rgba(9, 65, 45, .3);
  transform: rotate(-45deg);
}

.address-summary-page .summary-target-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #fff;
  transform: translate(-50%, -50%);
}

.address-summary-page .summary-target-callout {
  position: absolute;
  bottom: 41px;
  left: 50%;
  width: 344px;
  padding: 12px 36px 11px 13px;
  border: 1px solid #cdded5;
  border-radius: 14px;
  color: var(--fc-text);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 7px 22px rgba(20, 52, 39, .18);
  box-sizing: border-box;
  line-height: 1.35;
  pointer-events: none;
  text-align: left;
  transform: translateX(-50%);
  white-space: normal;
}

.address-summary-page .summary-target-callout-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(8, 118, 83, .16);
  border-radius: 50%;
  color: #526a5f;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 7px rgba(28, 61, 47, .12);
  pointer-events: auto;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.address-summary-page .summary-target-callout-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.address-summary-page .summary-target-callout-close:hover {
  border-color: rgba(8, 118, 83, .28);
  color: var(--fc-accent);
  background: #f4faf7;
  box-shadow: 0 3px 9px rgba(28, 61, 47, .16);
  transform: translateY(-1px);
}

.address-summary-page .summary-target-callout-close:active {
  box-shadow: 0 1px 3px rgba(28, 61, 47, .12);
  transform: translateY(0) scale(.94);
}

.address-summary-page .summary-target-callout-close:focus-visible {
  outline: 2px solid rgba(8, 118, 83, .32);
  outline-offset: 2px;
}

.address-summary-page .summary-target-callout::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid #cdded5;
  border-bottom: 1px solid #cdded5;
  content: "";
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.summary-target-callout-desktop,
.summary-target-callout-mobile {
  display: grid;
}

.summary-target-callout-desktop { gap: 2px; }
.summary-target-callout-mobile { display: none; }
.summary-target-profile-tablet { display: none; }

.summary-target-callout-desktop strong {
  margin-bottom: 4px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-title);
}

.summary-target-callout-desktop span {
  color: var(--fc-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: 1.4;
}

.summary-target-callout p {
  margin: 8px -36px -11px -13px;
  padding: 8px 13px 9px;
  border-radius: 0 0 13px 13px;
  color: #2c4137;
  background: #f3f8f5;
  font-size: var(--fs-md);
  font-weight: var(--fw-value);
  letter-spacing: -.01em;
  line-height: 1.5;
}

.address-summary-page .summary-radius-label {
  padding: 5px 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 91, 66, .9);
  box-shadow: 0 2px 7px rgba(20, 35, 28, .2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-strong);
  white-space: nowrap;
}

.summary-stat-map-bubble {
  width: 152px;
  padding: 8px 10px;
  border: 2px solid #fff;
  border-radius: 13px;
  color: #fff;
  background: rgba(7, 91, 66, .94);
  box-shadow: 0 4px 14px rgba(13, 50, 37, .24);
  font-family: var(--font-sans);
  text-align: center;
  white-space: nowrap;
}

.summary-stat-map-bubble strong,
.summary-stat-map-bubble b,
.summary-stat-map-bubble small {
  display: block;
}

.summary-stat-map-bubble strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-strong);
}

.summary-stat-map-bubble b {
  margin-top: 2px;
  font-size: var(--fs-md);
  font-weight: var(--fw-strong);
}

.summary-stat-map-bubble small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.address-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.address-summary-head > div { min-width: 0; }

.address-dealcheck-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-dealcheck-header-actions[hidden] { display: none; }

.address-dealcheck-header-actions .valuation-actions {
  display: flex;
  width: auto;
  align-items: center;
  gap: 6px;
}

.address-dealcheck-header-actions .icon-button {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
}

.address-dealcheck-header-actions .icon-button[hidden] { display: none; }

.address-summary-page.address-dealcheck-valuation-active .address-summary-head { gap: 6px; }
.address-summary-page.address-dealcheck-valuation-active .address-summary-head > div:first-child { margin-right: auto; }

.address-summary-page.address-dealcheck-valuation-active .summary-favorite {
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
}

.address-summary-page.address-dealcheck-valuation-active .summary-favorite span { display: none; }

.address-summary-kicker {
  margin: 0 0 3px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-title);
}

.address-summary-title {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-xl);
  font-weight: var(--fw-strong);
  letter-spacing: -.045em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.address-summary-subtitle {
  margin: 5px 0 0;
  color: var(--fc-sub);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}

.summary-favorite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d9e4de;
  border-radius: 999px;
  color: var(--fc-text);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
}

.summary-favorite[aria-pressed="true"] {
  border-color: #add2bf;
  color: var(--fc-accent);
  background: #eaf6f0;
}

.summary-favorite svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.summary-favorite[aria-pressed="true"] svg { fill: currentColor; }

.address-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0 -2px 12px;
  padding: 2px;
  border: 1px solid #d6e5dd;
  border-radius: 11px;
  background: #eff7f3;
  box-shadow: 0 3px 10px rgba(31, 62, 48, .07);
}

/* 고정 탭 위의 얇은 틈으로 스크롤된 본문이 비치지 않게 시트 배경으로 막는다. */
.address-tabs::before {
  position: absolute;
  right: -3px;
  bottom: 100%;
  left: -3px;
  height: 10px;
  content: "";
  background: #fff;
  pointer-events: none;
}

.address-tab {
  min-width: 0;
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  color: var(--fc-label);
  background: transparent;
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.address-tab:focus-visible {
  outline: 3px solid rgba(7, 91, 66, .22);
  outline-offset: 1px;
}

.address-tab.active {
  color: #fff;
  background: var(--fc-accent);
  box-shadow: 0 2px 7px rgba(7, 91, 66, .2);
  font-weight: var(--fw-strong);
}

.address-tab-panel[hidden] { display: none; }

.summary-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 2px 13px;
}

.summary-panel-head p {
  margin: 0 0 3px;
  color: var(--fc-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-title);
}

.summary-panel-head h2 {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-xl);
  font-weight: var(--fw-strong);
  letter-spacing: -.035em;
}

.summary-panel-head > span {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  text-align: right;
}

#summaryStatsPanel .summary-panel-head > span {
  color: var(--fc-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  white-space: nowrap;
}

.summary-stats-scope-guide {
  margin: -2px 2px 12px;
  padding: 9px 11px;
  border: 1px solid #d7e5de;
  border-radius: 11px;
  color: var(--fc-sub);
  background: #f8fbf9;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.summary-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-panel-metrics > div,
.summary-stats-grid > div {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  background: #f8fbf9;
}

.summary-panel-metrics span,
.summary-stats-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--fc-label);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.summary-panel-metrics strong,
.summary-stats-grid strong {
  display: block;
  color: var(--fc-text);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#summaryDealsPanelMedian,
#summaryDealsPanelRange {
  line-height: 1.3;
  overflow-wrap: normal;
  white-space: nowrap;
}

.summary-stats-grid small {
  display: block;
  margin-top: 5px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: 1.35;
}

.summary-panel-guide {
  margin: 11px 2px 12px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: 1.55;
}

.summary-deal-list {
  display: grid;
  gap: 8px;
}

/* 주소 요약의 실거래 탭도 사이트 공통 글자 기준을 그대로 쓴다.
   주소·가격 위계는 기존 실거래 카드와 맞추고 숫자 전용 서체는 사용하지 않는다. */
#summaryDealsPanel {
  color: var(--fc-text);
  font-family: var(--font-sans);
}

#summaryDealsPanel .summary-panel-head p {
  color: var(--fc-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-title);
}

#summaryDealsPanel .summary-panel-head h2 {
  color: var(--fc-text);
  font-size: var(--fs-xl);
  font-weight: var(--fw-strong);
}

#summaryDealsPanel .summary-panel-head > span,
#summaryDealsPanel .summary-panel-guide {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

#summaryDealsPanel .summary-panel-metrics span {
  color: var(--fc-label);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

#summaryDealsPanel .summary-panel-metrics strong {
  color: var(--fc-text);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
}

.summary-deal-row {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #e0e7e3;
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.summary-deal-row.active {
  border-color: #8ac2a8;
  background: #f0f8f4;
  box-shadow: 0 0 0 2px rgba(7, 91, 66, .06);
}

.summary-deal-row:focus-visible {
  outline: 3px solid rgba(7, 91, 66, .2);
  outline-offset: 2px;
}

.summary-deal-row .case-card-body { margin-left: 0; }

.summary-deal-row .case-deal > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-deal-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #63716a;
  font-size: var(--fs-xs);
  font-weight: var(--fw-strong);
  font-family: var(--font-sans);
}

.summary-deal-map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 9px;
  border-radius: 13px;
  color: #fff;
  background: #5c6b63;
  font-size: var(--fs-xs);
  font-weight: var(--fw-strong);
  font-family: var(--font-sans);
  white-space: nowrap;
  letter-spacing: -.01em;
}

.summary-deal-map-marker {
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(20, 35, 28, .28);
  cursor: pointer;
}

.summary-deal-row.active .summary-deal-number,
.summary-deal-row.active .case-number,
.summary-deal-map-marker.active {
  background: #c77716;
}

.summary-deal-map-marker.active {
  transform: scale(1.1);
}

/* 사례가 많고 줌이 넓을 때는 번호 대신 가벼운 점으로 표시한다. */
.summary-deal-map-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.summary-deal-map-dot i {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #747d79;
  opacity: .75;
  box-shadow: 0 1px 4px rgba(14, 30, 23, .3);
}

.summary-deal-cluster-marker {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(99, 113, 106, .92);
  box-shadow: 0 3px 10px rgba(20, 35, 28, .24);
  font-family: var(--font-sans);
  line-height: 1;
}

.summary-deal-cluster-marker b {
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
}

.summary-deal-cluster-marker small {
  margin-top: -4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-title);
}

.summary-deal-place,
.summary-deal-price { min-width: 0; }

.summary-deal-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.summary-deal-title strong { min-width: 0; }

.summary-deal-title em {
  flex: none;
  max-width: 84px;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 5px;
  color: var(--fc-accent);
  background: #e8f4ee;
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: var(--fw-title);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-deal-place strong,
.summary-deal-price strong {
  display: block;
  overflow: hidden;
  color: var(--fc-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-deal-place strong {
  font-size: var(--fs-lg);
  font-weight: var(--fw-title);
}

.summary-deal-price strong {
  color: var(--fc-accent);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
  letter-spacing: -.035em;
}

.summary-deal-place small,
.summary-deal-price small {
  display: block;
  margin-top: 4px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  white-space: nowrap;
}

.summary-deal-price small {
  color: var(--fc-accent);
  font-weight: var(--fw-title);
}

.summary-deal-facts {
  grid-column: 2 / -1;
  min-width: 0;
  overflow: hidden;
  color: #40514a;
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-deal-price { text-align: right; }

.summary-panel-empty {
  grid-column: 1 / -1;
  padding: 22px 14px;
  border: 1px dashed #d8e2dc;
  border-radius: 14px;
  color: var(--fc-sub);
  background: #fafcfb;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  text-align: center;
}

.summary-trend {
  margin-top: 15px;
  padding: 14px 13px 12px;
  border: 1px solid #e0e7e3;
  border-radius: 15px;
  background: #fff;
}

.summary-trend > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.summary-trend h3 {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-strong);
}

.summary-trend > div:first-child span {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
}

.summary-trend-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  min-height: 120px;
  margin-top: 13px;
}

.summary-trend-item {
  display: grid;
  grid-template-rows: 18px 76px 18px;
  align-items: end;
  height: 112px;
  text-align: center;
}

.summary-trend-item b,
.summary-trend-item small {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.summary-trend-item span {
  width: 100%;
  min-height: 6px;
  border-radius: 4px 4px 1px 1px;
  background: #76ad94;
}

.summary-stats-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.summary-highlight {
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  color: var(--fc-label);
  background: #eef6f2;
}

.summary-highlight span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.summary-highlight strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--fc-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-highlight small {
  display: block;
  margin-top: 2px;
  color: var(--fc-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-value);
}

.summary-recent-price {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #e4ebe7;
  border-radius: 11px;
  background: #e4ebe7;
}

.summary-recent-price-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  background: #f8fbf9;
}

.summary-recent-price-row span,
.summary-recent-price-row small {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.summary-recent-price-row strong {
  color: var(--fc-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
}

.summary-breakdown-section {
  margin-top: 12px;
  padding: 14px 13px;
  border: 1px solid #e0e7e3;
  border-radius: 15px;
  background: #fff;
}

.summary-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-breakdown-head h3 {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-strong);
}

.summary-breakdown-head span {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.summary-breakdown-list {
  display: grid;
  gap: 10px;
}

.summary-breakdown-row {
  display: grid;
  grid-template-columns: minmax(82px, .8fr) minmax(90px, 1.2fr) auto;
  gap: 9px;
  align-items: center;
}

.summary-breakdown-label {
  min-width: 0;
}

.summary-breakdown-label strong,
.summary-breakdown-value strong {
  display: block;
  overflow: hidden;
  color: var(--fc-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-breakdown-label small {
  display: block;
  margin-top: 2px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  white-space: nowrap;
}

.summary-breakdown-value small {
  display: block;
  margin-top: 2px;
  color: #40514a;
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  white-space: nowrap;
}

.summary-breakdown-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8efeb;
}

.summary-breakdown-track i {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: #62a585;
}

.summary-breakdown-value {
  min-width: 72px;
  text-align: right;
}

.summary-breakdown-value strong {
  color: var(--fc-accent);
}

.summary-stats-definition {
  margin: 12px 2px 4px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: 1.55;
}

.subject-summary-card {
  padding: 15px;
  border: 1px solid #cfe1d8;
  border-radius: 17px;
  background: #f8fbf9;
}

.subject-summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid #d7e5de;
}

.subject-summary-card-head h3 {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
}

.subject-summary-card-head span {
  color: var(--fc-label);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}

.subject-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 12px;
}

.subject-summary-item { min-width: 0; }

.subject-summary-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--fc-label);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}

.subject-summary-item b {
  display: block;
  overflow: hidden;
  color: var(--fc-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-value);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-market-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 17px 2px 9px;
}

.summary-market-heading h3 {
  margin: 0;
  color: var(--fc-text);
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
}

.summary-market-heading span {
  color: var(--fc-label);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}

.summary-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.summary-market-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e0e7e3;
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.summary-market-card-head {
  margin-bottom: 11px;
}

.summary-market-card-head b {
  display: block;
  color: var(--fc-text);
  font-size: var(--fs-num);
  font-weight: var(--fw-title);
}

.summary-market-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.summary-market-conditions span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  color: var(--fc-accent);
  background: #eef7f2;
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  line-height: 1.3;
  white-space: nowrap;
}

.summary-market-value {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-height: 28px;
  color: var(--fc-text);
}

.summary-market-value strong {
  display: inline-block;
  flex: none;
  font-size: var(--fs-xl);
  font-weight: var(--fw-strong);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.summary-market-value b {
  display: inline-block;
  min-width: 0;
  margin-top: 0;
  font-size: var(--fs-num);
  font-weight: var(--fw-strong);
  line-height: 1.25;
  white-space: nowrap;
}

.summary-market-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 90px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #edf1ef;
}

.summary-market-details div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfeae4;
  border-radius: 9px;
  background: #eef5f1;
}

.summary-market-details span {
  display: block;
  color: var(--fc-label);
  font-size: var(--fs-sm);
  font-weight: var(--fw-value);
}

.summary-market-details b {
  display: block;
  margin-top: 2px;
  overflow: visible;
  color: var(--fc-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.summary-market-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 2px 0;
  border: 0;
  border-top: 1px solid #edf1ef;
  color: var(--fc-accent);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  text-align: left;
  cursor: pointer;
}

.summary-market-link:focus-visible {
  outline: 3px solid rgba(7, 91, 66, .2);
  outline-offset: 2px;
}

.summary-market-card.loading .summary-market-value,
.summary-market-card.loading .summary-market-details {
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(90deg, #eef3f0 25%, #f8faf9 50%, #eef3f0 75%);
  background-size: 200% 100%;
  animation: address-summary-loading 1.15s ease-in-out infinite;
}

@keyframes address-summary-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* 주소 흐름 안의 딜체크는 본 메뉴와 같은 카드·버튼을 사용하되,
   고정 주소 탭 아래에서 자연스럽게 이어지도록 여백과 글꼴만 맞춘다. */
.address-dealcheck-panel {
  position: static;
  min-height: 100%;
  padding: 0 2px 76px;
  color: var(--fc-text);
  font-family: var(--font-sans);
}

.address-dealcheck-panel .view-heading h2,
.address-dealcheck-panel h3 { font-family: var(--font-sans); }

.dealcheck-case-heading {
  margin-bottom: 8px;
}

.dealcheck-case-guide {
  margin: 0 0 13px;
  color: var(--fc-label);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.55;
}

.dealcheck-case-conditions {
  padding: 13px;
  border: 1px solid #cfe1d8;
  border-radius: 15px;
  background: #f7fbf9;
}

.dealcheck-condition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2px 12px;
  margin-bottom: 11px;
}

.dealcheck-condition-head h3 {
  color: var(--fc-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-title);
}

.dealcheck-condition-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--fc-label);
  font-size: var(--fs-xs);
  line-height: 1.45;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.dealcheck-condition-head > span {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--fc-accent);
  background: #eaf5ef;
  font-size: var(--fs-xs);
  font-weight: var(--fw-title);
}

.dealcheck-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dealcheck-condition-grid .field { min-width: 0; }

.dealcheck-condition-grid .field > span {
  color: var(--fc-label);
  font-size: var(--fs-sm);
  font-weight: var(--fw-value);
}

.dealcheck-condition-grid .field small {
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.dealcheck-search-again {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
  border: 1px solid #b8d8c8;
  border-radius: 11px;
  color: var(--fc-accent);
  background: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  cursor: pointer;
}

.dealcheck-search-again:disabled { cursor: wait; opacity: .65; }

.address-dealcheck-panel .selection-bar span small {
  margin-left: 5px;
  color: var(--fc-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
}

.address-dealcheck-panel .cards { padding-bottom: 128px; }

#addressDealcheckValuation { padding-bottom: 128px; }

.address-dealcheck-panel .sticky-action,
.address-dealcheck-panel .valuation-sticky-action {
  position: absolute;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding-top: 8px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  padding-left: 16px;
  padding-right: 16px;
  background: linear-gradient(transparent, #fff 22%);
  pointer-events: none;
}

.address-dealcheck-panel .sticky-action button,
.address-dealcheck-panel .valuation-sticky-action button { pointer-events: auto; }

.address-dealcheck-panel .case-map-marker { font-family: var(--font-sans); }

.address-dealcheck-panel .dealcheck-reselect-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-right: 0;
  padding: 0 11px;
  color: var(--fc-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  white-space: nowrap;
}

.address-dealcheck-panel .dealcheck-reselect-button b {
  display: inline;
  font: inherit;
}

/* 항목은 읽히는 진회색·보통 굵기, 값은 검정·강한 굵기로 위계를 나눈다. */
.address-dealcheck-panel .why .reason > span {
  color: var(--fc-label);
  font-weight: var(--fw-regular);
  opacity: 1;
}

.address-dealcheck-panel .why .reason b {
  color: var(--fc-text);
  font-weight: var(--fw-strong);
  opacity: 1;
}

.address-dealcheck-panel .why .reason:last-child b {
  color: var(--fc-accent);
}

.address-dealcheck-panel .empty-cases {
  display: grid;
  gap: 7px;
  padding: 22px 15px;
  border: 1px dashed #cad8d0;
  border-radius: 15px;
  color: var(--fc-label);
  background: #fafcfb;
  text-align: center;
}

.address-dealcheck-panel .empty-cases b { color: var(--fc-text); }

.address-dealcheck-panel .empty-cases button {
  justify-self: center;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid #b9d8c9;
  border-radius: 10px;
  color: var(--fc-accent);
  background: #fff;
  font-weight: var(--fw-title);
}

.address-dealcheck-panel .case-calculation { cursor: pointer; }
.address-dealcheck-panel .case-calculation.focused { border-color: #6eb696; background: #eff9f3; }

@media (min-width: 521px) and (max-width: 1366px) {
  .summary-target-profile-wide { display: none; }
  .summary-target-profile-tablet { display: block; }
}

@media (max-width: 520px) {
  .address-summary-page .bottom-sheet.sheet-half { height: min(56dvh, 570px); }

  .address-summary-page .summary-target-callout { display: none; }

  .subject-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .summary-market-grid { grid-template-columns: 1fr; }

  .summary-stats-highlights { grid-template-columns: 1fr; }

  .dealcheck-condition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dealcheck-condition-grid .price-field { grid-column: 1 / -1; }

  .summary-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
  }

  .summary-highlight strong { grid-row: 2; }
  .summary-highlight small { grid-column: 2; grid-row: 1 / span 2; }

  .summary-breakdown-row {
    grid-template-columns: minmax(76px, .78fr) minmax(68px, 1fr) auto;
    gap: 7px;
  }

  .subject-summary-item b {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .summary-market-details { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .address-loading span { animation: none; }

  .summary-market-card.loading .summary-market-value,
  .summary-market-card.loading .summary-market-details { animation: none; }
}

/* (옛 주소 데스크톱 @900 시트 높이(50dvh) 규칙은 제거. ≥1100 새 사이드 시트가
   전체 높이로 대체하고, 1100 미만은 모바일 시트 높이를 쓴다.) */

/* 사례 교체: 카드 색상 체계 안에서 진한 초록 테두리로 구분한다. */
.address-dealcheck-panel .case-card.replacement-target { border-color: #3f9571; background: #f0f8f4; box-shadow: 0 0 0 2px rgba(20,122,80,.12); }

/* 대상지 확정 실패 시 요약 탭 행동 유도 빈 상태 */
.summary-fail-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px 22px; }
.summary-fail-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #e8f2ec; }
.summary-fail-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--fc-accent); stroke-width: 1.6; }
.summary-fail-icon svg .fill { fill: var(--fc-accent); stroke: none; }
.summary-fail-state h3 { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: var(--fw-title); color: var(--fc-text); }
.summary-fail-state p { margin: 0; max-width: 20em; font-size: var(--fs-sm); color: var(--fc-sub); line-height: 1.55; }
.summary-fail-actions { display: flex; gap: 10px; width: 100%; max-width: 360px; margin-top: 6px; }
.summary-fail-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid #cdd8d2; background: #fff; color: var(--fc-text); font-size: var(--fs-sm); font-weight: var(--fw-value); line-height: 1.25; cursor: pointer; }
.summary-fail-btn--accent { border-color: var(--fc-accent); background: var(--fc-accent); color: #fff; }
.summary-fail-btn:active { transform: translateY(1px); }
.summary-fail-area { margin-top: 2px; padding: 8px 4px; border: 0; background: none; color: var(--fc-accent); font-size: var(--fs-sm); font-weight: var(--fw-value); cursor: pointer; }

/* 실거래 지도 평당가/총액 토글 버튼(본 메뉴 실거래 이식) */
.map-tool.price-tool b { font-size: 15px; font-weight: 900; font-style: normal; line-height: 1; }

/* 모바일·태블릿 바텀시트에서는 기존처럼 탭만 sticky로 두고, 실제 데스크톱
   사이드시트에서만 대상지 제목과 탭을 하나의 고정 헤더로 만든다. */
.address-summary-page .address-sticky-header { display: contents; }

/* =======================================================================
 * 2026-10-13 · 요약(address) 데스크톱(≥1100px) 보정
 * 공통 데스크톱 셸(responsive-shell.css)은 .bottom-sheet 를 top:56·bottom:0
 * 오른쪽 사이드 시트로 만든다. 다만 이 파일(마지막 로드)의 sheet-half/full
 * 높이 규칙이 그 전체 높이를 덮으므로, 데스크톱에서는 높이를 auto로 돌려
 * 상단 바 아래부터 화면 끝까지 꽉 차게 한다. 대상지 제목과 탭은 사이드 시트 상단에 고정.
 * ======================================================================= */
@media (min-width: 1100px) {
  .address-summary-page .bottom-sheet.sheet-peek,
  .address-summary-page .bottom-sheet.sheet-half,
  .address-summary-page .bottom-sheet.sheet-focus,
  .address-summary-page .bottom-sheet.sheet-full {
    height: auto;
  }
  .address-summary-page .bottom-sheet.address-summary-active .sheet-scroll {
    /* 상단 여백을 스크롤 영역에 두면 고정 헤더 뒤 콘텐츠가 비친다.
       같은 여백을 헤더 내부로 옮겨 시트 최상단부터 배경이 완전히 덮게 한다. */
    padding-top: 0;
    padding-bottom: 24px;
  }
  /* 대상지 제목부터 탭(대상지·실거래·통계·딜체크) 하단까지 함께 고정한다. */
  .address-summary-page .address-sticky-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: block;
    margin: 0 -16px 12px;
    padding: 16px 16px 1px;
    background: var(--paper, #fff);
    box-shadow: 0 1px 0 rgba(31, 55, 43, .08);
  }
  .address-summary-page .address-sticky-header .address-tabs {
    position: static;
    margin-bottom: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    background: var(--paper, #fff);
    box-shadow: none;
  }
  .address-summary-page .address-sticky-header .address-tabs::before { display: none; }
  /* 사이드 시트 폭이 좁으므로 주변 시장 요약 두 카드(주변 실거래·이 지역 통계)를
     2열로 나란히 두지 않고 세로로 하나씩 쌓는다. */
  .address-summary-page .summary-market-grid {
    grid-template-columns: 1fr;
  }
  /* 대상 부동산 정보: 사이드 시트 폭에선 3열이 좁아 값이 말줄임된다.
     2열로 바꿔 셀 폭을 넓히면 "9,410.7㎡ (2,846.7평)" 같은 값이 한 줄에 들어간다. */
  .address-summary-page .subject-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .address-summary-page .subject-summary-item b {
    font-size: var(--fs-md);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: keep-all;
    line-height: 1.3;
  }
  /* 주변 시장 요약 "N건 중위 …/평" 줄(실거래·통계)의 글씨를 조금 줄인다. */
  .address-summary-page .summary-market-value strong { font-size: var(--fs-num); }
  .address-summary-page .summary-market-value b { font-size: var(--fs-lg); }
  /* 지도 위 안내 pill 높이를 지도 도구 아이콘(40px)과 맞춘다(실거래·통계 상단 툴바).
     기존 .topbar.context-only .map-hint{min-height:32px}(명시도 0,4,0)를 이기도록 같은 선택자를 쓴다. */
  .address-summary-page .topbar.context-only .map-hint {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* 딜체크 비교사례 — 대상 부동산(자기 거래)은 '대상지' 표시 + 선택 불가 */
.recommendation-badge.subject-badge { color:#36468f; background:#e5e9f8; }
body[data-nav="checker"] .case-card.subject { background:#f5f7fc; border-color:#ccd4ee; }
body[data-nav="checker"] .case-card.subject .case-address { cursor:default; }
