@font-face {
    font-family: 'AppleGaramond';
    src: url('AppleGaramond-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'AppleGaramond', sans-serif;
    background: #fafafa;
}

#container {
    display: flex;
    height: 100vh;
    width: 100%;
}

#map {
    flex: 5;
    height: 100%;
}

/* MENU – stilren sidebar */
#menu {
    flex: 1;
    max-width: 320px;
    background: #fcfcfc;
    padding: 2rem 1.5rem;
    border-left: 1px solid #ddd;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: -4px 0 10px rgba(0,0,0,0.08);
    font-size: 1.05rem;
}

#menu.collapsed {
    transform: translateX(100%);
}

#toggleMenu {
    position: absolute;
    left: -35px;
    top: 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 8px 0 0 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
    transition: background 0.2s ease;
}

#toggleMenu:hover {
    background-color: #ddd;
}

#menu h2, #menu h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.3rem;
    color: #222;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: background 0.2s ease;
    cursor: pointer;
}

.checkbox-group label:hover {
    background: #f0f0f0;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #444;
    width: 18px;
    height: 18px;
}

input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
}

hr {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 1px solid #ddd;
}

#menu p {
    font-size: 0.95rem;
    color: #555;
    margin: 0.3rem 0 1rem;
}

#menu .menu-logo {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3.5rem;   /* Topjustering */
  margin-bottom: -2rem;   /* Luft under logoet */
}

/* Tooltip på kort */
.leaflet-tooltip-own {
    background-color: #ffffffdd;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
