/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --ink: #26332f;
    --muted: #748079;
    --line: #e4ebe5;
    --surface: #ffffff;
    --canvas: #f8faf5;
    --leaf: #548a5e;
    --leaf-soft: #edf5e8;
    --category-all: #68bf36;
    --category-coffee: #ff8a2c;
    --category-bench: #3b9be0;
    --category-access: #b45ad7;
    --category-playground: #ffcd00;
    --category-changing: #e65d93;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    font-family: "Nunito", sans-serif;

    color: var(--ink);
}

h1,
h2,
h3,
.results-heading {
    font-family: "Fredoka", sans-serif;
}

body {
    background: var(--canvas);
}


/* =========================================================
   APP
========================================================= */

.app {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    height: 112px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    background-color: var(--surface);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url("../images/city-map-pattern.svg");
    background-position: center, center 46%;
    background-repeat: no-repeat, repeat-x;
    background-size: 100% 100%, 360px auto;

    border-bottom: 1px solid var(--line);

    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;

    gap: 0;
}

.brand-icon {
    width: 320px;
    height: 108px;

    flex: 0 0 auto;
    overflow: hidden;
}

.brand-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 48%;
}

.brand-name {
    font-family: "Baloo 2", sans-serif;

    font-size: 28.5px;

    font-weight: 750;
}

.brand-tagline {
    margin-top: 2px;

    font-size: 12px;

    color: #dff4c9;
}

.add-button {
    border: 0;

    font-family: "Fredoka", sans-serif;

    background: #ffcd00;

    color: #26332f;

    padding: 14.85px 22.95px;

    border-radius: 10.8px;

    font-size: 18px;

    font-weight: 500;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.add-button:hover {
    transform: translateY(-1px);

    opacity: 0.95;
}

.topbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-left: auto;
    margin-right: 16px;
}

.topbar-links a {
    color: #526357;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-links a:hover {
    color: #26332f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.map-layout {
    flex: 1;

    min-height: 0;

    display: grid;

    grid-template-columns:
        320px minmax(0, 1fr);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    min-width: 0;

    background-color: var(--surface);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url("../images/city-map-pattern.svg");
    background-position: center;
    background-size: cover;

    border-right: 1px solid var(--line);

    overflow-y: auto;

    padding: 20px;
}

.sidebar-header h1 {
    margin: 0;

    font-size: 27px;

    font-weight: 500;
}

.sidebar-header p {
    margin-top: 7px;
    margin-bottom: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    margin-top: 18px;

    height: 44px;

    display: flex;
    align-items: center;

    gap: 9px;

    background: #f2f5f1;

    border-radius: 10px;

    padding: 0 14px;
}

.search-icon {
    flex-shrink: 0;

    font-size: 15px;
}

.search-box input {
    border: 0;

    outline: 0;

    background: transparent;

    width: 100%;

    font-size: 14px;

    color: var(--ink);
}

.search-box input::placeholder {
    color: #8a938e;
}


/* =========================================================
   FILTERS
========================================================= */

.filters {
    margin-top: 24px;
}

.filters h2 {
    margin: 0 0 8px;

    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0;

    color: #7d8982;
}

.filter {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 0;

    background: transparent;

    padding: 8px;

    border-radius: 8px;

    margin-bottom: 2px;

    text-align: left;

    cursor: pointer;

    font-size: 14px;

    color: #45524c;
}

.filter:hover {
    background: #f4f7f3;
}

.filter.active {
    background: var(--leaf-soft);

    color: #355a3d;

    box-shadow: inset 3px 0 var(--leaf);

    font-weight: 700;
}

.filter-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface);
    border: 2px solid var(--category-all);
    border-radius: 50%;

    color: var(--category-all);
}

.filter-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter[data-category="coffee"] .filter-icon {
    border-color: var(--category-coffee);
    color: var(--category-coffee);
}

.filter[data-category="bench"] .filter-icon {
    border-color: var(--category-bench);
    color: var(--category-bench);
}

.filter[data-category="access"] .filter-icon {
    border-color: var(--category-access);
    color: var(--category-access);
}

.filter[data-category="playground"] .filter-icon {
    border-color: var(--category-playground);
    color: var(--category-playground);
}

.filter[data-category="changing"] .filter-icon {
    border-color: var(--category-changing);
    color: var(--category-changing);
}

.filter[data-category="playground"] .filter-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}


/* =========================================================
   RESULTS
========================================================= */

.results {
    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid var(--line);
}

.results-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    font-family: "Nunito", sans-serif;
    font-size: 13px;

    font-weight: 700;

    color: #6f7a74;

    margin-bottom: 8px;
}

.results-heading span:last-child {
    background: #eef2ed;

    border-radius: 10px;

    padding: 2px 8px;
}

.nearby-status {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 1001;
    transform: translateX(-50%);

    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;

    background: rgba(38, 51, 47, 0.78);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.nearby-status[hidden] {
    display: none;
}

.sidebar-footer {
    margin-top: 24px;
    padding-top: 14px;

    border-top: 1px solid var(--line);
}

.sidebar-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #5a6c61;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: #355a3d;
    text-decoration: underline;
}

.sidebar-footer .sidebar-email {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 4px 0 0 24px;

    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.sidebar-info-links {
    display: grid;
    gap: 6px;
    margin: 12px 0 0 24px;
}

.sidebar-footer .sidebar-info-links a {
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;

    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.75);

    color: #526357;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-footer svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   SPOT LIST
========================================================= */

.spot-card {
    padding: 10px;

    border: 1px solid rgba(104, 191, 54, 0.5);

    border-radius: 8px;

    margin-bottom: 8px;

    cursor: pointer;

    background: rgba(104, 191, 54, 0.5);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.spot-card.coffee {
    border-color: rgba(255, 138, 44, 0.5);
    background: rgba(255, 138, 44, 0.5);
}

.spot-card.bench {
    border-color: rgba(59, 155, 224, 0.5);
    background: rgba(59, 155, 224, 0.5);
}

.spot-card.access {
    border-color: rgba(180, 90, 215, 0.5);
    background: rgba(180, 90, 215, 0.5);
}

.spot-card.playground {
    border-color: rgba(255, 205, 0, 0.5);
    background: rgba(255, 205, 0, 0.5);
}

.spot-card.changing {
    border-color: rgba(230, 93, 147, 0.5);
    background: rgba(230, 93, 147, 0.5);
}

.spot-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 3px 12px rgba(38, 51, 47, 0.06);
}

.spot-card h3 {
    font-size: 14px;

    margin: 0 0 3px;

    font-weight: 500;

    color: #34413c;
}

.spot-card p {
    margin: 0;

    font-size: 12px;

    color: #7b8580;

    line-height: 1.4;
}

.no-results {
    padding: 20px 10px;

    text-align: center;

    color: #89948e;

    font-size: 13px;
}


/* =========================================================
   MAP CONTAINER
========================================================= */

.map-container {
    position: relative;

    min-width: 0;
    min-height: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.desktop-map-search {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;

    width: min(340px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.desktop-map-search > * {
    pointer-events: auto;
}

.desktop-map-search .search-box {
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(38, 51, 47, 0.12);
}

.desktop-map-search .place-search-results {
    margin: 0;
    max-height: min(45vh, 360px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(38, 51, 47, 0.12);
}

.desktop-map-search .osm-sidebar-attribution {
    align-self: flex-end;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
}


/* =========================================================
   LEAFLET MAP
========================================================= */

#map {
    width: 100%;
    height: 100%;

    min-height: 0;

    background: #e9eee8;
}


/*
    Leaflet needs its container to have
    a real size.
*/

.leaflet-container {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #e9eee8;

    font-family: "Nunito", sans-serif;
}


/*
    Prevent general website image rules
    from changing Leaflet tile dimensions.
*/

.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}


/*
    Leaflet's tile images must retain
    their normal dimensions.
*/

.leaflet-tile-container img {
    max-width: none !important;
    max-height: none !important;
}


/* =========================================================
   CUSTOM MAP MARKERS
========================================================= */

.custom-marker-wrapper {
    background: transparent;

    border: 0;
}

.custom-marker {
    width: 18px;
    height: 18px;

    background: var(--category-all);

    border: 0;

    border-radius: 50%;

    box-shadow:
        0 1px 5px rgba(0, 0, 0, 0.28);
}

.custom-marker.coffee {
    background: var(--category-coffee);
}

.custom-marker.bench {
    background: var(--category-bench);
}

.custom-marker.access {
    background: var(--category-access);
}

.custom-marker.playground {
    background: var(--category-playground);
}

.custom-marker.changing {
    background: var(--category-changing);
}

.custom-marker.nearby {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px #26332f, 0 1px 5px rgba(0, 0, 0, 0.28);
    transform: scale(1.12);
}

.spot-cluster {
    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.24);
}

.spot-cluster-nearby {
    outline: 3px solid #26332f;
    outline-offset: 2px;
}

.spot-cluster span {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}

.spot-cluster-coffee {
    background: rgba(255, 138, 44, 0.3);
}

.spot-cluster-coffee span {
    background: var(--category-coffee);
}

.spot-cluster-bench {
    background: rgba(59, 155, 224, 0.3);
}

.spot-cluster-bench span {
    background: var(--category-bench);
}

.spot-cluster-access {
    background: rgba(180, 90, 215, 0.3);
}

.spot-cluster-access span {
    background: var(--category-access);
}

.spot-cluster-playground {
    background: rgba(255, 205, 0, 0.3);
}

.spot-cluster-playground span {
    background: var(--category-playground);
}

.spot-cluster-changing {
    background: rgba(230, 93, 147, 0.3);
}

.spot-cluster-changing span {
    background: var(--category-changing);
}

.new-spot-pin {
    display: block;

    width: 38px;
    height: 44px;
}

.leaflet-tooltip.placement-tooltip {
    max-width: none;
    padding: 0;

    border: 0;

    background: transparent;
    box-shadow: none;

    white-space: normal;
}

.leaflet-tooltip.placement-tooltip::before {
    display: none;
}

.placement-bubble {
    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;

    max-width: calc(100vw - 80px);
    padding: 10px 12px;

    border: 1px solid rgba(232, 193, 181, 0.5);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(38, 51, 47, 0.07);

    color: #34413c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    pointer-events: auto;
}

.placement-bubble > span {
    display: block;

    width: 112px;
}

.placement-cancel {
    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    border: 0;
    border-radius: 50%;

    background: #f2f5f1;
    color: #536159;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

/* =========================================================
   LEAFLET POPUP
========================================================= */

.leaflet-popup-content-wrapper {
    border-radius: 16px;
}

.leaflet-popup-content {
    margin: 15px;
}

.popup-content {
    min-width: 210px;
}

.popup-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--category-all);
    border-radius: 50%;

    color: var(--category-all);

    margin-bottom: 7px;
}

.popup-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.popup-icon.coffee {
    border-color: var(--category-coffee);
    color: var(--category-coffee);
}

.popup-icon.bench {
    border-color: var(--category-bench);
    color: var(--category-bench);
}

.popup-icon.access {
    border-color: var(--category-access);
    color: var(--category-access);
}

.popup-icon.playground {
    border-color: var(--category-playground);
    color: var(--category-playground);
}

.popup-icon.changing {
    border-color: var(--category-changing);
    color: var(--category-changing);
}

.popup-icon.playground svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.popup-content h3 {
    margin: 0 0 5px;

    font-size: 17px;

    font-weight: 500;

    color: #26332f;
}

.popup-content p {
    margin: 0 0 10px;

    font-size: 13px;

    line-height: 1.45;

    color: #68736d;
}

.popup-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}

.popup-tag {
    display: inline-block;

    background: #edf5e8;

    color: #4f7441;

    padding: 4px 8px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;
}

.popup-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 12px;
}

.popup-action {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #355a3d;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.popup-action:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vote-spot-button.voted {
    color: #26332f;
    font-weight: 800;
}

.popup-vote-count {
    margin-left: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.popup-vote-star {
    margin-left: 4px;
    color: #769548;
    font-size: 13px;
    line-height: 1;
}

.popup-vote-message {
    min-height: 0;
    margin: 6px 0 0 !important;
    color: #526357 !important;
    font-size: 11px !important;
}

.popup-report-message {
    min-height: 0;
    margin: 6px 0 0 !important;
    color: #526357 !important;
    font-size: 11px !important;
}


/* =========================================================
   MOBILE FILTER BAR
========================================================= */

.mobile-filter-bar {
    display: none;
}

.mobile-search-toggle,
.mobile-search-panel {
    display: none;
}


/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    background: rgba(31, 43, 37, 0.38);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 5000;

    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-overlay.selecting-location {
    pointer-events: none;
}

.modal-overlay.selecting-location .spot-modal {
    pointer-events: none;
}

.modal-overlay.selecting-location .close-modal {
    pointer-events: auto;
}

.add-spot-form {
    display: none;
}

.modal-overlay.location-selected .add-spot-form {
    display: block;
}

.modal-overlay.location-selected {
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

.modal-overlay.location-selected .spot-modal {
    pointer-events: auto;
}

.spot-modal {
    position: relative;

    width: 100%;

    max-width: 430px;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 22px;

    padding: 28px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);
}

.close-modal {
    position: absolute;

    right: 18px;
    top: 15px;

    border: 0;

    background: #f2f5f1;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    font-size: 21px;

    cursor: pointer;
}

.location-status {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 12px 0;

    color: #536159;
    font-size: 13px;
    line-height: 1.4;
}

.location-status img {
    width: 18px;
    height: 21px;
    flex: 0 0 18px;
}

.spot-modal h2 {
    margin: 0;

    font-size: 25px;

    font-weight: 500;
}

.spot-modal > p {
    color: #758079;

    font-size: 14px;

    line-height: 1.5;

    margin-top: 8px;

    margin-bottom: 20px;
}

.spot-modal label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    margin-top: 14px;
}

.spot-modal input,
.spot-modal select,
.spot-modal textarea {
    width: 100%;

    margin-top: 6px;

    border: 1px solid #dfe6df;

    border-radius: 11px;

    padding: 10px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    color: #26332f;

    background: #ffffff;
}

.spot-modal input:focus,
.spot-modal select:focus,
.spot-modal textarea:focus {
    border-color: #9bc77b;

    box-shadow:
        0 0 0 3px rgba(118, 185, 77, 0.12);
}

.category-picker {
    position: relative;
    margin-top: 6px;
}

.category-native-select {
    position: absolute;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0 !important;
}

.category-trigger {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0;
    padding: 6px 10px;

    border: 1px solid #dfe6df;
    border-radius: 11px;

    background: #ffffff;
    color: #536159;

    font-family: inherit;
    font-size: 14px;
    text-align: left;

    cursor: pointer;
}

.category-trigger:focus-visible {
    border-color: #9bc77b;
    outline: 0;

    box-shadow:
        0 0 0 3px rgba(118, 185, 77, 0.12);
}

.category-choice {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.category-choice > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-option-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #68bf36;
    border-radius: 50%;

    color: var(--category-all);
}

.category-option-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-option[data-value="coffee"] .category-option-icon {
    border-color: var(--category-coffee);
    color: var(--category-coffee);
}

.category-option[data-value="bench"] .category-option-icon {
    border-color: var(--category-bench);
    color: var(--category-bench);
}

.category-option[data-value="access"] .category-option-icon {
    border-color: var(--category-access);
    color: var(--category-access);
}

.category-option[data-value="playground"] .category-option-icon {
    border-color: var(--category-playground);
    color: var(--category-playground);
}

.category-option[data-value="changing"] .category-option-icon {
    border-color: var(--category-changing);
    color: var(--category-changing);
}

.category-trigger .category-option-icon.coffee {
    border-color: var(--category-coffee);
    color: var(--category-coffee);
}

.category-trigger .category-option-icon.bench {
    border-color: var(--category-bench);
    color: var(--category-bench);
}

.category-trigger .category-option-icon.access {
    border-color: var(--category-access);
    color: var(--category-access);
}

.category-trigger .category-option-icon.playground {
    border-color: var(--category-playground);
    color: var(--category-playground);
}

.category-trigger .category-option-icon.changing {
    border-color: var(--category-changing);
    color: var(--category-changing);
}

.category-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;

    margin: -4px 3px 0 0;

    border-right: 1.5px solid #748079;
    border-bottom: 1.5px solid #748079;

    transform: rotate(45deg);
}

.category-picker.open .category-chevron {
    margin-top: 5px;
    transform: rotate(225deg);
}

.category-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;

    display: grid;
    gap: 2px;

    max-height: 230px;
    overflow-y: auto;

    padding: 5px;

    border: 1px solid #dfe6df;
    border-radius: 10px;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(38, 51, 47, 0.16);
}

.category-options[hidden] {
    display: none;
}

.category-option {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 5px 7px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #45524c;

    font-family: inherit;
    font-size: 13px;
    text-align: left;

    cursor: pointer;
}

.category-option:hover,
.category-option[aria-selected="true"] {
    background: #f2f6f1;
}

.category-error {
    margin-top: 5px;

    color: #b64254;
    font-size: 12px;
}

.osm-search-button {
    margin-top: 8px;
    padding: 8px 10px;

    border: 1px solid #d7e1d8;
    border-radius: 8px;

    background: #f7faf6;
    color: #355a3d;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.osm-search-button:hover {
    background: #edf5e8;
}

.osm-search-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.osm-search-status {
    margin-top: 7px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.osm-search-results {
    display: grid;
    gap: 6px;

    margin-top: 8px;
}

.osm-search-result {
    width: 100%;
    padding: 8px 10px;

    border: 1px solid #e1e8e1;
    border-radius: 8px;

    background: #ffffff;
    color: var(--ink);

    font-size: 12px;
    line-height: 1.35;
    text-align: left;

    cursor: pointer;
}

.osm-search-result:hover,
.osm-search-result.selected {
    border-color: #83b874;
    background: #f3f8f0;
}

.place-search-results {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    max-height: 260px;
    overflow-y: auto;
}

.place-search-results[hidden] {
    display: none;
}

.place-search-results h3 {
    margin: 0 0 6px;
    color: #536159;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.place-search-status {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

#osmPlaceResults,
#mobileOsmPlaceResults {
    display: grid;
    gap: 6px;
}

#osmPlaceResults .osm-search-result,
#mobileOsmPlaceResults .osm-search-result {
    display: grid;
    gap: 2px;
}

#osmPlaceResults .osm-search-result strong,
#mobileOsmPlaceResults .osm-search-result strong {
    color: var(--ink);
    font-size: 12px;
}

#osmPlaceResults .osm-search-result span,
#mobileOsmPlaceResults .osm-search-result span {
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.osm-sidebar-attribution {
    margin: 18px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.osm-sidebar-attribution a {
    color: #536f5d;
}

.osm-search-attribution {
    margin-top: 6px;
    text-align: left;
}

.spot-modal textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;

    border: 0;

    background: #ffcd00;

    color: #26332f;

    padding: 12px;

    border-radius: 12px;

    margin-top: 20px;

    font-weight: 750;

    cursor: pointer;
}

.submit-button:hover {
    opacity: 0.93;
}

.spot-modal small {
    display: block;

    text-align: center;

    margin-top: 10px;

    color: #89928d;

    font-size: 11px;
}

@media (max-width: 768px) {

    .modal-overlay.location-selected .spot-modal {
        position: fixed;
        left: 20px !important;
        right: 20px;
        top: auto !important;
        bottom: 20px;
        width: auto;
        max-width: none;
        max-height: 55vh;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .topbar {
        height: 92px;

        padding: 0 14px;
    }


    .brand-tagline {
        display: none;
    }


    .brand-icon {
        width: 260px;
        height: 88px;
    }


    .add-button {
        padding: 12.15px 16.2px;

        font-size: 17.55px;
    }

    .map-layout {
        display: block;

        position: relative;

        flex: 1;

        height: auto;
        min-height: 0;
    }


    .sidebar {
        display: none;
    }

    .desktop-map-search {
        display: none;
    }


    .map-container {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }


    #map {
        width: 100%;
        height: 100%;

        min-height: 0;
    }

    .mobile-search-toggle {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 1100;

        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid #dfe6df;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.94);
        color: #355a3d;
        box-shadow: 0 2px 8px rgba(38, 51, 47, 0.16);
        cursor: pointer;
    }

    .mobile-search-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .mobile-search-panel {
        position: absolute;
        top: 60px;
        left: 12px;
        right: 12px;
        z-index: 1101;

        display: block;
        max-height: min(58vh, 420px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 5px 20px rgba(38, 51, 47, 0.18);
    }

    .mobile-search-panel[hidden] {
        display: none;
    }

    .mobile-search-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-search-row input {
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 7px 9px;
        border: 1px solid #dfe6df;
        border-radius: 7px;
        background: #ffffff;
        color: var(--ink);
        font: inherit;
        font-size: 13px;
    }

    .mobile-search-row button {
        min-height: 36px;
        padding: 6px 9px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #426c52;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    #mobilePlaceSearchResults {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    #mobilePlaceSearchResults[hidden] {
        display: none;
    }


    .mobile-filter-bar {
        position: absolute;

        left: 10px;
        bottom: calc(30px + env(safe-area-inset-bottom));

        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: visible;

        gap: 3px;

        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(8px);

        padding: 5px;

        border-radius: 17px;

        box-shadow:
            0 5px 25px rgba(0, 0, 0, 0.17);

        z-index: 1000;
    }


    .mobile-filter {
        position: relative;
        border: 0;

        width: 36px;
        height: 40px;
        flex: 0 0 36px;

        border-radius: 12px;

        background: white;

        font-size: 17px;

        cursor: pointer;
    }

    .mobile-filter[data-label]::after {
        content: attr(data-label);
        position: absolute;
        left: calc(100% + 7px);
        top: 50%;
        z-index: 2;

        width: max-content;
        max-width: min(180px, calc(100vw - 32px));
        padding: 5px 9px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 7px;

        background: rgba(38, 51, 47, 0.68);
        color: #ffffff;
        font-family: "Nunito", sans-serif;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;

        opacity: 0;
        transform: translate(-3px, -50%);
        pointer-events: none;
    }

    .mobile-filter.active[data-label]::after {
        opacity: 1;
        transform: translate(0, -50%);
    }

    .mobile-filter svg {
        width: 20px;
        height: 20px;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-filter[data-category="all"] {
        color: var(--category-all);
    }

    .mobile-filter[data-category="coffee"] {
        color: var(--category-coffee);
    }

    .mobile-filter[data-category="bench"] {
        color: var(--category-bench);
    }

    .mobile-filter[data-category="access"] {
        color: var(--category-access);
    }

    .mobile-filter[data-category="playground"] {
        color: var(--category-playground);
    }

    .mobile-filter[data-category="changing"] {
        color: var(--category-changing);
    }

    .mobile-filter[data-category="playground"] svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
    }


    .nearby-filter {
        width: auto;
        flex: 0 0 auto;

        padding: 0 8px;

        font-size: 11px;

        font-weight: 700;
    }


    .mobile-filter.active {
        background: #e5f5d6;
    }


    .leaflet-control-zoom {
        margin-top: 10px !important;
    }


    .leaflet-control-attribution {
        font-size: 9px;
    }

}

@media (max-width: 680px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand action"
            "links links";
        align-content: center;
        column-gap: 8px;
        row-gap: 0;
        height: auto;
        min-height: 112px;
        padding: 6px 12px 9px;
    }

    .topbar .brand {
        grid-area: brand;
        min-width: 0;
    }

    .topbar .brand-icon {
        width: min(260px, calc(100vw - 180px));
        height: 74px;
    }

    .topbar-links {
        grid-area: links;
        justify-self: end;
        gap: clamp(10px, 4vw, 18px);
        margin: 0;
    }

    .topbar-links a {
        font-size: 12px;
    }

    .topbar .add-button {
        grid-area: action;
        margin: 0;
    }
}


/* =========================================================
   SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 420px) {

    .mobile-filter-bar {
        gap: 3px;
        padding: 4px;
    }

    .mobile-filter {
        width: 32px;
        height: 38px;
        flex-basis: 32px;
    }

    .nearby-filter {
        min-width: 42px;
        justify-content: center;
        padding: 0 7px;
        font-size: 11px;
    }

    .topbar {
        height: auto;
        min-height: 112px;
        padding: 6px 10px 9px;
    }

    .brand {
        gap: 0;
        flex-shrink: 0;
    }

    .brand-icon {
        width: min(220px, calc(100vw - 150px));
        height: 74px;
    }

    .add-button {
        padding: 10.8px 13.5px;

        font-size: 16.2px;

        flex-shrink: 0;
    }

}

/* ========================================================
   ADD SPOT FORM FEEDBACK
======================================================== */

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    margin: 4px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
}

.form-message[hidden] {
    display: none;
}

.form-message p {
    margin: 0;
}

.form-message ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.form-message.success {
    border-color: #b9dcb0;
    background: var(--leaf-soft);
    color: #2f5d37;
}

.form-message.error {
    border-color: #f2b8c6;
    background: #fdf0f3;
    color: #9b2343;
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.admin-page {
    width: 100%;
    min-height: 100vh;
    height: auto;

    background: var(--canvas);
}

.admin-header {
    min-height: 68px;
    display: flex;
    align-items: center;

    padding: 0 24px;

    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.admin-brand img {
    display: block;
    width: 148px;
    height: 42px;
    object-fit: contain;
}

.admin-main {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.admin-login {
    max-width: 560px;
    margin-top: 24px;
    padding: 24px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--surface);
}

.admin-eyebrow {
    margin: 0 0 8px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.admin-login h1,
.admin-review h1 {
    margin: 0;

    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 25px;
    font-weight: 500;
}

.admin-intro {
    margin: 8px 0 20px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.admin-login-form label {
    display: block;
    margin-bottom: 6px;

    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.admin-login-row {
    display: flex;
    gap: 8px;
}

.admin-login-row input {
    min-width: 0;
    flex: 1;

    height: 42px;
    padding: 8px 10px;

    border: 1px solid #dfe6df;
    border-radius: 8px;

    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.admin-primary-button,
.admin-secondary-button,
.admin-approve-button,
.admin-reject-button {
    min-height: 38px;
    padding: 8px 12px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.admin-primary-button,
.admin-approve-button {
    border: 1px solid #e8bb00;
    background: #ffcd00;
    color: var(--ink);
}

.admin-secondary-button {
    border: 1px solid #d7e1d8;
    background: #ffffff;
    color: #355a3d;
}

.admin-reject-button {
    border: 1px solid #f0c2cc;
    background: #fff8f9;
    color: #9b2343;
}

.admin-primary-button:disabled,
.admin-secondary-button:disabled,
.admin-approve-button:disabled,
.admin-reject-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.admin-message {
    min-height: 1.4em;
    margin: 10px 0 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.admin-review-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 14px;
}

.admin-toolbar {
    display: flex;
    gap: 8px;
}

.admin-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 8px;
    margin-top: 16px;
}

.admin-search-controls input,
.admin-search-controls select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;

    border: 1px solid #dfe6df;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.admin-review-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 26px;
    margin-left: 4px;
    padding: 0 7px;

    border-radius: 13px;
    background: #edf2ec;

    color: #526357;
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.admin-spot-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.admin-spot-row {
    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 8px;

    background: var(--surface);
}

.admin-spot-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.admin-spot-heading h2 {
    margin: 0;

    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.admin-category {
    flex: 0 0 auto;
    padding: 4px 8px;

    border-radius: 12px;
    background: #f0f3ef;

    color: #536159;
    font-size: 11px;
    font-weight: 700;
}

.admin-status-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 12px;
    background: #f0f3ef;
    color: #536159;
    font-size: 10px;
    font-weight: 800;
    text-transform: capitalize;
}

.admin-status-badge.pending {
    background: #fff3cc;
    color: #775900;
}

.admin-status-badge.approved {
    background: #edf5e8;
    color: #426c52;
}

.admin-status-badge.rejected {
    background: #fff0f2;
    color: #9b2343;
}

.admin-description {
    margin: 8px 0;

    color: #5e6a63;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-duplicate-notice {
    display: grid;
    gap: 3px;
    margin: 10px 0;
    padding: 9px 10px;
    border: 1px solid #e8c66c;
    border-radius: 7px;
    background: #fff9e8;
    color: #735a18;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-report-flag {
    display: grid;
    gap: 3px;
    margin: 10px 0;
    padding: 9px 10px;
    border: 1px solid #efb9bd;
    border-radius: 7px;
    background: #fff3f4;
    color: #8e3b42;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-spot-details,
.admin-tags,
.admin-spot-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.admin-spot-details,
.admin-created {
    color: var(--muted);
    font-size: 11px;
}

.admin-spot-details a {
    color: #426c52;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-tags {
    margin-top: 9px;
}

.admin-tags span {
    padding: 3px 7px;
    border-radius: 10px;

    background: #f0f5ed;
    color: #526c50;
    font-size: 10px;
    font-weight: 700;
}

.admin-created {
    margin: 9px 0 0;
}

.admin-spot-actions {
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #edf0ec;
}

.admin-empty {
    margin: 0;
    padding: 18px 0;

    border-top: 1px solid var(--line);

    color: var(--muted);
    font-size: 14px;
}

.admin-review[hidden],
.admin-login[hidden] {
    display: none;
}

.info-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;

    background: var(--canvas);
}

.info-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.info-brand {
    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.info-back-link {
    color: #426c52;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.info-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-main {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.info-eyebrow {
    margin: 0 0 8px;

    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.info-main h1 {
    max-width: 640px;
    margin: 0;

    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
}

.info-lead {
    max-width: 660px;
    margin: 14px 0 0;

    color: #586760;
    font-size: 16px;
    line-height: 1.6;
}

.info-section {
    margin-top: 32px;
}

.info-section h2 {
    margin: 0 0 10px;

    color: var(--ink);
    font-family: "Fredoka", sans-serif;
    font-size: 21px;
    font-weight: 500;
}

.info-section p,
.review-guidance {
    color: #536159;
    font-size: 14px;
    line-height: 1.65;
}

.info-section p {
    margin: 0 0 12px;
}

.category-definitions {
    margin: 0;
}

.category-definitions > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.category-definitions dt {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.category-definitions dd {
    margin: 4px 0 0;

    color: #617068;
    font-size: 13px;
    line-height: 1.55;
}

.review-guidance {
    margin: 4px 0 12px;
    padding-left: 20px;
}

.review-guidance li + li {
    margin-top: 5px;
}

.info-primary-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 22px;
    padding: 8px 14px;

    border: 1px solid #e8bb00;
    border-radius: 8px;
    background: #ffcd00;

    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 560px) {
    .admin-header {
        padding: 0 16px;
    }

    .admin-main {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .admin-login {
        padding: 18px;
    }

    .admin-review-header {
        align-items: start;
        flex-direction: column;
    }

    .admin-login-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-controls {
        grid-template-columns: 1fr;
    }

    .info-header {
        min-height: 60px;
        padding: 0 16px;
    }

    .info-main {
        width: calc(100% - 32px);
        padding: 32px 0 48px;
    }

    .info-main h1 {
        font-size: 27px;
    }

    .info-lead {
        font-size: 15px;
    }
}
