/* Global fonts */
body, .fancybox-content, .leaflet-popup-content {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

body {
    padding-top: 50px; /* Push content down to avoid overlap with navbar */
    margin-bottom: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent scrollbars */
}

/* Use CSS variable for viewport height */
:root {
    --vh: 1vh; /* Define the --vh variable */
}

#map {
    height: calc(var(--vh, 1vh) * 100 - 50px); /* Adjusted for navbar height */
    padding-bottom: env(safe-area-inset-bottom); /* For iPhones */
    width: 100vw;
    position: absolute;
    top: 50px; /* Align the top of the map below the navbar */
    bottom: 0;
    left: 0;
    right: 0;
}

.leaflet-tile-container img {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
}

.leaflet-control-layers-expanded {
    display: block !important;
}

/* Glow effect for marker on hover */
.leaflet-marker-icon.glow {
    filter: drop-shadow(0 0 20px rgba(255, 255, 0, 1)); /* Yellow glow effect */
}

/* Searchbar style */
#search-input {
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 150px;           
}

/* Marker image gallery alignment */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Maximum three images per row */
    gap: 5px; /* Space between images */
    margin-top: 5px;
}

.image-gallery img {
    max-width: 100px; /* Adjust the size as needed */
    height: auto;
    border-radius: 5px;
}


/* Highlighted marker style */
.leaflet-marker-icon.highlighted {
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.9));
}

.leaflet-tile {
  border-spacing: 0;
  border-collapse: collapse;
}



/* Navbar style */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #333; /* Dark background color */
    display: flex;
    align-items: center;
    padding: 0 20px; /* Spacing around the navbar content */
    z-index: 1000; /* Make sure the navbar is above other elements */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional shadow for visual depth */
}

#navbar-logo {
    height: 30px; /* Adjust logo height */
    margin-right: 10px; /* Spacing between logo and other content */
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) { /* Adjust the max-width as needed for different breakpoints */
    #navbar {
        padding: 0 8px; /* Reduced padding for mobile devices */
    }
}

html {
    overflow: hidden;
    width: 100%;
}
