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

#map {
    width: 100%;
    height: 100vh;
}

#search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: "Yekan", sans-serif;
}

input {
    width: 200px;
    padding: 5px;
    font-family: "Yekan", sans-serif;
}

ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    max-height: 150px;
    overflow-y: auto;
    font-family: "Yekan", sans-serif;
}

li {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-family: "Yekan", sans-serif;
}

li:hover {
    background: #f0f0f0;
}

input::placeholder {
    font-family: "Yekan", sans-serif;
}

.maplibregl-ctrl-attrib {
    display: none !important;
}

#coord-search-container {
    z-index: 999;
    width: 300px;
}

#context-menu {
    position: absolute;
    z-index: 1000;
    display: none;
}


#loading-message {
    font-size: 1.2rem;
    color: #555;
}

#popover-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#toggle-style {
    position: absolute;
    bottom: 3rem; /* ← این مقدار رو تنظیم کردیم که دکمه بیاد بالاتر */
    left: 1rem;
    z-index: 1000;
}

.mapboxgl-ctrl-group {
    display: inline-block;
    margin-top: 107px;
    margin-right: -31px;
    padding: 1px;
}

.mapbox-gl-draw_add_btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 20px;
    padding-top: 5px;
    text-align: center;
    background: white;
    border: none;
    cursor: pointer;
}

.note-popup-textarea {
    width: 200px;
    height: 100px;
    resize: none;
}

.note-popup-button {
    margin-top: 5px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.mapbox-gl-draw-point {
    display: none !important;
}

#changelogModal .modal-content {
    font-family: sans-serif;
}

#changelogModal .modal-body li {
    margin-bottom: 0.5rem;
}

#map-version {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    color: #555;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-top-left-radius: 4px;
    z-index: 999;
}
