  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Noto Sans KR', sans-serif; background: #f5f6fa; color: #222; font-size: 14px; }
  a { text-decoration: none; color: inherit; }

  /* ── 페이지 헤더 ── */
  .page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5a 100%);
    padding: 28px 0 22px;
    border-bottom: 3px solid #e65c00;
  }
  .page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
  .page-header h1 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
  .page-header p  { font-size: 13px; color: rgba(255,255,255,.65); }
  .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
  .breadcrumb a { color: rgba(255,255,255,.5); }
  .breadcrumb a:hover { color: #fff; }
  .breadcrumb span { color: rgba(255,255,255,.3); }

  /* ── 메인 레이아웃 ── */
  .page-body { max-width: 800px; margin: 0 auto; padding: 24px 16px 40px; }

  /* ── 폼 + 상세 ── */
  .board-right { display: flex; flex-direction: column; gap: 16px; }

  /* 작성 폼 */
  .board-form-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #e2e8f0; overflow: hidden;
  }
  .bfc-tabs { display: flex; border-bottom: 2px solid #e2e8f0; }
  .bfc-tab {
    flex: 1; padding: 14px 0; text-align: center;
    font-size: 15px; font-weight: 700; color: #94a3b8;
    cursor: pointer; border-bottom: 3px solid transparent;
    margin-bottom: -2px; transition: all .15s;
  }
  .bfc-tab.active { color: #c0392b; border-bottom-color: #c0392b; }

  .bfc-body { padding: 20px 24px 24px; }

  /* 폼 행 */
  .bfc-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .bfc-label {
    width: 84px; flex-shrink: 0; font-size: 13px; font-weight: 600;
    color: #64748b; padding-top: 8px; text-align: right;
  }
  .bfc-field { flex: 1; min-width: 0; }
  .bfc-input {
    width: 100%; padding: 8px 12px; border: 1px solid #dde3ec;
    border-radius: 6px; font-size: 13px; font-family: inherit; outline: none;
    transition: border-color .15s;
  }
  .bfc-input:focus { border-color: #c0392b; }
  .bfc-input::placeholder { color: #cbd5e1; }
  .bfc-input.is-default,
  .bfc-textarea.is-default { color: #cbd5e1; }
  .bfc-input.is-default:focus,
  .bfc-textarea.is-default:focus { color: #222; }
  .bfc-input-sm { max-width: min(240px, 100%); }
  .bfc-textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #dde3ec;
    border-radius: 6px; font-size: 13px; font-family: inherit;
    resize: vertical; min-height: 140px; outline: none;
    transition: border-color .15s;
  }
  .bfc-textarea:focus { border-color: #c0392b; }

  /* 거래종류 버튼 */
  .tx-btns { display: flex; gap: 6px; flex-wrap: nowrap; }
  .tx-btn {
    flex: 1 1 0; min-width: 0; text-align: center;
    padding: 7px 4px; border: 1.5px solid #e2e8f0;
    border-radius: 5px; font-size: 13px; font-weight: 600;
    color: #475569; background: #fff; cursor: pointer;
    transition: all .15s;
  }
  .tx-btn:hover { border-color: #c0392b; color: #c0392b; }
  .tx-btn.active { border-color: #c0392b; background: #c0392b; color: #fff; }

  /* 위치 드롭다운 */
  .location-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .loc-select {
    flex: 1 1 96px; min-width: 0;
    padding: 7px 10px; border: 1px solid #dde3ec; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none;
    background: #fff; cursor: pointer; color: #1e293b;
    transition: border-color .15s;
  }
  .loc-select:focus { border-color: #c0392b; }
  .loc-input-detail {
    flex: 2 1 140px; min-width: 0; padding: 7px 12px;
    border: 1px solid #dde3ec; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none;
    transition: border-color .15s;
  }
  .loc-input-detail:focus { border-color: #c0392b; }
  .loc-input-detail::placeholder { color: #cbd5e1; }

  /* 매물종류 2단계 */
  .type-group { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
  .type-group-label {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    padding: 7px 0; white-space: nowrap; width: 44px; flex-shrink: 0;
  }
  .type-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .type-chip {
    padding: 5px 12px; border: 1.5px solid #e2e8f0; border-radius: 5px;
    font-size: 12px; font-weight: 600; color: #475569; background: #fff;
    cursor: pointer; transition: all .15s; white-space: nowrap;
  }
  .type-chip:hover { border-color: #c0392b; color: #c0392b; }
  .type-chip.active { border-color: #c0392b; background: #fff5f5; color: #c0392b; }
  .type-chip.disabled { opacity: .4; pointer-events: none; }

  /* 스팸방지 */
  .spam-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .spam-num {
    width: 48px; height: 36px; border-radius: 6px;
    background: #1e293b; color: #f39c12;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; font-family: monospace;
    flex-shrink: 0; letter-spacing: 3px; user-select: none;
  }
  .spam-input {
    flex: 1 1 160px; min-width: 0; padding: 8px 12px; border: 1px solid #dde3ec;
    border-radius: 6px; font-size: 13px; font-family: inherit; outline: none;
    transition: border-color .15s;
  }
  .spam-input:focus { border-color: #c0392b; }
  .spam-input::placeholder { color: #cbd5e1; }

  /* 동의 + 제출 */
  .bfc-agree-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; margin-bottom: 14px; }
  .bfc-agree-row a { color: #c0392b; text-decoration: underline; }
  .bfc-agree-row input { accent-color: #c0392b; cursor: pointer; }
  .bfc-terms-btn {
    margin-left: 2px; padding: 2px 8px; font-size: 11px; color: #64748b;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px;
    cursor: pointer; font-family: inherit; white-space: nowrap;
  }
  .bfc-terms-btn:hover { background: #eef2f7; }

  /* ── 개인정보 수집 안내 모달 ── */
  .terms-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 2000; align-items: center; justify-content: center; padding: 16px;
  }
  .terms-modal-overlay.active { display: flex; }
  .terms-modal {
    background: #fff; border-radius: 8px; max-width: 480px; width: 100%;
    max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  }
  .terms-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eee;
  }
  .terms-modal-head h3 { font-size: 16px; font-weight: 800; color: #222; }
  .terms-modal-close {
    background: none; border: none; font-size: 20px; color: #999;
    cursor: pointer; line-height: 1; padding: 4px;
  }
  .terms-modal-body { padding: 18px 20px; overflow-y: auto; font-size: 13px; color: #444; line-height: 1.7; }
  .terms-modal-body h4 { font-size: 14px; font-weight: 800; color: #222; margin: 16px 0 8px; }
  .terms-modal-body h4:first-child { margin-top: 0; }
  .terms-modal-body ul { margin: 6px 0 0; padding-left: 18px; }
  .terms-modal-body li { margin-bottom: 4px; }
  .terms-modal-foot { padding: 14px 20px; border-top: 1px solid #eee; }
  .terms-modal-ok {
    width: 100%; padding: 11px; background: #e65c00; color: #fff;
    border: none; border-radius: 5px; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
  }
  .terms-modal-ok:hover { background: #cc4f00; }
  .bfc-submit {
    width: 100%; padding: 13px; background: #e65c00; color: #fff;
    border: none; border-radius: 7px; font-size: 15px; font-weight: 800;
    cursor: pointer; font-family: inherit; transition: background .15s;
  }
  .bfc-submit:hover { background: #cc4f00; }

  /* ── 상세 보기 패널 ── */
  .board-detail-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #e2e8f0; overflow: hidden;
    display: none;
  }
  .board-detail-card.show { display: block; }
  .bdc-head {
    padding: 14px 18px 12px;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; gap: 8px;
  }
  .bdc-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
  .bdc-head-title { font-size: 15px; font-weight: 800; color: #1e293b; flex: 1; }
  .bdc-close { width: 28px; height: 28px; border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; color: #94a3b8; display: flex; align-items: center; justify-content: center; }
  .bdc-close:hover { color: #ef4444; border-color: #fca5a5; }
  .bdc-body { padding: 18px 20px; }
  .bdc-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .bdc-info-item { background: #f8fafc; border-radius: 7px; padding: 10px 12px; }
  .bdc-info-label { font-size: 11px; color: #94a3b8; font-weight: 600; margin-bottom: 3px; }
  .bdc-info-val   { font-size: 13px; font-weight: 700; color: #1e293b; }
  .bdc-desc-label { font-size: 12px; font-weight: 700; color: #94a3b8; margin-bottom: 6px; }
  .bdc-desc { font-size: 13px; color: #475569; line-height: 1.7; background: #f8fafc; border-radius: 8px; padding: 12px 14px; white-space: pre-line; }
  .bdc-contact {
    margin-top: 14px; padding: 14px 16px;
    background: #fff5f5; border: 1.5px solid #fecaca; border-radius: 8px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .bdc-contact-name { font-size: 13px; font-weight: 800; color: #1e293b; }
  .bdc-contact-phone { font-size: 14px; font-weight: 800; color: #c0392b; }
  .bdc-contact-btn { padding: 8px 18px; background: #c0392b; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }

  /* ── 관리자 삭제 버튼 ── */
  .bdc-admin-bar { padding: 10px 18px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 6px; }
  .bdc-del-btn { padding: 6px 14px; background: #fff; border: 1.5px solid #fca5a5; color: #ef4444; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .bdc-del-btn:hover { background: #fff1f2; }

  /* ── 푸터 ── */

  /* 반응형 */
  @media (max-width: 600px) {
    .gnb-menu { display: none; }
    .bfc-body { padding: 14px 14px 18px; }
    .bfc-row { flex-direction: column; align-items: stretch; gap: 5px; margin-bottom: 12px; }
    .bfc-field { width: 100%; }
    .bfc-label { width: auto; text-align: left; padding-top: 0; font-size: 12px; }
    .location-row { row-gap: 6px; }
    .loc-select { flex: 1 1 30%; font-size: 12px; padding: 7px 6px; }
    .loc-input-detail { flex: 1 1 100%; }
    .type-group { flex-direction: column; gap: 4px; }
    .type-group-label { width: auto; }
    .type-chip { font-size: 11.5px; padding: 7px 4px; }
    .bdc-info-grid { grid-template-columns: repeat(2, 1fr); }
    .bdc-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
    div[style*="padding-left:96px"] { padding-left: 0 !important; }

    .bfc-agree-row { flex-wrap: wrap; row-gap: 6px; }
    .bfc-terms-btn { padding: 5px 10px; font-size: 12px; }

    .terms-modal-overlay { padding: 10px; align-items: flex-end; }
    .terms-modal { max-height: 90vh; border-radius: 12px 12px 0 0; }
    .terms-modal-head { padding: 14px 16px; }
    .terms-modal-body { padding: 14px 16px; font-size: 12px; }
    .terms-modal-body h4 { font-size: 13px; }
    .terms-modal-foot { padding: 12px 16px; }
  }
