html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #e8e0d4;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
}

/* Nav */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    color: #555;
    background: rgba(0,0,0,0.04);
}

.nav-link.active {
    color: #333;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
}

/* Map fills remaining space */
.map-container {
    flex: 1;
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lake-map {
    height: 100%;
    width: auto;
    max-width: 100%;
}

/* Overlays on the map */
.map-overlay.top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(to bottom, rgba(232,224,212,0.9) 0%, rgba(232,224,212,0) 100%);
    z-index: 5;
    pointer-events: none;
}

.overlay-subtitle {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.overlay-timestamp {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

/* Recommendation card — floating at bottom of map */
.recommendation-card {
    display: none;
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 380px;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
}

.recommendation-card.visible {
    display: flex;
}

.rec-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.rec-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.rec-detail {
    font-size: 0.78rem;
    color: #777;
    margin-top: 0.1rem;
}

/* Best zone pulse animation */
.best-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.15; }
}

/* Safe area padding for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .recommendation-card {
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
    .site-nav {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
}
