/* Responsive map height */
.leaflet-container {
  min-height: 300px;
}

/* AG Grid tweaks */
.ag-theme-alpine {
  --ag-font-size: 14px;
  --ag-row-height: 38px;
  --ag-header-height: 40px;
}

/* Make editor title input look like a heading */
#editor-title {
  background: transparent;
  padding-left: 0;
}

/* Full-height map on mobile — scoped to the public map view page only
   (the stats page has its own smaller map that must keep its height). */
@media (max-width: 576px) {
  #main-map.leaflet-container {
    height: calc(100vh - 64px) !important;
  }
}

/* Compact grid on mobile: smaller font and much tighter cell padding so
   narrow columns show more than a couple of letters in portrait mode. */
@media (max-width: 576px) {
  .ag-theme-alpine {
    --ag-font-size: 12px;
    --ag-row-height: 36px;
    --ag-header-height: 36px;
    --ag-cell-horizontal-padding: 8px;
  }
}
