/* css/styles.css */

/* --- GLOBAL & RESET --- */
:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-bg: #f2f2f7;
    --border-color: #d1d1d6;
    --blur-bg: rgba(255, 255, 255, 0.8);
}

body.dark-mode {
    --primary-bg: #000000;
    --primary-text: #f5f5f7;
    --secondary-bg: #1c1c1e;
    --border-color: #3a3a3c;
    --blur-bg: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    overscroll-behavior: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* --- APP STRUCTURE --- */
#app-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#map-ui-wrapper {
    flex-grow: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    background-color: var(--secondary-bg);
    /* Monochrome filter for the map tiles */
    filter: grayscale(100%);
}

#main-nav {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

#main-nav a {
    text-decoration: none;
    color: var(--primary-text);
    font-size: 24px;
    padding: 10px;
}

/* --- LOCATION BLUR OVERLAY --- */
#location-blur-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--blur-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#location-blur-overlay.hidden {
    display: none;
}

#location-blur-overlay .overlay-content {
    padding: 20px;
}

/* --- BOTTOM SHEET --- */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-bg);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.open {
    transform: translateY(calc(100% - 300px)); /* Example partial open state */
}

.bottom-sheet.full {
    transform: translateY(60px); /* Leave space for nav */
}

.bottom-sheet .handle {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 2.5px;
    margin: 8px auto;
    cursor: grab;
}

.bottom-sheet .content {
    padding: 0 16px 16px;
    overflow-y: auto;
}

/* --- MARKER PULSE --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.leaflet-marker-icon.pulsing-dot {
    border-radius: 50%;
    animation: pulse 2s infinite;
}