﻿@import url('https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #2f3542;
    overscroll-behavior: none;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 1;
}

/* Footer container */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* MapTiler logo styling */
.maptiler-logo-ctrl {
    display: flex;
    align-items: center;
}

    .maptiler-logo-ctrl img {
        margin-top: 15px;
        margin-right: 12px;
        height: 16px !important;
        width: auto;
    }

/* Sponsor logo styling */
.sponsor-logo-ctrl {
    display: flex;
    align-items: center;
}

    .sponsor-logo-ctrl img {
        height: 40px;
        width: auto;
    }

/* Custom marker styling */
.marker {
    width: 25px;
    height: 41px;
    cursor: pointer;
}

    .marker.blue {
        background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-blue.png');
        background-size: cover;
    }

    .marker.red {
        background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png');
        background-size: cover;
    }

    .marker.green {
        background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png');
        background-size: cover;
    }

    .marker.orange {
        background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-orange.png');
        background-size: cover;
    }

    .marker.yellow {
        background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-yellow.png');
        background-size: cover;
    }

/* MapLibre Popup Styling */
.maplibregl-popup-content {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.maplibregl-popup-tip {
    border-top-color: #1a1a1a !important;
    border-bottom-color: #1a1a1a !important;
}

.maplibregl-popup-close-button {
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 5px 10px !important;
    right: 5px !important;
    top: 5px !important;
}

    .maplibregl-popup-close-button:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
    }

.popup-content {
    text-align: left !important;
}

    .popup-content h3,
    .popup-content h4,
    .popup-content p {
        cursor: pointer !important;
        transition: opacity 0.2s ease !important;
    }

        .popup-content h3:hover,
        .popup-content h4:hover,
        .popup-content p:hover {
            opacity: 0.8 !important;
        }

    .popup-content h3 {
        color: #ffffff !important;
        font-size: 1.2em !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    .popup-content h4 {
        color: #9ca3af !important;
        font-size: 1.1em !important;
        margin-bottom: 10px !important;
        font-style: italic !important;
    }

    .popup-content p {
        color: #d1d5db !important;
        font-size: 0.95em !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

.overlay {
    position: relative;
    z-index: 2000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    pointer-events: none;
}

    .overlay > * {
        pointer-events: auto;
    }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    margin-right: 20px;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

h1 {
    color: rgba(37, 59, 134, 0.87);
    font-size: 1.2em;
    margin: 0;
    line-height: 0.5;
}

p {
    color: rgba(37, 59, 134, 0.87);
    font-size: .8em;
    margin: 5px 0 0 0;
}

/* MapLibre Controls Styling */
.maplibregl-control-container .maplibregl-ctrl-bottom-right {
    bottom: 70px !important;
    right: 10px !important;
}

.maplibregl-ctrl-group {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

    .maplibregl-ctrl-group button {
        width: 30px;
        height: 30px;
    }

.maplibregl-ctrl-compass {
    transition: opacity 0.3s ease;
}

/* Marker styling */
.maplibregl-marker {
    cursor: pointer;
}

    .maplibregl-marker:hover {
        filter: brightness(1.2);
    }

/* Position map controls above footer */
.maplibregl-control-container .maplibregl-ctrl-bottom-right {
    bottom: 70px !important;
    right: 10px !important;
}

.maplibregl-ctrl-group {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
