/* Shared by the public map and the organiser's draft editor. */
.floorplan-page .page { max-width: 1260px; }
.fp-heading { margin-bottom: 24px; max-width: 850px; }
.fp-heading .adm-h1, .fp-heading .h1 { margin-bottom: 12px; }
.fp-heading .muted, .fp-heading .lead { margin: 0; }
.fp-eyebrow { margin: 0 0 8px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.fp-heading--visitor { max-width: none; }
.fp-back-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.fp-panel { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.fp-help { margin: 10px 0 16px; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.fp-help:last-child { margin-bottom: 0; }
.fp-editor .btn--auto, .floorplan-page .btn--auto { width: auto; min-height: 44px; }
.fp-editor button:disabled { opacity: .55; cursor: not-allowed; }
.fp-section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 800; line-height: 1.5; color: var(--deep); }
.fp-steps { display: flex; gap: 26px; margin: 0 0 20px; padding: 0; list-style: none; }
.fp-steps li { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.fp-steps li span, .fp-step-number { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; color: var(--deep); background: var(--sand); font-size: 12px; font-weight: 800; }
.fp-city-form { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.fp-city-form > div { flex: 1 1 260px; min-width: 0; }
.fp-city-form .label { font-size: 13px; }
.fp-city-form .btn { flex: none; }
.fp-publication { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 16px; font-size: 13px; }
.fp-publication a { font-weight: 700; text-underline-offset: 3px; }
.fp-status { margin: 0; font-weight: 800; color: var(--ink-soft); }
.fp-status--published { color: var(--success-ink, #146b3a); }
.fp-upload { margin: 0 0 22px; }
.fp-upload > summary { display: flex; gap: 12px; align-items: center; cursor: pointer; min-height: 30px; font-size: 15px; font-weight: 800; color: var(--deep); }
.fp-upload > summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; font-weight: 400; }
.fp-upload[open] > summary::after { content: "−"; }
.fp-upload form { margin-top: 18px; max-width: 720px; }
.fp-file { height: auto; min-height: 48px; padding: 8px; }
.fp-file::file-selector-button { border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; background: var(--sand); color: var(--ink); cursor: pointer; margin-right: 12px; }
.fp-upload form > .btn { margin-top: 16px; }
.fp-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 700; }
.fp-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand-blue); }
.fp-notice { margin: 18px 0; padding: 14px 18px; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
.fp-notice--error { color: var(--danger-ink, #912018); background: var(--danger-bg, #fdecea); border-color: var(--red); }
#floorplan-reload { margin: 0 0 20px; }
.fp-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); gap: 20px; align-items: start; }
.fp-workbench-map { min-width: 0; }
.fp-map-shell { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.fp-map-toolbar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fp-tool { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: var(--card); color: var(--deep); cursor: pointer; font-size: 24px; font-weight: 700; line-height: 1; }
.fp-tool--fit { font-size: 12px; min-width: auto; }
.fp-tool:hover { background: var(--sand); }
.fp-zoom { margin-left: auto; color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.fp-map-viewport { height: clamp(330px, 59vh, 620px); background: var(--sand); overflow: hidden; }
.fp-map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.fp-map--dragging { cursor: grabbing; }
.fp-map--placing { cursor: crosshair; }
.fp-map:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: -4px; }
.fp-marker { cursor: pointer; }
.fp-marker__hit { fill: transparent; }
.fp-marker__badge { fill: var(--brand-blue); stroke: #fff; stroke-width: 2.5; }
.fp-marker__label { fill: #fff; font-family: var(--text); font-size: 12px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fp-marker__ring { fill: none; stroke: #f5a623; stroke-width: 4; opacity: 0; }
.fp-marker--selected .fp-marker__ring, .fp-marker:focus .fp-marker__ring { opacity: 1; }
.fp-marker--unavailable .fp-marker__badge { fill: #a93831; }
.fp-map-help { margin: 0; padding: 13px 16px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); border-top: 1px solid var(--line); }
.fp-map-shell > .fp-notice { margin: 12px; }
.fp-sidebar .input { font-size: 14px; }
.fp-sidebar > .label { margin-top: 18px; font-size: 13px; }
.fp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; padding: 4px; border-radius: 12px; background: var(--sand); }
.fp-mode { min-height: 44px; border: 0; border-radius: 8px; padding: 8px; background: none; cursor: pointer; font-size: 12px; font-weight: 800; }
.fp-mode[aria-pressed="true"] { background: var(--brand-blue); color: #fff; }
.fp-help--active { padding: 12px; background: var(--sand); border-radius: 10px; color: var(--deep); }
.fp-coordinates { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.fp-coordinates summary { min-height: 34px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--teal); }
.fp-coordinate-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fp-coordinate-inputs .label { font-size: 13px; }
.fp-coordinate-inputs .input { width: 100%; }
.fp-list-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 16px; }
.fp-pin-directory > summary { min-height: 44px; align-items: center; cursor: pointer; margin-bottom: 0; }
.fp-pin-directory > summary::after { content: "+"; margin-left: auto; color: var(--ink-soft); }
.fp-pin-directory[open] > summary { margin-bottom: 14px; }
.fp-pin-directory[open] > summary::after { content: "−"; }
.fp-count { margin: 0; font-size: 12px; color: var(--ink-soft); }
.fp-list { margin: 0; padding: 0; list-style: none; }
.fp-list > li + li { margin-top: 10px; }
.fp-list-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fp-list-item--selected { border-color: var(--brand-blue); background: var(--sand); box-shadow: inset 3px 0 0 var(--brand-blue); }
.fp-list-name { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 800; overflow-wrap: anywhere; }
.fp-list-name a { text-decoration: none; color: var(--ink); }
.fp-list-name a:hover { text-decoration: underline; }
.fp-list-meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.fp-list-warning { margin: 8px 0; color: var(--danger-ink, #912018); font-size: 12px; }
.fp-list-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fp-text-button { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; padding: 5px 0; border: 0; background: none; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 700; cursor: pointer; }
.fp-text-button--danger { color: var(--danger-ink, #b42318); }
.fp-list--admin { max-height: 440px; overflow: auto; padding: 2px 4px 4px 2px; scrollbar-gutter: stable; }
.fp-savebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; }
.fp-savebar > div:first-child { flex: 1 1 280px; }
.fp-save-state { margin: 0; font-size: 14px; font-weight: 800; color: var(--deep); }
.fp-savebar .fp-help { margin: 6px 0 0; }
.fp-save-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-unpublish { margin-top: 12px; text-align: right; }
.fp-empty { display: grid; justify-items: center; gap: 12px; min-height: 300px; align-content: center; padding: 34px 22px; text-align: center; }
.fp-empty h2 { margin: 0; font-size: 20px; color: var(--deep); line-height: 1.45; }
.fp-empty p { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.fp-empty-symbol { font-size: 44px; line-height: 1.1; color: var(--ink-soft); }
.fp-empty .btn { margin-top: 6px; }
.fp-search-form { margin: 0 0 22px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.fp-search-form > .label { font-size: 14px; }
.fp-search-row { display: flex; gap: 12px; }
.fp-search-row .input { flex: 1 1 300px; min-width: 0; }
.fp-search-row .btn { flex: none; font-size: 12px; }
.fp-selected { margin-top: 16px; }
.fp-selected .fp-list-name { font-size: 17px; margin-top: 12px; }
.fp-selected .btn { display: inline-flex; margin-top: 14px; font-size: 13px; }
.fp-city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.fp-city-card { display: flex; flex-direction: column; min-height: 170px; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; }
.fp-city-card:hover { border-color: var(--brand-blue); background: var(--sand); }
.fp-city-card-title { color: var(--deep); font-size: 19px; font-weight: 800; }
.fp-city-card-date { color: var(--ink-soft); font-size: 13px; }
.fp-city-card-open { display: flex; justify-content: space-between; margin-top: auto; font-size: 13px; font-weight: 800; }
.fp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fp-editor :is(button, summary, a, input):focus-visible, .floorplan-page :is(button, summary, a, input):focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
@media (min-width: 900px) {
  .fp-workbench--visitor .fp-sidebar { max-height: 820px; overflow: auto; scrollbar-gutter: stable; }
}
@media (max-width: 1050px) {
  .fp-workbench { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
  .fp-sidebar { padding: 18px; }
  .fp-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .fp-workbench { grid-template-columns: minmax(0, 1fr); }
  .fp-editor .fp-sidebar { grid-row: 1; }
  .fp-editor .fp-list--admin { max-height: 230px; }
  .fp-map-viewport { height: min(56vh, 450px); min-height: 300px; }
  .fp-publication { align-items: flex-start; flex-direction: column; gap: 8px; }
  .fp-city-form { flex-wrap: wrap; }
  .fp-city-form > div { flex-basis: 240px; }
  .fp-save-actions { width: 100%; }
  .fp-save-actions .btn { flex: 1 1 180px; }
}
@media (max-width: 479px) {
  .floorplan-page .page { padding: 26px 16px 50px; }
  .fp-heading .h1 { font-size: 25px; }
  .fp-panel, .fp-search-form { padding: 18px; }
  .fp-steps { gap: 18px; }
  .fp-steps li { gap: 6px; font-size: 12px; }
  .fp-city-form { gap: 12px; }
  .fp-city-form > div, .fp-city-form .btn { flex-basis: 100%; }
  .fp-search-row { flex-wrap: wrap; gap: 8px; }
  .fp-search-row .input { flex-basis: 100%; }
  .fp-search-row .btn { min-height: 36px; padding: 6px 12px; }
  .fp-city-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fp-city-card { min-height: 150px; padding: 20px; }
  .fp-map-toolbar { padding: 8px; }
  .fp-map-help { padding: 12px; }
  .fp-map-viewport { min-height: 280px; }
  .fp-unpublish { text-align: left; }
}
@media print {
  .fp-map-toolbar, .fp-search-form, .fp-city-form, .fp-upload, .fp-modes, .fp-coordinates, .fp-savebar, .fp-unpublish { display: none; }
  .fp-workbench { display: block; }
  .fp-map-viewport { height: 500px; }
  .fp-panel, .fp-map-shell { break-inside: avoid; }
}
