/* ============================================================
   De Locatiemanager — mobiele schil
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: #1d4ed8; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ===== Header ===== */
.m-header {
  position: sticky; top: 0; z-index: 50;
  background: #1e3a8a; color: white;
  padding: max(env(safe-area-inset-top), 8px) 12px 8px 12px;
  display: flex; align-items: center; gap: 10px;
}
.m-header h1 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-back { background: rgba(255,255,255,0.15); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; }
.m-headerbtn { background: rgba(255,255,255,0.15); border: none; color: white;
  height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13px; }

/* ===== Body ===== */
main.m-body { padding: 12px; padding-bottom: 100px; }

/* ===== Cards / Lists ===== */
.m-card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 10px; overflow: hidden; }
.m-list { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.m-row { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 12px;
  background: white; min-height: 56px; }
.m-row:last-child { border-bottom: none; }
.m-row:active { background: #f3f4f6; }
.m-row-title { font-weight: 600; color: #111827; }
.m-row-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.m-row-icon { font-size: 20px; }
.m-row-arrow { color: #9ca3af; font-size: 18px; margin-left: auto; }

/* ===== Section heading ===== */
.m-section { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase;
  letter-spacing: 0.05em; margin: 18px 4px 6px; }

/* ===== Big tile buttons ===== */
.m-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-tile {
  background: white; border-radius: 14px; padding: 18px 14px;
  text-align: left; border: none; min-height: 110px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: #111827;
  transition: transform 0.05s, box-shadow 0.1s;
}
.m-tile:active { transform: scale(0.97); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.m-tile-icon { font-size: 28px; }
.m-tile-label { font-weight: 600; font-size: 15px; }
.m-tile-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.m-tile-badge { display: inline-block; background: #dc2626; color: white; font-size: 11px;
  font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-top: 4px; }

/* ===== Selectors (film, locatie) ===== */
.m-selector { background: white; border-radius: 12px; padding: 8px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 12px; }
.m-selector-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.m-selector-row + .m-selector-row { border-top: 1px solid #f3f4f6; }
.m-selector-label { font-size: 12px; color: #6b7280; min-width: 60px; }
.m-selector-row select { flex: 1; border: none; background: transparent; font-size: 15px;
  font-weight: 500; padding: 4px 0; }

/* ===== Form fields ===== */
.m-form { display: flex; flex-direction: column; gap: 12px; }
.m-field { display: flex; flex-direction: column; gap: 4px; }
.m-field label { font-size: 12px; font-weight: 600; color: #374151; }
.m-input, .m-input select, select.m-input, textarea.m-input {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px;
  font-size: 16px; background: white;  /* 16px voorkomt iOS zoom bij focus */
}
.m-input:focus { outline: none; border-color: #1e3a8a; }

/* ===== Action footer ===== */
.m-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: white; border-top: 1px solid #e5e7eb;
  padding: 10px 12px max(env(safe-area-inset-bottom), 10px);
  display: flex; gap: 8px;
}
.m-btn { flex: 1; height: 44px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 600; }
.m-btn-primary { background: #1e3a8a; color: white; }
.m-btn-primary:active { background: #1e40af; }
.m-btn-success { background: #16a34a; color: white; }
.m-btn-success:active { background: #15803d; }
.m-btn-secondary { background: #f3f4f6; color: #111827; }

/* Floating + button */
.m-fab {
  position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: white;
  border: none; font-size: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.m-fab:active { background: #15803d; }

/* ===== Pills ===== */
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-blue   { background: #dbeafe; color: #1e40af; }
.pill-green  { background: #d1fae5; color: #065f46; }
.pill-amber  { background: #fef3c7; color: #92400e; }
.pill-red    { background: #fee2e2; color: #991b1b; }
.pill-gray   { background: #f3f4f6; color: #374151; }
.pill-purple { background: #ede9fe; color: #5b21b6; }

/* ===== Search bar ===== */
.m-search {
  background: white; border-radius: 10px; padding: 8px 12px;
  border: 1px solid #e5e7eb; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.m-search input { border: none; outline: none; flex: 1; font-size: 16px; background: transparent; }

/* ===== Empty state ===== */
.m-empty { text-align: center; color: #6b7280; padding: 40px 20px; font-size: 14px; }

/* ===== Loading ===== */
.m-loading { padding: 40px 20px; text-align: center; color: #6b7280; font-size: 14px; }
