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

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

/* Fixed-position elements container for top controls */
.map-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1000;
}

.leaflet-popup-pane {
    z-index: 3000 !important;
}

.leaflet-popup {
    z-index: 3001 !important;
}

/* Report Button (Bottom Right) */
.fab-btn {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 1000;
}

/* List Button (Bottom Left) */
.list-btn {
    position: absolute;
    bottom: 30px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 1000;
}

.btn-xs {
    font-size: 0.7em;
    padding: 0.1rem 0.3rem;
}

/* Info Overlay */
.info-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-align: center;
    width: 90%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Enable clicks */
}

/* Search Bar */
#search-container {
    position: absolute;
    top: 80px;
    /* Position below the info overlay */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    pointer-events: auto;
}

#searchInput {
    border-radius: 15px 0 0 15px;
}

#searchBtn {
    border-radius: 0 15px 15px 0;
}

/* List Item Styles */
.sighting-item {
    cursor: pointer;
    transition: background 0.2s;
}

.sighting-item:hover {
    background-color: #f8f9fa;
}

.distance-badge {
    font-size: 0.8rem;
    min-width: 60px;
    text-align: right;
}