@import url("maps/vendor/leaflet.css");

.b72-map { display:grid; gap:1.1rem; }
.b72-map-intro { display:flex; align-items:start; justify-content:space-between; gap:1.25rem; }
.b72-map-intro h2 { margin:.15rem 0 .5rem; font-size:clamp(1.6rem,3vw,2.2rem); }
.b72-map-intro p { margin:.4rem 0; }
.b72-map-save { flex:0 0 min(100%,15rem); }
.b72-map-save button { width:100%; }
.b72-map-save [data-map-status] { min-height:2.2em; font-size:.88rem; line-height:1.45; }
.b72-map-save [data-map-status][data-type="error"] { color:#a5372d; }
.b72-map-workspace { display:grid; gap:.9rem; }
.b72-map-workspace[hidden] { display:none; }
.b72-map-tools { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem 1.3rem; }
.b72-map-regions { display:flex; flex-wrap:wrap; gap:.4rem; }
.b72-map-regions button,.b72-map-tools button,.b72-map-results button,.b72-map-point button { cursor:pointer; border:1px solid #b7c9bc; border-radius:.65rem; background:#f6f8ef; color:#173f36; padding:.5rem .7rem; font:inherit; }
.b72-map-regions button:hover,.b72-map-tools button:hover,.b72-map-results button:hover,.b72-map-point button:hover { background:#e6f1e9; }
.b72-map-tools form { flex:1 1 15rem; }
.b72-map-tools label,.b72-map-point-form label { display:grid; gap:.3rem; font-weight:650; font-size:.9rem; }
.b72-map-tools form>div { display:flex; gap:.4rem; }
.b72-map-tools input { min-width:0; flex:1; }
.b72-map input,.b72-map textarea,.b72-map select { border:1px solid #b7c9bc; border-radius:.55rem; background:#fff; color:#182920; padding:.55rem .65rem; font:inherit; }
.b72-map-results { display:flex; flex-direction:column; flex:1 1 100%; gap:.35rem; max-height:13rem; overflow:auto; }
.b72-map-results button { text-align:left; }
.b72-map-results span { font-size:.85rem; }
.b72-map-canvas { height:clamp(22rem,56vh,36rem); width:100%; border:1px solid #aec4ba; border-radius:.9rem; background:#dce9eb; overflow:hidden; z-index:0; }
.b72-map-canvas .leaflet-container { font-family:inherit; }
.b72-map-hint { margin:0; flex:1 1 16rem; font-size:.85rem; line-height:1.5; }
.b72-map-point-form,.b72-map-saved { display:grid; gap:.8rem; padding:1rem; border:1px solid #d1ddd3; border-radius:.9rem; background:#f8faf4; color:#182920; }
.b72-map-point-form h3,.b72-map-saved h3 { margin:0; font-size:1.1rem; }
.b72-map-point-form label,.b72-map-saved p { color:#244338; }
.app-main .b72-map-point-form input:not([type="checkbox"]):not([type="radio"]),.app-main .b72-map-point-form textarea,.app-main .b72-map-point-form select { background:#fff; color:#182920; border:1px solid #b7c9bc; }
.b72-map-point-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.7rem; }
.b72-map-point-form textarea { resize:vertical; }
.b72-map-point-form>.button { justify-self:start; }
.b72-map-point { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.5rem 0; border-bottom:1px solid #d1ddd3; }
.b72-map-point button:first-child { flex:1; text-align:left; }
.b72-map-point button:last-child { color:#9a3c31; }
.b72-map-credit { margin:0; font-size:.79rem; line-height:1.6; color:#b4c6b9; }
.b72-map-credit a { color:#dcf5aa; text-decoration:underline; }
@media(max-width:760px) {
  .b72-map-intro { display:block; }
  .b72-map-save { margin-top:.8rem; }
  .b72-map-save button { width:auto; }
  .b72-map-point-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .b72-map-canvas { height:26rem; }
}
@media(max-width:430px) {
  .b72-map-point-grid { grid-template-columns:1fr; }
  .b72-map-tools form>div { flex-direction:column; }
}
