/* 업체 요청 폼(place-request.js) + 상세 카드의 요청 단추·「업체가 직접 확인한 정보」 표시(place-card.js).
 *
 * **모든 이름이 `prq-`·`pc-req`·`pc-owner` 로 시작한다.** app.css 의 맨 클래스(`.none`·`.row`·`.hint` …)와
 * 겹치면 공용 규칙이 이 창을 조용히 가로챈다. 색은 app.css 토큰을 쓰되 **늘 대체값을 같이 적는다** —
 * 라이브 app.css 에 그 토큰이 없으면 대체값 없이 흰 글씨가 된다.
 *
 * PC 는 가운데 창(560px), 폰(720px 미만)은 화면 전체. 갈림은 여기 한 곳에서만 한다.
 */

/* ── 상세 카드 ── */
.place-card .pc-owner {
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 10px;
  background: #e8f1ff; color: #1c4fa0; border: 1px solid #c9dcfb;
}
.place-card .pc-req { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 2px; border-top: 1px solid var(--line, #ececef); margin-top: 12px; }
.place-card .pc-req .btn { flex: 1 1 40%; width: auto; padding: 11px 8px; font-size: 13px; }

/* 「내 주변」 목록 맨 아래 — 지도에 없는 곳을 알리는 입구(app.js renderVenueList). */
.prq-newlink {
  display: block; width: calc(100% - 24px); margin: 10px 12px 14px; padding: 11px 12px; border-radius: 12px;
  border: 1.5px dashed #c9ccd3; background: var(--soft, #f7f7f8); color: var(--ink, #111214);
  font-size: 13px; font-weight: 700; text-align: center;
}
.prq-newlink:focus-visible { outline: 2px solid var(--y, #f5c542); outline-offset: 2px; }

/* ── 창 ── */
html.prq-lock, html.prq-lock body { overflow: hidden; }
.prq-root { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.prq-root [hidden] { display: none !important; }
.prq-scrim { position: absolute; inset: 0; background: rgba(14, 14, 17, 0.55); }
.prq-dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(560px, calc(100vw - 32px)); max-height: min(88vh, 900px);
  background: var(--card, #fff); color: var(--ink, #111214);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); overflow: hidden;
  font-size: 14px; line-height: 1.55; letter-spacing: -0.2px;
}
.prq-dialog:focus { outline: none; }
.prq-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px 12px 20px;
  border-bottom: 1px solid var(--line, #ececef); background: var(--card, #fff);
}
.prq-ht { flex: 1; min-width: 0; }
.prq-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.5px; }
.prq-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--sub, #7a7d85); overflow-wrap: anywhere; }
.prq-x {
  flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; line-height: 1;
  background: var(--soft, #f7f7f8); color: var(--ink, #111214); border: 0; cursor: pointer;
}
.prq-x:focus-visible, .prq-root button:focus-visible, .prq-root summary:focus-visible { outline: 2px solid var(--y, #f5c542); outline-offset: 2px; }
.prq-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 22px; }

.prq-lead { margin: 0 0 12px; font-size: 13.5px; color: var(--ink, #111214); }
.prq-fs { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.prq-fs > legend { font-size: 12px; font-weight: 800; color: var(--sub, #7a7d85); padding: 8px 0 2px; }
.prq-fs.prq-sub > legend { padding: 0; color: var(--ink, #111214); }
.prq-fs.prq-sub { margin: 10px 0; }
.prq-f { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; min-width: 0; }
.prq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.prq-lb { font-size: 13px; font-weight: 700; color: var(--ink, #111214); }
.prq-lb i { font-style: normal; color: #c7920a; margin-left: 2px; }
.prq-lb em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--sub, #7a7d85); margin-left: 6px; }
.prq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 16px 밑이면 아이폰이 입력칸을 누를 때 화면을 확대한다. */
.prq-in {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink, #111214);
  background: #fff; border: 1.5px solid var(--line, #ececef); border-radius: 12px; padding: 10px 12px;
}
textarea.prq-in { resize: vertical; min-height: 64px; line-height: 1.5; }
.prq-in:focus { outline: none; border-color: var(--y, #f5c542); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.25); }
.prq-in::placeholder { color: #a9acb3; }
.prq-hint { margin: 0; font-size: 12px; color: var(--sub, #7a7d85); overflow-wrap: anywhere; }

.prq-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prq-seg label { position: relative; cursor: pointer; }
.prq-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.prq-seg span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line, #ececef); font-size: 13px; background: #fff; }
.prq-seg input:checked + span { background: var(--ink, #111214); color: #fff; border-color: var(--ink, #111214); font-weight: 700; }
.prq-seg input:focus-visible + span { outline: 2px solid var(--y, #f5c542); outline-offset: 2px; }

/* 파일 고르기 — 진짜 input 을 투명하게 덮어 둔다(키보드·읽어 주는 기기가 그대로 쓴다). */
.prq-file { position: relative; display: inline-flex; align-self: flex-start; }
.prq-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 0; }
.prq-file span { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1.5px dashed #c9ccd3; background: var(--soft, #f7f7f8); font-weight: 700; font-size: 13px; }
.prq-file:focus-within span { outline: 2px solid var(--y, #f5c542); outline-offset: 2px; }
.prq-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.prq-thumbs:empty { display: none; }
.prq-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft, #f7f7f8); }
.prq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prq-thumb button {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(14, 14, 17, 0.72); color: #fff; font-size: 12px; line-height: 26px; cursor: pointer;
}

.prq-agree { border-top: 1px solid var(--line, #ececef); margin-top: 14px; padding-top: 8px; }
.prq-ag { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 13.5px; }
.prq-ag input { width: 20px; height: 20px; flex: none; accent-color: var(--y, #f5c542); margin: 0; }
.prq-ag b { color: var(--point, #b7860b); }
.prq-det summary { font-size: 12.5px; color: var(--sub, #7a7d85); cursor: pointer; padding: 2px 0 6px; }
.prq-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.prq-tbl th { text-align: left; white-space: nowrap; vertical-align: top; color: var(--sub, #7a7d85); font-weight: 600; padding: 5px 10px 5px 0; width: 1%; }
.prq-tbl td { padding: 5px 0; border-bottom: 1px solid var(--line, #ececef); }

.prq-legal { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg, #fff6d6); color: var(--warn-ink, #5a4200); font-size: 12.5px; }
.prq-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-bg, #ffeded); color: var(--danger-ink, #c2262a); font-size: 13px; font-weight: 600; }
.prq-send { margin-top: 12px; border: 0; cursor: pointer; font-size: 15px; }
.prq-send:disabled { opacity: 0.6; cursor: default; }
.prq-dim { margin: 8px 0 0; font-size: 12px; color: var(--sub, #7a7d85); text-align: center; }

.prq-mine { background: var(--soft, #f7f7f8); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.prq-mine-h { font-size: 12.5px; }
.prq-mine ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.prq-mine li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.prq-mk { font-weight: 700; }
.prq-st { padding: 1px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line, #ececef); }
.prq-st.ok { background: #e3f7ec; color: #0b6b3a; border-color: #bfe8cf; }
.prq-st.off { background: var(--danger-bg, #ffeded); color: var(--danger-ink, #c2262a); border-color: var(--danger-line, #f3c2c2); }
.prq-st.wait { background: var(--warn-bg, #fff6d6); color: var(--warn-ink, #5a4200); border-color: var(--warn-line, #f0e2b0); }
.prq-when { margin-left: auto; color: var(--sub, #7a7d85); }

.prq-done { text-align: center; padding: 18px 4px 6px; }
.prq-done:focus { outline: none; }
.prq-tick { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--y, #f5c542); color: #111; font-size: 26px; font-weight: 800; line-height: 52px; }
.prq-done > b { display: block; font-size: 17px; letter-spacing: -0.4px; }
.prq-done p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink, #111214); line-height: 1.7; }
.prq-done .prq-dim { color: var(--sub, #7a7d85); }
.prq-rc { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--soft, #f7f7f8); font-size: 12.5px; }
.prq-rc code { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: var(--ink, #111214); }
.prq-rc span:last-child { color: var(--sub, #7a7d85); }
.prq-done .btn { margin-top: 16px; border: 0; cursor: pointer; }

/* ── 폰: 화면 전체 ── */
@media (max-width: 719px) {
  .prq-root { align-items: stretch; }
  .prq-scrim { display: none; }
  .prq-dialog { width: 100vw; max-height: none; height: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .prq-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .prq-body { flex: 1; padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .prq-row { grid-template-columns: 1fr; }
}
