/* =====================================================================
   css/file-upload.css
   Styles for the public file upload flow (file-upload.js).
   ===================================================================== */

/* ── Fullscreen overlay (shared pattern with photo upload) ─────── */
.file-upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Upload dialog card ────────────────────────────────────────── */
.file-upload-card {
  width: 420px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
}

/* ── Drag-and-drop zone ────────────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop-zone:hover,
.file-drop-zone.active {
  border-color: #0d6efd;
  background: #f0f6ff;
}

/* ── Floating confirm/cancel bar over the map ──────────────────── */
.file-preview-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font: 500 14px/1.4 system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* ── Mobile adjustments ────────────────────────────────────────── */
@media (max-width: 576px) {
  .file-upload-card {
    width: 100%;
    max-width: 100vw;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
  }
  .file-upload-overlay {
    align-items: flex-end;
  }
  .file-preview-bar {
    bottom: 20px;
    left: 8px;
    right: 8px;
    transform: none;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
}
