:root {
    --theme-lake: #fff;
    --theme-lake-soft: #f8f9fa;
    --theme-brass: #1a73e8;
    --theme-brass-dark: #1557b0;
    --theme-brass-glow: rgba(26, 115, 232, 0.18);
    --theme-mist: #e8eaed;
    --theme-mist-dark: #dadce0;
    --theme-paper: #fff;
    --theme-paper-deep: #5f6368;
    --theme-ink: #202124;
    --theme-line: rgba(0, 0, 0, 0.08);
    --theme-shadow: rgba(0, 0, 0, 0.12);
    --theme-panel: rgba(0, 0, 0, 0.02);
    --theme-panel-strong: rgba(0, 0, 0, 0.04);
    --theme-sidebar-line: rgba(0, 0, 0, 0.08);
    --theme-control-text: #5f6368;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--theme-paper);
    color: var(--theme-ink);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    border-style: none;
    vertical-align: middle;
}

button,
input,
select {
    margin: 0;
    font: inherit;
}

button,
select {
    text-transform: none;
}

button {
    cursor: pointer;
}

a,
a:hover {
    background-color: transparent;
    color: #1a73e8;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#map {
    height: 100vh;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #5f6368;
    font-size: 24px;
    line-height: 1;
}

.map-utility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.whtext {
    font-family: var(--font-display);
    letter-spacing: 2px;
    text-align: center;
    line-height: 9px;
    font-size: 11px;
    font-weight: 500;
    color: var(--theme-ink);
    text-transform: uppercase;
}

.whtext div {
    font-size: 7px;
    line-height: 16px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #5f6368;
}

.sidebar .whtext {
    color: var(--sidebar-text);
}

.sidebar .whtext div {
    color: var(--sidebar-text-muted);
}

.sidebar .localhist {
    color: var(--sidebar-text);
}

.localhist {
    font-family: var(--font-display);
    color: var(--theme-ink);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.4rem;
}

.sidebar-brand {
    text-align: center;
    position: relative;
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

#whimg {
    width: 42px;
}

.sidebar-toggler-inline {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: none;
    border: 0;
    color: var(--sidebar-text-muted, #9aa0a6);
    font-size: 14px;
    padding: 2px 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-toggler-inline:hover {
    color: var(--sidebar-text, var(--theme-ink));
}

.sidebar-floating-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-floating-toggle:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.sidebar-show .sidebar-floating-toggle {
    display: none;
}

.sep {
    position: relative;
    border: 0;
    width: 100%;
    margin: 6px 0;
    padding: 0;
    height: 1px;
    background: #e0e0e0;
}

.sidebar .sep {
    background: var(--sidebar-border);
}

.leaflet-container {
    background: #d9d6c8;
}

.leaflet-tile-pane {
    will-change: auto;
}

.leaflet-popup-content {
    font-family: var(--font-body);
    font-size: 14px;
}

.leaflet-popup-content img {
    display: block;
    max-width: 220px;
    margin-bottom: 0.5rem;
}

.leaflet-bottom .leaflet-control-attribution {
    background: rgba(246, 241, 231, 0.9);
    border-radius: 3px 0 0 0;
    color: var(--theme-ink);
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.2;
    padding: 2px 6px;
}

.leaflet-control-attribution a {
    color: var(--theme-brass-dark);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
}

.map-utility-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-utility-button {
    width: 40px;
    height: 40px;
    border: 1px solid #dadce0;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    color: #5f6368;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.map-utility-button:hover {
    color: #202124;
    background: #f1f3f4;
}

.form-control:focus,
.custom-select:focus,
.map-utility-button:focus-visible,
.btn-outline-light:focus,
.sidebar-floating-toggle:focus-visible {
    outline: 2px solid var(--theme-brass);
    outline-offset: 2px;
    box-shadow: none;
}

.map-layer-wrapper {
    position: relative;
}

.map-layer-toggle {
    font-size: 20px;
}

.map-layer-menu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 1000;
    padding: 4px 0;
}

.map-layer-menu.show {
    display: block;
}

.map-layer-option {
    display: block;
    width: 100%;
    padding: 6px 14px;
    border: none;
    background: none;
    color: var(--theme-control-text);
    font-family: var(--font-body);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.map-layer-option:hover {
    background: #f1f3f4;
    color: #202124;
}

.map-layer-option.active {
    color: #1a73e8;
    font-weight: 600;
}

.filter-summary {
    color: #5f6368;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-style: italic;
}

.sidebar .filter-summary {
    color: var(--sidebar-text-muted);
}

.btn-outline-light {
    background: transparent;
    border-color: #dadce0;
    color: #1a73e8;
}

.btn-outline-light:hover {
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.04);
    color: #1557b0;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    color: var(--theme-ink);
    text-align: center;
}

.app-body {
    display: flex;
    height: 100vh;
}

.sidebar {
    flex: 0 0 250px;
    width: 250px;
    color: var(--sidebar-text);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--sidebar-border);
    --sidebar-bg: #1e2022;
    --sidebar-bg-elevated: #282b2e;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #e8eaed;
    --sidebar-text-muted: #9aa0a6;
    --sidebar-input-bg: #35383b;
    --sidebar-input-border: rgba(255, 255, 255, 0.12);
    --sidebar-accent: #8ab4f8;
    --sidebar-accent-hover: #aecbfa;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
}

.sidebar-nav {
    height: 100%;
}

.main {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.float-right {
    margin-left: auto;
}

.w-auto {
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.btn-primary {
    background: var(--theme-brass);
    border-color: var(--theme-brass);
    color: var(--theme-paper);
}

.btn-primary:hover {
    background: var(--theme-brass-dark);
    border-color: var(--theme-brass-dark);
}

.btn-primary:focus-visible,
.btn-primary:focus {
    background: var(--theme-brass-dark);
    border-color: var(--theme-brass-dark);
}

.btn-secondary {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:focus-visible,
.btn-secondary:focus {
    background: #f1f3f4;
    border-color: #bdc1c6;
    color: var(--theme-ink);
}

.sidebar .btn-secondary {
    background: var(--sidebar-input-bg);
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-text);
}

.sidebar .btn-secondary:hover,
.sidebar .btn-secondary:focus-visible,
.sidebar .btn-secondary:focus {
    background: #3f4245;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--sidebar-text);
}

.sidebar .btn-outline-light {
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-accent);
}

.sidebar .btn-outline-light:hover {
    border-color: var(--sidebar-accent);
    background: rgba(138, 180, 248, 0.15);
    color: var(--sidebar-accent-hover);
}

.btn-block {
    display: flex;
    width: 100%;
}

.form-control,
.custom-select {
    width: 100%;
    border: 1px solid rgba(143, 183, 201, 0.45);
    border-radius: 0.25rem;
    background: var(--theme-paper);
    color: var(--theme-ink);
    padding: 0.375rem 0.75rem;
}

.custom-control {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    margin-bottom: 0.35rem;
    position: relative;
}

.custom-control-input {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid #9aa0a6;
    border-radius: 3px;
    background: #fff;
    margin: 0 0.45rem 0 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.custom-control-input:hover {
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.04);
}

.custom-control-input:checked {
    background: #1a73e8;
    border-color: #1a73e8;
    box-shadow: none;
}

.custom-control-input:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.custom-control-input:focus-visible {
    outline: 2px solid var(--theme-brass);
    outline-offset: 2px;
}

.sidebar .custom-control-input {
    border-color: var(--sidebar-text-muted);
    background: var(--sidebar-input-bg);
}

.sidebar .custom-control-input:hover {
    border-color: var(--sidebar-accent);
    background: rgba(138, 180, 248, 0.12);
}

.sidebar .custom-control-input:checked {
    background: var(--sidebar-accent);
    border-color: var(--sidebar-accent);
}

.sidebar .custom-control-input:checked::after {
    border-color: #1e2022;
}

.sidebar .custom-control-input:focus-visible {
    outline-color: var(--sidebar-accent);
}

.custom-control-label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.sidebar-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0.72rem 0.78rem;
    animation: panelReveal 0.4s ease both;
}

.sidebar .sidebar-panel {
    background: var(--sidebar-bg-elevated);
    border-color: var(--sidebar-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-panel:nth-child(2) { animation-delay: 0.04s; }
.sidebar-panel:nth-child(3) { animation-delay: 0.08s; }
.sidebar-panel:nth-child(4) { animation-delay: 0.12s; }
.sidebar-panel:nth-child(5) { animation-delay: 0.16s; }

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-panel .sep:last-of-type {
    margin-bottom: 0;
}

.sidebar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: #5f6368;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-close:hover {
    background: #e8eaed;
    border-color: #bdc1c6;
}

.sidebar .sidebar-close {
    background: var(--sidebar-input-bg);
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-text-muted);
}

.sidebar .sidebar-close:hover {
    background: #3f4245;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--sidebar-text);
}

.sidebar-copy {
    color: #5f6368;
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    font-style: italic;
}

.sidebar .sidebar-copy {
    color: var(--sidebar-text-muted);
}

.sidebar-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.sidebar-stat {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: var(--theme-ink);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sidebar-stat:hover {
    border-color: #bdc1c6;
    background: #e8eaed;
}

.sidebar .sidebar-stat {
    background: var(--sidebar-input-bg);
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-text);
}

.sidebar .sidebar-stat:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #3f4245;
}

.sidebar-heading {
    display: block;
    font-family: var(--font-display);
    color: var(--theme-ink);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.sidebar .sidebar-heading {
    color: var(--sidebar-text);
}

.sidebar-subheading {
    display: block;
    font-family: var(--font-display);
    color: var(--theme-ink);
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar .sidebar-subheading {
    color: var(--sidebar-text);
}

.sidebar .custom-control {
    margin-bottom: 0;
}

.sidebar .custom-control-label {
    color: var(--sidebar-text-muted);
    font-size: 0.84rem;
    transition: color 0.15s ease;
}

.sidebar .custom-control:hover .custom-control-label {
    color: var(--sidebar-text);
}

.sidebar .form-control,
.sidebar .custom-select {
    background: var(--sidebar-input-bg);
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-text);
    font-size: 0.84rem;
    padding: 0.34rem 0.6rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .form-control::placeholder {
    color: var(--sidebar-text-muted);
}

.sidebar .form-control:focus,
.sidebar .custom-select:focus {
    border-color: var(--sidebar-accent);
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.25);
    outline: none;
}

.sidebar .btn-primary {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sidebar .btn-primary:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.sidebar .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.section-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
}

.section-toggle:hover .sidebar-heading,
.section-toggle:hover .sidebar-subheading {
    color: #1a73e8;
}

.sidebar .section-toggle:hover .sidebar-heading,
.sidebar .section-toggle:hover .sidebar-subheading {
    color: var(--sidebar-accent);
}

.sidebar .section-chevron {
    color: var(--sidebar-text-muted);
}

.sidebar .section-chevron:hover {
    color: var(--sidebar-accent);
}

.section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    color: #9aa0a6;
    font-size: 0.7rem;
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.section-chevron.is-collapsed {
    transform: rotate(-90deg);
}

.section-chevron:hover {
    color: #1a73e8;
}

.collapsible {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}

.collapsible.is-collapsed {
    max-height: 0;
    opacity: 0;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.section-description {
    display: block;
    color: #80868b;
    font-size: 0.74rem;
    font-style: italic;
    line-height: 1.35;
    margin: 0.15rem 0 0;
}

.sidebar .section-description {
    color: var(--sidebar-text-muted);
}

.filter-list {
    display: grid;
    gap: 0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.6rem;
    border-radius: 3px;
    padding: 2px 2px;
    transition: background 0.15s ease;
}

.filter-row .custom-control {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.filter-row .custom-control-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.82rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 1.25rem;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #f1f3f4;
    color: #3c4043;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
    text-align: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.filter-badge.is-muted {
    color: #bdc1c6;
    opacity: 0.7;
}

.sidebar .filter-badge {
    background: var(--sidebar-input-bg);
    border-color: var(--sidebar-input-border);
    color: var(--sidebar-text-muted);
}

.sidebar .filter-badge.is-muted {
    color: var(--sidebar-text-muted);
    opacity: 0.6;
}

.filter-badge.is-updated {
    animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sidebar-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.sidebar-search {
    margin-top: 0.35rem;
}

.sidebar-search + .custom-select {
    margin-top: 0.3rem;
}

.sidebar-meta {
    color: #80868b;
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1.4;
    margin-top: 0.4rem;
    letter-spacing: 0.01em;
}

.sidebar .sidebar-meta {
    color: var(--sidebar-text-muted);
}

.sidebar-about-link {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-about-link:hover {
    color: #1557b0;
    text-decoration: underline;
}

.sidebar .sidebar-about-link {
    color: var(--sidebar-accent);
}

.sidebar .sidebar-about-link:hover {
    color: var(--sidebar-accent-hover);
    text-decoration: underline;
}

.region-grid .filter-row {
    display: grid;
    grid-template-columns: 1fr 2.2rem;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
}

.region-grid .filter-badge {
    justify-self: center;
}

.filter-row:hover {
    background: rgba(26, 115, 232, 0.04);
}

.sidebar .filter-row:hover {
    background: rgba(138, 180, 248, 0.1);
}

.sidebar .legend-marker {
    width: 17px;
    height: 26px;
    flex-shrink: 0;
}

#showsiteswith .filter-row {
    display: grid;
    grid-template-columns: 1fr 20px 2.2rem;
    align-items: center;
    gap: 0.4rem;
}

#showsiteswith .legend-marker {
    justify-self: center;
}

#showsiteswith .filter-badge {
    justify-self: center;
    min-width: unset;
    width: 2.2rem;
}

.sidebar .btn {
    min-height: 2rem;
    padding-top: 0.26rem;
    padding-bottom: 0.26rem;
}

.sidebar .btn-sm {
    font-size: 11px;
    letter-spacing: 0.02em;
}

.map-pin-icon {
    background: transparent;
    border: 0;
}

.map-pin-shape {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.map-pin-shape--marker {
    width: 28px;
    height: 44px;
    filter: drop-shadow(0 5px 8px rgba(19, 33, 43, 0.28));
}

.legend-marker {
    width: 20px;
    height: 32px;
    flex: 0 0 auto;
}

.inline-marker {
    vertical-align: -0.5rem;
    margin-right: 0.25rem;
}

.map-pin--regular {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 44'%3E%3Cpath fill='%23EA4335' stroke='%23B31412' stroke-width='1.5' d='M14 1.75C7.3 1.75 1.85 7.12 1.85 13.75c0 10.29 9.55 15.87 12.15 28.5 2.6-12.63 12.15-18.21 12.15-28.5C26.15 7.12 20.7 1.75 14 1.75Z'/%3E%3Ccircle cx='14' cy='13.8' r='6.1' fill='%23fff'/%3E%3Cpath fill='%23B31412' d='M14 9.1l1.68 3.42 3.78.55-2.73 2.66.65 3.76L14 17.72l-3.38 1.77.65-3.76-2.73-2.66 3.78-.55L14 9.1z'/%3E%3C/svg%3E");
}

.map-pin--irregular {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 44'%3E%3Cpath fill='%234285F4' stroke='%231A66D6' stroke-width='1.5' d='M14 1.75C7.3 1.75 1.85 7.12 1.85 13.75c0 10.29 9.55 15.87 12.15 28.5 2.6-12.63 12.15-18.21 12.15-28.5C26.15 7.12 20.7 1.75 14 1.75Z'/%3E%3Ccircle cx='14' cy='13.8' r='6.1' fill='%23fff'/%3E%3Ccircle cx='14' cy='13.8' r='2.35' fill='%231A66D6'/%3E%3C/svg%3E");
}

.leaflet-popup-content-wrapper {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    z-index: 1050;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    background-clip: padding-box;
    border: 1px solid #dadce0;
    border-radius: 12px;
    outline: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header,
.modal-body {
    padding: 1rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.modal-title {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #202124;
}

.modal-body p {
    margin: 0 0 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.close {
    background: transparent;
    border: 0;
    color: #5f6368;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
    padding: 0;
}

.close:hover {
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 20;
}

.modal-open {
    overflow: hidden;
}

.fade {
    transition: opacity 0.15s linear;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.p-2 {
    padding: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .hide-desktop {
        display: none;
    }

    .sidebar-topbar {
        display: none;
    }

    .sidebar-close {
        display: none;
    }

    .sidebar-backdrop {
        display: none;
    }

    body:not(.sidebar-lg-show) .sidebar {
        display: none;
    }

    body:not(.sidebar-lg-show) .main {
        width: 100%;
    }

    .sidebar-floating-toggle {
        display: none;
    }

    body:not(.sidebar-lg-show) .sidebar-floating-toggle {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .hide-mobile {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(260px, calc(100vw - 1.25rem));
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0);
    }

    .sidebar-backdrop {
        z-index: 1000;
    }

    body.sidebar-show .sidebar {
        transform: translateX(0);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .sidebar-floating-toggle {
        display: block;
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }
}

@media (max-width: 575px) {
    .localhist {
        font-size: 18px;
        line-height: 22px;
    }
}
