/* 고객용 공개 페이지 — 모바일 우선 */
:root {
  --pp-bg: #f5f6f8;
  --pp-card: #fff;
  --pp-text: #111;
  --pp-muted: #6b7280;
  --pp-accent: #2563eb;
  --pp-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body.pp-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--pp-bg);
  color: var(--pp-text);
  line-height: 1.45;
  padding-bottom: 88px;
}

/* 중개사 앱 미리보기 iframe: 전화/문자는 미리보기에서 숨김 (편집은 모달에서만) */
body.pp-body.pp-body--embed {
  padding-bottom: 24px;
}
body.pp-body--embed .pp-fab {
  display: none !important;
}

.pp-header {
  padding: 16px;
  background: var(--pp-card);
  border-bottom: 1px solid var(--pp-border);
}

.pp-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.pp-intro {
  margin: 0;
  font-size: 14px;
  color: var(--pp-muted);
}

.pp-hero {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}

.pp-priceBar {
  padding: 16px;
  background: var(--pp-card);
  border-bottom: 1px solid var(--pp-border);
}

.pp-priceMain {
  font-size: 22px;
  font-weight: 800;
  color: var(--pp-accent);
  text-align: center;
}

.pp-priceSub {
  margin-top: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
}

.pp-priceSub--muted {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.pp-badgeRow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.pp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.pp-section {
  margin: 12px;
  padding: 14px 16px;
  background: var(--pp-card);
  border-radius: 12px;
  border: 1px solid var(--pp-border);
}

.pp-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.pp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.pp-row:last-child {
  border-bottom: none;
}

.pp-row span:first-child {
  color: var(--pp-muted);
}

.pp-map {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
}

.pp-mapWrap {
  position: relative;
}

.pp-mapLockBtn {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pp-gallery img,
.pp-gallery video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.pp-error {
  padding: 48px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--pp-muted);
}

/* 비공개(링크 비활성) 안내 — 본문 + 일반 공유 페이지와 동일 FAB */
.pp-privateExpiredWrap {
  min-height: 40vh;
}

.pp-privateExpired {
  margin-top: 12px;
}

.pp-privateExpired__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-text);
  text-align: center;
  line-height: 1.4;
}

.pp-privateExpired__body {
  margin: 0;
  font-size: 15px;
  color: var(--pp-muted);
  text-align: center;
  line-height: 1.55;
}

/* 미리보기(embed)에서도 만료 안내 시 문의 버튼 노출 */
body.pp-body--embed .pp-privateExpiredWrap .pp-fab {
  display: flex !important;
}

.pp-fab {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  z-index: 50;
}

.pp-fab a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.pp-fab .pp-call {
  background: var(--pp-accent);
  color: #fff;
}

.pp-fab .pp-sms {
  background: #fff;
  color: var(--pp-accent);
  border: 2px solid var(--pp-accent);
}

.pp-listCard {
  margin: 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
}

.pp-listCard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
}

.pp-listCard__body {
  padding: 12px 14px 14px;
}

.pp-listCard__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-accent);
  text-align: center;
}

.pp-listCard__meta {
  font-size: 13px;
  color: var(--pp-muted);
  margin-top: 4px;
}

.pp-listCard__btn {
  display: block;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--pp-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.pp-muted {
  color: var(--pp-muted);
}

.pp-watermark {
  margin: 18px 12px 96px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}
