/* Container layout */
#mlm-map-container {
    display: flex;
    flex-wrap: wrap;
}
#mlm-search-container {
    width: 300px;
    padding: 10px;
}
#mlm-map {
    flex: 1;
    min-height: 500px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mlm-map-container {
        flex-direction: column;
    }
    #mlm-search-container {
        width: 100%;
    }
}

/* Search field styling */
.mlm-search-field {
    margin-bottom: 10px;
}
.mlm-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.mlm-search-field input,
.mlm-search-field select {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}


/* ------------------------------------------------------------------ */
/* LEAFLET TOOLBAR – final polish                                     */
/* ------------------------------------------------------------------ */

/* ALL toolbar buttons (“+”, “–”, locate) – identical square size */
.leaflet-bar a,
.leaflet-control-locate {
    width: 44px;                 /* square hit-area */
    height: 44px;
    display: flex;               /* perfect centring */
    align-items: center;
    justify-content: center;
    font-size: 28px;             /* ⌖ / + / – size */
    text-decoration: none !important;   /* ↯ kills blue underline */
    color: #000;                 /* glyph colour */
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

/* --- ensure the locate button shows the hand cursor ---------------- */
.leaflet-control-locate,
.leaflet-control-locate * {   /* also its inner <span>, just in case */
    cursor: pointer;
}

/* slightly bigger tap-target on touch screens */
@media (hover: none), (pointer: coarse) {
    .leaflet-bar a,
    .leaflet-control-locate {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
}

/* separator between stacked buttons (matches Leaflet default) */
.leaflet-bar a:not(:last-child),
.leaflet-control-locate {
    border-bottom: 1px solid #bbb;
}

/* ───────── Map loading overlay ───────── */
#mlm-map-container { position: relative; }

.mlm-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
}

.mlm-map-loading.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.mlm-map-loading .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.7);
  border-radius: 50%;
  animation: mlm-spin .8s linear infinite;
}

.mlm-map-loading span {
  font-size: 14px;
  color: #333;
}

@keyframes mlm-spin { to { transform: rotate(360deg); } }
