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

#map {
    height: 100%;
}

.geolocation-marker {
    width: 18px;
    height: 18px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.pie-marker {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.marker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-container svg {
    position: absolute;
    top: 0;
    left: 0;
}

.marker-container i {
    position: relative;
    z-index: 300;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.geolocation-pulse {
    width: 40px;
    height: 40px;
    background: rgba(66, 133, 244, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

#menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#menu-toggle {
    background: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#menu-toggle:hover {
    background: #f5f5f5;
}

#menu-content {
    display: none;
    background: white;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

#menu-content.open {
    display: block;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.category-item:hover {
    background: #f5f5f5;
}

.category-item.active {
    background: #e8f0fe;
}

.category-item:last-child {
    border-bottom: none;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    font-size: 13px;
}

.category-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

#try-toggle {
    position: absolute;
    top: 10px;
    left: 60px;
    z-index: 1000;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toggle-label {
    font-size: 13px;
    color: #333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6edf38;
}

input:checked + .toggle-slider:before {
    transform: translateX(18px);
}