body { margin: 0; padding: 0; overflow: hidden; }
#map { height: 100vh; width: 100%; background: #f0f0f0; }
.close-btn, .filter-btn {
    position: absolute;
    z-index: 1000;
    background: #D82228;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.close-btn { top: 10px; right: 10px; }
.filter-btn { top: 60px; right: 10px; background: #0057B7; }
.close-btn:hover { background: #b71c1c; }
.filter-btn:hover { background: #003d7a; }
.popup-content { max-width: 320px; }
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
}
.mapboxgl-popup-content { padding: 0; border-radius: 8px; }
#filter-modal, #comment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
#filter-modal.active, #comment-modal.active { display: flex; }
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 15px;
    width: 90%;
    max-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal-close {
    cursor: pointer;
    color: #D82228;
    font-size: 18px;
}
.modal-close:hover { color: #b71c1c; }
.gallery {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin-top: 10px;
}
.gallery img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}
.marker { animation: fadeIn 0.5s ease-in; }
.recommended-marker {
    color: #FFD700;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.recommended-marker i {
    font-size: 24px;
}
.recommended-marker span {
    margin-left: 5px;
    font-size: 12px;
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}