    @font-face {
      font-family: 'Fraunces';
      src: url('assets/fonts/Fraunces-VariableFont_SOFT%2CWONK%2Copsz%2Cwght.woff2') format('woff2-variations');
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Fraunces';
      src: url('assets/fonts/Fraunces-Italic-VariableFont_SOFT%2CWONK%2Copsz%2Cwght.woff2') format('woff2-variations');
      font-weight: 100 900;
      font-style: italic;
      font-display: swap;
    }
    @font-face {
      font-family: 'DM Sans';
      src: url('assets/fonts/DMSans_24pt-Regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'DM Sans';
      src: url('assets/fonts/DMSans_24pt-Medium.woff2') format('woff2');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

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

    html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: #f5f3ef;
      color: #1a1a1a;
    }

    .app {
      display: flex;
      flex-direction: column;
      height: 100vh;
      height: 100dvh; /* dynamic viewport height – fixes mobile browser chrome */
    }

    /* ── TOPBAR ── */
    .topbar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 12px; background: #fff;
      border-bottom: 1px solid #e8e4dc; flex-shrink: 0; gap: 8px;
      flex-wrap: wrap;
    }
    .logo { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; color: #085041; white-space: nowrap; }
    .logo em { color: #D85A30; font-style: italic; }
    .weather-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
    .weather-val { font-weight: 500; color: #1a1a1a; }
    .nav-tabs { display: flex; gap: 4px; }
    .nav-tab {
      padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
      border: none; background: transparent; color: #666; font-family: 'DM Sans', sans-serif;
      transition: all 0.15s;
    }
    .nav-tab.active { background: #E1F5EE; color: #085041; font-weight: 500; }
    .nav-tab:hover:not(.active) { background: #f5f3ef; }

    /* ── MAIN AREA ── */
    .main {
      display: flex;
      flex: 1;
      overflow: hidden;
      min-height: 0;
    }

    /* ── SIDEBAR ── */
    .sidebar {
      width: 260px;
      background: #fff;
      border-right: 1px solid #e8e4dc;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      flex-shrink: 0;
      transition: transform 0.25s ease;
    }
    .filter-wrap { padding: 12px; border-bottom: 1px solid #e8e4dc; flex-shrink: 0; }
    .section-label {
      font-size: 10px; font-weight: 500; letter-spacing: 0.8px;
      text-transform: uppercase; color: #888; margin-bottom: 8px;
    }
    .filters { display: flex; flex-wrap: wrap; gap: 5px; }
    .filter-btn {
      display: flex; align-items: center; gap: 5px; padding: 5px 10px;
      border-radius: 20px; border: 1px solid #e0dcd4; background: transparent;
      font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer;
      color: #555; transition: all 0.15s; white-space: nowrap;
    }
    .filter-btn:hover { background: #f5f3ef; }
    .filter-btn.active { font-weight: 500; }
    .f-all.active    { background: #F1EFE8; border-color: #888;    color: #2C2C2A; }
    .f-park.active   { background: #E1F5EE; border-color: #1D9E75; color: #085041; }
    .f-cafe.active   { background: #FAEEDA; border-color: #BA7517; color: #633806; }
    .f-school.active { background: #EEEDFE; border-color: #7F77DD; color: #3C3489; }
    .f-food.active   { background: #FBEAF0; border-color: #D4537E; color: #72243E; }
    .f-shop.active   { background: #FAECE7; border-color: #D85A30; color: #712B13; }
    .f-sport.active  { background: #EAF3DE; border-color: #639922; color: #27500A; }
    .f-forening.active { background: #FAEEDA; border-color: #EF9F27; color: #412402; }
    .f-busstop.active{ background: #EAECEE; border-color: #2C3E50; color: #1a1a1a; }
    .f-ev.active{ background: #E9F7EF; border-color: #27AE60; color: #145A32; }
    .f-grill.active{ background: #FEF0E6; border-color: #E67E22; color: #7D3C00; }
    .f-swim.active{ background: #E0F2F7; border-color: #0891B2; color: #0C4A6E; }
    .f-kultur.active{ background: #EEEDFE; border-color: #7F77DD; color: #3C3489; }
    .f-beauty.active{ background: #FBEAF0; border-color: #D4537E; color: #72243E; }
    .f-craftsman.active{ background: #D3D1C7; border-color: #5F5E5A; color: #2C2C2A; }
    .f-mailbox.active{ background: #E6F1FB; border-color: #378ADD; color: #0C447C; }
    .f-aed.active{ background: #FDECEA; border-color: #D32F2F; color: #B71C1C; }
    .site-footer {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 900;
      background: #fff;
      border-top: 1px solid #e8e4dc;
      padding: 5px 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      color: #999;
      text-align: center;
    }
    .site-footer a { color: #085041; text-decoration: none; font-weight: 500; }
    .site-footer a:hover { text-decoration: underline; }
    .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

    .place-list { flex: 1; overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
    .place-count { font-size: 10px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: #888; padding: 2px 2px 8px; }
    .place-card {
      padding: 9px 11px; border-radius: 8px; border: 1px solid #e8e4dc;
      background: #fff; margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
    }
    .place-card:hover { border-color: #1D9E75; }
    .place-card.selected { border-color: #1D9E75; background: #E1F5EE; }
    .place-name { font-size: 13px; font-weight: 500; color: #1a1a1a; }
    .place-meta { font-size: 11px; color: #888; margin-top: 2px; }
    .open-badge { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 8px; font-weight: 500; margin-top: 4px; }
    .open   { background: #EAF3DE; color: #27500A; }
    .closed { background: #FCEBEB; color: #791F1F; }

    /* ── MAP WRAPPER ── */
    #map-wrapper {
      flex: 1;
      position: relative;
      min-width: 0;
      min-height: 0;
    }
    #map {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%;
      height: 100%;
    }

    /* ── BUS PANEL ── */
    .bus-panel { pointer-events: auto;
      position: absolute; bottom: 16px; right: 12px; z-index: 1000;
      max-width: 200px;
      background: #fff; border: 1px solid #e8e4dc; border-radius: 14px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12); width: 250px;
      overflow: hidden;
    }
    .bus-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 14px; background: #085041; color: #fff; cursor: pointer;
      user-select: none;
    }
    .bus-header-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
    .bus-toggle { font-size: 11px; opacity: 0.8; }
    .bus-body { padding: 8px 12px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
    .bus-collapsed .bus-body { display: none; }
    .bus-stop-name { font-size: 10px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: #888; margin-bottom: 6px; }
    .bus-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f0ede8; pointer-events: auto; position: relative; z-index: 1; }
    .bus-row:hover { background: #f5f3ef; border-radius: 6px; }
    .bus-row:last-child { border-bottom: none; }
    .bus-line { font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 5px; color: #fff; min-width: 34px; text-align: center; flex-shrink: 0; }
    .bus-dest { font-size: 12px; color: #333; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bus-time { font-size: 13px; font-weight: 500; color: #085041; flex-shrink: 0; }
    .bus-time.soon { color: #D85A30; }
    .bus-loading { font-size: 12px; color: #888; padding: 8px 0; text-align: center; }
    .bus-refresh { font-size: 11px; color: #888; text-align: right; margin-top: 6px; cursor: pointer; }
    .bus-refresh:hover { color: #085041; }

    /* ── MOBILE MENU TOGGLE ── */
    .menu-toggle {
      display: none;
      position: absolute; top: 12px; left: 12px; z-index: 1001;
      background: #fff; border: 1px solid #e8e4dc; border-radius: 8px;
      padding: 7px 10px; cursor: pointer; font-size: 18px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .sidebar-overlay {
      display: none;
      position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 999;
    }

    /* ── BULLETIN ── */
    .bulletin-view { display: none; flex: 1; overflow-y: auto; padding: 16px; background: #f5f3ef; -webkit-overflow-scrolling: touch; }
    .bulletin-view.active { display: block; }
    .bulletin-inner { max-width: 900px; margin: 0 auto; }
    .post-form { background: #fff; border: 1px solid #e8e4dc; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
    .post-input {
      width: 100%; border: 1px solid #e0dcd4; border-radius: 8px;
      padding: 10px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px;
      resize: none; margin-bottom: 10px; color: #1a1a1a; background: #fff;
    }
    .post-input:focus { outline: none; border-color: #1D9E75; }
    .post-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
    .cat-pill {
      padding: 4px 12px; border-radius: 20px; font-size: 12px;
      border: 1px solid #e0dcd4; cursor: pointer; background: transparent;
      font-family: 'DM Sans', sans-serif; color: #555; transition: all 0.15s;
    }
    .cat-pill.active { background: #FAEEDA; border-color: #BA7517; color: #633806; font-weight: 500; }
    .post-btn {
      background: #1D9E75; color: #fff; border: none; padding: 8px 20px;
      border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px;
      font-weight: 500; cursor: pointer;
    }
    .bulletin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
    .bulletin-item { background: #fff; border: 1px solid #e8e4dc; border-radius: 12px; padding: 14px; }
    .bul-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .bul-cat { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 8px; }
    .bul-time { font-size: 11px; color: #888; }
    .bul-text { font-size: 14px; color: #1a1a1a; line-height: 1.5; }
    .bul-author { font-size: 12px; color: #888; margin-top: 8px; }

    /* ── LEAFLET POPUP ── */
    .custom-popup .leaflet-popup-content-wrapper {
      border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      border: 1px solid #e8e4dc; padding: 0;
    }
    .custom-popup .leaflet-popup-content { margin: 0; }
    .custom-popup .leaflet-popup-tip { background: #fff; }
    .popup-inner { padding: 12px 15px; min-width: 170px; }
    .popup-name { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px; }
    .popup-type { font-size: 12px; color: #888; margin-bottom: 6px; }
    .popup-hours { font-size: 12px; color: #1a1a1a; display: flex; align-items: center; gap: 6px; }
    .popup-rating { font-size: 12px; color: #BA7517; margin-top: 4px; }
    .map-pin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
    .footer { grid-column: 1/-1; background: #fff; border-top: 1px solid #e8e4dc; padding: 8px 16px; font-size: 11px; color: #aaa; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; flex-shrink: 0; }
    .footer a { color: #aaa; text-decoration: none; }
    .footer a:hover { color: #085041; }

    /* ── EVENTS ── */
    .events-view { display: none; flex: 1; overflow-y: auto; padding: 16px; background: #f5f3ef; -webkit-overflow-scrolling: touch; }
    .events-view.active { display: block; }
    .events-inner { max-width: 900px; margin: 0 auto; }
    .events-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
    .events-filters { display: flex; gap: 6px; flex-wrap: wrap; }
    .ev-filter { padding: 5px 12px; border-radius: 20px; border: 1px solid #e0dcd4; background: transparent; color: #555; font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer; transition: all 0.15s; }
    .ev-filter.active { background: #E1F5EE; border-color: #1D9E75; color: #085041; font-weight: 500; }
    .add-event-btn { padding: 7px 16px; border-radius: 20px; background: #1D9E75; color: #fff; border: none; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
    .event-card { background: #fff; border: 1px solid #e8e4dc; border-radius: 12px; padding: 16px; margin-bottom: 10px; display: flex; gap: 16px; }
    .event-date-box { flex-shrink: 0; width: 52px; text-align: center; background: #085041; color: #fff; border-radius: 10px; padding: 8px 4px; }
    .event-date-day { font-size: 22px; font-weight: 500; line-height: 1; }
    .event-date-mon { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; margin-top: 2px; }
    .event-body { flex: 1; min-width: 0; }
    .event-title { font-size: 15px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
    .event-meta { font-size: 12px; color: #888; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
    .event-desc { font-size: 13px; color: #444; line-height: 1.5; }
    .event-cat { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 8px; display: inline-block; margin-top: 6px; }
    .event-link { font-size: 12px; color: #1D9E75; text-decoration: none; margin-top: 6px; display: inline-block; }
    .ev-empty { font-size: 13px; color: #888; padding: 24px 0; text-align: center; }

    /* ADD EVENT FORM */
    .add-event-form { background: #fff; border: 1px solid #e8e4dc; border-radius: 12px; padding: 16px; margin-bottom: 16px; display: none; }
    .add-event-form.open { display: block; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
    .form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
    .form-label { font-size: 11px; font-weight: 500; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
    .form-input { border: 1px solid #e0dcd4; border-radius: 8px; padding: 9px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a1a1a; background: #fff; outline: none; width: 100%; }
    .form-input:focus { border-color: #1D9E75; }
    .form-select { border: 1px solid #e0dcd4; border-radius: 8px; padding: 9px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a1a1a; background: #fff; outline: none; width: 100%; cursor: pointer; }
    .form-submit { background: #1D9E75; color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 4px; }
    .form-cancel { background: transparent; color: #888; border: 1px solid #e0dcd4; padding: 9px 16px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; margin-top: 4px; margin-left: 8px; }
    @media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

    /* ── MOBILE ── */
    @media (max-width: 640px) {
      .weather-bar { font-size: 11px; gap: 6px; }
      .nav-tab { padding: 4px 8px; font-size: 11px; }
      .topbar { padding: 6px 10px; }
      .bus-panel { 
        bottom: 8px; right: 8px; left: 8px; max-width: none;
        max-height: 35vh; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .place-list { 
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
        touch-action: pan-y;
      }
      .sidebar {
        touch-action: pan-y;
      }
      .logo { font-size: 16px; }

      .menu-toggle { display: block; }

      .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        width: 280px;
      }
      .sidebar.open { transform: translateX(0); }
      .sidebar-overlay.open { display: block; }

      .bus-panel { pointer-events: auto; width: calc(100vw - 24px); right: 12px; left: 12px; }

      .bulletin-grid { grid-template-columns: 1fr; }
    }
