/* 팜시크릿 — 약국 매물 (목록/상세/등록/매수/알림)
 * talk.css 기반 tk-* 골격 위에 ls-* 매물 도메인 클래스를 얹음
 * 톤: 직방/다방 스타일 — 사진 우선, 가격 강조, 무채색 + 단일 포인트 컬러
 */

/* ═════════════════════════════════════════════
   사이드 홍보 배너 (jb-leaflet) — jobs.css에서 이식
   매물 페이지에서 채용 페이지와 동일 컴포넌트 재사용
   ═════════════════════════════════════════════ */
.jb-leaflet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 18px 20px;
  background: #fff8ee;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  min-height: 196px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jb-leaflet:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
.jb-leaflet-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: #1f2937;
  color: #fff;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  line-height: 1.5;
  z-index: 2;
}
.jb-leaflet-illust {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.12));
}
.jb-leaflet-illust svg { width: 100%; height: 100%; }
.jb-leaflet:hover .jb-leaflet-illust {
  transform: translateY(-3px) rotate(-4deg);
}
.jb-leaflet-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.jb-leaflet-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #6b7280;
}
.jb-leaflet-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.jb-leaflet-title em { font-style: normal; }
.jb-leaflet-chip--chat       { background: #134e4a; }
.jb-leaflet-label--chat      { color: #0d9488; }
.jb-leaflet-em--chat         { color: #0f766e; }
.jb-leaflet-chip--resume     { background: #7c2d12; }
.jb-leaflet-label--resume    { color: #c2410c; }
.jb-leaflet-em--resume       { color: #9a3412; }

/* ═════════════════════════════════════════════
   팜맵 미니 지도 프리뷰 카드 (사이드 최상단)
   ═════════════════════════════════════════════ */
.ls-map-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ls-map-card:hover {
  transform: translateY(-2px);
  border-color: #d6dde6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
.ls-map-card-canvas { display: block; height: 96px; }
.ls-map-card-canvas svg { display: block; width: 100%; height: 100%; }
.ls-map-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}
.ls-map-card-text { min-width: 0; }
.ls-map-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}
.ls-map-card-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #6b7280;
}
.ls-map-card-arrow { flex-shrink: 0; color: #9ca3af; }
.ls-map-card:hover .ls-map-card-arrow { color: var(--color-brand); }
@media (max-width: 1023px) {
  .tk-aside-inner > .ls-map-card { grid-column: 1 / -1; }
  .ls-map-card-canvas { height: 72px; }
}

/* ═════════════════════════════════════════════
   페이지 헤드 — 매물 카운트 + 통합 검색
   ═════════════════════════════════════════════ */
.ls-pagehead { padding-top: 32px; }
.ls-pagehead-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.ls-pagehead-desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
  max-width: 64ch;
}
.ls-pagehead-desc strong { color: #111827; font-weight: 700; }
@media (max-width: 767px) {
  .ls-pagehead-desc { font-size: 13px; }
}

/* ═════════════════════════════════════════════
   거래유형 모드 토글 — 매매 / 임대 / 신규개설
   ═════════════════════════════════════════════ */
.ls-mode-section {
  background: #fff;
  padding: 18px 0 4px;
  border-bottom: 1px solid #eef0f3;
}
.ls-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 14px;
}
.ls-mode-tab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label count"
    "sub   count";
  gap: 0 12px;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ls-mode-tab:hover { background: rgba(255, 255, 255, 0.6); }
.ls-mode-tab.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.05);
}
.ls-mode-tab-label {
  grid-area: label;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: -0.015em;
}
.ls-mode-tab.is-active .ls-mode-tab-label { color: #111827; }
.ls-mode-tab-sub {
  grid-area: sub;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: -0.005em;
}
.ls-mode-tab.is-active .ls-mode-tab-sub { color: var(--color-brand); font-weight: 500; }
.ls-mode-tab-count {
  grid-area: count;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #9ca3af;
  padding: 4px 10px;
  background: #e5e7eb;
  border-radius: 9999px;
  align-self: center;
}
.ls-mode-tab.is-active .ls-mode-tab-count {
  background: var(--color-brand);
  color: #fff;
}
@media (max-width: 640px) {
  .ls-mode-tabs { gap: 4px; padding: 4px; }
  .ls-mode-tab { padding: 10px 12px; grid-template-columns: 1fr; }
  .ls-mode-tab { grid-template-areas: "label" "sub"; }
  .ls-mode-tab-count {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 11px;
  }
  .ls-mode-tab-label { font-size: 14px; }
  .ls-mode-tab-sub { font-size: 11px; }
}

/* ═════════════════════════════════════════════
   필터 바 — 데스크톱: 드롭다운 한 줄 / 모바일: 바텀시트
   ═════════════════════════════════════════════ */
.ls-filterbar {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  padding: 12px 0;
}
.ls-filterbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ls-dd { position: relative; }
.ls-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px 0 15px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.ls-dd-trigger:hover { border-color: #d1d5db; background: #fafafa; }
.ls-dd-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
}
.ls-dd-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}
.ls-dd-caret {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  transition: transform 0.15s ease;
}
.ls-dd.is-open .ls-dd-caret { transform: rotate(180deg); }
.ls-dd.is-open .ls-dd-trigger {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.1);
}
.ls-dd.has-value .ls-dd-trigger {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}
.ls-dd.has-value .ls-dd-value { color: var(--color-brand-dark); }
.ls-dd.has-value .ls-dd-caret { color: var(--color-brand); }
.ls-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: max-content;
  min-width: 264px;
  max-width: 400px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.ls-dd.is-open .ls-dd-panel { display: block; }
.ls-dd-panel-label { display: none; }
.ls-dd-panel .ls-range-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.ls-bar-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  margin-left: auto;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.ls-bar-reset svg { width: 14px; height: 14px; }
.ls-bar-reset:hover { color: #111827; background: #f3f4f6; }
.ls-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ls-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.ls-chip em {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  font-style: normal;
}
.ls-chip:hover {
  background: #e5e7eb;
  color: #111827;
}
.ls-chip.is-active {
  background: #fff;
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  font-weight: 700;
}
.ls-chip.is-active em { color: var(--color-brand); }
@media (max-width: 767px) {
  .ls-chip { padding: 5px 10px; font-size: 12.5px; }
}

/* 필터 추가 라인 — 범위 선택 */
.ls-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ls-range-input {
  width: 110px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: #1f2937;
}
.ls-range-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(254,105,27,0.12);
}
.ls-range-sep { color: #9ca3af; font-size: 13px; }
.ls-range-unit {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* ═════════════════════════════════════════════
   모바일 필터 바텀시트 — #lsFilterTrigger로 여닫음
   1024px 미만에서 필터바가 화면 하단 시트로 변환
   ═════════════════════════════════════════════ */
.ls-sheet-dim {
  position: fixed;
  inset: 0;
  z-index: 8800;
  background: rgba(15, 23, 42, 0.45);
}
.ls-sheet-head,
.ls-sheet-foot { display: none; }
@media (max-width: 1023px) {
  .ls-filterbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8810;
    max-height: 84vh;
    overflow-y: auto;
    background: #fff;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    padding: 0 0 16px;
  }
  .ls-filterbar.is-open { display: block; }
  .ls-filterbar-inner {
    padding-top: 16px;
    padding-bottom: 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  /* 시트 안에서는 드롭다운을 항상 펼친 행 형태로 */
  .ls-dd-trigger { display: none; }
  .ls-dd-panel {
    display: block;
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ls-dd-panel-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-label);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
  }
  .ls-dd-panel-label small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #c2c8d0;
  }
  .ls-bar-reset { display: none; }
  .ls-sheet-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
  }
  .ls-sheet-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
  }
  .ls-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
  }
  .ls-sheet-close svg { width: 18px; height: 18px; }
  .ls-sheet-foot {
    display: flex;
    gap: 8px;
    margin: 14px 20px 0;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
  }
  .ls-sheet-reset {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
  }
  .ls-sheet-reset:hover { background: #f9fafb; }
  .ls-sheet-apply {
    flex: 1;
    height: 46px;
    background: var(--color-brand);
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
  }
  .ls-sheet-apply:hover { background: var(--color-brand-dark); }
}

/* ═════════════════════════════════════════════
   카드 리스트 — 직방 스타일 그리드
   ═════════════════════════════════════════════ */
.ls-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.ls-list-summary {
  font-size: 14px;
  color: #4b5563;
}
.ls-list-summary strong {
  color: #111827;
  font-weight: 700;
}
.ls-list-summary em {
  color: var(--color-brand);
  font-style: normal;
  font-weight: 700;
}
.ls-list-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ls-view-toggle {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.ls-view-toggle button {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
}
.ls-view-toggle button.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}
.ls-view-toggle svg { width: 16px; height: 16px; }

.ls-sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  appearance: none;
  cursor: pointer;
}

/* 팜맵 지도 진입 버튼 (툴바) */
.ls-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #111827;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.ls-map-link:hover { background: #374151; }
.ls-map-link svg { width: 14px; height: 14px; }

/* ═════════════════════════════════════════════
   적용 필터 요약 바 — 네이버부동산 스타일
   ═════════════════════════════════════════════ */
.ls-applied {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-top: 16px;
  background: #fffaf6;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.ls-applied[hidden] { display: none; }
.ls-applied-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand-dark);
  flex-shrink: 0;
}
.ls-applied-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.ls-applied-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--color-brand);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brand-dark);
  cursor: pointer;
  transition: background 0.12s ease;
}
.ls-applied-chip:hover { background: var(--color-brand-soft); }
.ls-applied-chip em {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  color: #c2410c;
}
.ls-applied-reset {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ls-applied-reset:hover { color: #111827; }

/* ═════════════════════════════════════════════
   시세 요약 스트립 — 다방 시세 느낌
   ═════════════════════════════════════════════ */
.ls-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: #eef0f3;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
}
.ls-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: #fff;
}
.ls-stat-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #6b7280;
}
.ls-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.ls-stat--new .ls-stat-value { color: var(--color-brand-dark); }
@media (max-width: 767px) {
  .ls-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .ls-stat { padding: 12px 14px; }
  .ls-stat-value { font-size: 16px; }
}

/* 그리드 / 리스트 뷰 모드 */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) { .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ls-grid.is-list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ═════════════════════════════════════════════
   매물 카드 — 텍스트 위주 (비공개 매물 특화)
   사진이 없어도 권리금/면적/월조제만으로 의사결정 가능
   ═════════════════════════════════════════════ */
.ls-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 20px 22px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 220px;
}
.ls-card:hover {
  transform: translateY(-2px);
  border-color: #d6dde6;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
}

/* 상단: 거래종류·검수완료·HOT 배지 + 북마크 */
.ls-card-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding-right: 32px;
  min-height: 22px;
}
.ls-card-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
  background: #f3f4f6;
  color: #4b5563;
}
/* 거래 유형 뱃지 — 브랜드 단일 */
.ls-card-badge--sale    { background: var(--color-brand); color: #fff; border: none; }
.ls-card-badge--rent    { background: var(--color-brand); color: #fff; border: none; }
.ls-card-badge--new     { background: var(--color-brand); color: #fff; border: none; }

/* 상태 뱃지 — 회색/중립 (verify만 초록 유지) */
.ls-card-badge--verify  {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.ls-card-badge--verify::before {
  content: "✓";
  margin-right: 3px;
  font-weight: 800;
}
.ls-card-badge--direct  { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.ls-card-badge--hot     { background: var(--color-brand-soft); color: var(--color-brand-dark); border: 1px solid rgba(254,105,27,0.2); }

/* 북마크 (우상단 floating) */
.ls-card-bookmark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  color: #c5cad1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.ls-card-bookmark:hover { color: var(--color-brand); background: var(--color-brand-soft); }
.ls-card-bookmark.is-on { color: var(--color-brand); }
.ls-card-bookmark svg { width: 18px; height: 18px; }

/* 지역 */
.ls-card-region {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: #6b7280;
  letter-spacing: -0.005em;
}
.ls-card-region::before {
  content: "";
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.ls-card-region strong { color: #111827; font-weight: 700; }

/* 제목 */
.ls-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  margin: 0;
  min-height: 2.8em;
}

/* 권리금 (강조 영역) */
.ls-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  background: #fffaf6;
  border-radius: 8px;
  margin-top: auto;
}
.ls-card-price-label {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 600;
}
.ls-card-price-num {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--color-brand-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.ls-card-price-unit {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}
.ls-card-price--blur { filter: blur(5px); user-select: none; }

/* 메타 그리드 (면적·월조제·일매·유형) */
.ls-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  font-size: 13.5px;
  color: #4b5563;
  margin: 0;
}
.ls-card-meta > div { display: flex; gap: 4px; align-items: baseline; }
.ls-card-meta dt {
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
}
.ls-card-meta dd {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}
.ls-card-meta dd b {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* 카드 보조 메타 — 등록일·조회·관심 */
.ls-card-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #f3f4f6;
  font-size: 12.5px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.ls-card-stats b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #6b7280;
}

/* 신규 등록 뱃지 — 중립 */
.ls-card-badge--fresh { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── 권리금 게이팅: body[data-tier] 전환 시 즉시 반영 ──
   visitor  → 숫자 블러 + 자물쇠 "가입 후 공개"
   general  → 정확값 숨김, 범위(3~4억)만 표기
   verified → 정확값 그대로 */
.ls-card-price-range,
.ls-card-price-lock { display: none; }
body[data-tier="visitor"] .ls-card-price-num {
  filter: blur(6px);
  user-select: none;
}
body[data-tier="visitor"] .ls-card-price-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 9px;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.ls-card-price-lock svg { width: 11px; height: 11px; flex-shrink: 0; }
body[data-tier="general"] .ls-card-price-num { display: none; }
body[data-tier="general"] .ls-card-price-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #92400e;
  font-variant-numeric: tabular-nums;
}
body[data-tier="general"] .ls-card-price-range::after {
  content: "범위";
  padding: 2px 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #b45309;
}

/* 카드 게이팅 (비회원/일반회원) */
.ls-card-locked .ls-card-price-num { filter: blur(5px); user-select: none; }
.ls-card-locked .ls-card-region    { filter: blur(2px); user-select: none; }
.ls-card-locked .ls-card-title     { filter: blur(2px); user-select: none; }

/* 리스트(행) 뷰 — 네이버부동산 행 스타일
   좌: 뱃지·제목·지역·보조메타 / 중: 스펙 / 우: 권리금·북마크
   768px 미만은 기본 카드형으로 자동 폴백 */
@media (min-width: 768px) {
  .ls-grid.is-list-view .ls-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 150px 30px;
    grid-template-areas:
      "badges meta price bm"
      "title  meta price bm"
      "region meta price bm"
      "stats  meta price bm";
    align-items: center;
    column-gap: 22px;
    row-gap: 4px;
    min-height: auto;
    padding: 16px 20px;
  }
  .ls-grid.is-list-view .ls-card-badges {
    grid-area: badges;
    padding-right: 0;
    min-height: auto;
  }
  .ls-grid.is-list-view .ls-card-title {
    grid-area: title;
    -webkit-line-clamp: 1;
    min-height: auto;
    font-size: 15.5px;
  }
  .ls-grid.is-list-view .ls-card-region { grid-area: region; }
  .ls-grid.is-list-view .ls-card-stats {
    grid-area: stats;
    margin-top: 0;
    padding-top: 2px;
    border-top: 0;
  }
  .ls-grid.is-list-view .ls-card-meta {
    grid-area: meta;
    grid-template-columns: repeat(2, auto);
    gap: 4px 18px;
    padding: 0 22px;
    border-left: 1px solid #f3f4f6;
    align-self: center;
  }
  .ls-grid.is-list-view .ls-card-price {
    grid-area: price;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    justify-self: end;
    text-align: right;
  }
  .ls-grid.is-list-view .ls-card-price-num { font-size: 20px; }
  body[data-tier="general"] .ls-grid.is-list-view .ls-card-price-range { font-size: 19px; }
  .ls-grid.is-list-view .ls-card-bookmark {
    grid-area: bm;
    position: static;
    justify-self: end;
  }
}

/* ═════════════════════════════════════════════
   매물 상세 — 상단 사진/요약 + 본문 + 사이드
   ═════════════════════════════════════════════ */
.ls-detail {
  padding-top: 24px;
  padding-bottom: 60px;
}
.ls-detail-breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}
.ls-detail-breadcrumb a { color: inherit; }
.ls-detail-breadcrumb a:hover { color: var(--color-brand); }
.ls-detail-breadcrumb-sep { color: #d1d5db; }

.ls-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .ls-detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}

.ls-detail-main { min-width: 0; }
.ls-detail-side { min-width: 0; }
@media (min-width: 1024px) {
  .ls-detail-side {
    position: sticky;
    top: 88px;
    align-self: flex-start;
  }
}

/* 사진 영역 (도면/지도 placeholder) */
.ls-detail-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  text-align: center;
  margin-bottom: 20px;
}
.ls-detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.ls-detail-hero-empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 24px;
}
.ls-detail-hero-empty svg { width: 56px; height: 56px; opacity: 0.5; }
.ls-detail-hero-empty p { font-size: 14px; line-height: 1.5; max-width: 32ch; }
.ls-hero-lock-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border-radius: 50%;
  backdrop-filter: blur(4px);
}
.ls-hero-lock-icon svg { width: 32px; height: 32px; stroke: #e2e8f0; }
.ls-hero-lock-title { font-size: 15px; font-weight: 700; color: #f1f5f9; margin: 0; }
.ls-hero-lock-sub { font-size: 13px; color: #94a3b8; margin: 0; }
.ls-detail-hero-badges {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.ls-detail-hero-thumbs {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ls-detail-hero-thumbs::-webkit-scrollbar { display: none; }
.ls-detail-hero-thumbs .thumb {
  width: 60px; height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
}
.ls-detail-hero-thumbs .thumb.is-active { border-color: #fff; }

/* 헤드라인: 가격 + 제목 */
.ls-detail-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.ls-detail-region {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: -0.005em;
}
.ls-detail-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0;
}
.ls-detail-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ls-detail-price-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--color-brand-dark);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.ls-detail-price-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}
.ls-detail-price-sub {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

@media (min-width: 768px) {
  .ls-detail-title { font-size: 28px; }
  .ls-detail-price-num { font-size: 40px; }
}

/* 핵심 스펙 그리드 */
.ls-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 640px) { .ls-spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ls-spec-item {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ls-spec-label {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ls-spec-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ls-spec-value-em { color: var(--color-brand-dark); }
.ls-spec-sub {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

/* 본문 섹션 */
.ls-detail-section {
  padding: 24px 0;
  border-bottom: 1px solid #f3f4f6;
}
.ls-detail-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.ls-detail-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #374151;
  word-break: keep-all;
  white-space: pre-line;
}
.ls-detail-section--last { border-bottom: 0; }

/* 정보 테이블 */
.ls-info-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #e5e7eb;
}
@media (min-width: 640px) {
  .ls-info-table { grid-template-columns: 1fr 1fr; }
}
.ls-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid #f3f4f6;
}
.ls-info-row dt {
  padding: 12px 14px;
  background: #f9fafb;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}
.ls-info-row dd {
  padding: 12px 14px;
  margin: 0;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}
.ls-info-row dd b {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* 주변시설(태그칩) */
.ls-tag-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ls-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 12.5px;
  color: #374151;
  font-weight: 500;
}

/* 사이드 박스 (상세) */
.ls-side-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ls-side-box + .ls-side-box { margin-top: 16px; }

.ls-side-broker {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ls-side-broker-avatar {
  width: 48px; height: 48px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.ls-side-broker-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.ls-side-broker-role {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.ls-side-broker-meta {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.ls-side-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ls-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ls-cta-btn--primary {
  background: var(--color-brand);
  color: #1f2937; /* #1f2937 on #FE691B = 5.07:1 (WCAG AA 통과) */
}
.ls-cta-btn--primary:hover { background: var(--color-brand-dark); color: #fff; }
.ls-cta-btn--outline {
  background: #fff;
  border-color: #d1d5db;
  color: #1f2937;
}
.ls-cta-btn--outline:hover { background: #f9fafb; border-color: #9ca3af; }
.ls-cta-btn--ghost {
  background: #f3f4f6;
  color: #1f2937;
}
.ls-cta-btn--ghost:hover { background: #e5e7eb; }
.ls-cta-btn--block {
  display: flex;
  width: 100%;
}
.ls-cta-btn svg { width: 16px; height: 16px; }

.ls-side-bullet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
}
.ls-side-bullet li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ls-side-bullet li::before {
  content: "✓";
  color: var(--color-brand);
  font-weight: 700;
  flex-shrink: 0;
}
.ls-side-bullet strong { color: #111827; font-weight: 700; }

/* 게이팅 (비회원/일반회원 안내) */
.ls-gate-card {
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ls-gate-card--info {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.ls-gate-card-title {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #92400e;
}
.ls-gate-card--info .ls-gate-card-title { color: #1e3a8a; }
.ls-gate-card-text {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.6;
}
.ls-gate-card--info .ls-gate-card-text { color: #1e3a8a; }
.ls-gate-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: 4px;
  height: 32px;
  padding: 0 14px;
  background: #d97706;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9999px;
}
.ls-gate-card--info .ls-gate-card-cta { background: var(--color-brand); }
.ls-gate-card-cta:hover { background: var(--color-brand-dark); }

/* 인근 매물 */
.ls-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}
.ls-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.ls-related-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
}
.ls-related-link {
  font-size: 13px;
  color: var(--color-brand);
}
.ls-related-link:hover { text-decoration: underline; }

/* ═════════════════════════════════════════════
   페이지네이션 (tk-pager 재사용 호환)
   ═════════════════════════════════════════════ */
.ls-pager {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ls-pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  font-family: var(--font-mono);
}
.ls-pager-btn:hover { background: #f9fafb; color: #111827; }
.ls-pager-btn.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  font-weight: 700;
}
.ls-pager-btn[disabled] {
  color: #d1d5db; cursor: not-allowed; background: #fafafa;
}

/* ═════════════════════════════════════════════
   매물 등록 / 매수 등록 / 알림 — 폼
   ═════════════════════════════════════════════ */
.ls-form-shell {
  padding-top: 28px;
  padding-bottom: 60px;
}
.ls-form-head {
  text-align: center;
  margin-bottom: 24px;
}
.ls-form-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-brand);
  text-transform: uppercase;
}
.ls-form-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.ls-form-desc {
  margin: 8px auto 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  max-width: 54ch;
}
.lsf-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px auto 0;
  padding: 12px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  max-width: 54ch;
}
.lsf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.lsf-trust-item svg { color: #6b7280; flex-shrink: 0; }
.lsf-trust-item--highlight { color: #15803d; font-weight: 700; }
.lsf-trust-item--highlight svg { color: #16a34a; }
@media (min-width: 768px) { .ls-form-title { font-size: 32px; } }

/* 진행 스텝 인디케이터 */
.ls-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.ls-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.ls-step-num {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d1d5db;
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.ls-step.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}
.ls-step.is-active .ls-step-num {
  background: var(--color-brand);
}
.ls-step.is-done {
  color: #15803d;
}
.ls-step.is-done .ls-step-num {
  background: #15803d;
}
.ls-step-sep {
  width: 16px; height: 1px; background: #d1d5db;
}
@media (max-width: 640px) {
  .ls-steps { gap: 4px; }
  .ls-step { padding: 6px 10px; font-size: 12px; }
  .ls-step-sep { width: 8px; }
}

/* 폼 그리드 */
.ls-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .ls-form-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
}
.ls-form-main { min-width: 0; }
.ls-form-side { min-width: 0; }
@media (min-width: 1024px) {
  .ls-form-side {
    position: sticky;
    top: 88px;
    align-self: flex-start;
  }
}

/* 폼 섹션(카드형) */
.ls-form-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.ls-form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}
.ls-form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  margin: 0;
}
.ls-form-section-note {
  font-size: 12px;
  color: #9ca3af;
}

/* 필드 */
.ls-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ls-field + .ls-field { margin-top: 14px; }
.ls-field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ls-field-required { color: var(--color-brand); }
.ls-field-hint {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.55;
}
.ls-input,
.ls-textarea,
.ls-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ls-input::placeholder,
.ls-textarea::placeholder { color: #9ca3af; }
.ls-input:focus,
.ls-textarea:focus,
.ls-select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(254,105,27,0.14);
}
.ls-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.65;
}
.ls-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 36px;
}
.ls-input-with-unit {
  position: relative;
}
.ls-input-with-unit input {
  padding-right: 48px;
}
.ls-input-with-unit-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.ls-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .ls-row-2col { grid-template-columns: 1fr; }
}

/* 선택 카드(거래방식 등) */
.ls-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) { .ls-choice-grid { grid-template-columns: 1fr 1fr; } }
.ls-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ls-choice:hover { border-color: #9ca3af; }
.ls-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ls-choice-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-choice-desc { font-size: 12.5px; color: #6b7280; line-height: 1.55; }
.ls-choice input:checked + .ls-choice-title + .ls-choice-desc,
.ls-choice:has(input:checked) {
  border-color: var(--color-brand);
  background: #fffaf6;
}
.ls-choice:has(input:checked) .ls-choice-title { color: var(--color-brand-dark); }
.ls-choice-radio {
  position: absolute;
  top: 14px; right: 14px;
  width: 18px; height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
}
.ls-choice:has(input:checked) .ls-choice-radio {
  border-color: var(--color-brand);
  background: var(--color-brand);
  box-shadow: inset 0 0 0 4px #fff;
}

/* 칩 토글 (다중선택) */
.ls-toggle-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ls-toggle-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ls-toggle-chip:hover { background: #e5e7eb; }
.ls-toggle-chip.is-active {
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  font-weight: 600;
}

/* 폼 푸터 (등록/취소) */
.ls-form-footer {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ls-form-footer .ls-cta-btn { min-width: 140px; padding: 0 22px; }
@media (max-width: 640px) {
  .ls-form-footer { flex-direction: column-reverse; }
  .ls-form-footer .ls-cta-btn { width: 100%; }
}

/* 안내 보드 (사이드) */
.ls-help-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
}
.ls-help-card + .ls-help-card { margin-top: 12px; }
.ls-help-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.ls-help-card-list {
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}
.ls-help-card-list li {
  display: flex; gap: 8px;
}
.ls-help-card-list li::before {
  content: "•";
  color: var(--color-brand);
  font-weight: 700;
}
.ls-help-card-list strong { color: #111827; font-weight: 700; }

/* ═════════════════════════════════════════════
   매물 알림 — 조건 카드 / 채널 토글
   ═════════════════════════════════════════════ */
.ls-alert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-alert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px;
}
.ls-alert-card.is-paused { background: #fafafa; opacity: 0.85; }
.ls-alert-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ls-alert-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  margin: 0;
}
.ls-alert-card-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.ls-alert-card-stats {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: #4b5563;
}
.ls-alert-card-stats b {
  color: var(--color-brand-dark);
  font-weight: 700;
  font-family: var(--font-mono);
}
.ls-alert-card-cond {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: #f9fafb;
  border-radius: 10px;
}
.ls-cond-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #1f2937;
}
.ls-cond-pill b { color: var(--color-brand-dark); font-family: var(--font-mono); font-weight: 700; }

.ls-alert-card-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ls-channel-list {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ls-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.ls-channel.is-on {
  background: #ecfdf5;
  color: #047857;
}
.ls-alert-card-actions {
  display: flex; gap: 6px;
}
.ls-alert-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12.5px;
  color: #4b5563;
  cursor: pointer;
}
.ls-alert-action:hover { background: #f3f4f6; color: #111827; }
.ls-alert-action--danger:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* 토글 스위치 */
.ls-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  font-size: 13px;
  color: #1f2937;
}
.ls-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ls-switch-track {
  width: 36px; height: 20px;
  background: #d1d5db;
  border-radius: 9999px;
  position: relative;
  transition: background 0.15s ease;
}
.ls-switch-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 9999px;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,0.18);
}
.ls-switch input:checked + .ls-switch-track {
  background: var(--color-brand);
}
.ls-switch input:checked + .ls-switch-track::after {
  transform: translateX(16px);
}

/* ═════════════════════════════════════════════
   매수 등록 — 매칭 미리보기
   ═════════════════════════════════════════════ */
.ls-match-preview {
  padding: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  margin-top: 16px;
}
.ls-match-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ls-match-preview-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}
.ls-match-preview-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-brand-dark);
  font-size: 18px;
}

/* ═════════════════════════════════════════════
   모바일 — 필터 토글 FAB / 시트
   ═════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .ls-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .ls-filter-trigger svg { width: 14px; height: 14px; }

  /* 모바일 — 사이드 패널을 가로 정렬 (CTA 가로 카드형) */
  .tk-aside-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .tk-aside-inner > .tk-cta { grid-column: 1 / -1; }
  .tk-aside-inner > .jb-leaflet {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 14px 14px 14px 16px;
    gap: 10px;
  }
  .tk-aside-inner > .jb-leaflet > .jb-leaflet-text {
    order: 0;
    flex: 1;
    min-width: 0;
    gap: 4px;
  }
  .tk-aside-inner > .jb-leaflet > .jb-leaflet-illust {
    order: 1;
    width: 44px;
    height: 44px;
    filter: none;
    flex-shrink: 0;
  }
  .tk-aside-inner > .jb-leaflet .jb-leaflet-chip {
    top: 8px;
    right: 8px;
    padding: 1px 7px;
    font-size: 9px;
  }
  .tk-aside-inner > .jb-leaflet .jb-leaflet-title {
    font-size: 13.5px;
    line-height: 1.35;
  }
  .tk-aside-inner > .jb-leaflet .jb-leaflet-label {
    font-size: 11px;
  }
  .tk-aside-inner > .jb-leaflet br { display: none; }
}
@media (max-width: 480px) {
  .tk-aside-inner {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  .ls-filter-trigger { display: none; }
}
