body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
}
#map {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(196, 159, 159, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loader styles */
.loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #1671cb;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader div:nth-child(1) {
    left: 8px;
    animation: flip1 0.6s infinite;
}

.loader div:nth-child(2) {
    left: 8px;
    animation: flip2 0.6s infinite;
}

.loader div:nth-child(3) {
    left: 32px;
    animation: flip2 0.6s infinite;
}

.loader div:nth-child(4) {
    left: 56px;
    animation: flip3 0.6s infinite;
}

@keyframes flip1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flip3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes flip2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

/* Popup Styles */
.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Custom popup close button */
.leaflet-popup-close-button {
    color: black !important;
    margin: 5px !important;
}

/* Location display styling */
.location-section {
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.location-text {
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    word-break: break-word;
}

.landmark-text {
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}

.socid-container {
    margin-top: 0.5rem;
}

.socid-badge {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.location-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 0.75em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.location-directions:hover {
    background-color: #e9ecef;
    color: #0a58ca;
    transform: scale(1.1);
}
