/* ============================================================
 *  css/editor-layout.css — Desktop fluid layout
 *  Makes the map fill remaining vertical space on ≥992px screens
 *  and pins the right panel at a fixed width.
 * ============================================================ */

@media (min-width: 992px) {
  main[role="main"] {
    display: flex;
    flex-direction: column;
  }

  /* Override Bootstrap's container max-widths so layout fills viewport */
  main[role="main"] .container,
  main[role="main"] .container-xxl {
    max-width: 100%;
  }

  main[role="main"] > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  main[role="main"] > .container > .container-xxl {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  main[role="main"] > .container > .container-xxl > .row {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
  }

  /* Map column: grow to fill all space the right panel doesn't use */
  main[role="main"] > .container > .container-xxl > .row > .col-lg-8 {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* Right panel: fixed width so it doesn't balloon on ultrawide screens */
  main[role="main"] > .container > .container-xxl > .row > .col-lg-4 {
    flex: 0 0 420px;
    width: 420px;
    max-width: 420px;
  }

  .map-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }

  #map {
    height: 100% !important;
    min-height: 400px;
  }
}
