body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.app-container {
    display: flex;
    height: 100vh;
}

.instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85em;
    color: #495057;
}
.instructions ul {
    padding-left: 20px;
}
.instructions li {
    margin-bottom: 5px;
}
.view-only-link, .editor-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
.view-only-link:hover, .editor-link:hover {
    text-decoration: underline;
}

#map {
    flex-grow: 1;
    height: 100%;
    background-color: white;
}

#map.full-screen {
    width: 100%;
    position: relative;
}

.editor-link {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}

/* Hide the error tiles that say "Map data not yet available" */
.leaflet-tile-error {
    visibility: hidden;
}

.leaflet-popup-content-wrapper {
    border-radius: 5px;
}
.popup-delete-button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #dc3545;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}
.popup-delete-button:hover {
    background-color: #c82333;
}

.draggable-dialog {
    position: absolute; /* Floats within its container (e.g., the map div or body) */
    z-index: 1050;      /* Keep it above most other content */
    width: 350px;       /* Set a default width */
    top: 50px;          /* Default position */
    left: 50px;         /* Default position */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Nice shadow effect */
}

.draggable-dialog .card-header {
    cursor: move; /* Indicates to the user that this area is draggable */
    display: flex;
    justify-content: space-between;
    align-items: center;
}