html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
}

#map {
    height: 100%;
    width: 100%;
    image-rendering: pixelated;
}

/* Remove/neutralize the built-in mouse position control if it still exists */
div.ol-mouse-position {
    display: none !important;
}

/* Zoom control top-right, dark */
.ol-control {
    background: transparent !important;
    padding: 0 !important;
}

.ol-zoom {
    left: auto !important;
    right: 8px !important;
    top: 8px !important;
}

.ol-zoom button {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}

.ol-zoom button:hover,
.ol-zoom button:focus {
    background: #111 !important;
    color: #fff !important;
}

/* Click-to-show coordinate tooltip */
.click-coords {
    background: #000;
    color: #fff;
    font: 14px sans-serif;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    pointer-events: none;
    white-space: nowrap;
}

/* Keep your existing styles (context menu + scalebar + toast) in case you still use them */
.ol-ctx-menu-container {
    font-size: 16px;
}

.ol-scale-step-text {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-shadow:
        1px 0 0 black,
        0 1px 0 black,
        -1px 0 0 black,
        0 -1px 0 black;
    0px 0px 8px black;
}

.ol-scale-singlebar-odd { background: #ddd; }
.ol-scale-singlebar-even { background: #444; }

.toastify {
    color: black;
    background: yellow;
}

.ol-ctx-menu-container li { padding-left: 20px; }

.menuitem-checked::before {
    content: '☑';
    width: 20px;
    display: inline-block;
    margin-left: -20px;
}

.menuitem-unchecked::before {
    content: '☐';
    width: 20px;
    display: inline-block;
    margin-left: -20px;
}

html, body {
    background: #000; /* page background */
}

#map {
    background: #000; /* map background while tiles load */
}

#map .ol-viewport {
    background: #000;
}

/* Zoom button disabled */
.ol-control button.is-disabled,
.ol-control button:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  filter: grayscale(1);
}

/* Moving zoom button */
.ol-zoom {
    display: none;
}