/* 에어컨코리아 공통 스타일 - 네이비·블루 기반의 전문 거래 플랫폼 스타일 */
:root {
    --navy: #0f2a4a;
    --navy-2: #173a63;
    --primary: #1660c9;
    --primary-dark: #0f4ea8;
    --primary-light: #eaf2fd;
    --text: #212124;
    --sub: #4d5159;
    --muted: #868b94;
    --border: #eaebee;
    --bg-gray: #f2f3f6;
    --white: #fff;
    --danger: #e5484d;
    --success: #12a150;
    --radius: 8px;
    --header-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--white); color: var(--text);
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 15px; line-height: 1.55; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -0.02em; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }

/* ---------- 헤더 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.topbar { background: var(--navy); color: #b9c6d8; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 12px; }
.topbar nav { display: flex; gap: 16px; }
.topbar a { color: #dbe4f0; }
.topbar a:hover { color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.logo-text small { font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.08em; }
.catbar { border-top: 1px solid var(--border); background: #fff; }
.catbar-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; border-bottom: 2px solid transparent; }
.catbar a:hover { color: var(--navy); }
.catbar a.active { color: var(--primary); border-color: var(--primary); }
.header-search { flex: 1; max-width: 480px; display: flex; align-items: center; background: var(--bg-gray); border-radius: 10px; padding: 0 6px 0 14px; }
.header-search input { flex: 1; border: 0; background: transparent; padding: 11px 0; font-size: 15px; font-family: inherit; outline: none; min-width: 0; }
.header-search button { border: 0; background: none; padding: 8px; cursor: pointer; color: var(--sub); display: flex; }
.user-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--sub); }
.user-nav a:hover { color: var(--text); }
.nav-sell { background: var(--primary); color: #fff !important; padding: 9px 16px; border-radius: 6px; }
.nav-sell:hover { background: var(--primary-dark); }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; vertical-align: 1px; }

/* 모바일 하단 탭바 */
.tabbar { display: none; }
@media (max-width: 760px) {
    :root { --header-h: auto; }
    .header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .header-search { order: 3; max-width: none; flex: 1 1 100%; }
    .topbar span { display: none; }
    .topbar-inner { justify-content: center; }
    .user-nav { display: none; }
    .tabbar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff;
        border-top: 1px solid var(--border); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); position: relative; }
    .tabbar a.active { color: var(--text); font-weight: 700; }
    .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
    .tabbar .count { position: absolute; top: -2px; left: 52%; }
    body { padding-bottom: 64px; }
}

.site-main { padding: 28px 0 64px; min-height: 60vh; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy); color: #9fb0c6; padding: 36px 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.footer-links a { color: #e3eaf3; }
.footer-info { margin: 0 0 6px; }
.copyright { margin: 0; }

/* ---------- 버튼 / 폼 ---------- */
.btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--primary);
    background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
    font-family: inherit; line-height: 1.4;
}
.btn:hover { background: var(--primary-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-gray { background: var(--bg-gray); color: var(--text); border-color: var(--bg-gray); }
.btn-gray:hover { background: #e4e6ea; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #c9363b; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }

label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
    width: 100%; padding: 11px 12px; border: 1px solid #dcdee3; border-radius: 8px;
    font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.form-help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 16px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.required::after { content: " *"; color: var(--danger); }
fieldset { border: 0; border-bottom: 1px solid var(--border); padding: 4px 0 8px; margin: 0 0 22px; }
legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 14px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e9f8ef; color: #0b6b35; }
.alert-error { background: #fdecec; color: #a3262a; }
.alert-info { background: var(--primary-light); color: #0c4a85; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- 박스 / 섹션 ---------- */
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.auth-box { max-width: 440px; margin: 10px auto; border: 0; padding: 8px 0; }
.auth-box h2 { text-align: center; font-size: 24px; margin-bottom: 24px; }
.auth-links { text-align: center; font-size: 14px; margin-top: 18px; color: var(--muted); }
.auth-links a { color: var(--primary); font-weight: 600; }
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.page-title { font-size: 26px; margin-bottom: 20px; }

/* ---------- 홈 ---------- */
.hero {
    display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: stretch;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #1d4f8c 100%);
    color: #fff; border-radius: 12px; padding: 40px 40px 34px;
}
.hero-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #9cc4ff; border: 1px solid rgba(156,196,255,.4); padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; }
.hero h1 { font-size: 32px; margin-bottom: 10px; color: #fff; }
.hero p { margin: 0 0 22px; color: #c7d3e3; font-size: 15px; }
.big-search { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 6px; max-width: 640px; }
.big-search select { width: auto; border: 0; background: var(--bg-gray); font-weight: 600; font-size: 14px; }
.big-search input { flex: 1; border: 0; background: transparent; padding: 10px 6px; font-size: 16px; outline: none; font-family: inherit; min-width: 0; color: var(--text); }
.keywords { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; font-size: 13px; color: #c7d3e3; }
.keywords strong { color: #fff; margin-right: 2px; }
.keywords a:hover { color: #fff; text-decoration: underline; }
.hero-stats { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-stats div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 10px; }
.hero-stats span { color: #c7d3e3; font-size: 13px; }
.hero-stats strong { font-size: 22px; font-weight: 800; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding: 28px 20px; }
    .hero h1 { font-size: 24px; }
    .big-search { flex-wrap: wrap; }
    .big-search select { flex: 1 1 100%; }
}
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 18px; }
.features div { background: #fff; padding: 16px 18px; }
.features strong { display: block; font-size: 15px; color: var(--navy); }
.features span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; background: #fff; border: 1px solid #d5d9e0; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.type-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.type-grid a { border: 1px solid var(--border); border-radius: 8px; padding: 16px 6px 12px; text-align: center; font-weight: 700; font-size: 13px; color: var(--navy); background: #fff; }
.type-grid a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.type-grid svg { width: 38px; height: 38px; margin: 0 auto 6px; display: block; }
@media (max-width: 860px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.panel h3 { font-size: 18px; color: var(--navy); }
.checklist { margin: 0 0 16px; padding-left: 20px; color: var(--sub); }
.checklist li { margin-bottom: 6px; }

.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.notice-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.notice-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pin { color: var(--primary); font-weight: 700; margin-right: 6px; }

/* ---------- 매물 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
    /* 모바일은 당근 앱처럼 사진 왼쪽 + 정보 오른쪽 목록형 */
    .card-grid { grid-template-columns: 1fr; gap: 0; }
    .card { display: flex !important; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
    .card .card-img { width: 110px; height: 110px; flex-shrink: 0; aspect-ratio: auto; }
    .card .card-body { padding: 0 !important; flex: 1; min-width: 0; }
}
.card { display: block; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.card:hover .card-img img { transform: scale(1.03); }
.card.is-sold .card-img { opacity: .55; }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: #b0b3ba; font-size: 13px; }
.card-body { padding: 10px 2px 0; }
.card-specs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.spec { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--bg-gray); color: var(--sub); }
.spec-heat { background: #fff1e6; color: #c2410c; }
.spec-power { background: #ecf0ff; color: #3730a3; }
.card-title { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.card-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card-price { font-weight: 800; font-size: 16px; margin-top: 4px; }
.card-foot { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-counts { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; }

.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--bg-gray); color: var(--sub); vertical-align: 2px; }
.badge-selling { background: var(--primary-light); color: var(--primary); }
.badge-reserved { background: #12a150; color: #fff; }
.badge-sold { background: #4d5159; color: #fff; }
.badge-business { background: #efe9fd; color: #5b21b6; }
.badge-pending { background: #fff3d6; color: #8a5a00; }
.badge-done { background: #e3f6ea; color: #116b36; }
.badge-rejected { background: var(--bg-gray); color: var(--sub); }
.badge-suspended, .badge-hidden { background: #fdecec; color: #a3262a; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); background: var(--bg-gray); border-radius: var(--radius); }

/* ---------- 매물 목록 ---------- */
.list-head { margin-bottom: 18px; }
.list-head h1 { font-size: 24px; margin-bottom: 4px; }
.list-head .area { color: var(--muted); font-size: 14px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.filter-bar select { width: auto; border-radius: 20px; padding: 7px 30px 7px 14px; font-size: 14px; font-weight: 600; }
.filter-bar .chip { margin: 0; }
.filter-bar .chip input { display: none; }
.filter-panel { display: none; background: var(--bg-gray); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; }
.filter-open .filter-panel { display: block; }
.filter-panel .form-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.range { display: flex; gap: 6px; align-items: center; }

.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.pagination a { min-width: 36px; padding: 6px 10px; border-radius: 8px; font-size: 14px; text-align: center; color: var(--sub); }
.pagination a:hover { background: var(--bg-gray); }
.pagination a.active { background: var(--text); color: #fff; }

/* ---------- 매물 상세 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 20px; } }
.gallery-main { aspect-ratio: 1 / 1; background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-gray); }
.gallery-thumbs button.active { border-color: var(--text); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.profile-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.profile-row .name { font-weight: 700; }
.profile-row .area { font-size: 13px; color: var(--muted); }
.trust { text-align: right; min-width: 92px; }
.trust-num { font-weight: 800; font-size: 16px; }
.trust-bar { height: 4px; background: var(--border); border-radius: 2px; margin: 3px 0; overflow: hidden; }
.trust-bar span { display: block; height: 100%; border-radius: 2px; }
.trust-label { font-size: 12px; color: var(--muted); text-decoration: underline; }
.trust-cold .trust-num { color: #4a6fa5; } .trust-cold .trust-bar span { background: #4a6fa5; }
.trust-normal .trust-num { color: #1d8f6d; } .trust-normal .trust-bar span { background: #1d8f6d; }
.trust-warm .trust-num { color: #e08a00; } .trust-warm .trust-bar span { background: #e08a00; }
.trust-hot .trust-num { color: #e5484d; } .trust-hot .trust-bar span { background: #e5484d; }
.detail-title { font-size: 24px; margin: 0 0 4px; }
.detail-sub { color: var(--muted); font-size: 13px; }
.detail-sub a { text-decoration: underline; }
.detail-price { font-size: 26px; font-weight: 800; margin: 10px 0 18px; }
.detail-price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.detail-desc { white-space: pre-wrap; word-break: break-word; font-size: 16px; line-height: 1.7; margin: 0 0 18px; }
.detail-stats { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.cta-row { display: flex; gap: 10px; align-items: stretch; }
.fav-btn { width: 52px; border: 1px solid #dcdee3; border-radius: 8px; background: #fff; font-size: 22px; cursor: pointer; color: var(--muted); }
.fav-btn.on { color: var(--danger); border-color: var(--danger); }
.cta-row .btn { flex: 1; }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 4px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 36%; color: var(--muted); font-weight: 500; }
.inquiry-box { margin-top: 14px; }
.inquiry-box textarea { min-height: 84px; }
details.report { margin-top: 18px; font-size: 13px; }
details.report summary { cursor: pointer; color: var(--muted); text-decoration: underline; }
.owner-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; background: var(--bg-gray); border-radius: var(--radius); margin-bottom: 18px; }
.owner-bar select { width: auto; padding: 6px 10px; }

/* 사진 등록 */
.image-manage { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.image-manage label { position: relative; width: 96px; font-weight: 400; font-size: 12px; }
.image-manage img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.write-wrap { max-width: 720px; margin: 0 auto; }

/* ---------- 프로필 / 탭 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--text); }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 8px; }
.profile-head .who { display: flex; gap: 14px; align-items: center; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 26px; }
.profile-head h2 { margin: 0 0 2px; font-size: 22px; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-list .top { display: flex; justify-content: space-between; font-size: 14px; }
.review-list p { margin: 6px 0 0; }
.rating-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rating-pick label { flex: 1; min-width: 100px; border: 1px solid #dcdee3; border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; margin: 0; }
.rating-pick input { display: none; }
.rating-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.buyer-pick label { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; margin: 0; cursor: pointer; }

/* ---------- 채팅 ---------- */
.conv-list { list-style: none; margin: 0; padding: 0; }
.conv-list li { border-bottom: 1px solid var(--border); }
.conv-list a { display: flex; gap: 14px; padding: 14px 4px; align-items: center; }
.conv-list a:hover { background: #fafafb; }
.conv-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-gray); flex-shrink: 0; }
.conv-main { flex: 1; min-width: 0; }
.conv-main .top { display: flex; gap: 6px; font-size: 14px; align-items: baseline; }
.conv-main .last { color: var(--sub); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-wrap { max-width: 720px; margin: 0 auto; }
.chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 75%; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.bubble .time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.other { align-self: flex-start; background: var(--bg-gray); border-bottom-left-radius: 4px; }
.chat-product { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form textarea { min-height: 52px; border-radius: 20px; }

/* ---------- 게시판 ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 18px 4px; font-weight: 700; cursor: pointer; }
.faq .answer { padding: 0 4px 18px; color: var(--sub); white-space: pre-wrap; }
.board-sub { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.board-sub a { padding: 8px 16px; border: 1px solid #dcdee3; border-radius: 20px; font-size: 14px; font-weight: 600; }
.board-sub a.active { background: var(--text); color: #fff; border-color: var(--text); }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 18px; }
.article-body { white-space: pre-wrap; word-break: break-word; min-height: 120px; }
.doc { border: 0; padding: 0; }
.doc h3 { margin-top: 1.6em; }

/* ---------- 표 (관리자) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table th { background: #fafafb; color: var(--muted); font-weight: 600; }
.table td.wrap { white-space: normal; min-width: 180px; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--primary); }

/* ---------- 관리자 ---------- */
.admin-body { background: var(--bg-gray); }
.admin-body .tabbar { display: none; }
.admin-body .auth-box { background: #fff; padding: 28px; border-radius: var(--radius); }
.admin-header { background: #212124; color: #fff; }
.admin-header .header-inner { height: 56px; }
.admin-header .logo { color: #fff; font-size: 17px; }
.admin-header nav { display: flex; gap: 18px; flex: 1; font-size: 14px; overflow-x: auto; }
.admin-header nav a { color: #c4c7cc; white-space: nowrap; }
.admin-header nav a.active, .admin-header nav a:hover { color: #fff; }
.admin-header .right { font-size: 13px; color: #9a9ea6; white-space: nowrap; }
.admin-header .right a { color: #fff; margin-left: 10px; }
@media (max-width: 760px) {
    .admin-header .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
    .admin-header nav { order: 3; width: 100%; }
    .admin-body { padding-bottom: 0; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 800; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search-bar input, .search-bar select { width: auto; flex: 1 1 160px; }

/* ---------- 카카오·네이버 로그인 버튼 ---------- */
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.social-btn .social-icon { display: flex; }
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.social-kakao { background: #FEE500; color: #191919; }
.social-kakao:hover { background: #f5dc00; }
.social-naver { background: #03C75A; color: #fff; }
.social-naver:hover { background: #02b351; }
.social-btn.is-disabled { background: var(--bg-gray); color: var(--muted); cursor: default; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- 판매글 쓰기: 사진 올리기 / 제목·가격 ---------- */
.photo-uploader { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.photo-add {
    width: 110px; height: 110px; margin: 0; border: 2px dashed #3b4a8f; border-radius: 12px; background: #eef1fa;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #5a6488; font-size: 13px; font-weight: 600; cursor: pointer;
}
.photo-add:hover { background: #e3e8f7; }
.photo-add input { display: none; }
.photo-add .plus { font-size: 26px; line-height: 1; }
.photo-add .photo-count { font-size: 12px; font-weight: 500; }
.photo-add.is-full { opacity: .5; cursor: not-allowed; }
.photo-item { position: relative; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--bg-gray); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item.is-cover::after { content: "대표사진"; position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; }
.photo-item.is-removed { opacity: .3; }
.photo-del {
    position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 0;
    background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 24px; text-align: center; cursor: pointer; padding: 0;
}
.photo-del input { display: none; }
.title-price { display: grid; grid-template-columns: 1fr 220px; gap: 14px; }
@media (max-width: 560px) { .title-price { grid-template-columns: 1fr; } .photo-add, .photo-item { width: 96px; height: 96px; } }
