/* 유티즌 기본 스타일 — 모바일 우선 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #dc2626;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* 헤더 */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 12px; height: 56px; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.header-user { display: flex; margin-left: auto; gap: 12px; align-items: center; font-size: 14px; white-space: nowrap; }

/* 헤더 좌측 빠른 등록 링크 */
.header-quick { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; }
.header-quick a { color: var(--text-light); }
.header-quick a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 560px) { .header-quick { display: none; } }

/* 지역설정 버튼 (왼쪽 상단) */
.region-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text); font-family: inherit; white-space: nowrap;
}
.region-btn:hover { border-color: var(--primary); color: var(--primary); }
.region-caret { font-size: 11px; color: var(--text-light); }

/* 지역설정 모달 */
.region-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.region-modal[hidden] { display: none; }
.region-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.region-modal-box {
  position: relative; background: #fff; border-radius: 12px; padding: 24px;
  width: calc(100% - 32px); max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.region-modal-box h2 { font-size: 18px; margin-bottom: 4px; }
.region-modal-desc { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.region-modal-box .region-select { flex-direction: column; }
.region-modal-box .region-select select { width: 100%; }
.region-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 포털 히어로: 메인 타이틀 + 대형 통합검색 */
.portal-hero {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 28px 16px 26px; text-align: center;
}
/* 타이틀+검색과 날씨를 한 줄에 — 공간 부족 시에만 날씨가 다음 줄로 랩 */
.portal-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 28px;
}
.portal-center { flex: 0 1 560px; min-width: 280px; }
.portal-logo {
  display: inline-block; font-size: 34px; font-weight: 800; color: var(--primary);
  letter-spacing: -1px; margin-bottom: 16px;
}
.portal-search {
  display: flex; max-width: 560px; margin: 0 auto;
  border: 2px solid var(--primary); border-radius: 26px; overflow: hidden; background: #fff;
}
.portal-search input {
  flex: 1; border: none; padding: 13px 20px; font-size: 16px; min-width: 0; font-family: inherit;
}
.portal-search input:focus { outline: none; }
.portal-search button {
  border: none; background: var(--primary); color: #fff; padding: 0 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.portal-search button:hover { background: var(--primary-dark); }

/* AI 답변 (스트리밍) */
.ai-answer { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.ai-loading-inline { font-size: 13px; color: var(--text-light); display: inline-flex; align-items: center; gap: 8px; }
.ai-dot { width: 12px; height: 12px; border: 2px solid #e9d5ff; border-top-color: #7c3aed; border-radius: 50%; animation: ai-spin .7s linear infinite; display: inline-block; }
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* AI 분석 추천 결과 리스트 */
.ai-result-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-result-list a { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.7); border-radius: 10px; padding: 8px 12px; }
.ai-result-list a:hover { background: #fff; }
.ai-result-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.air-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.air-title { font-size: 14px; font-weight: 600; }
.air-meta { font-size: 12px; color: var(--text-light); }
.ai-empty { font-size: 13px; color: var(--text-light); padding: 6px 2px; }
.ai-score { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
@media (max-width: 640px) {
  .portal-hero { padding: 20px 16px 18px; }
  .portal-logo { font-size: 28px; margin-bottom: 12px; }
  .portal-search input { padding: 11px 16px; font-size: 15px; }
}

.search-summary { margin: 4px 0 12px; font-size: 14px; color: var(--text-light); }

/* 우리 지역 여행 (TourAPI) */
.travel-section {
  background: radial-gradient(ellipse 100% 130% at 50% 0%, rgba(5,150,105,.07), rgba(5,150,105,0) 70%);
  border-radius: 14px; padding: 16px 16px 18px; margin-bottom: 18px;
}
.travel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.travel-head h2 { font-size: 16px; }
.travel-source { font-size: 11px; color: var(--text-light); }
.travel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .travel-grid { grid-template-columns: repeat(2, 1fr); } }
.travel-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; min-width: 0;
}
.travel-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.travel-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.travel-noimg { height: 150px; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 38px; }
.travel-title { font-size: 14px; font-weight: 600; padding: 10px 12px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.travel-addr { font-size: 12px; color: var(--text-light); padding: 0 12px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.travel-fest { margin-top: 14px; }
.travel-fest h3 { font-size: 14px; margin-bottom: 8px; }
.travel-fest ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.travel-fest a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.travel-fest a:hover { background: var(--bg); }
.travel-fest strong { font-size: 13px; }
.travel-fest span { font-size: 11px; color: var(--text-light); white-space: nowrap; }

/* 외부 검색결과 (네이버) */
.ext-search { margin-top: 28px; padding-top: 20px; border-top: 2px dashed var(--border); }
.ext-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ext-head h2 { font-size: 17px; }
.ext-source { font-size: 12px; color: var(--text-light); }
.ext-group { margin-bottom: 18px; }
.ext-group h3 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.ext-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ext-list li { background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.ext-list a { display: block; padding: 10px 14px; }
.ext-list a:hover { background: var(--bg); }
.ext-list strong { font-size: 14px; color: var(--primary-dark); }
.ext-cat { font-size: 11px; color: var(--text-light); margin-left: 6px; }
.ext-from { font-size: 10px; color: #fff; background: var(--text-light); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.ext-desc { display: block; font-size: 12px; color: var(--text); margin-top: 2px; }
.ext-meta { display: block; font-size: 11px; color: var(--text-light); margin-top: 2px; }
.ext-note { font-size: 11px; color: var(--text-light); margin-top: 10px; }

/* AI 추천 섹션 — 날씨 카드와 같은 톤의 이너 그라데이션 */
.ai-recommend {
  padding: 16px 18px 18px; margin-bottom: 14px; border-radius: 16px;
  background: radial-gradient(ellipse 90% 120% at 50% 45%,
    rgba(124, 58, 237, .09) 0%,
    rgba(37, 99, 235, .05) 45%,
    rgba(37, 99, 235, .015) 68%,
    rgba(37, 99, 235, 0) 85%);
}
.ai-recommend-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ai-badge {
  font-size: 13px; font-weight: 800;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-recommend-sub { font-size: 12px; color: var(--text-light); }
.ai-recommend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 800px) { .ai-recommend-grid { grid-template-columns: repeat(2, 1fr); } }
.ai-card {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(30, 64, 175, .06);
  transition: transform .12s, box-shadow .12s;
}
.ai-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 64, 175, .12); }
.ai-card-icon { font-size: 18px; }
.ai-card-title { font-size: 13px; line-height: 1.35; }
.ai-card-desc { font-size: 11px; color: var(--text-light); line-height: 1.4; }

/* 전체보기: 카테고리별 분류 카운트 요약 (좌: 고정폭 라벨 / 우: 항목 나열) */
.cat-summary {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 16px;
}
.cat-summary-row {
  display: flex; align-items: stretch;
  font-size: 13px; border-bottom: 1px solid var(--bg);
}
.cat-summary-row:last-child { border-bottom: none; }
.cat-summary-name {
  flex: 0 0 96px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; background: var(--bg); color: var(--text);
  border-right: 1px solid var(--border); padding: 10px 8px; text-align: center;
}
.cat-summary-name:hover { color: var(--primary); background: #eff6ff; }
.cat-summary-opts {
  flex: 1; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 14px; padding: 10px 14px; min-width: 0;
}
.cat-summary-opts a { color: var(--text-light); white-space: nowrap; }
.cat-summary-opts a.has-posts { color: var(--primary-dark); font-weight: 600; }
.cat-summary-opts a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 640px) {
  .cat-summary-name { flex-basis: 76px; font-size: 12px; }
  .cat-summary-opts { gap: 4px 10px; padding: 8px 10px; font-size: 12px; }
}

/* 내 위치 버튼 */
.btn-locate { width: 100%; font-weight: 600; }
.locate-status { font-size: 13px; color: var(--text-light); margin-top: 8px; }
.region-modal-divider {
  display: flex; align-items: center; gap: 10px; color: var(--text-light);
  font-size: 12px; margin: 14px 0;
}
.region-modal-divider::before, .region-modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* 카테고리 탭바 — 넘치면 스크롤 대신 줄바꿈(모바일에서도 탭 안 잘림) */
.category-tabs {
  display: flex; flex-wrap: wrap; gap: 2px 4px; margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.category-tabs a {
  padding: 10px 13px; font-size: 15px; white-space: nowrap; flex: 0 0 auto;
  color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.category-tabs a.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.category-tabs a:hover { color: var(--primary); }

.badge-cat {
  background: var(--bg); color: var(--text-light); font-size: 11px;
  padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); margin-right: 4px;
}

.inline-form { display: inline; }
.btn-link { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* 헤더 콜센터 링크 */
.header-cc { font-weight: 700; color: var(--primary); white-space: nowrap; }
.header-cc:hover { text-decoration: underline; }

/* 콜센터 랜딩 */
.cc-hero { text-align: center; padding: 36px 16px 28px; background: linear-gradient(160deg, #eff6ff, #fff); border-radius: 16px; margin-bottom: 24px; }
.cc-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); background: #fff; border: 1px solid #dbeafe; border-radius: 20px; padding: 5px 14px; margin-bottom: 14px; }
.cc-hero h1 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.cc-hero > p { color: var(--text-light); font-size: 15px; max-width: 560px; margin: 0 auto 20px; }
.cc-tel { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cc-tel a { display: flex; flex-direction: column; gap: 2px; padding: 12px 22px; border-radius: 12px; text-align: left; }
.cc-tel a span { font-size: 12px; }
.cc-tel a strong { font-size: 22px; letter-spacing: -.5px; }
.cc-tel-main { background: var(--primary); color: #fff; }
.cc-tel-main:hover { background: var(--primary-dark); }
.cc-tel-sub { background: #fff; border: 1px solid var(--border); color: var(--text); }
.cc-tel-sub span { color: var(--text-light); }

.cc-services, .cc-how, .cc-cta { margin-bottom: 28px; }
.cc-services h2, .cc-how h2 { font-size: 18px; margin-bottom: 14px; }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
.cc-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cc-icon { font-size: 30px; }
.cc-card strong { font-size: 14px; }
.cc-desc { font-size: 12px; color: var(--text-light); }
.cc-card:hover { border-color: var(--primary); box-shadow: 0 3px 10px rgba(37,99,235,.1); }
.cc-card-cta { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.cc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .cc-steps { grid-template-columns: 1fr; } }
.cc-steps li { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.cc-step-no { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.cc-steps strong { font-size: 14px; }
.cc-steps p { font-size: 12px; color: var(--text-light); margin-top: 3px; line-height: 1.5; }

/* 지도검색·견적 */
.est-search { display: flex; max-width: 480px; margin: 18px auto 0; border: 2px solid var(--primary); border-radius: 24px; overflow: hidden; background: #fff; }
.est-search input { flex: 1; border: none; padding: 12px 18px; font-size: 15px; min-width: 0; }
.est-search input:focus { outline: none; }
.est-search button { border: none; background: var(--primary); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }
.est-group { margin-bottom: 22px; }
.est-group h2 { font-size: 16px; margin-bottom: 10px; padding-left: 4px; border-left: 3px solid var(--primary); }
.est-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 800px) { .est-grid { grid-template-columns: repeat(2, 1fr); } }
.est-item { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 14px; font-weight: 600; }
.est-item:hover { border-color: var(--primary); box-shadow: 0 3px 10px rgba(37,99,235,.1); }
.est-cta { font-size: 12px; font-weight: 600; color: var(--primary); }

/* 업체 선택(동시견적) */
.provider-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.provider-item { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.provider-item:hover { border-color: var(--primary); }
.provider-item input { margin-top: 3px; }
.provider-info { display: flex; flex-direction: column; gap: 2px; }
.provider-info strong { font-size: 14px; }
.provider-desc { font-size: 12px; color: var(--text); }
.provider-meta { font-size: 11px; color: var(--text-light); }

/* 업체 대시보드 */
.pt-provider { margin-bottom: 28px; }
.pt-provider-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-provider-head strong { font-size: 16px; }
.pt-requests { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pt-req { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.pt-req.is-won { border-color: #10b981; background: #f0fdf4; }
.pt-req-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-badge-target { font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 10px; padding: 2px 8px; }
.pt-req-body { font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.pt-req-content { background: var(--bg); border-radius: 6px; padding: 8px 10px; margin: 4px 0; color: var(--text-light); }
.pt-my-quote { font-size: 13px; margin-top: 8px; color: var(--text); }
.pt-quote-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pt-quote-form input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.pt-quote-form input[name="price"] { width: 130px; }
.pt-quote-form input[name="message"] { flex: 1; min-width: 180px; }

/* 소비자 견적 비교 */
.rv-summary { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.rv-quotes h2 { font-size: 17px; margin-bottom: 12px; }
.rv-quote-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rv-quote { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.rv-quote.is-selected { border-color: #10b981; background: #f0fdf4; }
.rv-quote.is-rejected { opacity: .55; }
.rv-quote-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rv-quote-head strong { font-size: 15px; }
.rv-price { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--primary-dark); }
.rv-quote-msg { font-size: 13px; background: var(--bg); border-radius: 6px; padding: 8px 10px; margin: 6px 0; }
.rv-quote-meta { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.rv-contact { font-size: 15px; margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 협력업체 등록 유도 */
.cc-partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.cc-partner-cta strong { display: block; font-size: 15px; }
.cc-partner-cta span { font-size: 13px; color: var(--text-light); }

.cc-cta { text-align: center; background: var(--bg); border-radius: 12px; padding: 24px; }
.cc-cta p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.cc-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 배차 콘솔 */
.table-scroll { overflow-x: auto; }
.dispatch-table select { padding: 4px 6px; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; max-width: 140px; }
.disp-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; color: #fff; }
.disp-requested { background: #f59e0b; }
.disp-assigned { background: #2563eb; }
.disp-in_progress { background: #7c3aed; }
.disp-done { background: #10b981; }
.disp-held { background: #6b7280; }
.disp-canceled { background: #ef4444; }

/* 작업자 내 작업 */
.worker-jobs { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.worker-job { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.wj-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wj-head strong { font-size: 15px; }
.wj-info { font-size: 13px; display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.wj-content { background: var(--bg); border-radius: 6px; padding: 8px 10px; margin-top: 4px; color: var(--text-light); }
.wj-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 알림 */
.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 메인 (본문 + 우측 250px 광고 컬럼) */
.layout-row { display: flex; gap: 20px; align-items: flex-start; padding: 24px 16px 48px; min-height: 60vh; }
#content-area { flex: 1; min-width: 0; }
#content-area.swapping { opacity: .45; transition: opacity .15s; pointer-events: none; }
.ad-col {
  flex: 0 0 250px; width: 250px; position: sticky; top: 72px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 1000px) {
  .ad-col { display: none; } /* 좁은 화면에서는 광고 영역 숨김 */
}

/* 메인 상단 배너 */
.main-banner { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.main-banner img { display: block; width: 100%; height: auto; }

/* 관리자 페이지 보조 텍스트 */
.muted { color: var(--text-light); font-size: 13px; }

/* 광고 카드 */
.ad-card { border-radius: 12px; overflow: hidden; display: block; }
.ad-banner img { display: block; width: 100%; }
.ad-house {
  position: relative; padding: 20px 18px; color: #fff; cursor: pointer;
}
.ad-house .ad-label {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-weight: 700; opacity: .7; letter-spacing: 1px;
}
.ad-house strong { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.ad-house p { font-size: 12px; line-height: 1.5; opacity: .9; margin-bottom: 12px; }
.ad-house .ad-cta {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .22); padding: 6px 12px; border-radius: 14px;
}
.ad-house:hover .ad-cta { background: rgba(255, 255, 255, .34); }
.ad-house-1 { background: linear-gradient(145deg, #2563eb, #1e40af); }
.ad-house-2 { background: linear-gradient(145deg, #7c3aed, #4c1d95); }
.ad-house-3 { background: linear-gradient(145deg, #059669, #065f46); }

/* 날씨 위젯 (히어로 우측, 이너 그라데이션·테두리 없음) */
.weather-card {
  /* 플렉스 항목: 검색창 오른쪽에 같은 줄로 배치, 공간 부족 시 자동 랩 */
  flex: 0 0 auto;
  padding: 12px 16px; text-align: center; cursor: default; white-space: nowrap;
  /* 중앙(날씨 내용)이 가장 진하고 바깥으로 갈수록 완전 투명 — 외곽 경계 티 안 나게 */
  background: radial-gradient(ellipse 75% 75% at 50% 50%,
    rgba(37, 99, 235, .12) 0%,
    rgba(37, 99, 235, .06) 40%,
    rgba(37, 99, 235, .02) 62%,
    rgba(37, 99, 235, 0) 80%);
}
.weather-region { font-size: 11px; font-weight: 600; color: var(--text-light); margin-bottom: 2px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-now { display: flex; align-items: center; justify-content: center; gap: 6px; }
.weather-icon { font-size: 22px; }
.weather-temp { font-size: 22px; font-weight: 800; }
.weather-desc { font-size: 12px; color: var(--text-light); }
.weather-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
@media (max-width: 640px) {
  .weather-card { padding: 8px 14px; }
}
.hero { text-align: center; padding: 32px 0; }
.hero h1 { font-size: 24px; margin-bottom: 8px; }
.hero p { color: var(--text-light); }

.home-section { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; }
.more { font-size: 13px; color: var(--text-light); }

.card-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .card-list { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.card img { width: 100%; height: 120px; object-fit: cover; }
.card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--text-light); }

/* 목록 */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-head h1 { font-size: 22px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; background: #fff; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.filter-bar select, .filter-bar input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.filter-bar input[type="search"] { flex: 1; min-width: 120px; }

.region-select { display: flex; gap: 6px; flex-wrap: wrap; }
.region-select select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }

.post-list { list-style: none; }
.post-row { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.post-row.is-ad { border-color: #fbbf24; background: #fffbeb; }
.post-row > a { display: flex; gap: 12px; padding: 12px; }
.post-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.post-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.post-title { font-size: 15px; }
.post-ext { font-size: 13px; color: var(--primary-dark); }
.post-meta { font-size: 12px; color: var(--text-light); }

.badge-ad { background: #f59e0b; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.badge-closed { background: var(--text-light); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.badge-ok { background: #10b981; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.badge-pending { background: #f59e0b; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }

.empty { color: var(--text-light); text-align: center; padding: 40px 0; }

/* 상세 */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.post-detail { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.post-detail h1 { font-size: 20px; margin-bottom: 6px; }
.post-images { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0; }
.post-images img { max-height: 320px; border-radius: 8px; }
.detail-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.detail-table th { text-align: left; width: 110px; padding: 8px; background: var(--bg); border: 1px solid var(--border); font-weight: 600; }
.detail-table td { padding: 8px; border: 1px solid var(--border); }
.post-content { margin: 20px 0; white-space: normal; }
.post-actions { display: flex; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }

/* 폼 */
.post-form, .auth-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; max-width: 640px; }
.auth-box { max-width: 420px; margin: 24px auto; }
.auth-box h1 { font-size: 20px; margin-bottom: 16px; text-align: center; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.form-group label small { font-weight: 400; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.radio-row { display: flex; gap: 16px; }
.radio-row label { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.radio-row input { width: auto; }
.advertiser-fields { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.advertiser-fields legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; }
.existing-images { display: flex; gap: 6px; margin-top: 8px; }
.thumb-sm { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.remember-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; cursor: pointer; }
.remember-row input { width: auto; }
.auth-links { text-align: center; font-size: 13px; margin-top: 14px; color: var(--text-light); }
.auth-links a { color: var(--primary); }

/* 버튼 */
.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--text);
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

/* 페이지네이션 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; font-size: 14px; }
.pagination a, .pagination .current { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 마이페이지/관리자 */
.mypage-profile, .mypage-posts { margin-bottom: 28px; }
.mypage-profile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mypage-profile-head h2 { margin: 0; }
.pw-fields, .form-hint { margin-top: 4px; }
.pw-fields { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.pw-fields legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.form-hint { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-group input:disabled { background: var(--bg); color: var(--text-light); }
.mypage-profile h2, .mypage-posts h2 { font-size: 17px; margin-bottom: 10px; }
.admin-nav { display: flex; gap: 4px; margin: 16px 0; border-bottom: 2px solid var(--border); }
.admin-nav a { padding: 8px 16px; font-size: 14px; }
.admin-nav a.active { border-bottom: 2px solid var(--primary); color: var(--primary); font-weight: 600; margin-bottom: -2px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 28px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; }
.stat-label { font-size: 13px; color: var(--text-light); }
.stat-card strong { font-size: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.admin-table th { background: var(--bg); }

/* 댓글·문의 */
.comments { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-top: 16px; }
.comments h2 { font-size: 16px; margin-bottom: 14px; }
.comment-list { list-style: none; margin-bottom: 16px; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--bg); position: relative; }
.comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-meta strong { font-size: 14px; }
.comment-meta span { font-size: 12px; color: var(--text-light); }
.comment-body { font-size: 14px; line-height: 1.5; }
.comment-del { position: absolute; top: 12px; right: 0; }
.comment-del .btn-link { font-size: 12px; color: var(--text-light); }
.comment-del .btn-link:hover { color: var(--danger); }
.comment-form { display: flex; gap: 8px; align-items: flex-start; }
.comment-form textarea { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; resize: vertical; }
.comment-form button { flex-shrink: 0; }
.comment-login { font-size: 14px; color: var(--text-light); }
.comment-login a { color: var(--primary); }

/* 문의 채널 + 찜 버튼 */
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.btn-contact { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.btn-contact:hover { background: #eff6ff; }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191919; font-weight: 700; }
.btn-kakao:hover { background: #f5dc00; }
.btn-fav { color: #e11d48; border-color: #fecdd3; font-weight: 600; }
.btn-fav.is-on { background: #fff1f2; border-color: #e11d48; }
.btn-fav:hover { background: #fff1f2; }

/* 신고하기 */
.report-box { margin: 20px 0 4px; font-size: 13px; }
.report-box summary { cursor: pointer; color: var(--text-light); }
.report-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.report-form select, .report-form input {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit;
}
.report-form input { flex: 1; min-width: 160px; }

/* 최근 본 정보 */
.recent-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.recent-head { font-size: 13px; font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: space-between; }
.recent-clear { background: none; border: none; font-size: 11px; font-weight: 400; color: var(--text-light); cursor: pointer; padding: 0; }
.recent-clear:hover { color: var(--danger); text-decoration: underline; }
.recent-list { list-style: none; }
.recent-list li { border-bottom: 1px solid var(--bg); }
.recent-list li:last-child { border-bottom: none; }
.recent-list a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.recent-list a:hover { background: var(--bg); }
.recent-list img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.recent-noimg { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 6px; flex-shrink: 0; }
.recent-title { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 에러 페이지 */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 48px; color: var(--text-light); }
.error-page p { margin: 12px 0 24px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; font-size: 13px; color: var(--text-light); }
