/*
 * v21: 공개(고객용) 화면 전용 테마 — 따뜻한 파스텔/코랄톤 (에어비앤비 스타일).
 * 관리자 화면(css/style.css)에는 영향이 없도록, 반드시 `.pub-theme` 클래스가 걸린
 * 조상 요소(.app-shell) 안에서만 아래 규칙이 적용되도록 스코프를 걸어뒀다.
 * 공개 화면(index.html, inquiry-info.html, vacancy-list.html, vacancy-detail.html,
 * roomview-requested.html, directions.html)에서 style.css 다음에 이 파일을 추가로 불러온다.
 */
.pub-theme {
  color-scheme: light;
  --primary: #FF7E5F;
  --primary-dark: #E86A4C;
  --bg: #F3EAE0;
  --card: #FFFDFB;
  --border: #E9DBCC;
  --text: #3A2E2A;
  --text-muted: #93847C;
  --peach: #F4DCC8;
  --peach-soft: #F8ECE1;
  --radius: 20px;
  --pub-shadow: 0 8px 22px rgba(120, 80, 60, 0.12);
  background: var(--bg);
  box-shadow: none;
}
.pub-theme.app-shell { background: var(--bg); }

.pub-theme .topbar {
  background: transparent;
  border-bottom: none;
  padding: 30px 18px 8px;
  position: static;
}
.pub-theme .topbar .brand { font-weight: 800; font-size: 18px; color: var(--text); }
.pub-theme .topbar .brand small { color: var(--text-muted); font-weight: 500; }
.pub-theme .back-link {
  border: none;
  background: var(--card);
  box-shadow: var(--pub-shadow);
  color: var(--primary-dark);
  font-weight: 700;
}
.pub-theme .icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--pub-shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.pub-theme .page-body { padding: 14px 18px 32px; }

.pub-theme .card {
  background: var(--card);
  border: none;
  border-radius: 16px;
  box-shadow: var(--pub-shadow);
}
.pub-theme .card h4 { color: var(--primary-dark); font-weight: 800; }

.pub-theme .menu-item {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--pub-shadow);
}
.pub-theme .menu-item:hover { background: var(--card); border-color: transparent; }

.pub-theme button,
.pub-theme .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(232, 106, 76, 0.32);
}
.pub-theme button:hover, .pub-theme .btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  filter: brightness(0.97);
}
.pub-theme button:disabled { background: #d8c9be; box-shadow: none; }
.pub-theme .btn.secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--pub-shadow);
}
.pub-theme .error-box { background: #fdeeea; border-color: #f3c9bb; color: #b3401f; border-radius: 12px; }

.pub-theme input, .pub-theme select, .pub-theme textarea {
  border-radius: 12px;
  border-color: var(--border);
  background: var(--card);
}
.pub-theme input:focus, .pub-theme select:focus, .pub-theme textarea:focus { border-color: var(--primary); }
.pub-theme .radio-row label:has(input:checked) { border-color: var(--primary); background: var(--peach-soft); color: var(--primary-dark); }
.pub-theme .radio-row input:checked + span { color: var(--primary-dark); }

/* ---- 실사진 위 은은한 따뜻한 색 보정 오버레이 (형광등 특유의 푸른끼 보정) ---- */
.pub-theme .home-gallery-slide::after,
.pub-theme .room-thumb::after,
.pub-theme .hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 170, 120, 0.16), rgba(255, 120, 90, 0.05));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.pub-theme .photo-strip img,
.pub-theme .lightbox-overlay img,
.pub-theme .home-gallery-slide,
.pub-theme .room-thumb,
.pub-theme .hero-photo {
  filter: saturate(1.06) contrast(1.02) brightness(1.05);
}

/* ---- 메인화면 히어로(건물/시설 사진) ---- */
.pub-theme .home-gallery {
  margin: 0 18px 14px;
  border-radius: var(--radius);
  box-shadow: var(--pub-shadow);
  position: relative;
}
.pub-theme .home-gallery-slide { position: relative; }
.pub-theme .home-gallery-dots .dot { background: var(--border); }
.pub-theme .home-gallery-dots .dot.active { background: var(--primary); }

/* ---- 공실문의 CTA 타일 (메인화면) ---- */
.pub-theme .cta-tile {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 106, 76, 0.32);
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: none;
}
.pub-theme .cta-tile .t { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.pub-theme .cta-tile .d { font-size: 11.5px; opacity: 0.88; }
.pub-theme .cta-tile .chev {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-left: 12px;
}

/* ---- 연락처/위치 풀와이드 카드 ---- */
.pub-theme .info-card-full {
  margin: 0 18px 10px;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--pub-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pub-theme .info-card-full .ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--peach-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.pub-theme .info-card-full h4 { margin: 0 0 2px; font-size: 11px; color: var(--primary-dark); font-weight: 800; }
.pub-theme .info-card-full .v { font-size: 12.5px; line-height: 1.4; color: var(--text); }

.pub-theme .biz-footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin: 14px 18px 4px;
  opacity: 0.85;
}
.pub-theme .admin-link { color: var(--text-muted); }
.pub-theme .admin-link b { color: var(--primary-dark); }

/* ---- 공실 목록 카드 ---- */
.pub-theme .room-list-card {
  margin: 0 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--pub-shadow);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.pub-theme .room-list-card .thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pub-theme .room-list-card .badge-float {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(58, 46, 42, 0.72);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.pub-theme .room-list-card .body { padding: 14px 16px 16px; }
.pub-theme .room-list-card .rt { font-size: 14.5px; font-weight: 800; }
.pub-theme .room-list-card .rd { font-size: 11.5px; color: var(--text-muted); margin: 3px 0 8px; }
.pub-theme .room-list-card .price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.pub-theme .room-list-card .price span { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* ---- 객실상세 갤러리 ---- */
.pub-theme .detail-gallery { position: relative; margin: 0 0 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--pub-shadow); }
.pub-theme .detail-gallery img { width: 100%; height: 240px; object-fit: cover; display: block; cursor: pointer; }
.pub-theme .detail-thumbs { margin: 0 0 16px; }
.pub-theme .detail-thumbs.photo-strip img { width: 64px; height: 64px; border-radius: 10px; }
.pub-theme .detail-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--peach-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pub-theme .detail-price-row .n { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.pub-theme .detail-price-row .l { font-size: 11px; color: var(--text-muted); }
.pub-theme .sticky-cta {
  position: sticky; bottom: 0;
  background: linear-gradient(0deg, var(--bg) 60%, rgba(243, 234, 224, 0));
  padding: 16px 0 4px;
}

/* ---- 오시는길 ---- */
.pub-theme .way-card {
  margin: 0 0 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--pub-shadow);
}
.pub-theme .way-card h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--primary-dark); }
.pub-theme .way-card .v { font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.pub-theme .hero-photo {
  height: 170px;
  border-radius: var(--radius);
  box-shadow: var(--pub-shadow);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #6E7D89, #4B5862);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  overflow: hidden;
}

/* ---- 언어 전환 (한국어/English) — 우측상단 토글 ---- */
.pub-theme .topbar-actions { display: flex; align-items: center; gap: 8px; }
.pub-theme .lang-switch {
  display: flex;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--pub-shadow);
  padding: 3px;
  flex-shrink: 0;
}
.pub-theme .lang-switch .lang-opt {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.2;
}
.pub-theme .lang-switch .lang-opt.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
