/* Georeferenced Maps – Front-end Styles */

.grm-map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #1a1a2e;
    border-radius: 6px;
    box-sizing: border-box;
}

.grm-ol-map {
    width: 100%;
    height: 100%;
}

/* Ensure OL canvas fills the container */
.grm-ol-map canvas {
    display: block;
}

/* OL zoom control positioning */
.grm-ol-map .ol-zoom {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
}

.grm-ol-map .ol-zoom .ol-zoom-in,
.grm-ol-map .ol-zoom .ol-zoom-out {
    background: rgba(26, 26, 46, 0.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    display: block;
    transition: background 0.15s;
}

.grm-ol-map .ol-zoom .ol-zoom-in:hover,
.grm-ol-map .ol-zoom .ol-zoom-out:hover {
    background: rgba(233, 69, 96, 0.85);
}

/* Hide OL attribution / rotate controls */
.grm-ol-map .ol-attribution,
.grm-ol-map .ol-rotate {
    display: none !important;
}

/* Canvas overlay */
.grm-overlay-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* ------------------------------------------------------------------
   Control Panel
   ------------------------------------------------------------------ */

.grm-control-panel {
    position: absolute;
    z-index: 100;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    user-select: none;
    transition: opacity 0.2s;
}

/* Directional layouts */
.grm-panel-top,
.grm-panel-bottom {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

.grm-panel-left,
.grm-panel-right {
    flex-direction: column !important;
}

/* Panel select styling */
.grm-control-panel select {
    outline: none;
}

.grm-control-panel select:focus {
    border-color: rgba(255,255,255,0.5) !important;
}

/* Panel range input */
.grm-control-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    outline: none;
}

.grm-control-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--grm-active, #e94560);
}

/* Fullscreen container */
.grm-map-container:fullscreen {
    height: 100vh !important;
    border-radius: 0;
}

.grm-map-container:-webkit-full-screen {
    height: 100vh !important;
    border-radius: 0;
}
