.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
body {
  font-family: 'Work Sans', sans-serif;
  background-color: #fcf9f4;
  color: #1c1c19;
}
h1, h2, h3 {
  font-family: 'Public Sans', sans-serif;
}

/* ── Loading screen ── */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #fcf9f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 200ms ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading-wordmark {
    font-family: 'Public Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #00400c;
    letter-spacing: -0.02em;
}

#loading-message {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    color: #76786d;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 400ms ease;
}

#loading-message.visible {
    opacity: 1;
}

#loading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 64, 12, 0.12);
    z-index: 10000;
}

#loading-progress-bar {
    height: 100%;
    background: #00400c;
    width: 0%;
    transition: width 400ms ease;
}

@keyframes progress-indeterminate {
    0% { transform: translateX(-100%); width: 40%; }
    50% { width: 60%; }
    100% { transform: translateX(250%); width: 40%; }
}

html {
    overflow-y: scroll;
}

/* ── Leaflet popup + tooltip overrides (Taswira design system) ────────────
   Tokens mirror tailwind.config.js: surface #fcf9f4, surface-container-low
   #f6f3ee, on-surface #1c1c19, on-surface-variant #45483e, primary #00400c.
   Fonts: Work Sans (body), Public Sans (titles). */

.taswira-tooltip.leaflet-tooltip {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1c1c19;
    background: #fcf9f4;
    border: 1px solid #e5e2dd;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}
.taswira-tooltip.leaflet-tooltip-top::before {
    border-top-color: #fcf9f4;
}
.taswira-tooltip.leaflet-tooltip-bottom::before {
    border-bottom-color: #fcf9f4;
}

.leaflet-popup-content-wrapper {
    background: #fcf9f4;
    color: #1c1c19;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 4px 6px;
}
.leaflet-popup-tip {
    background: #fcf9f4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.leaflet-popup-content {
    margin: 10px 14px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #45483e;
    padding: 6px 8px 0 0;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: #00400c;
    background: transparent;
}

.taswira-popup {
    min-width: 180px;
}
.taswira-popup__title {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #00400c;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e2dd;
}
.taswira-popup__meta {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 4px;
}
.taswira-popup__meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #45483e;
    font-weight: 500;
}
.taswira-popup__meta dd {
    margin: 0;
    font-size: 13px;
    color: #1c1c19;
}
