
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    touch-action: manipulation;
}

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

.header {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.app-logo {
    max-height: 30px;
    width: auto;
    margin: 10px 0;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    pointer-events: auto;
}

@media (max-width: 768px) {
    .app-logo {
        max-height: 50px;
        margin: 5px 0;
    }

}

.sidebar {
    position: absolute;
    top: 170px;
    right: 10px;
    width: 300px;
    background: rgba(255, 255, 255, 0.80);
    border-radius: 15px;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 190px);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
}

.sidebar-hidden {
    transform: translateX(calc(100% + 20px));
}

.sidebar-toggle {
    position: absolute;
    top: 180px;
    right: 10px;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.80);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.sidebar h2 {
    color: #2c3e50;
    padding: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.80);
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}
.filter-container {
    padding: 15px;
    background: white;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    top: 63px;
    z-index: 2;
}

.filter-btn {
    padding: 8px 15px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #ecf0f1;
}

.filter-btn.active {
    background: #3498db;
    color: white;
}

@media (max-width: 768px) {
    .filter-container {
        padding: 8px;
        gap: 5px;
        top: 42px;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
#locations-list {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.location-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.location-item p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

#get-location {
    background: #2ecc71;
}

#get-location:hover {
    background: #27ae60;
}

#toggle-sidebar {
    background: #3498db;
}

#toggle-sidebar:hover {
    background: #2980b9;
}
#feedback-btn {
    background: #9b59b6;
}

#feedback-btn:hover {
    background: #8e44ad;
}

.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 30px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.95rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

.accuracy-indicator {
    position: absolute;
    top: 180px;
    left: 10px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    display: none;
}

.accuracy-good { color: #2ecc71; }
.accuracy-medium { color: #f39c12; }
.accuracy-poor { color: #e74c3c; }

.user-location-marker {
    background: transparent;
    border: none;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #3498db;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.location-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3498db;
    font-size: 20px;
    text-shadow: 0 0 3px white;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

@media (max-width: 768px) {
    .app-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .sidebar {
        width: 45%;
        max-width: 250px;
        top: auto;
        bottom: 50px;
        right: 10px;
        max-height: 40vh;
    }

    .sidebar h2 {
        font-size: 0.95rem;
        padding: 10px;
    }

    #locations-list {
        padding: 8px;
    }

    .sidebar-toggle {
        top: auto;
        bottom: 60px;
        right: 10px;
    }
    .location-item {
        padding: 8px;
        margin-bottom: 6px;
    }

    .location-item h3 {
        font-size: 1rem;
    }

    .location-item p {
        font-size: 0.85rem;
    }

    .controls {
        bottom: 50px;
        flex-direction: column;
        padding: 8px;
        gap: 6px;
    }

    .control-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .instructions {
        width: 90%;
        font-size: 0.8rem;
        bottom: 10px;
        padding: 8px 15px;
    }

    .accuracy-indicator {
        top: 140px;
    }
    
}
