html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      background: #e9f2e7;
      font-family: Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow: hidden;
    }

    /* Map container - voll sichtbare Karte, kein Abschneiden */
    .map-container {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #dfeee0;
    }

    /* Wrapper, den wir transformieren (scale + translate) */
    .map-wrapper {
      position: relative;
      transform-origin: 0 0; /* easier for calculations */
      will-change: transform;
    }

    /* Bild selbst: immer komplett sichtbar (contain) */
    .map-wrapper img.map {
      display: block;
      max-width: 100%;
      max-height: 100vh;
      object-fit: contain;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: none; /* wrapper handles interactions */
    }

    /* Tree icon */
    .tree {
      position: absolute;
      transform: translate(-50%, -50%);
      cursor: pointer;
      z-index: 5;
    }

    .tree img {
      width: 46px;
      opacity: 0.75;
      transition: transform 0.18s ease, opacity 0.18s ease;
      display: block;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: auto;
    }

    .tree:hover img {
      transform: scale(1.18);
      opacity: 1;
    }

    .tooltip {
      position: absolute;
      background: rgba(0,0,0,0.75);
      color: white;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 13px;
      transform: translate(-50%, -150%);
      white-space: nowrap;
      display: none;
      z-index: 10;
      pointer-events: none;
    }

    .tree:hover .tooltip { display: block; }

    /* Hover preview box */
    .preview {
      position: absolute;
      display: none;
      border: 2px solid white;
      background: rgba(0,0,0,0.85);
      padding: 6px;
      border-radius: 10px;
      z-index: 60;
      pointer-events: none;
    }

    .preview img { width: 200px; border-radius: 8px; display:block; }

    /* Popup / gallery */
    .popup {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 90;
      padding: 40px 20px;
      box-sizing: border-box;
    }

    .popup-content {
      background: white;
      padding: 18px;
      border-radius: 10px;
      max-width: 96%;
      max-height: 80%;
      overflow-y: auto;
      text-align: center;
    }

    .popup-content img {
      width: 200px;
      border-radius: 6px;
      display:block;
    }

    .close-btn {
      position: absolute;
      top: 16px;
      right: 22px;
      color: white;
      font-size: 28px;
      cursor: pointer;
      z-index: 95;
      pointer-events: auto;
    }

    /* Lightbox (Großansicht) - mobilfreundlich */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.92);
      justify-content: center;
      align-items: center;
      overflow: hidden;
      cursor: grab;
      -webkit-tap-highlight-color: transparent;
    }
    .lightbox:active { cursor: grabbing; }

    .lightbox img {
      max-width: 90%;
      max-height: 90%;
      transition: transform 0.2s ease, opacity 0.3s ease;
      transform-origin: center center;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: all;
      display: block;
    }

    .close-lightbox {
      position: absolute;
      top: 18px;
      right: 28px;
      color: white;
      font-size: 36px;
      cursor: pointer;
      pointer-events: auto;
      z-index: 1001;
    }

    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.18);
      border: none;
      color: white;
      font-size: 48px;
      padding: 8px 14px;
      cursor: pointer;
      border-radius: 10px;
      transition: background 0.12s;
      pointer-events: auto;
      z-index: 1000;
    }
    .nav-btn:hover { background: rgba(255,255,255,0.32); }
    .nav-btn.prev { left: 22px; }
    .nav-btn.next { right: 22px; }

    .zoom-indicator {
      position: absolute;
      bottom: 18px;
      right: 20px;
      background: rgba(0,0,0,0.6);
      color: white;
      font-size: 14px;
      padding: 6px 10px;
      border-radius: 8px;
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
      z-index: 1002;
    }

    /* responsive small tweaks */
    @media (max-width: 520px) {
      .tree img { width: 40px; }
      .preview img { width: 160px; }
      .nav-btn { font-size: 38px; padding: 6px 10px; }
    }

	.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
	}

	.admin-modal-content {
		background: white;
		padding: 20px;
		border-radius: 10px;
		text-align: center;
		width: 220px;
	}

	.admin-modal-content input {
		width: 100%;
		padding: 6px;
		margin-bottom: 10px;
		font-size: 16px;
	}
