/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ─── Glass Design Tokens ───────────────────────────────────── */
:root {
    --bg:            #0D0F1A;
    --bg-2:          #131520;
    --surface:       rgba(255,255,255,0.07);
    --surface-hover: rgba(255,255,255,0.11);
    --border:        rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.18);
    --text-primary:  #F1F5F9;
    --text-secondary:#94A3B8;
    --text-muted:    rgba(255,255,255,0.35);
    --accent:        #4F8EF7;
    --accent-hover:  #6BA3F9;
    --accent-light:  rgba(79,142,247,0.15);
    --accent-glass:  rgba(79,142,247,0.90);
    --aurora:        #A78BFA;
    --aurora-light:  rgba(167,139,250,0.15);
    --success:       #34D399;
    --success-light: rgba(52,211,153,0.12);
    --warning:       #FCD34D;
    --danger:        #F87171;
    --blur:          blur(14px);
    --blur-sm:       blur(8px);
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     22px;
    --tab-h:         64px;
    --info-h:        64px;
}

/* Light Mode Override */
[data-theme="light"] {
    --bg:            #EEF2F7;
    --bg-2:          #E4E9F0;
    --surface:       rgba(255,255,255,0.85);
    --surface-hover: rgba(255,255,255,0.95);
    --border:        rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.15);
    --text-primary:  #1E293B;
    --text-secondary:#64748B;
    --text-muted:    rgba(0,0,0,0.35);
    --accent:        #2563EB;
    --accent-hover:  #1D4ED8;
    --accent-light:  rgba(37,99,235,0.12);
    --accent-glass:  rgba(37,99,235,0.90);
    --aurora:        #7C3AED;
    --aurora-light:  rgba(124,58,237,0.12);
    --success:       #16A34A;
    --success-light: rgba(22,163,74,0.10);
    --warning:       #D97706;
    --danger:        #DC2626;
}

/* ─── Glass Mixin Classes ───────────────────────────────────── */
.glass {
    background: var(--surface);
    border: 0.5px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
}
.glass-sm {
    background: var(--surface);
    border: 0.5px solid var(--border);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border-radius: var(--radius-md);
}
@supports not (backdrop-filter: blur(1px)) {
    .glass, .glass-sm { background: var(--bg-2); }
}

/* ─── App Shell ─────────────────────────────────────────────── */
#app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* ─── Info Card (Wetter-Bar oben) ───────────────────────────── */
#info-card {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 12px;
    right: 58px;
    z-index: 200;
    cursor: pointer;
    padding: 10px 14px;
    background: rgba(13,15,26,0.85);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
[data-theme="light"] #info-card {
    background: rgba(238,242,247,0.90);
}
#info-card .info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    min-height: 22px;
}
#info-card .info-row + .info-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0.5px solid var(--border);
}
#info-card .icon { font-size: 1rem; }
#info-card .aurora-badge {
    background: var(--aurora-light);
    color: var(--aurora);
    border: 0.5px solid rgba(167,139,250,0.2);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.72rem;
}
.sun-bar {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0.5px solid var(--border);
}
.sun-bar span { display: flex; align-items: center; gap: 4px; }

/* ─── Map ───────────────────────────────────────────────────── */
#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
#map-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: #1a2535;
}
#windy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Bottom Tab Bar ────────────────────────────────────────── */
#bottom-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tab-h);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(13,15,26,0.90);
    border-top: 0.5px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="light"] #bottom-tab-bar {
    background: rgba(238,242,247,0.92);
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.tab-item i { font-size: 1.3rem; color: var(--text-muted); transition: color .2s; }
.tab-item span { font-size: 0.65rem; color: var(--text-muted); transition: color .2s; }
.tab-item.active i { color: var(--accent); }
.tab-item.active span { color: var(--accent); font-weight: 500; }
.tab-dot {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid var(--bg);
}

/* ─── Hamburger Button ──────────────────────────────────────── */
#hamburger-btn {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 210;
    width: 38px;
    height: 38px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,15,26,0.75);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: background .15s;
}
#hamburger-btn:hover { background: var(--surface-hover); }
[data-theme="light"] #hamburger-btn { background: rgba(238,242,247,0.85); }

/* ─── Side Drawer ───────────────────────────────────────────── */
#side-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
#side-menu.open { opacity: 1; pointer-events: all; }
.menu-backdrop {
    flex: 1;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.menu-panel {
    width: 78%;
    max-width: 320px;
    background: rgba(13,15,26,0.97);
    border-left: 0.5px solid var(--border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#side-menu.open .menu-panel { transform: translateX(0); }
[data-theme="light"] .menu-panel { background: rgba(238,242,247,0.98); }

.menu-header {
    padding: max(52px, calc(env(safe-area-inset-top, 24px) + 28px)) 20px 16px;
    border-bottom: 0.5px solid var(--border);
}
.menu-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
}
.menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-user-name { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.menu-user-sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.menu-section {
    padding: 8px 12px;
}
.menu-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 10px 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-section-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.menu-section-chevron {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
.menu-item i { font-size: 1.1rem; flex-shrink: 0; }
.menu-item:hover, .menu-item:active { background: var(--surface); color: var(--text-primary); }
.menu-item.active-menu-item { background: var(--accent-light); color: var(--accent); }
.menu-badge {
    margin-left: auto;
    background: var(--accent-light);
    color: var(--accent);
    border: 0.5px solid rgba(79,142,247,0.25);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 500;
}
.menu-badge.danger { background: rgba(248,113,113,0.15); color: var(--danger); border-color: rgba(248,113,113,0.25); }
.menu-badge.aurora { background: var(--aurora-light); color: var(--aurora); border-color: rgba(167,139,250,0.25); }
.menu-divider { height: 0.5px; background: var(--border); margin: 4px 12px; }

/* ─── Detail Panel ──────────────────────────────────────────── */
#detail-panel {
    position: absolute;
    bottom: var(--tab-h);
    left: 0;
    right: 0;
    z-index: 300;
    max-height: calc(80vh - env(safe-area-inset-top, 0px));
    background: rgba(13,15,26,0.95);
    border-top: 0.5px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    visibility: hidden;
    pointer-events: none;
}
[data-theme="light"] #detail-panel { background: rgba(238,242,247,0.97); }
#detail-panel.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
}

.drag-handle {
    width: 100%;
    height: 28px;
    padding-top: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    touch-action: none;
}
.drag-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-strong);
}
#detail-content {
    padding: 12px 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
}
#detail-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#detail-content h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 1rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ─── Map Controls ──────────────────────────────────────────── */
.map-controls-group {
    position: absolute;
    right: 12px;
    bottom: calc(var(--tab-h) + 80px);
    z-index: 310;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: bottom .2s ease;
}
.map-controls-group.panel-open {
    bottom: calc(80vh + 12px);
}
.map-ctrl-btn {
    width: 38px;
    height: 38px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,15,26,0.80);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    will-change: background, color;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.map-ctrl-btn[hidden] { display: none !important; }
.map-ctrl-btn:hover, .map-ctrl-btn.active { background: var(--accent-glass); color: white; border-color: var(--accent); }
.map-ctrl-btn.loading { opacity: 0.6; }
.map-ctrl-btn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
[data-theme="light"] .map-ctrl-btn { background: rgba(238,242,247,0.85); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: var(--accent-glass);
    color: white;
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    margin-top: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
.btn-route:hover { background: var(--accent-hover); }
.btn-route:disabled { opacity: .5; cursor: default; }
.btn-route.btn-full { width: 100%; }
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: var(--surface);
    color: var(--text-secondary);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    margin-top: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
.btn-secondary-action:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-secondary-action.btn-full { width: 100%; }
.btn-secondary-action.active-visited { background: var(--accent-light); color: var(--accent); border-color: rgba(79,142,247,0.3); }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 0.75rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-group select option {
    background: #1a1d2e;
    color: #F1F5F9;
}
[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #1E293B;
}
.auth-error { color: var(--danger); font-size: 0.82rem; margin: 0.3rem 0; min-height: 1rem; }
.profile-success { color: var(--success); font-size: 0.82rem; margin: 0.3rem 0; display: flex; align-items: center; gap: 0.3rem; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-switch { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; }

/* ─── POI Card / Detail ─────────────────────────────────────── */
.poi-photos { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 0.75rem; scrollbar-width: none; }
.poi-photos::-webkit-scrollbar { display: none; }
.poi-photo { width: 80px; height: 60px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; border: 0.5px solid var(--border); }
.poi-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.admission-badge, .opening-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 0.5px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
}
.admission-badge.free { background: var(--success-light); color: var(--success); border-color: rgba(52,211,153,0.2); }
.poi-action-row { display: flex; gap: 6px; margin-bottom: 0.5rem; flex-wrap: wrap; }
.poi-action-row .btn-route { flex: 1; margin-top: 0; }
.poi-info-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }

/* Stars / Rating */
.stars { display: flex; align-items: center; gap: 2px; }
.star { color: var(--warning); font-size: 0.85rem; }
.star.empty { color: var(--text-muted); }

/* ─── POI Tabs ──────────────────────────────────────────────── */
.poi-tabs { display: flex; gap: 4px; margin-bottom: 0.75rem; }
.poi-tab {
    flex: 1;
    padding: 0.45rem 0.4rem;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all .15s;
}
.poi-tab.active {
    background: var(--accent-light);
    border-color: rgba(79,142,247,0.3);
    color: var(--accent);
    font-weight: 500;
}

/* ─── Nearby List ───────────────────────────────────────────── */
.nearby-list { display: flex; flex-direction: column; gap: 6px; }
.nearby-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
}
.nearby-item:hover { background: var(--surface-hover); }
.nearby-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.nearby-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.nearby-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.nearby-dist { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

/* ─── Weather ───────────────────────────────────────────────── */
.weather-overview-hint { font-size: 0.82rem; color: var(--text-muted); margin: 0.4rem 0; }
.forecast-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0.5rem 0; }
.forecast-row::-webkit-scrollbar { display: none; }
.forecast-card {
    min-width: 68px;
    flex-shrink: 0;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 6px;
    text-align: center;
}
.forecast-day { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.forecast-icon { font-size: 1.2rem; }
.forecast-temp { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.forecast-sun { display: flex; gap: 3px; font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; justify-content: center; }
.forecast-sun i { font-size: 0.65rem; }
.sun-info-row { display: flex; gap: 12px; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.5rem; padding: 6px 10px; background: var(--surface); border-radius: var(--radius-md); border: 0.5px solid var(--border); }
.sun-info-row span { display: flex; align-items: center; gap: 0.3rem; }

/* ─── Comments / Ratings ────────────────────────────────────── */
.comment-item { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 6px; }
.comment-author { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); }
.comment-text { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
.comment-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Route Line ────────────────────────────────────────────── */
.route-info { font-size: 0.82rem; color: var(--text-secondary); background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 6px 10px; margin: 0.4rem 0; display: flex; align-items: center; gap: 6px; }

/* ─── Profile ───────────────────────────────────────────────── */
.profile-avatar-wrap { text-align: center; margin-bottom: 1rem; }
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 auto 0.5rem;
    overflow: hidden;
    cursor: pointer;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.profile-actions { display: flex; gap: 6px; margin-top: 0.5rem; align-items: center; }
.profile-place-tabs { display: flex; gap: 4px; margin-bottom: 0.75rem; }
.profile-place-tab { flex: 1; padding: 0.4rem; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.78rem; color: var(--text-muted); cursor: pointer; text-align: center; transition: all .15s; }
.profile-place-tab.active { background: var(--accent-light); border-color: rgba(79,142,247,0.3); color: var(--accent); font-weight: 500; }

/* ─── Aurora ────────────────────────────────────────────────── */
.aurora-panel { }
.aurora-intensity { display: flex; gap: 6px; margin: 0.5rem 0; }
.intensity-btn { flex: 1; padding: 0.5rem; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); text-align: center; cursor: pointer; font-size: 0.8rem; color: var(--text-muted); transition: all .15s; }
.intensity-btn.selected { background: var(--aurora-light); border-color: rgba(167,139,250,0.3); color: var(--aurora); font-weight: 500; }
.aurora-marker { animation: pulse 2s infinite; }
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .6; transform: scale(1.3); }
}

/* ─── User Markers / Status ─────────────────────────────────── */
.user-location-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2.5px solid white; }
.poi-status-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0.45rem 0.8rem; border-radius: var(--radius-md); border: 0.5px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 0.82rem; cursor: pointer; transition: all .15s; }
.poi-status-btn.active-visited { background: rgba(22,163,74,0.15); color: #4ADE80; border-color: rgba(22,163,74,0.3); }
.poi-status-btn.active-wishlist { background: rgba(244,63,94,0.15); color: #FB7185; border-color: rgba(244,63,94,0.3); }

/* ─── Autocomplete Search ───────────────────────────────────── */
#search-container {
    position: absolute;
    left: 12px;
    right: 58px;
    z-index: 190;
    max-width: 480px;
    margin: 0 auto;
}
#search-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: rgba(13,15,26,0.85);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}
[data-theme="light"] #search-input { background: rgba(238,242,247,0.90); }
#search-input::placeholder { color: var(--text-muted); }
#search-suggestions {
    background: rgba(13,15,26,0.95);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 4px;
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
[data-theme="light"] #search-suggestions { background: rgba(238,242,247,0.97); }
.suggestion-item { padding: 10px 14px; font-size: 0.88rem; color: var(--text-secondary); cursor: pointer; border-bottom: 0.5px solid var(--border); transition: background .1s; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--surface-hover); color: var(--text-primary); }

/* ─── Trip Planner ──────────────────────────────────────────── */
.trip-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; gap: 8px; transition: background .15s; margin-bottom: 6px; }
.trip-item:hover { background: var(--surface-hover); }
.trip-item-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.trip-stop-count { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.trip-stops-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.trip-stop-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); cursor: grab; transition: border-color .15s; }
.trip-stop-item:active { cursor: grabbing; }
.trip-stop-num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-glass); color: white; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trip-stop-body { flex: 1; min-width: 0; }
.trip-stop-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-stop-notes { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.trip-stop-actions { display: flex; gap: 4px; flex-shrink: 0; }
.trip-stop-go, .trip-stop-del { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 3px; font-size: 0.9rem; border-radius: 6px; transition: color .15s; }
.trip-stop-go:hover { color: var(--accent); }
.trip-stop-del:hover { color: var(--danger); }
.trip-map-marker { width: 28px; height: 28px; border-radius: 50%; background: #7c3aed; color: white; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.trip-poi-picker { background: rgba(13,15,26,0.97); border: 0.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
[data-theme="light"] .trip-poi-picker { background: rgba(238,242,247,0.98); }
.trip-poi-picker-header { display: flex; gap: 6px; padding: 8px; border-bottom: 0.5px solid var(--border); background: var(--surface); }
.trip-poi-picker-header input { flex: 1; padding: 6px 10px; border: 0.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--bg); color: var(--text-primary); outline: none; }
.trip-poi-picker-header button { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; padding: 4px; }
.trip-poi-results { max-height: 220px; overflow-y: auto; }
.trip-poi-result { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; border-bottom: 0.5px solid var(--border); transition: background .1s; }
.trip-poi-result:last-child { border-bottom: none; }
.trip-poi-result:hover { background: var(--surface-hover); }

/* ─── Freunde & Messaging ───────────────────────────────────── */
.menu-badge-pill { background: var(--danger); color: white; font-size: 0.68rem; font-weight: 700; padding: 1px 5px; border-radius: 20px; margin-left: 4px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); margin-bottom: 6px; transition: background .15s; }
.user-card:hover { background: var(--surface-hover); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-sub { font-size: 0.75rem; color: var(--text-muted); }
.user-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.user-card-btn { background: none; border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; font-size: 0.78rem; cursor: pointer; color: var(--text-secondary); transition: all .15s; }
.user-card-btn:hover { border-color: var(--accent); color: var(--accent); }
.user-card-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.user-card-btn.primary { background: var(--accent-glass); color: white; border-color: transparent; }
.user-card-btn.primary:hover { background: var(--accent-hover); }
.chat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); margin-bottom: 8px; }
.chat-header-back { background: none; border: none; cursor: pointer; color: var(--accent); font-size: 1.1rem; padding: 3px; }
.chat-header-name { font-weight: 600; font-size: 0.95rem; flex: 1; color: var(--text-primary); }
.chat-messages { display: flex; flex-direction: column; gap: 6px; min-height: 120px; max-height: 38vh; overflow-y: auto; padding: 4px 0; -webkit-overflow-scrolling: touch; }
.chat-bubble { max-width: 80%; padding: 8px 12px; border-radius: var(--radius-lg); font-size: 0.88rem; line-height: 1.45; word-break: break-word; }
.chat-bubble.mine { align-self: flex-end; background: var(--accent-glass); color: white; border-bottom-right-radius: 4px; border: 0.5px solid rgba(255,255,255,0.1); }
.chat-bubble.theirs { align-self: flex-start; background: var(--surface); color: var(--text-primary); border: 0.5px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble-time { font-size: 0.65rem; opacity: .6; margin-top: 3px; }
.chat-bubble-sender { font-size: 0.7rem; font-weight: 600; margin-bottom: 2px; opacity: .7; }
.chat-bubble img { max-width: 200px; border-radius: var(--radius-sm); display: block; margin-top: 4px; }
.chat-input-row { display: flex; gap: 6px; align-items: flex-end; padding-top: 8px; border-top: 0.5px solid var(--border); margin-top: 8px; }
.chat-input { flex: 1; resize: none; min-height: 38px; max-height: 120px; padding: 8px 12px; font-size: 0.88rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-primary); line-height: 1.4; outline: none; transition: border-color .15s; -webkit-appearance: none; }
.chat-input:focus { border-color: var(--accent); }
.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-glass); color: white; border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.chat-attach-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--text-muted); border: 0.5px solid var(--border); cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.chat-attach-btn:hover { border-color: var(--accent); color: var(--accent); }
.conversation-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; margin-bottom: 6px; transition: background .15s; }
.conversation-item:hover { background: var(--surface-hover); }
.conversation-body { flex: 1; min-width: 0; }
.conversation-name { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }
.conversation-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.conversation-time { font-size: 0.7rem; color: var(--text-muted); }
.conversation-unread { background: var(--accent); color: white; font-size: 0.68rem; font-weight: 700; padding: 1px 5px; border-radius: 20px; }
.location-share-panel { padding: 4px 0; }
.location-duration-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 6px 0; }
.location-duration-btn { padding: 8px 4px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.8rem; cursor: pointer; text-align: center; transition: all .15s; color: var(--text-secondary); }
.location-duration-btn.active { background: var(--accent-light); border-color: rgba(79,142,247,0.3); color: var(--accent); font-weight: 500; }
.friend-map-marker { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid white; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--accent); color: white; font-weight: 700; font-size: 0.88rem; }
.friend-map-marker img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Search Input (Freunde) ────────────────────────────────── */
.search-input-wrap { position: relative; margin-bottom: 10px; }
.search-input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; pointer-events: none; }
.search-input-field { width: 100%; padding: 8px 10px 8px 32px; border: 0.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.88rem; color: var(--text-primary); background: var(--surface); outline: none; box-sizing: border-box; -webkit-appearance: none; transition: border-color .15s; }
.search-input-field:focus { border-color: var(--accent); }

/* ─── Visibility Selector ───────────────────────────────────── */
.visibility-selector { display: flex; gap: 4px; flex-wrap: wrap; }
.vis-option { flex: 1; min-width: 0; }
.vis-option input[type="radio"] { display: none; }
.vis-option span { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border: 0.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.75rem; cursor: pointer; transition: all .15s; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface); }
.vis-option input[type="radio"]:checked + span { border-color: rgba(79,142,247,0.4); background: var(--accent-light); color: var(--accent); font-weight: 500; }

/* ─── Kalender ──────────────────────────────────────────────── */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav button { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 5px 10px; cursor: pointer; color: var(--text-secondary); font-size: 1rem; transition: all .15s; }
.cal-nav button:hover { border-color: var(--accent); color: var(--accent); }
.cal-month-title { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.cal-view-toggle { display: flex; gap: 4px; margin-bottom: 8px; }
.cal-view-btn { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 5px 10px; cursor: pointer; color: var(--text-muted); font-size: 0.95rem; transition: all .15s; }
.cal-view-btn.active { background: var(--accent-light); border-color: rgba(79,142,247,0.3); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 3px; width: 100%; box-sizing: border-box; }
.cal-header { margin-bottom: 2px; }
.cal-dow { text-align: center; font-size: 0.68rem; color: var(--text-muted); font-weight: 500; padding: 2px 0; }
.cal-day { aspect-ratio: 1; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; padding: 2px 1px; cursor: pointer; transition: background .1s; min-height: 0; max-width: 100%; }
.cal-day:hover { background: var(--surface); }
.cal-day-empty { cursor: default; }
.cal-day-num { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.cal-today { background: var(--accent-light); }
.cal-today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-in-plan { background: rgba(52,211,153,0.07); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-dots { display: flex; gap: 2px; margin-top: 1px; }
.cal-day-weather { font-size: 0.75rem; line-height: 1; margin-top: 1px; }
.cal-day-event-label { font-size: 0.65rem; font-weight: 600; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; text-align: left; margin-top: 2px; border-radius: 2px; }
.cal-share-label { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--text-secondary); cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.cal-share-label input { width: auto; }
.cal-day-row { border: 0.5px solid var(--border); border-radius: var(--radius-md); margin-bottom: 6px; overflow: hidden; background: var(--surface); }
.cal-day-row-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 0.5px solid var(--border); background: rgba(255,255,255,0.03); }
.cal-day-row-date { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.cal-day-items { padding: 4px 6px; }
.cal-week-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cal-week-day { border: 0.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: border-color .15s; background: var(--surface); }
.cal-week-day:hover { border-color: var(--accent); }
.cal-week-day.cal-today { border-color: var(--accent); }
.cal-week-day.cal-today .cal-week-day-header { color: var(--accent); font-weight: 600; }
.cal-week-day-header { padding: 5px 10px; font-size: 0.8rem; color: var(--text-secondary); border-bottom: 0.5px solid var(--border); background: rgba(255,255,255,0.03); }
.cal-week-event { padding: 3px 8px; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 4px; border-radius: 4px; }

/* ─── Lightbox ──────────────────────────────────────────────── */
#photo-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; }
#photo-lightbox.open { display: flex; }
#lightbox-img { max-width: 90%; max-height: 80vh; border-radius: var(--radius-md); }
#lightbox-close { position: absolute; top: max(20px, env(safe-area-inset-top, 20px) + 8px); right: 20px; background: rgba(0,0,0,.5); border: none; color: white; font-size: 1.5rem; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ─── Add Place Marker ──────────────────────────────────────── */
.add-place-marker { width: 20px; height: 20px; border-radius: 50%; background: var(--warning); border: 3px solid white; animation: pulse 1.5s infinite; }
.temp-place-label { background: rgba(13,15,26,0.9); color: var(--text-primary); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 0.75rem; white-space: nowrap; backdrop-filter: var(--blur-sm); }

/* ─── Leaflet Overrides ─────────────────────────────────────── */
.leaflet-container { background: #1a2535 !important; }
.leaflet-popup-content-wrapper { background: rgba(13,15,26,0.95) !important; color: var(--text-primary) !important; border: 0.5px solid var(--border) !important; border-radius: var(--radius-md) !important; backdrop-filter: var(--blur) !important; box-shadow: none !important; }
.leaflet-popup-tip { background: rgba(13,15,26,0.95) !important; }
.leaflet-popup-content { margin: 10px 14px !important; font-size: 0.85rem !important; }
.leaflet-bar a { background: rgba(13,15,26,0.85) !important; border-color: var(--border) !important; color: var(--text-primary) !important; }
.leaflet-bar a:hover { background: var(--surface-hover) !important; }
[data-theme="light"] .leaflet-container { background: #C4D6E0 !important; }
[data-theme="light"] .leaflet-popup-content-wrapper { background: rgba(238,242,247,0.97) !important; }
[data-theme="light"] .leaflet-popup-tip { background: rgba(238,242,247,0.97) !important; }
[data-theme="light"] .leaflet-bar a { background: rgba(238,242,247,0.90) !important; }

/* ─── Misc ──────────────────────────────────────────────────── */
.loading-hint { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 1.5rem 0; }
.poi-detail-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.75rem; }
.profile-success { color: var(--success); font-size: 0.82rem; margin: 0.3rem 0; display: flex; align-items: center; gap: 4px; }

/* Trip POI Picker in Calendar */
#cal-item-picker { margin-top: 6px; }
#cal-item-edit-overlay { margin-top: 6px; }
.cal-item-edit { cursor: pointer; }

/* ─── Leaflet Zoom Controls Position ────────────────────────── */
.leaflet-bottom.leaflet-left {
    bottom: calc(var(--tab-h) + 12px) !important;
}
.leaflet-control-zoom {
    border: 0.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: none !important;
}
.leaflet-control-zoom a {
    background: rgba(13,15,26,0.85) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}
[data-theme="light"] .leaflet-control-zoom a {
    background: rgba(238,242,247,0.90) !important;
}
.leaflet-control-attribution {
    bottom: calc(var(--tab-h) + 4px) !important;
    background: rgba(13,15,26,0.7) !important;
    color: var(--text-muted) !important;
    font-size: 0.65rem !important;
}
.leaflet-control-attribution a { color: var(--text-secondary) !important; }

/* ─── Search Dropdown (dynamisch erzeugt) ───────────────────── */
#search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(13,15,26,0.97);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    max-height: 280px;
    overflow-y: auto;
    z-index: 195;
}
[data-theme="light"] #search-dropdown {
    background: rgba(238,242,247,0.98);
}
#search-dropdown:not(.open) { display: none; }
#search-dropdown.open { display: block; }
.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 0.5px solid var(--border);
    transition: background .1s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover,
.search-item.active {
    background: var(--surface-hover);
}
.search-item-icon { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.search-item-body { flex: 1; min-width: 0; }
.search-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-name mark {
    background: var(--accent);
    color: white;
    border-radius: 3px;
    padding: 0 2px;
}
.search-item-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.rating-mini {
    font-size: 0.75rem;
    color: var(--warning);
    flex-shrink: 0;
}
.search-no-results {
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Weather Location Picker ───────────────────────────────── */
.weather-location-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0.5rem 0;
}
.weather-location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.weather-location-item:hover { background: var(--surface-hover); }
.weather-location-item.active {
    background: var(--accent-light);
    border-color: rgba(79,142,247,0.3);
}
.weather-location-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}
.weather-location-item.active .weather-location-name { color: var(--accent); }
.weather-location-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── OSM Infrastruktur-Layer ────────────────────────────────── */
.osm-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}
.osm-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all .15s;
    text-align: left;
}
.osm-chip:hover { background: var(--surface-hover); }
.osm-chip.active {
    background: var(--accent-light);
    border-color: rgba(79,142,247,0.35);
    color: var(--accent);
    font-weight: 500;
}
.osm-chip-icon { font-size: 1.1rem; flex-shrink: 0; }

.osm-marker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(13,15,26,0.92);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
[data-theme="light"] .osm-marker {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.1);
}

/* ─── Bus (Strætó) ───────────────────────────────────────────── */
.bus-stop-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34,139,87,0.95);
    border: 1.5px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.bus-departure-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.5rem;
}
.bus-departure-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
}
.bus-line-badge {
    min-width: 32px;
    padding: 3px 7px;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}
.bus-departure-headsign {
    flex: 1;
    font-size: 0.86rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bus-departure-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ─── Floating Action Button: Ort anlegen ────────────────────── */
#fab-add-place {
    position: absolute;
    right: 12px;
    bottom: calc(var(--tab-h) + 12px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-glass);
    border: 2px solid var(--bg);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 195;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: background .15s, transform .15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#fab-add-place:hover { background: var(--accent-hover); }
#fab-add-place:active { transform: scale(0.93); }
#fab-add-place.active-mode {
    background: var(--danger);
    transform: rotate(45deg);
}

/* ─── Platzierungs-Hinweis (Ort anlegen) ─────────────────────── */
.placement-hint {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 80px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(13,15,26,0.92);
    color: var(--text-primary);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    white-space: nowrap;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
}
.placement-hint[hidden] { display: none !important; }
[data-theme="light"] .placement-hint {
    background: rgba(238,242,247,0.95);
}

/* ─── Bus-Linien-Suche & Strecken-Chips ──────────────────────── */
.bus-line-badge-clickable {
    cursor: pointer;
    transition: transform .12s;
}
.bus-line-badge-clickable:active { transform: scale(0.92); }

.bus-route-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}
.bus-route-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all .15s;
    max-width: 100%;
}
.bus-route-chip:hover { border-color: var(--route-color, var(--accent)); }
.bus-route-chip.active {
    background: color-mix(in srgb, var(--route-color, var(--accent)) 18%, transparent);
    border-color: var(--route-color, var(--accent));
    color: var(--text-primary);
}
.bus-route-chip-num {
    background: var(--route-color, #1d3557);
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}
.bus-route-chip-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ─── Bewertungs-Sterne (eigene Bewertung) ───────────────────── */
.rating-input { font-size: 0.85rem; color: var(--text-secondary); margin: 0.4rem 0 0.2rem; }
.star-input {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: color .12s, transform .1s;
    display: inline-block;
}
.star-input:hover { transform: scale(1.15); }
.star-input.filled { color: var(--warning); }

/* ─── "Wer ist gerade hier" Badge ────────────────────────────── */
.poi-viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
    margin-bottom: 0.5rem;
}
.poi-viewers-badge i { color: var(--accent); font-size: 0.9rem; }

/* ─── FAQ / Hilfe ─────────────────────────────────────────────── */
.faq-category { margin-bottom: 1.2rem; }
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 0.5px solid var(--border);
}
.faq-category-header i { color: var(--accent); font-size: 1.1rem; }
.faq-item {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    overflow: hidden;
    background: var(--surface);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.faq-question.open { color: var(--accent); }
.faq-chevron { font-size: 0.9rem; color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.faq-answer {
    padding: 0 14px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ─── Community-Pinnwand ─────────────────────────────────────── */
.board-post-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .15s;
}
.board-post-card:hover { background: var(--surface-hover); }
.board-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.board-post-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 20px;
    padding: 3px 9px;
}
.board-post-date { font-size: 0.75rem; color: var(--text-muted); }
.board-post-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.board-post-location { font-size: 0.78rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.board-post-author { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }

/* ─── Notfall-Karte ───────────────────────────────────────────── */
.emergency-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
}
.emergency-card-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.emergency-card-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.emergency-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.emergency-card-actions a, .emergency-card-actions button { text-decoration: none; }

/* ─── Entdecken-Tab ───────────────────────────────────────────── */
.discover-module-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.discover-module-label:first-of-type { margin-top: 0.3rem; }
.discover-module-label i { font-size: 0.85rem; color: var(--accent); }

.discover-highlight-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.discover-highlight-card:hover { border-color: var(--accent); }
.discover-highlight-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.discover-highlight-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.8rem;
}
.discover-highlight-body { padding: 0.75rem 0.9rem; }
.discover-highlight-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.discover-highlight-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.discover-highlight-subtitle { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

.discover-scroll-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.discover-scroll-row::-webkit-scrollbar { display: none; }
.discover-mini-card {
    flex-shrink: 0;
    width: 110px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.discover-mini-card:hover { border-color: var(--accent); }
.discover-mini-card-icon {
    width: 100%;
    height: 50px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.discover-mini-card-name { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discover-mini-card-meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 3px; }

.discover-list-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color .15s;
}
.discover-list-card:hover { border-color: var(--accent); }
.discover-list-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.discover-icon-new { background: var(--success-light); color: var(--success); }
.discover-list-card-body { flex: 1; min-width: 0; }
.discover-list-card-title { font-size: 0.86rem; font-weight: 500; color: var(--text-primary); }
.discover-list-card-sub { font-size: 0.74rem; color: var(--text-muted); margin-top: 1px; }

.discover-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.discover-chip-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.discover-chip-card:hover { border-color: var(--accent); }
.discover-chip-card-title { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discover-chip-card-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.discover-weather-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
}
.discover-weather-banner i { font-size: 1.4rem; color: var(--accent); }
.discover-weather-banner-title { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.discover-weather-banner-sub { font-size: 0.74rem; color: var(--accent); opacity: 0.85; margin-top: 1px; }

.discover-detail-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    display: block;
}
.discover-detail-content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0.75rem 0 1rem;
}

/* ─── Highlight-Detail Bildergalerie ──────────────────────────── */
.discover-gallery-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.discover-gallery-scroll::-webkit-scrollbar { display: none; }
.discover-gallery-item {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
}
.discover-gallery-item img {
    width: 140px;
    height: 95px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border);
    display: block;
}
.discover-gallery-caption {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Schatzsuche (Geo-Challenges) ───────────────────────────── */
.geo-card {
    position: relative;
    display: flex;
    gap: 10px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .15s;
}
.geo-card:hover { border-color: var(--accent); }
.geo-card-solved { opacity: 0.7; }
.geo-card-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.geo-card-body { flex: 1; min-width: 0; }
.geo-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.geo-difficulty-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.geo-points-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 2px;
}
.geo-card-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.geo-card-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.geo-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--success);
    font-size: 1.2rem;
}

.geo-detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.geo-solved-banner, .geo-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--success-light);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 0.5rem;
}
.geo-success-banner i { font-size: 1.6rem; }
.geo-success-title { font-size: 0.92rem; font-weight: 600; }
.geo-success-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 1px; }

.geo-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}
.geo-leaderboard-row-me {
    border-color: var(--accent);
    background: var(--accent-light);
}
.geo-leaderboard-rank { font-size: 1rem; font-weight: 700; width: 28px; text-align: center; flex-shrink: 0; }
.geo-leaderboard-name { flex: 1; font-size: 0.88rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-leaderboard-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.geo-leaderboard-stats > span:first-child { font-size: 0.88rem; font-weight: 600; color: var(--warning); display: flex; align-items: center; gap: 3px; }
.geo-leaderboard-solved { font-size: 0.7rem; color: var(--text-muted); }

/* ─── Private Notiz zu besuchten Orten ───────────────────────── */
.poi-note-section { margin: 0.4rem 0 0.6rem; }
.poi-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
}
.poi-note-display {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: pre-wrap;
    cursor: pointer;
}
.poi-note-edit textarea {
    width: 100%;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

/* ─── Schatzsuche-Achievements ────────────────────────────────── */
.geo-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.geo-badge-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
}
.geo-badge-locked { opacity: 0.35; filter: grayscale(0.6); }
.geo-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 6px;
}
.geo-badge-title { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.geo-badge-desc { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

.geo-achievement-unlock {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-top: 6px;
}
.geo-achievement-unlock .geo-badge-icon { width: 36px; height: 36px; font-size: 1rem; margin: 0; flex-shrink: 0; }
.geo-achievement-unlock-label { font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.geo-achievement-unlock-title { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ─── Feedback & Feature-Wünsche ─────────────────────────────── */
.feedback-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
}
.feedback-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 6px; }
.feedback-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.feedback-status-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}
.feedback-card-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.feedback-card-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.feedback-admin-response {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    margin-bottom: 6px;
}
.feedback-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-card-author { font-size: 0.74rem; color: var(--text-muted); }
.feedback-upvote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
}
.feedback-upvote-btn.active {
    background: var(--accent-light);
    border-color: rgba(79,142,247,0.3);
    color: var(--accent);
    font-weight: 600;
}
.feedback-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px;
    font-size: 0.9rem;
}
.feedback-delete-btn:hover { color: var(--danger); }

/* ─── Spenden / Donate ───────────────────────────────────────── */
.donate-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0.75rem 0;
}
.donate-amount-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.donate-amount-btn:hover, .donate-amount-btn:active {
    border-color: #FB7185;
    background: rgba(251,113,133,0.1);
    color: #FB7185;
}

/* ─── 3D-Gelände-Karte (MapLibre) ────────────────────────────── */
.map3d-poi-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    transform: translateY(-50%);
}
.map3d-user-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2.5px solid white;
    box-shadow: 0 0 0 2px rgba(79,142,247,0.4);
}
.maplibregl-ctrl-attrib {
    font-size: 0.65rem !important;
    background: rgba(13,15,26,0.7) !important;
    color: var(--text-muted) !important;
}
.maplibregl-ctrl-attrib a { color: var(--text-secondary) !important; }
.maplibregl-ctrl-group {
    background: rgba(13,15,26,0.85) !important;
    border: 0.5px solid var(--border) !important;
}
.maplibregl-ctrl-group button { background: transparent !important; }
.maplibregl-ctrl-icon { filter: invert(1) !important; }

/* ─── Live-Webcams ────────────────────────────────────────────── */
.webcam-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(13,15,26,0.92);
    border: 1.5px solid #FCD34D;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FCD34D;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
[data-theme="light"] .webcam-marker {
    background: rgba(255,255,255,0.95);
}
.webcam-detail-image {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    margin: 0.5rem 0;
    background: var(--surface);
}

/* ─── Kartenmodus-Auswahl ─────────────────────────────────────── */
.map-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}
.map-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.map-mode-option i { font-size: 1.4rem; color: var(--text-secondary); }
.map-mode-option span { font-size: 0.78rem; color: var(--text-secondary); text-align: center; }
.map-mode-option.active {
    border-color: var(--accent);
    background: var(--accent-light);
}
.map-mode-option.active i,
.map-mode-option.active span { color: var(--accent); font-weight: 500; }

/* Windy-Karte: ihr eigenes UI ist nicht im Glass-Stil, aber funktional unveraendert lassen */
#windy { background: #1a2535; }

/* ─── Aurora Live-Sichtungen & Hotspots ──────────────────────── */
.aurora-sighting-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
}
.aurora-sighting-intensity-1 { background: #818CF8; }
.aurora-sighting-intensity-2 { background: #A78BFA; }
.aurora-sighting-intensity-3 { background: #C084FC; }

.aurora-hotspot-toggle {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 80px);
    left: 12px;
    z-index: 195;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(13,15,26,0.85);
    border: 0.5px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.aurora-hotspot-toggle.active {
    background: rgba(167,139,250,0.25);
    border-color: rgba(167,139,250,0.4);
    color: #A78BFA;
}
[data-theme="light"] .aurora-hotspot-toggle {
    background: rgba(238,242,247,0.9);
}

.map-mode-aurora-options {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 0.5px solid var(--border);
}

/* ─── Entdecken: "Diese Woche in Island" ──────────────────────── */
.discover-weekly-summary {
    background: linear-gradient(135deg, var(--accent-light), rgba(167,139,250,0.12));
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}
.discover-weekly-summary-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.discover-weekly-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding: 4px 0;
}
.discover-weekly-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.discover-weekly-date { color: var(--text-muted); font-size: 0.76rem; }

/* ─── Tankstellenpreise ───────────────────────────────────────── */
.osm-marker-cheapest {
    border: 2px solid #34D399 !important;
    box-shadow: 0 0 0 3px rgba(52,211,153,0.3), 0 2px 6px rgba(0,0,0,0.3) !important;
}
.fuel-price-box {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin: 0.6rem 0;
}
.fuel-price-cheapest {
    border-color: rgba(52,211,153,0.4);
    background: var(--success-light);
}
.fuel-price-cheapest-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 6px;
}
.fuel-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
}
.fuel-price-row strong { color: var(--text-primary); }

/* ─── Währungsrechner ─────────────────────────────────────────── */
.currency-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}
.currency-input-row input {
    flex: 1;
    background: none;
    border: none;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}
.currency-isk-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}
.currency-equals {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 8px 0;
}
.currency-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    border: 0.5px solid rgba(79,142,247,0.25);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}
.currency-result-row span {
    flex: 1;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}
.currency-result-row select {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}
.currency-result-row select option {
    background: #1a1d2e;
    color: #F1F5F9;
}
[data-theme="light"] .currency-result-row select option {
    background: #ffffff;
    color: #1E293B;
}

/* ─── Verkehrsschilder ────────────────────────────────────────── */
.traffic-signs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.traffic-sign-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
}
.traffic-sign-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}
.traffic-sign-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.traffic-sign-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ─── Ausklappbare Menü-Sektionen ─────────────────────────────── */
/* ─── FAQ-Suche ───────────────────────────────────────────────── */
.faq-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}
.faq-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.faq-search-input {
    width: 100%;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 36px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.faq-search-input:focus { border-color: var(--accent); }
.faq-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
}
.faq-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.faq-search-input {
    width: 100%;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 9px 36px 9px 32px;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
}
.faq-search-input:focus { border-color: var(--accent); }
.faq-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
}

/* ─── Wörterbuch ──────────────────────────────────────────────── */
.dict-entry {
    border-bottom: 0.5px solid var(--border);
    padding: 10px 0;
}
.dict-entry:last-child { border-bottom: none; }
.dict-word {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.dict-ipa {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
}
.dict-definition {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── Checklisten ─────────────────────────────────────────────── */
.checklist-new-row {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
.checklist-new-row input { flex: 1; }
.checklist-list { display: flex; flex-direction: column; gap: 8px; }
.checklist-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s;
}
.checklist-card:active { border-color: var(--accent); }
.checklist-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.checklist-card-title { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.checklist-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2px 4px;
    cursor: pointer;
}
.checklist-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}
.checklist-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .3s;
}
.checklist-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.checklist-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.btn-back {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}
.checklist-items { display: flex; flex-direction: column; gap: 2px; margin-bottom: .75rem; }
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 0.5px solid var(--border);
    transition: opacity .15s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item.checked { opacity: 0.5; }
.checklist-item.checked .checklist-item-text { text-decoration: line-through; }
.checklist-checkbox {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}
.checklist-item-text { flex: 1; font-size: 0.9rem; color: var(--text-primary); }
.checklist-item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2px 4px;
    cursor: pointer;
    opacity: 0.5;
}
.checklist-item-delete:hover { opacity: 1; color: var(--danger); }
.checklist-add-row {
    display: flex;
    gap: 8px;
    margin-top: .5rem;
}
.checklist-add-row input { flex: 1; }
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ─── Partner-Anzeigen ────────────────────────────────────────── */
.partner-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 10px;
}
.partner-card-featured {
    border-color: rgba(79,142,247,0.3);
    background: var(--accent-light);
}
.partner-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.partner-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.partner-featured-badge {
    font-size: 0.7rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 3px;
}
.partner-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin: 0 0 10px;
    line-height: 1.5;
}

/* ─── Tagesplan ───────────────────────────────────────────────── */
.daily-plan-card {
    background: linear-gradient(135deg, var(--accent-light), rgba(79,142,247,0.08));
    border: 0.5px solid rgba(79,142,247,0.25);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.1rem;
}
.daily-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.daily-plan-date {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.daily-plan-trip-day {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}
.daily-plan-weather-icon { font-size: 1.8rem; }
.daily-plan-tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 8px 10px;
}
.daily-plan-tip i { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.daily-plan-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0.7rem;
}
.daily-plan-event {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.daily-plan-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.daily-plan-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.daily-plan-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s;
}
.daily-plan-action-btn:active { border-color: var(--accent); color: var(--accent); }

.daily-plan-trip-item {
    cursor: pointer;
    background: rgba(79,142,247,0.06);
    border-radius: var(--radius-sm);
    padding: 5px 7px;
    gap: 7px;
    -webkit-tap-highlight-color: transparent;
}
.daily-plan-trip-item:active { background: rgba(79,142,247,0.15); }
.daily-plan-notes {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Tages-Zusammenfassung ───────────────────────────────────── */
.day-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: .5rem 0 .75rem;
}
.day-summary-stat {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}
.day-summary-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.day-summary-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.daily-plan-section-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ─── Photo Scroll ────────────────────────────────────────────── */
.photo-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.photo-scroll img {
    height: 120px;
    width: auto;
    max-width: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
    border: 0.5px solid var(--border);
}

/* ─── Profil Tabs ─────────────────────────────────────────────── */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
.profile-tab {
    flex: 1;
    padding: 8px 12px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: none;
    -webkit-tap-highlight-color: transparent;
}
.profile-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ─── Nearby Radius ───────────────────────────────────────────── */
.nearby-radius-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.nearby-radius-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
#nearby-radius-select {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    padding: 4px 8px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* ─── Aurora Intensität Buttons ───────────────────────────────── */
.aurora-intensity-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.aurora-intensity-btn {
    flex: 1;
    padding: 8px 6px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    transition: none;
}
.aurora-intensity-btn.active {
    background: #7B5FD4;
    border-color: #7B5FD4;
    color: white;
}

/* ─── Offline Badge ───────────────────────────────────────────── */
.offline-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 12px;
    padding: 8px 12px;
    background: rgba(220, 38, 38, 0.15);
    border: 0.5px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius-md);
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 500;
}
