@font-face {
    font-family: "PawWow";
    src: url("PawWowBlock-VGMDl.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

body {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-family: "Fredoka", sans-serif;
    background: #e6f4ff;
}

svg {
    width: 100vw;
    height: 100vh;
    display: block;
    cursor: grab;
}

svg:active {
    cursor: grabbing;
}

#page-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;

    padding: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
}

#page-title h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 400;
    font-family: "PawWow", sans-serif;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.7);
}

#page-title h2 {
    margin: 4px 0 0 0;
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    font-weight: 350;
    color: #555;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 7px 10px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    width: auto;
    max-width: none;
    display: inline-block;
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

#filters {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.filters-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
}

#filters label {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.filters-label {
    font-weight: 600;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 10px 0 10px 0;
}

#legend {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.legend-emoji {
    font-size: 14px;
}

.neighborhood {
    fill: #d8f5d0;
    stroke: #8fbf86;
    stroke-width: 0.5px;
}

.point {
    stroke: #ffffff;
    stroke-width: 1px;
    opacity: 0.95;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
    font-size: 12px;
    line-height: 1.4;
    max-width: 260px;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.tooltip-category {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.tooltip-address {
    font-size: 11px;
    margin-bottom: 4px;
}

.tooltip-flags {
    font-size: 11px;
    margin-bottom: 4px;
}

.tooltip-flags span {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 4px;
    border-radius: 999px;
    background: #f3f3f3;
}

.tooltip-description {
    font-size: 11px;
}
