body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating applications on the left side */
nav {
    z-index: 999; /* keep nav above map */
}
.applications-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.application {
    width: 200px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application:hover {
    transform: translateY(-10px);
}

.application .overlay-text {
    position: absolute;
    font-size: 18px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

/* Circular layout for applications */
.application-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.application-item {
    position: absolute;
    width: 78px;
    height: 35px;
    background-color: #e06666;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    font-size: 10px;
}

.application-item a {
color: white;
text-decoration: none;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
pointer-events: auto; /* Ensure the links are clickable */
cursor: pointer; /* Show pointer on hover */
}

.application-item:hover {
    background-color: #c44a4a; /* Darker shade on hover */
}

.custom-marker {
    color: black;
    font-weight: bold;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    pointer-events: auto;
}

/* Position zoom controls on the right */
.leaflet-top.leaflet-right {
    top: 150px !important; /* Adjust this position */
}

@media (max-width: 575.98px) {
    nav {z-index: 10000;}
    .application { width: clamp(150px, 80vw, 180px); height: clamp(80px, 22vw, 100px); }
    .applications-overlay { top: var(--nav-offset, 150px); gap: 6px; }
}

