/* ============================================
   MODERN STYLES — Warm Light Theme
   Shared CSS for Kort og Godt map apps.
   Pairs with lib/theme.css.
   ============================================ */

/* ============================================
   LEAFLET MAP OVERRIDES
   ============================================ */

.leaflet-container {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
}

/* Zoom controls — light surface, rounded */
.leaflet-control-zoom {
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 8px rgba(28,25,23,0.08) !important;
    border-radius: 9px !important;
    overflow: hidden;
}
.leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--text-muted) !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    transition: background 0.15s, color 0.15s;
}
.leaflet-control-zoom a:hover {
    background: var(--coral-light) !important;
    color: var(--text) !important;
}
.leaflet-control-zoom-in  { border-radius: 9px 9px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 9px 9px !important; border-bottom: none !important; }

/* Attribution — translucent light pill */
.leaflet-control-attribution {
    background: rgba(250,249,247,0.85) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 6px 0 0 0 !important;
    backdrop-filter: blur(8px);
}
.leaflet-control-attribution a {
    color: var(--coral-dark) !important;
}

/* ============================================
   POPUPS — light surface, rounded
   ============================================ */

.leaflet-popup-content-wrapper {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(28,25,23,0.10) !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: var(--text) !important;
}
.leaflet-popup-tip {
    background: var(--surface) !important;
    border: 1px solid var(--border);
}
.leaflet-popup-close-button {
    color: var(--text-faint) !important;
    font-size: 20px !important;
    padding: 8px !important;
    transition: color 0.15s;
}
.leaflet-popup-close-button:hover {
    color: var(--text) !important;
}

/* ============================================
   PANELS — floating cards on the map
   ============================================ */

.panel {
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(28,25,23,0.08);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Bottom slide-up panel */
.bottom-panel {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.bottom-panel.open {
    transform: translateY(0);
}

/* ============================================
   LEGEND
   ============================================ */

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.legend-line {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

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