:root {
    --primary-color: #3b82f6;
    --text-color: #1f2937;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-glass: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Prevent scrolling on mobile */
    background-color: #e5e7eb;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* UI Overlay */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to map */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    padding: 1rem;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

#status-card {
    max-width: 90%;
    align-self: center;
    margin-top: 1rem;
    text-align: center;
}

#status-card h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

#status-text {
    font-size: 0.875rem;
    color: #4b5563;
}

#coords {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-family: monospace;
}

.hidden {
    display: none;
}

/* Controls */
#center-btn {
    pointer-events: auto;
    align-self: flex-end;
    margin-bottom: 2rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s active, background-color 0.2s;
}

#center-btn:active {
    transform: scale(0.95);
}

#center-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Custom Marker Pulse */
.user-marker-pulse {
    background-color: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}
