/* ===================== 프리미엄 모달 ===================== */
#premium_modal *, #premium_modal *::before, #premium_modal *::after {
  box-sizing: border-box;
}
#premium_modal {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,.55); display: none;
  align-items: flex-end; justify-content: center;
}
#premium_modal.open { display: flex; }
.premium-wrapper {
  background: #f5f5f5; width: 100%; max-width: 520px;
  display: flex; flex-direction: column;
  animation: pmSlideUp .28s ease;
  overflow: hidden;
  max-height: 100dvh;
}
@media(min-width:600px){
  .premium-wrapper {
    max-height: 92dvh; margin: auto; border-radius: 16px;
    align-self: center;
  }
  #premium_modal { align-items: center; }
}
@keyframes pmSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 상단 바 */
.pm-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; background: #fff;
  border-bottom: 1px solid #eee; flex-shrink: 0;
}
.pm-back { font-size: 20px; color: #333; cursor: pointer; background: none; border: none; }
.pm-topbar-title { font-size: 17px; font-weight: 800; color: #1a1a1a; }
.pm-topbar-badge {
  background: linear-gradient(135deg, #1d6b4f, #2a9d6f); color: #fff;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px;
  margin-left: 6px;
}

/* 카테고리 탭 */
.pm-cat-tabs {
  display: flex; gap: 0; background: #fff; flex-shrink: 0;
  overflow-x: auto; overflow-y: hidden;
  border-bottom: 2px solid #eee;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pm-cat-tabs::-webkit-scrollbar { display: none; }
.pm-cat-tab {
  padding: 8px 12px; font-size: 11px; font-weight: 700;
  border: none; background: none; cursor: pointer; color: #999;
  white-space: nowrap; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color .2s, border-color .2s;
  position: relative; flex: 0 0 auto; text-align: center;
  line-height: 1.3;
}
.pm-cat-tab.active { color: #e85a2c; border-bottom-color: #e85a2c; }
.pm-cat-tab .tab-sub { display: block; font-size: 9px; color: #bbb; font-weight: 500; margin-top: 1px; }
.pm-cat-tab.active .tab-sub { color: #e85a2c; }

/* 스크롤 본문 */
.pm-body { flex: 1; overflow-y: auto; min-height: 0; }

/* 히어로 배너 */
.pm-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 32px 24px 28px; text-align: center; position: relative;
  overflow: hidden;
}
.pm-hero::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,107,79,.3), transparent 70%);
}
.pm-hero-label {
  display: inline-block; font-size: 11px; font-weight: 700; color: #2a9d6f;
  letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase;
}
.pm-hero h2 { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.pm-hero h2 span { color: #2a9d6f; }
.pm-hero p { font-size: 13px; color: #aaa; line-height: 1.6; }
.pm-hero-tags { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.pm-hero-tag {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 8px 16px;
}
.pm-hero-tag .tag-icon { font-size: 14px; }
.pm-hero-tag .tag-label { font-size: 12px; color: #ccc; font-weight: 600; }
.pm-hero-tag .tag-sub { font-size: 10px; color: #888; display: block; }

/* 혜택 섹션 타이틀 */
.pm-section-title {
  font-size: 18px; font-weight: 900; color: #1a1a1a;
  padding: 24px 20px 6px; line-height: 1.4;
}
.pm-section-desc {
  font-size: 13px; color: #888; padding: 0 20px 16px; line-height: 1.5;
}

/* 서비스 카드들 */
.pm-service-list { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.pm-service-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #eee; cursor: pointer; transition: all .2s;
}
.pm-service-card:hover { border-color: #1d6b4f; box-shadow: 0 4px 16px rgba(29,107,79,.1); }
.pm-service-card-inner { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pm-service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.pm-service-icon.ic-redev { background: linear-gradient(135deg, #ffe8e2, #ffd0c4); }
.pm-service-icon.ic-report { background: linear-gradient(135deg, #e2f0ff, #c4dbff); }
.pm-service-icon.ic-appraisal { background: linear-gradient(135deg, #e8ffe2, #c4ffd0); }
.pm-service-icon.ic-foottraffic { background: linear-gradient(135deg, #fff3e2, #ffe5c4); }
.pm-service-icon.ic-commercial { background: linear-gradient(135deg, #f0e2ff, #dbc4ff); }
.pm-service-info { flex: 1; min-width: 0; }
.pm-service-name { font-size: 15px; font-weight: 800; color: #1a1a1a; margin-bottom: 3px; }
.pm-service-desc { font-size: 12px; color: #888; line-height: 1.4; }
.pm-service-badge {
  font-size: 10px; font-weight: 700; color: #fff; background: #1d6b4f;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.pm-service-badge.hot { background: #e85a2c; }
.pm-service-badge.new { background: #3b82f6; }

/* 서비스 카드 상세 (접혔다 펼쳐지는) */
.pm-service-detail {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: #fafafa; border-top: 1px solid #f0f0f0;
}
.pm-service-card.expanded .pm-service-detail { max-height: 600px; }
.pm-service-detail-inner { padding: 16px; }
.pm-service-detail-inner p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 10px; }
.pm-service-detail-inner ul { padding-left: 18px; margin-bottom: 12px; }
.pm-service-detail-inner li { font-size: 12px; color: #666; line-height: 1.7; }

/* 오픈채팅방 섹션 */
.pm-chat-section { padding: 0 16px 20px; }
.pm-chat-card {
  background: #fff; border-radius: 14px; border: 1px solid #eee;
  padding: 18px; display: flex; align-items: flex-start; gap: 14px;
}
.pm-chat-icon { font-size: 28px; flex-shrink: 0; }
.pm-chat-info h4 { font-size: 15px; font-weight: 800; color: #1a1a1a; margin-bottom: 4px; }
.pm-chat-info p { font-size: 12px; color: #888; line-height: 1.5; }

/* 전문 상담 섹션 */
.pm-consult-section { padding: 0 16px 20px; }
.pm-consult-card {
  background: #fff; border-radius: 14px; border: 1px solid #eee; padding: 18px;
}
.pm-consult-card h4 { font-size: 15px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.pm-consult-card p { font-size: 12px; color: #888; line-height: 1.5; }
.pm-consult-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pm-consult-tag {
  font-size: 11px; color: #666; background: #f0f0f0; padding: 4px 10px;
  border-radius: 6px; font-weight: 600;
}

/* 하단 CTA 가입 버튼 */
.pm-cta-bar {
  padding: 12px 16px; background: #fff; border-top: 1px solid #eee; flex-shrink: 0;
  border-radius: 0 0 16px 16px;
}
.pm-cta-btn {
  width: 100%; padding: 14px; border-radius: 12px; font-size: 16px;
  font-weight: 800; border: none; cursor: pointer; text-align: center;
  background: linear-gradient(135deg, #1d6b4f, #2a9d6f); color: #fff;
  transition: opacity .2s; box-sizing: border-box;
}
.pm-cta-btn:hover { opacity: .9; }
.pm-cta-btn .cta-icon { margin-right: 6px; }

/* ===================== 멤버십 플랜 ===================== */
.pm-plan-section { padding: 16px; }
.plan-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 16px;
}
.plan-col {
  border-radius: 14px; overflow: hidden;
  border: 2px solid #e0e0e0; background: #fff;
}
.plan-col.annual { border-color: #1d6b4f; }
.plan-col-header { padding: 16px; text-align: center; background: #f7f7f7; }
.plan-col.annual .plan-col-header { background: #1d6b4f; }
.plan-col-header .plan-name { font-size: 15px; font-weight: 800; color: #333; }
.plan-col.annual .plan-col-header .plan-name { color: #fff; }
.plan-col-header .plan-price { font-size: 22px; font-weight: 900; color: #1d6b4f; margin-top: 4px; }
.plan-col.annual .plan-col-header .plan-price { color: #a8e6c8; }
.plan-col-header .plan-unit { font-size: 12px; color: #888; margin-top: 2px; }
.plan-col.annual .plan-col-header .plan-unit { color: #b2d8c8; }
.plan-features { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 13px; color: #444; line-height: 1.5;
}
.plan-feature::before {
  content: "\2713"; color: #1d6b4f; font-weight: 900; font-size: 14px; flex-shrink: 0;
}
.plan-col.annual .plan-feature::before { color: #2a9d6f; }
.plan-cta-btn {
  display: block; width: calc(100% - 32px); margin: 0 16px 16px;
  padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 800;
  border: 2px solid #1d6b4f; color: #1d6b4f; background: #fff;
  cursor: pointer; text-align: center; transition: all .2s;
}
.plan-cta-btn:hover { background: #1d6b4f; color: #fff; }
.plan-col.annual .plan-cta-btn { background: #1d6b4f; color: #fff; border-color: #1d6b4f; }
.plan-col.annual .plan-cta-btn:hover { background: #155a3c; }

/* ===================== 땅콩결제 ===================== */
.peanut-section { padding: 16px; }
.peanut-banner {
  background: linear-gradient(135deg, #fff8e6, #fff3d0);
  border: 2px solid #ffaf28; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.peanut-icon { font-size: 40px; flex-shrink: 0; }
.peanut-banner h3 { font-size: 17px; font-weight: 900; color: #b87900; }
.peanut-banner p { font-size: 13px; color: #7a5200; margin-top: 4px; }
.peanut-pkg-title { font-size: 15px; font-weight: 800; color: #222; margin-bottom: 12px; }
.peanut-pkg-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.peanut-pkg {
  border: 2px solid #eee; border-radius: 12px; padding: 14px;
  text-align: center; cursor: pointer; transition: all .2s;
  position: relative; background: #fff;
}
.peanut-pkg:hover { border-color: #ffaf28; background: #fffaf0; }
.peanut-pkg.best { border-color: #ffaf28; background: #fffaf0; }
.peanut-pkg .best-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #ffaf28; color: #333; font-size: 10px; font-weight: 800;
  padding: 2px 10px; border-radius: 10px; white-space: nowrap;
}
.peanut-pkg .pkg-count { font-size: 22px; font-weight: 900; color: #1a1a1a; }
.peanut-pkg .pkg-count span { font-size: 14px; color: #666; }
.peanut-pkg .pkg-price { font-size: 15px; font-weight: 700; color: #ffaf28; margin-top: 4px; }
.peanut-pkg .pkg-unit { font-size: 11px; color: #aaa; margin-top: 2px; }
.peanut-usage-title { font-size: 15px; font-weight: 800; color: #222; margin-bottom: 10px; }
.peanut-usage-list { display: flex; flex-direction: column; gap: 8px; }
.peanut-usage-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #f8f8f8; border-radius: 10px; font-size: 13px;
}
.peanut-usage-item .usage-name { color: #333; font-weight: 600; }
.peanut-usage-item .usage-cost {
  background: #ffaf28; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 10px;
}

/* ===================== 서비스 상세 페이지 ===================== */
.pm-detail-page { display: none; }
.pm-detail-page.active { display: block; }
.pm-detail-header-img {
  width: 100%; height: 160px; object-fit: cover;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  display: flex; align-items: center; justify-content: center;
}
.pm-detail-header-img .dh-icon { font-size: 48px; }
.pm-detail-header-img .dh-title {
  font-size: 22px; font-weight: 900; color: #fff; margin-left: 12px;
}
.pm-detail-content { padding: 20px 16px; }
.pm-detail-content h3 { font-size: 17px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; }
.pm-detail-content p { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.pm-detail-feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pm-detail-feature {
  display: flex; align-items: center; gap: 10px;
  background: #f8f8f8; padding: 12px 14px; border-radius: 10px;
}
.pm-detail-feature .df-icon { font-size: 18px; flex-shrink: 0; }
.pm-detail-feature .df-text { font-size: 13px; color: #444; font-weight: 600; }
.pm-detail-sample {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 16px; margin-bottom: 16px;
}
.pm-detail-sample h4 { font-size: 14px; font-weight: 800; color: #333; margin-bottom: 10px; }
.pm-detail-sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-detail-sample-item {
  background: #f5f5f5; border-radius: 8px; padding: 12px;
  text-align: center; font-size: 12px; color: #666;
}
.pm-detail-sample-item .si-val { font-size: 18px; font-weight: 900; color: #1d6b4f; margin-bottom: 2px; }

/* ===================== 등기부 등본 열람 폼 ===================== */
.registry-pm-form { margin-top: 20px; }
.registry-pm-cost {
  font-size: 13px; color: #b45309; margin-bottom: 10px;
  background: #fef3c7; padding: 8px 12px; border-radius: 8px;
}
.registry-pm-search { display: flex; gap: 8px; }
.registry-pm-search input {
  flex: 1; padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 14px; outline: none; font-family: inherit;
}
.registry-pm-search input:focus { border-color: #b45309; }
.registry-pm-btn {
  padding: 10px 18px; background: #b45309; color: #fff; border: none;
  border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.registry-pm-btn:hover { background: #92400e; }
.registry-pm-results { margin-top: 12px; }

/* ===================== 마이페이지 티어 배지 ===================== */
.ptier {
  display: inline-block; margin-top: 5px; padding: 2px 10px;
  border-radius: 10px; font-size: 11px; font-weight: 700;
}
.ptier-free { background: #f0f0f0; color: #666; }
.ptier-premium { background: #fef3c7; color: #b45309; }

/* 구독 카드 (마이페이지) */
.sub-card { border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.sub-card-free { background: #f9fafb; border: 1px solid #e5e7eb; }
.sub-card-premium { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #f59e0b; }
.sub-card-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.sub-card-desc { font-size: 13px; color: #666; }
.btn-upgrade {
  display: block; width: 100%; padding: 13px; background: #1d6b4f; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-align: center;
}
.btn-upgrade:hover { background: #155a3c; }

/* 땅콩 카드 (마이페이지, 별도 섹션) */
.sub-card-peanut {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
}
.sub-card-peanut .sub-card-title { color: #065f46; }
.peanut-balance-row {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}
.peanut-count { font-size: 22px; font-weight: 800; color: #065f46; }
.btn-peanut-charge {
  padding: 6px 16px; background: #059669; color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn-peanut-charge:hover { background: #047857; }
.peanut-desc { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* 프리미엄 모달 대분류 탭 */
.pm-group-tabs {
  display: flex; flex-shrink: 0;
  border-bottom: 2px solid #e5e7eb;
}
.pm-group-tab {
  flex: 1; padding: 12px 8px; border: none; background: #f3f4f6;
  font-size: 15px; font-weight: 700; color: #888; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.pm-group-tab:hover { color: #333; background: #eef0f4; }
.pm-group-tab.active[data-group="platinum"] {
  color: #b45309; background: #fff; border-bottom-color: #f59e0b;
}
.pm-group-tab.active[data-group="premium"] {
  color: #6d28d9; background: #fff; border-bottom-color: #8b5cf6;
}
.pm-group-tab.active[data-group="peanut"] {
  color: #065f46; background: #fff; border-bottom-color: #059669;
}

/* 기존 호환 */
.peanut-balance {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #b87900;
}
.peanut-balance-icon { font-size: 18px; }

/* 헤더 플레티넘 버튼 */
.header-premium-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, #1d6b4f, #2a9d6f); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.header-premium-btn:hover { opacity: .85; }

/* 플랜 유형 뱃지 */
.plan-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; background: #f59e0b; color: #fff;
  vertical-align: middle;
}

/* ── 마이페이지 팔아요/구해요 매물 모달 ── */
/* 모달 오버레이 */
.list-modal {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.list-modal .modal-inner {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 860px;
  max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* 헤더 */
.mysell-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid #ebebeb; flex-shrink: 0;
}
.mysell-header h2 { font-size: 17px; font-weight: 700; color: #111; margin: 0; }
.mysell-close {
  background: none; border: none; font-size: 20px; color: #888;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.mysell-close:hover { color: #333; }

/* 바디 */
.mysell-body { overflow-y: auto; padding: 16px 18px 24px; flex: 1; }
.mysell-empty { text-align: center; padding: 60px 16px; color: #aaa; font-size: 14px; }

/* 2열 그리드 */
.mysell-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-items: stretch; /* 같은 행 카드 높이 동일하게 → 버튼 정렬 보장 */
}
@media (max-width: 620px) { .mysell-grid { grid-template-columns: 1fr; } }

/* 카드 */
.mysell-card {
  border: 1px solid #e8e8e8; border-radius: 10px;
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}

/* 카드 상단 (썸네일 + 정보) */
.mysell-card-top {
  display: flex; gap: 0; align-items: stretch;
  flex: 1 1 auto; /* 카드가 그리드에서 같은 높이로 늘어날 때 남는 공간을 흡수 → 상세보기 버튼이 항상 카드 맨 아래에 고정(태그 유무와 무관하게 양쪽 버튼 정렬, 2026-08-25) */
}
.mysell-thumb {
  width: 110px; min-height: 110px; flex-shrink: 0; overflow: hidden;
  background: #f3f3f3;
}
.mysell-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mysell-card-info {
  flex: 1; padding: 10px 12px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.mysell-price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mysell-price { font-size: 20px; font-weight: 800; color: #111; }

.mysell-badge {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
}
.badge-open { background: #dcfce7; color: #166534; }
.badge-end  { background: #f3f4f6; color: #6b7280; }
.badge-hide { background: #fef3c7; color: #92400e; }
.badge-share { background: #fee2e2; color: #dc2626; }

.mysell-addr {
  font-size: 14px; color: #555;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mysell-title { font-size: 15px; color: #333; font-weight: 600; }
.mysell-area  { font-size: 13px; color: #888; }
.mysell-tags  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mysell-tag {
  font-size: 12px; color: #5b7fd4; background: #eef2ff;
  border-radius: 4px; padding: 1px 5px;
}

/* 버튼 줄 */
.mysell-card-btns {
  display: flex; gap: 6px; padding: 8px 10px;
  border-top: 1px solid #f0f0f0; background: #fafafa;
  flex-wrap: wrap;
}
.mysell-btn {
  flex: 1; min-width: 56px; padding: 8px 4px;
  border-radius: 6px; border: 1px solid #ddd;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: #fff; color: #444; white-space: nowrap;
}
.mysell-btn:hover { background: #f5f5f5; }
.mysell-btn.btn-detail {
  background: #5b7fd4; color: #fff; border-color: #5b7fd4;
}
.mysell-btn.btn-detail:hover { background: #4a6bbf; }
.mysell-btn.btn-del { color: #e53e3e; border-color: #fca5a5; }
.mysell-btn.btn-del:hover { background: #fff5f5; }

/* 관심매물 - 상세보기 단독 버튼 (전체 너비) */
.mysell-card-btns-single { padding: 8px 12px 10px; }
.mysell-card-btns-single .mysell-btn { flex: none; width: 100%; font-size: 13px; padding: 10px; box-sizing: border-box; }
.mysell-btn.btn-fav-sell {
  background: #3b82f6; color: #fff; border-color: #3b82f6; font-size: 13px;
}
.mysell-btn.btn-fav-sell:hover { background: #2563eb; }
.mysell-btn.btn-fav-buy {
  background: #f59e0b; color: #fff; border-color: #f59e0b; font-size: 13px;
}
.mysell-btn.btn-fav-buy:hover { background: #d97706; }

/* 구해요 썸네일 (이미지 없을 때) */
.mysell-thumb-buy {
  background: #FF9B00;
  display: flex; align-items: center; justify-content: center;
}
.mysell-thumb-buy span { font-size: 11px; font-weight: 700; color: #fff; }

/* 구해요 카드 */
.mysell-card-buy { border-color: #e8e8e8; background: #fff; }

/* 기존 mylist-* 호환 유지 */
.mylist-badge { display:inline-block; padding:1px 6px; border-radius:8px; font-size:10px; font-weight:700; }
.mylist-badge.badge-open { background:#dcfce7; color:#166534; }
.mylist-badge.badge-end  { background:#f3f4f6; color:#6b7280; }
.mylist-badge.badge-hide { background:#fef3c7; color:#92400e; }

/* ── 국가정책 스크랩 팝업 ── */
.scrap-popup {
  position: fixed; inset: 0; z-index: 9300;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.scrap-popup .popup-content {
  background: #fff; border-radius: 10px;
  width: 100%; max-width: 860px;
  max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

/* 파란 헤더 */
.scrap-popup .popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: #1a3a7c;
}
.scrap-popup .popup-header h2 {
  font-size: 16px; font-weight: 700; color: #fff; margin: 0;
}
.scrap-popup .popup-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; color: #fff; font-size: 20px; line-height: 1;
}
.scrap-popup .popup-close img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

/* 탭 */
.scrap-tabs {
  display: flex; border-bottom: 1px solid #e8e8e8;
  background: #fff; flex-shrink: 0;
}
.scrap-tab {
  flex: 1; padding: 14px 10px;
  background: #f3f4f6; border: none; border-bottom: 3px solid transparent;
  font-size: 15px; font-weight: 600; color: #888; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.scrap-tab:hover { color: #1a3a7c; background: #eef0f4; }
.scrap-tab.active { color: #1a3a7c; border-bottom-color: #1a3a7c; background: #fff; }

/* 컨텐츠 영역 */
.scrap-content { flex: 1; overflow-y: auto; }
.scrap-list { padding: 0; }

/* 테이블 스타일 */
.scrap-list .db-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.scrap-list .db-table thead tr {
  background: none;
}
.scrap-list .db-table th {
  padding: 14px 16px; font-weight: 700; color: #333; font-size: 15px;
  border-bottom: 1px solid #e8e8e8; white-space: nowrap;
}
.scrap-list .db-table td {
  padding: 14px 16px; color: #333; font-size: 15px;
  border-bottom: 1px solid #f0f0f0; vertical-align: middle;
}
.scrap-list .db-table tbody tr:hover { background: #f9f9fb; }

/* 지역 열 */
.scrap-list .db-table td:nth-child(1),
.scrap-list .db-table th:nth-child(1) {
  width: 120px; text-align: left; color: #333; font-size: 15px;
}
/* 제목 열 */
.scrap-list .db-table td:nth-child(2) { }
.scrap-list .db-table td:nth-child(2) a {
  color: #222; text-decoration: none; font-weight: 500;
}
.scrap-list .db-table td:nth-child(2) a:hover { color: #1a3a7c; text-decoration: underline; }
.title-ellipsis { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 날짜 열 */
.scrap-list .db-table td:nth-child(3),
.scrap-list .db-table th:nth-child(3) {
  width: 100px; text-align: right; color: #333; font-size: 15px; white-space: nowrap;
}
/* 스크랩 열 */
.scrap-list .db-table td:nth-child(4),
.scrap-list .db-table th:nth-child(4) {
  width: 70px; text-align: center; font-size: 15px;
}
.gosi-btn_view a { display: inline-flex; align-items: center; }
.gosi-btn_view svg { width: 20px; height: 20px; }

/* 빈 행 */
.scrap-list .empty-row td {
  text-align: center; padding: 50px; color: #aaa; font-size: 14px;
}

/* 페이징 */
.scrap-list .paging_wrap { padding: 12px 16px; text-align: center; }

/* ── 스크랩 테이블: 창 크기와 무관하게 레이아웃 고정 ── */
.scrap-list .db-table { table-layout: fixed; }
.scrap-list .db-table thead { display: table-header-group !important; }
.scrap-list .db-table tbody tr {
  display: table-row !important; flex-wrap: unset !important; padding: 0 !important;
}
.scrap-list .db-table tbody td {
  display: table-cell !important; order: unset !important;
  flex: unset !important; width: auto !important;
}
.scrap-list .db-table tbody td:nth-child(2) {
  order: unset !important; flex: unset !important; margin-bottom: 0 !important;
}
.scrap-list .db-table td:nth-child(4) {
  text-align: center !important; width: 70px !important; padding: 14px 16px !important;
}
.scrap-list .db-table td:nth-child(4) svg {
  width: 20px; height: 20px; vertical-align: middle;
}
.scrap-list .title-ellipsis {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px !important;
}

/* 정책문서 하위카테고리 필터 */
.scrap-filter-bar {
  padding: 10px 16px 4px;
  display: flex; align-items: center; gap: 8px;
}
.scrap-cate-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  cursor: pointer; min-width: 90px;
}
.scrap-cate-select:focus { outline: none; border-color: #1a3a7c; }

/* 매물 등록/상세 미니맵 네이버 저작권 숨김 */
#sellMap .naver-map-copyright, #miniMap .naver-map-copyright { display: none !important; }
#sellMap div[class*="copyright"], #miniMap div[class*="copyright"] { display: none !important; }
#sellMap div[class*="Copyright"], #miniMap div[class*="Copyright"] { display: none !important; }

/* ── 다중 필지 묶음 매물 ── */
.sell-parcel-section { margin: 14px 0; }
.sell-parcel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; line-height: 1; }
.btn-add-parcel {
  padding: 10px 22px; background: #3b82f6; color: #fff; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.sell-parcel-desc { font-size: 12px; color: #888; font-weight: 400; vertical-align: middle; }
.btn-add-parcel:hover { background: #2563eb; }
.sell-parcel-list { }
.parcel-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 6px;
  background: #f9fafb;
}
.parcel-item-info { flex: 1; min-width: 0; }
.parcel-item-info strong { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parcel-item-detail { font-size: 12px; color: #888; }
.parcel-item-del {
  background: none; border: none; font-size: 16px; color: #e53e3e; cursor: pointer;
  padding: 4px 8px; flex-shrink: 0;
}
.sell-parcel-total { font-size: 14px; color: #333; margin-top: 6px; padding: 8px 0; border-top: 1px solid #eee; }
.parcel-share-chk {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: #dc2626;
  cursor: pointer; flex-shrink: 0; margin: 0 8px;
}
.parcel-share-chk input { accent-color: #dc2626; }
