/* RMB V25 — ajuste seulement la page Centres & Réseau.
   Les CSS/JS du site et l'administration existants restent préservés. */
@media (min-width: 961px) {
  .rmb-centres-reseau-page .rmb-network-map-section > .rmb-page-shell {
    width: min(1490px, calc(100% - 60px));
  }
  .rmb-centres-reseau-page .rmb-map-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, .8fr) !important;
    height: 540px !important;
    min-height: 540px !important;
  }
  .rmb-centres-reseau-page .rmb-map-canvas,
  .rmb-centres-reseau-page .rmb-map-canvas.leaflet-container {
    width: 100% !important;
    height: 540px !important;
    min-height: 540px !important;
    max-height: 540px !important;
  }
  .rmb-centres-reseau-page .rmb-map-sidebar {
    height: 540px !important;
    max-height: 540px !important;
  }
}
@media (min-width: 761px) and (max-width: 960px) {
  .rmb-centres-reseau-page .rmb-map-layout {
    grid-template-columns: minmax(0,1fr) minmax(260px,.7fr) !important;
    height: 500px !important;
    min-height: 500px !important;
  }
  .rmb-centres-reseau-page .rmb-map-canvas,
  .rmb-centres-reseau-page .rmb-map-canvas.leaflet-container {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
  .rmb-centres-reseau-page .rmb-map-sidebar { height: 500px !important; max-height: 500px !important; }
}
@media (max-width: 760px) {
  .rmb-centres-reseau-page .rmb-network-map-section > .rmb-page-shell {
    width: calc(100% - 28px);
  }
  .rmb-centres-reseau-page .rmb-map-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .rmb-centres-reseau-page .rmb-map-canvas,
  .rmb-centres-reseau-page .rmb-map-canvas.leaflet-container {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
  }
  .rmb-centres-reseau-page .rmb-map-sidebar {
    height: 310px !important;
    max-height: 310px !important;
  }
}
