:root {
    --bg-color: #fcfaf8; 
    --text-main: #3b3b3b;
    --accent: #dcae96; 
    --danger: #e28787;
    --post-peer: #fadbd8; 
    --post-question: #e8f8f5; 
    --post-interest: #fef9e7; 
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-color); color: var(--text-main); font-family: 'Georgia', serif; /* Hygge typography blend */ }
body, .app-container { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* Buttons & Inputs */
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 10px 18px; border-radius: 25px; cursor: pointer; font-family: sans-serif; }
.btn-danger { background: var(--danger); color: #fff; border: none; padding: 10px 18px; border-radius: 25px; cursor: pointer; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-top: 5px; background: #fff; font-family: sans-serif; }

.hygge-header { height: 60px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; background: #fff; box-shadow: var(--shadow); z-index: 10; font-family: sans-serif; }
.hygge-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }

/* Mobile First Layout */
.map-section { flex: 1; position: relative; background: #ececec; overflow: hidden; cursor: grab; }
.board-section, .post-page { height: 50vh; overflow-y: auto; padding: 15px; background: rgba(252, 250, 248, 0.95); z-index: 5; }

/* Desktop Override */
@media (min-width: 768px) {
    .app-container { flex-direction: column-reverse; }
    .board-section, .post-page { height: 45vh; border-bottom: 2px solid #eaeaea; }
}

/* Board Layouts */
.filter-bar { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; padding: 10px; }
.masonry-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
.list-layout { display: flex; flex-direction: column; gap: 10px; }

.post-it { padding: 15px; border-radius: 6px; box-shadow: 2px 4px 8px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s; position: relative; font-family: sans-serif;}
.post-it:hover { transform: scale(1.02); }
.type-peer { background: var(--post-peer); }
.type-question { background: var(--post-question); }
.type-interest { background: var(--post-interest); }

/* Map Popups */
.popup { position: absolute; background: #fff; padding: 10px; border-radius: 8px; box-shadow: var(--shadow); z-index: 20; pointer-events: none; display: flex; gap: 10px; }
.popup img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.hidden { display: none !important; }
.hide-unused .toggleable.empty-field { display: none; }