/* Print-a-map page: controls on the left, preview map with page frames on the right. */
.print-page { height: 100dvh; display: flex; flex-direction: column; }
.pm { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.pm-panel { overflow-y: auto; padding: 20px clamp(16px, 2vw, 24px) 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pm-panel h1 { font-size: 22px; margin: 0; }
.pm-panel p { margin: 0; }
.pm-panel label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pm-panel input[type="text"], .pm-panel input[type="search"], .pm-panel input[type="number"], .pm-panel select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; min-width: 0;
}
.pm-panel fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
.pm-panel legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0 4px; }
.pm-radio { display: flex !important; align-items: baseline; gap: 8px !important; flex-wrap: wrap; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-row [hidden] { display: none !important; }
.pm-summary { font-size: 14px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
#make { width: 100%; text-align: center; cursor: pointer; font: inherit; font-weight: 600; }
#make:disabled { opacity: 0.6; cursor: progress; }
.pm-tips { font-size: 14px; }
.pm-tips summary { cursor: pointer; color: var(--brand); }
.pm-tips ul { padding-inline-start: 18px; margin: 8px 0 0; }
.pm-search { position: relative; }
.pm-search ul {
  position: absolute; z-index: 5; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.3);
}
.pm-search li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: grid; font-size: 14px; }
.pm-search li:hover { background: var(--soft); }
.pm-search li span { font-size: 12px; color: var(--muted); }
.pm-map { position: relative; min-height: 0; padding: 0; margin: 0; max-width: none; }
.pm-map #map { position: absolute; inset: 0; width: 100%; height: 100%; }
#frames { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pm-hint { position: absolute; left: 12px; bottom: 12px; margin: 0; font-size: 12px; background: rgba(255, 255, 255, 0.9); color: #334155; padding: 6px 10px; border-radius: 8px; }
.pm-offscreen { position: fixed; left: -100000px; top: 0; }

@media (max-width: 860px) {
  .print-page { height: auto; }
  .pm { grid-template-columns: 1fr; }
  .pm-map { height: 62vh; order: -1; }
  .pm-panel { border-right: 0; overflow: visible; }
  .pm-hint { display: none; }
}
