/* 매물 사진 가이드 팝업 — js/photo-guide.js 와 한 짝.
   세 센터(파트너 · 딜러 · 관리자)가 함께 쓴다. 센터마다 색·글꼴이 조금씩 달라
   여기서는 그 화면의 값을 빌리지 않고 이 팝업 안에서 다 정한다(원장 창과 같은 판단). */

.cc-pg-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.cc-pg-modal[hidden] { display: none; }
.cc-pg-backdrop { position: absolute; inset: 0; background: rgba(12, 20, 17, 0.55); }
body.cc-pg-open { overflow: hidden; }

.cc-pg-panel {
  position: relative; z-index: 1;
  width: min(880px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: #1c231f;
}
.cc-pg-panel:focus { outline: none; }

.cc-pg-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem; background: #16593f; color: #fff; }
.cc-pg-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.cc-pg-x { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }

/* 본문만 굴러간다 — 머리와 바닥(닫기)은 늘 보여야 한다(매물 등록 창에서 겪은 자리 — 2026-09-28). */
.cc-pg-body { flex: 1 1 auto; overflow-y: auto; padding: 1.2rem 1.3rem 1.4rem; }
.cc-pg-body:focus { outline: none; }

.cc-pg-lead { margin: 0 0 0.9rem; font-size: 0.95rem; font-weight: 700; color: #1c231f; word-break: keep-all; }

.cc-pg-tips { list-style: none; margin: 0 0 1.4rem; padding: 0.9rem 1rem; background: #f4f8f6; border-radius: 10px; display: grid; gap: 0.55rem; }
.cc-pg-tips li { display: flex; gap: 0.55rem; font-size: 0.86rem; line-height: 1.6; color: #44534b; word-break: keep-all; }
.cc-pg-tips i { color: #16593f; flex-shrink: 0; margin-top: 0.15rem; }

.cc-pg-group { margin-bottom: 1.5rem; }
.cc-pg-group-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: #0f2e24; }
.cc-pg-need { font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 50px; background: #e9eeec; color: #5b6b63; }
.cc-pg-need.is-need { background: #fde8ec; color: #b3253a; }
.cc-pg-group-desc { margin: 0 0 0.7rem; font-size: 0.85rem; line-height: 1.6; color: #5b6b63; word-break: keep-all; }

.cc-pg-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cc-pg-shot {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.75rem 0.8rem; background: #fff;
  border: 1px solid #e3e9e5; border-radius: 10px;
}
/* 예시 사진 자리 — 지금은 아이콘만 둔다. 사진이 생기면 이 칸에 <img> 를 넣으면 된다. */
.cc-pg-shot-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 8px; background: #f4f8f6; color: #16593f; font-size: 1.5rem;
}
.cc-pg-shot-name { font-size: 0.88rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.35rem; }
.cc-pg-shot-name em { font-style: normal; font-size: 0.76rem; font-weight: 700; color: #16593f; }
.cc-pg-shot-hint { font-size: 0.78rem; line-height: 1.5; color: #5b6b63; word-break: keep-all; }

.cc-pg-rules ul { list-style: none; margin: 0; padding: 0.9rem 1rem; background: #f4f8f6; border-radius: 10px; display: grid; gap: 0.45rem; }
.cc-pg-rules li { font-size: 0.85rem; line-height: 1.6; color: #44534b; word-break: keep-all; padding-left: 0.9rem; position: relative; }
.cc-pg-rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: #16593f; }

.cc-pg-note { margin: 1.2rem 0 0; font-size: 0.8rem; line-height: 1.6; color: #5b6b63; word-break: keep-all; }

.cc-pg-foot { padding: 0.8rem 1.2rem; border-top: 1px solid #e3e9e5; text-align: right; }
.cc-pg-ok { background: #16593f; color: #fff; border: none; border-radius: 8px; padding: 0.5rem 1.4rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; }

/* 사진 칸의 '사진 가이드' 버튼 — 올리기 버튼 옆에 선다(js/car-photos.js · car-view-photos.js). */
.cc-photo-guide-btn {
  background: #fff; color: #16593f; border: 1px solid #16593f;
  border-radius: 8px; padding: 0.35rem 0.75rem; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.cc-photo-guide-btn i { margin-right: 0.25rem; }

@media (max-width: 767.98px) {
  .cc-pg-panel { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .cc-pg-shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .cc-pg-shots { grid-template-columns: 1fr; }
}
