body {
    padding: 0;
    margin: 0;
}

html,
body,
#map {
    height: 100%;
}

body,
.leaflet-container {
    background: #333;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #ccc;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #fff;
}

.waypoint-icon {
    filter: drop-shadow(1px 0 0 white) drop-shadow(-1px 0 0 white) drop-shadow(0 1px 0 white) drop-shadow(0 -1px 0 white);
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(64, 64, 64, 0.5);
}

.overzoomed {
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.waypoint-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.leaflet-bottom.leaflet-left .coordinates {
    display: inline-block;
    float: none;
}

div.leaflet-control-layers.coordinates {
    vertical-align: bottom;
    padding: 2px 5px;
    line-height: 14px;
    /* height: 30px; */
}
/* Guide Modal */
.guide-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.guide-content {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
    color: white;
    border: 1px solid #555;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

.guide-code {
    background-color: #222;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e0e0e0;
    word-break: break-all;
    margin-top: 15px;
    text-align: left;
    display: block;
    border: 1px solid #444;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.guide-step {
    margin-bottom: 15px;
    text-align: left;
}

.guide-close {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.guide-close:hover,
.guide-close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.guide-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #555;
}

.guide-text a {
    color: #4db6ac;
}

/* Leaflet control button override */
.leaflet-control-button {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    height: 100%;
}
.leaflet-control-button:hover {
    background-color: #f4f4f4;
}
