@font-face {
    font-family: Comfortaa;
    src: url('/static/fonts/Comfortaa-Regular.ttf');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Comfortaa;
    src: url('/static/fonts/Comfortaa-Bold.ttf');
    font-weight: 700;
    font-display: swap;
}

:root {
    --mist: #7A9D96;
    --morning-sky: #CAE4DB;
    --ink: #344B45;
    --background: #f5f8f7;
    --border: #dce5e1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Comfortaa, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

header a {
    text-decoration: none;
    color: var(--ink);
}

main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px;
}

h1 {
    font-size: 25px;
    margin: 0 0 20px;
}

h2 {
    font-size: 18px;
    margin-top: 0;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

button, .button {
    display: inline-block;
    background: var(--mist);
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 11px 17px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

button.secondary, .button.secondary {
    background: var(--morning-sky);
    color: var(--ink);
}

button:hover, .button:hover {
    filter: brightness(.95);
}

input, select, textarea {
    font: inherit;
    color: var(--ink);
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    width: 100%;
}

input[type=checkbox] {
    width: auto;
}

label {
    display: block;
    margin: 10px 0 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
}

.muted {
    color: #74847f;
    font-size: 12px;
}

.error {
    color: #a33b3b;
}

.login-panel {
    max-width: 430px;
    margin: 12vh auto 0;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.editor-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
}

#map {
    height: 650px;
    background: var(--morning-sky);
    border-radius: 10px;
    overflow: hidden;
}

.place-row {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.place-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.place-actions button {
    padding: 5px 10px;
}

.map-label {
    background: transparent;
    border: 0;
    box-shadow: none;
    font-family: Comfortaa, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    text-shadow: 0 0 3px white, 0 0 5px white;
}

.map-label::before {
    display: none;
}

.legend {
    background: rgba(255,255,255,.94);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: Comfortaa, sans-serif;
    font-size: 11px;
    line-height: 2;
}

.legend-line {
    display: inline-block;
    width: 28px;
    border-top: 3px solid var(--mist);
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }

    main {
        padding: 15px;
    }

    #map {
        height: 450px;
    }
}

/* Routekaart: verfijnde plaatsnamen */

.leaflet-tooltip.map-label {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 2px 4px;
    color: #344B45;
    font-family: Comfortaa, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;
}

.leaflet-tooltip.map-label::before {
    display: none;
}

#search-results a,
a[href*="openstreetmap.org"] {
    color: #7A9D96;
}

#places .place-row {
    padding-top: 10px;
    padding-bottom: 10px;
}

#places .place-row input,
#places .place-row select {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
}

@media (min-width: 1000px) {
    #places {
        max-height: 490px;
        overflow-y: auto;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: #7A9D96 transparent;
    }
}

