/* Card-only refinement v6. Keep every public field and all existing actions.
   Context -> headline -> price -> supporting facts -> quiet status / metadata. */
.kh-card{height:100%;overflow:hidden;border:1px solid #E4E6EB;border-radius:10px;background:#fff;box-shadow:none;transition:border-color .16s ease}
.kh-card .kh-card__link{display:flex;flex-direction:column;height:100%;min-height:246px;padding:20px;color:inherit}
.kh-card .kh-card__where{display:flex;align-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:0 8px;min-height:36px;margin:0;padding:0 34px 0 0;color:#5F6875;font-size:12px;font-weight:500;line-height:18px;letter-spacing:-.01em}
.kh-card__where>span{min-width:0}
.kh-card .kh-card__category{display:inline;margin:0;color:#717986;font-size:12px;font-weight:400;line-height:18px;word-break:keep-all;overflow-wrap:anywhere}
.kh-card__category::before{content:"·";margin-right:8px;color:#A2A7B0}
.kh-card .kh-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:50px;margin:5px 0 18px;padding:0;color:#222630;font-size:18px;font-weight:650;line-height:25px;letter-spacing:-.035em;word-break:keep-all;overflow-wrap:anywhere}
.kh-card .kh-card__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:0;padding:0;line-height:1.3}
.kh-card .kh-card__price>span{color:#737B87;font-size:12px;font-weight:400;line-height:18px}
.kh-card .kh-card__price>strong{color:var(--brand);font-size:24px;font-weight:750;line-height:30px;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.kh-card__facts{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-top:10px}
.kh-card .kh-card__tags{display:block;min-height:0;margin:0;padding:0}
.kh-card .kh-card__tags span{display:inline;margin:0;padding:0;border:0;border-radius:0;background:none;color:#646D79;font-size:12px;font-weight:450;line-height:20px;white-space:nowrap}
.kh-card .kh-card__lease{display:flex;align-items:baseline;justify-content:flex-start;gap:5px;margin:0;padding:0;border:0;color:#646D79;font-size:12px;font-weight:450;line-height:20px;white-space:nowrap}
.kh-card .kh-card__lease strong{color:inherit;font-size:inherit;font-weight:500}
.kh-card .kh-card__foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;margin:20px 0 0;padding:0;border:0;color:#7A828E;font-size:11px;font-weight:400;line-height:18px}
.kh-card__meta{display:inline-flex;align-items:center;gap:8px;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.kh-card__meta time::before{content:"·";margin-right:8px;color:#B0B4BB}
:is(.kh-card,.kd-overview) .kh-card__status{display:inline-flex;align-items:center;gap:3px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#687483;font-size:11px;font-weight:650;line-height:18px;white-space:nowrap;letter-spacing:0}
.kh-card__status svg{display:block;flex:none;width:11px;height:11px}
:is(.kh-card,.kd-overview) .kh-card__status.is-recommended{color:#724DCA}
:is(.kh-card,.kd-overview) .kh-card__status.is-urgent{color:#AC5A4B}
:is(.kh-card,.kd-overview) .kh-card__status.is-completed{color:#68717F}
:is(.kh-card,.kd-overview) .kh-card__status.is-exclusive{color:#526B87}
.kh-card .kh-card__fav{top:7px;right:6px;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:6px;background:transparent;color:#949BA6;transform:none;transition:color .15s ease}
.kh-card__fav svg{width:18px;height:18px;stroke-width:1.6}
.kh-card .kh-card__fav[aria-pressed=true]{color:var(--brand)}
.kh-card:focus-within{border-color:#9B85CA}
.kh-card__link:focus-visible{outline:2px solid var(--brand);outline-offset:-3px;border-radius:9px}
.kh-card__fav:focus-visible{outline:2px solid var(--brand);outline-offset:-4px}
@media(hover:hover){
  .kh-card:hover{background:#fff;border-color:#B7BDC8;box-shadow:none;transform:none}
  .kh-card:hover .kh-card__title{color:#222630}
  .kh-card .kh-card__fav:hover{background:transparent;color:var(--brand);transform:none}
}
@media(max-width:639px){
  .kh-card .kh-card__link{min-height:0;padding:20px}
  .kh-card .kh-card__where{min-height:18px;padding-right:34px}
  .kh-card .kh-card__title{min-height:0;margin-top:8px;margin-bottom:22px;font-size:18px;line-height:26px}
  .kh-card .kh-card__price>strong{font-size:24px}
  .kh-card .kh-card__foot{margin-top:20px}
}
/* Existing detail confidentiality style is intentionally unchanged. */
.kstat .kh-lease-inquiry{color:#586476;font-weight:700}
@media(prefers-reduced-motion:reduce){.kh-card,.kh-card__fav,.kh-card__status{animation:none;transition:none}}

/* v7: three clean supporting facts, with a visible search-style badge border sweep. */
.kh-card .kh-card__facts{display:grid;grid-template-columns:.95fr .8fr 1.4fr;align-items:start;gap:8px;margin-top:14px}
.kh-card .kh-card__tags,.kh-card .kh-card__area,.kh-card .kh-card__lease{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;margin:0;padding:0;border:0;background:none;font-size:12px;line-height:18px}
.kh-card .kh-card__facts span{color:#737B87;font-size:12px;font-weight:400;line-height:18px;white-space:nowrap}
.kh-card .kh-card__facts strong{color:#414955;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;font-variant-numeric:tabular-nums}
@property --kh-badge-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
:is(.kh-card,.kd-overview) .kh-card__status.is-recommended,:is(.kh-card,.kd-overview) .kh-card__status.is-urgent{position:relative;isolation:isolate;padding:3px 7px;border-radius:5px;box-shadow:inset 0 0 0 1px #E6DFEF}
:is(.kh-card,.kd-overview) .kh-card__status.is-urgent{box-shadow:inset 0 0 0 1px #EEDFD9}
:is(.kh-card,.kd-overview) .kh-card__status.is-recommended::before,:is(.kh-card,.kd-overview) .kh-card__status.is-urgent::before{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;background:conic-gradient(from var(--kh-badge-angle),transparent 0deg,currentColor 70deg,currentColor 155deg,transparent 235deg,transparent 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:kh-badge-line-sweep 1.2s linear infinite}
:is(.kh-card,.kd-overview) .kh-card__status.is-urgent::before{animation-delay:-.6s} /* 2026-10-03 사용자 지시: 추천·급매 테두리 회전 2초 → 1.2초 */
@keyframes kh-badge-line-sweep{to{--kh-badge-angle:360deg}}
@media(prefers-reduced-motion:reduce){:is(.kh-card,.kd-overview) .kh-card__status::before{animation:none!important;background:none!important}:is(.kh-card,.kd-overview) .kh-card__status.is-recommended,:is(.kh-card,.kd-overview) .kh-card__status.is-urgent{box-shadow:inset 0 0 0 1px currentColor}}

.kh-card .kh-card__foot{min-height:24px}

/* v18: two listings per mobile row, without dropping listing information. */
@media(max-width:639px){
 .kh-cards-grid,.kh-cards-grid--4,.kh-home-cards,.kp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .kh-cards-grid>li,.kh-home-cards>*,.kp-grid>li{min-width:0}
 .kh-card .kh-card__link{padding:12px;min-height:0}
 .kh-card .kh-card__where{display:block;min-height:36px;padding:0;font-size:11px;line-height:17px}
 .kh-card__where>span:first-child{display:block;padding-right:24px}
 .kh-card .kh-card__category{display:block;font-size:10.5px;line-height:17px;letter-spacing:-.04em}.kh-card__category::before{content:none}
 .kh-card .kh-card__title{font-size:15px;line-height:21px;min-height:63px;-webkit-line-clamp:3;margin:6px 0 12px;letter-spacing:-.04em}
 .kh-card .kh-card__price{gap:3px 5px}.kh-card .kh-card__price>span{font-size:10px}.kh-card .kh-card__price>strong{font-size:21px;line-height:27px}
 .kh-card .kh-card__facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 4px;margin-top:10px}
 .kh-card .kh-card__facts span{font-size:10px;line-height:16px}.kh-card .kh-card__facts strong{font-size:12px;line-height:18px}
 .kh-card .kh-card__lease{grid-column:1/-1;flex-direction:row;align-items:baseline;gap:5px}
 .kh-card .kh-card__foot{align-items:flex-start;gap:8px;margin-top:14px;min-height:51px}
 .kh-card__meta{display:flex;flex-direction:column;align-items:flex-end;gap:0;margin-left:auto;font-size:10px;line-height:16px}.kh-card__meta time::before{content:none;margin:0}
 .kh-card .kh-card__fav{top:1px;right:0;width:40px;height:40px;min-width:40px;min-height:40px}.kh-card__fav svg{width:16px;height:16px}
 .kh-card .kh-card__status{font-size:10px;gap:2px}.kh-card .kh-card__status.is-recommended,.kh-card .kh-card__status.is-urgent{padding:2px 5px}
}
@media(max-width:639px){.kp-list .kp-grid,.kd-page .kd-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;scroll-snap-type:none;padding-bottom:0}.kd-page .kd-related-grid>li{min-width:0}.kd-page .kd-related-grid .kh-card__title{min-height:63px}}

/* 2026-09-29 카드 하단 좌우 반전: 매물번호·등록일 왼쪽, 추천·급매 배지 오른쪽 */
.kh-card .kh-card__foot .kh-card__meta{margin-left:0;margin-right:auto}
.kh-card .kh-card__foot .kh-card__status{margin-left:auto}
@media(max-width:767px){.kh-card .kh-card__foot .kh-card__meta{align-items:flex-start}}
