:root { --w: 920px; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; color: #111; }
header { background: #101828; color: white; padding: 14px 0; }
header .wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; display:flex; align-items:center; justify-content:space-between; gap: 12px; }
header a { color: white; text-decoration:none; }
nav a { margin-left: 12px; opacity: .9; }
nav a:hover { opacity: 1; text-decoration:underline; }
main { max-width: var(--w); margin: 0 auto; padding: 18px 16px 40px; }
.card { background: white; border-radius: 14px; padding: 16px; box-shadow: 0 8px 20px rgba(16,24,40,.08); margin: 14px 0; }
h1 { margin: 6px 0 14px; font-size: 22px; }
h2 { margin: 6px 0 10px; font-size: 18px; }
p { line-height: 1.45; }
label { display:block; margin: 10px 0 6px; font-weight: 600; }
input, button, textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d0d5dd; font-size: 14px; }
button { cursor: pointer; background: #175cd3; border: 0; color: white; font-weight: 700; }
button.secondary { background: #344054; }
.row { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } }
.badge { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; background:#eef2ff; }
.flash { padding: 10px 12px; border-radius: 12px; margin: 10px 0; }
.flash.error { background:#fee4e2; }
.flash.ok { background:#dcfce7; }
table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding: 10px 8px; border-bottom: 1px solid #eee; font-size: 14px; }
.small { font-size: 12px; opacity:.8; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.actions form { margin:0; }
img.station { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose a { text-decoration: underline; }

/* === GeoQuest patch: responsive tables (mobile) + map === */

@media (max-width: 720px) {
  table.responsive-table thead { display: none; }

  table.responsive-table,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td {
    display: block;
    width: 100%;
  }

  table.responsive-table tr {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }

  table.responsive-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    white-space: normal;
  }

  table.responsive-table td:last-child { border-bottom: none; }

  table.responsive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    opacity: 0.75;
    flex: 0 0 auto;
  }
}

#admin-map {
  height: 70vh;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}


/* simple admin form grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose a { text-decoration: underline; }
