:root {
  color-scheme: light;
  --ink: #10224f;
  --muted: #536b90;
  --surface: #f8fcff;
  --panel: #eaf6fc;
  --line: #b9d8ea;
  --orange: #0cc1df;
  --orange-dark: #004aac;
  --green: #36b6fd;
  --green-dark: #004aac;
  --jade: #1801ac;
  --gold: #83b9dc;
  --danger: #a73d34;
  --shadow: 0 22px 60px rgba(0, 74, 172, .17);
  --shadow-soft: 0 10px 30px rgba(0, 74, 172, .09);
  --radius: 12px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { min-width: 320px; margin: 0; overflow-x: clip; overflow-anchor: none; background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
/* Web uses the real safe area; the native shell keeps a 36px floor for its status bar. */
:root { --header-inset: env(safe-area-inset-top, 0px); }
:root.native-app { --header-inset: max(36px, env(safe-area-inset-top, 0px)); }
.site-page { padding-top: calc(64px + var(--header-inset)); }
main { min-width: 0; max-width: 100%; }
.update-page { min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 50% 15%,rgba(12,193,223,.24),transparent 28rem),var(--jade); }
.update-card { width: min(440px,100%); padding: clamp(1.7rem,5vw,2.6rem); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: var(--surface); box-shadow: 0 28px 80px rgba(0,0,0,.3); text-align: center; }
.update-card img { margin-bottom: 1rem; }
.update-card h1 { margin: .35rem 0 .7rem; font-size: clamp(1.8rem,6vw,2.55rem); }
.update-card p { color: var(--muted); }
.update-card small { display: block; color: var(--muted); font-size: .75rem; }
.update-progress { height: 6px; margin: 1.2rem 0 1rem; overflow: hidden; border-radius: 999px; background: var(--panel); }
.update-progress span { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--orange),var(--gold)); animation: update-slide 1s ease-in-out infinite alternate; }
@keyframes update-slide { to { transform: translateX(122%); } }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(81,112,255,.42); outline-offset: 2px; }
img { max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 9999; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.noscript-notice { position: fixed; z-index: 10000; inset: 0 0 auto; padding: .8rem 1rem; background: #fff3da; color: #5f3510; border-bottom: 2px solid var(--orange); text-align: center; font-weight: 700; }

.site-header { width: 100%; height: calc(64px + var(--header-inset)); min-height: calc(64px + var(--header-inset)); padding: var(--header-inset) clamp(0.85rem,3vw,3.25rem) 0; display: flex; align-items: center; justify-content: space-between; background: var(--jade); color: white; position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 4px solid var(--orange); box-shadow: 0 8px 26px rgba(7,30,26,.12); box-sizing: border-box; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.brand span { display: grid; }
.brand strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .01em; }
.brand small { color: #b7cbc4; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.connection-pill { min-height: 36px; display: grid; grid-template-columns: 9px auto; column-gap: .45rem; align-items: center; padding: .32rem .6rem; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; background: rgba(255,255,255,.07); color: white; text-align: left; }
.connection-pill > span { width: 9px; height: 9px; grid-row: 1 / 3; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242,189,66,.16); }
.connection-pill strong { font-size: .7rem; line-height: 1; }.connection-pill small { color: #b7cbc4; font-size: .6rem; line-height: 1; }
.connection-pill.online > span { background: #53d7a8; box-shadow: 0 0 0 3px rgba(83,215,168,.16); }.connection-pill.offline > span { background: var(--orange); box-shadow: 0 0 0 3px rgba(246,135,18,.18); }.connection-pill.has-queue { border-color: rgba(246,135,18,.8); }
.text-link { color: #dce8e3; font-size: .88rem; text-decoration: none; padding: .5rem; }
.text-link:hover { color: white; }
.header-text-button { border: 0; background: transparent; font-family: inherit; }
.button { border: 1px solid transparent; min-height: 40px; border-radius: 6px; padding: .6rem .95rem; font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: #201309; box-shadow: 0 6px 16px rgba(246,135,18,.22); }
.button-primary:hover { background: #ff9a2b; }
.button-secondary { background: var(--green); color: white; }
.button-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .94; }
.button-quiet { background: transparent; color: var(--green-dark); }
.button-danger { background: var(--danger); color: white; }
.button.full { width: 100%; }

.atlas-shell { width: 100%; max-width: 100vw; height: calc(100vh - (64px + var(--header-inset))); height: calc(100dvh - (64px + var(--header-inset))); min-height: 480px; display: grid; grid-template-columns: minmax(300px, 360px) minmax(0,1fr); position: relative; overflow: hidden; overflow-anchor: none; border-bottom: 1px solid var(--line); }
.explorer-panel { min-width: 0; padding: 1.6rem 1.25rem 1rem; background: radial-gradient(circle at 6% 2%,rgba(242,189,66,.10),transparent 12rem),var(--surface); z-index: 3; overflow-x: clip; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b5c2bd transparent; border-right: 1px solid var(--line); }
.explorer-panel::-webkit-scrollbar { width: 8px; }
.explorer-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #b5c2bd; background-clip: padding-box; }
.explorer-panel > * { max-width: 100%; }
.eyebrow { color: var(--orange-dark); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: .7rem; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-family: var(--font-display); line-height: 1.08; }
h1 { font-size: clamp(1.85rem,3vw,2.55rem); margin: .55rem 0 .65rem; }
h2 { font-size: clamp(1.6rem,3vw,2.4rem); }
h3 { margin-bottom: .5rem; }
.intro,.help { color: var(--muted); line-height: 1.55; }
.intro { font-size: .91rem; }
.atlas-pulse { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 1rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow-soft); }
.atlas-pulse div { min-width: 0; padding: .65rem .55rem; display: grid; gap: .08rem; background: rgba(255,255,255,.88); }
.atlas-pulse strong { color: var(--green-dark); font-family: var(--font-display); font-size: 1.05rem; line-height: 1; }
.atlas-pulse span { overflow: hidden; color: var(--muted); font-size: .59rem; white-space: nowrap; text-overflow: ellipsis; }

.search-box { height: 46px; display: flex; align-items: center; gap: .6rem; padding: 0 .75rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.15rem 0; }
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-shortcut { flex: none; min-width: 32px; padding: .2rem .34rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); color: var(--muted); font-family: var(--font-sans); font-size: .58rem; font-weight: 800; text-align: center; }
.filter-group { margin-bottom: 1rem; }
.filter-drawer { display: contents; }
.mobile-filter-toggle { display: none; }
.filter-heading,.results-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; font-size: .78rem; }
.filter-heading span { font-weight: 700; }
.filter-heading button { border: 0; background: none; color: var(--orange-dark); font-size: .72rem; }
.segmented { display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--line); padding: 3px; border-radius: 8px; background: var(--panel); }
.segmented button { border: 0; background: transparent; border-radius: 5px; padding: .5rem .2rem; font-size: .68rem; color: var(--muted); }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(16,44,39,.1); font-weight: 700; }
.filter-grid,.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.advanced-filters { margin-top: .8rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.72); }
.advanced-filters summary { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem; color: var(--green-dark); font-size: .73rem; font-weight: 800; cursor: pointer; list-style: none; }
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary::after { content: '+'; color: var(--orange-dark); font-size: 1rem; font-weight: 500; }
.advanced-filters[open] summary::after { content: '−'; }
.advanced-filters summary span { min-width: 20px; padding: .15rem .4rem; margin-left: auto; margin-right: .55rem; border-radius: 999px; background: var(--orange); color: #2a1708; text-align: center; font-size: .6rem; }
.advanced-filter-body { display: grid; gap: .7rem; padding: .2rem .8rem .85rem; border-top: 1px solid var(--line); }
.advanced-filter-body > label:first-child { margin-top: .65rem; }
.advanced-filter-body input,.advanced-filter-body select { min-height: 38px; padding: .48rem .6rem; font-size: .72rem; }
.language-filter { min-width: 0; margin: 0; padding: .15rem 0 0; border: 0; }
.language-filter legend { padding: 0; color: var(--ink); font-size: .78rem; font-weight: 700; }
.language-filter > p { margin: .18rem 0 .55rem; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.language-filter-list { display: flex; flex-wrap: wrap; gap: .38rem; }
.language-filter-list label { position: relative; display: inline-flex; cursor: pointer; }
.language-filter-list input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; }
.language-filter-list span { display: inline-flex; align-items: center; min-height: 30px; padding: .34rem .58rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .65rem; font-weight: 700; line-height: 1; }
.language-filter-list span small { display: inline-grid; min-width: 18px; height: 18px; margin-left: .35rem; place-items: center; border-radius: 999px; background: rgba(16,44,39,.08); color: inherit; font-size: .55rem; }
.language-filter-list input:checked + span { border-color: var(--green); background: var(--green); color: white; }
.language-filter-list input:checked + span small { background: rgba(255,255,255,.18); }
.language-filter-list input:focus-visible + span { outline: 3px solid rgba(246,135,18,.25); outline-offset: 2px; }
.filter-loading { color: var(--muted); font-size: .65rem; font-weight: 500; }
.date-filters { gap: .55rem; }
.inline-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; color: var(--muted); }
.inline-check input { width: auto; min-height: auto; accent-color: var(--green); }
label { display: grid; gap: .38rem; font-weight: 700; font-size: .78rem; color: var(--ink); }
input,select,textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .68rem .75rem; background: white; color: var(--ink); }
textarea { min-height: 94px; resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246,135,18,.12); outline: 0; }
.results-heading { position: sticky; top: -1px; z-index: 3; margin: 1.2rem -.15rem 0; padding: .85rem .15rem .65rem; border-top: 1px solid var(--line); background: rgba(255,253,247,.96); box-shadow: 0 8px 14px rgba(255,253,247,.92); backdrop-filter: blur(8px); }
.results-heading span { color: var(--muted); }
.result-list { display: grid; gap: .65rem; }
.result-card { width: 100%; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--marker-color,var(--green)); border-radius: 7px; background: white; padding: .8rem; color: var(--ink); }
.result-card:hover,.result-card.active { border-color: var(--orange); background: #fff9ed; }
.result-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 .3rem; }
.result-meta { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--muted); font-size: .7rem; }
.result-photo-count { display: inline-flex; align-items: center; padding: .12rem .34rem; border-radius: 999px; background: rgba(23,125,99,.1); color: var(--green-dark); font-weight: 800; }
.result-languages { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.result-languages span,.popup-languages { display: inline-flex; align-items: center; padding: .22rem .42rem; border: 1px solid rgba(23,125,99,.28); border-radius: 999px; background: rgba(23,125,99,.08); color: var(--green-dark); font-size: .61rem; font-weight: 700; line-height: 1.1; }
.empty-state { text-align: center; color: var(--muted); padding: 2.6rem 1rem; }
.empty-state-icon { width: 42px; height: 42px; margin: 0 auto 1rem; border: 2px solid var(--orange); transform: rotate(45deg); display: grid; place-items: center; }
.empty-state-icon::after { content: ''; width: 12px; height: 12px; background: var(--green); }

.map-stage { min-width: 0; min-height: 0; position: relative; overflow: hidden; overflow-anchor: none; background: #d9e0d8; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100%; }
.maplibregl-ctrl-top-right { top: 1rem !important; right: 1rem !important; z-index: 10; }
.maplibregl-ctrl-group { border-radius: 8px !important; box-shadow: 0 6px 18px rgba(16,44,39,.16) !important; overflow: hidden; }
.map-status,.map-legend,.map-reset,.map-scope,.map-tools { position: absolute; z-index: 10; background: rgba(255,253,247,.94); border: 1px solid rgba(16,44,39,.14); box-shadow: 0 10px 28px rgba(16,44,39,.13); backdrop-filter: blur(10px); }
.map-status { left: 4.65rem; top: 1rem; padding: .55rem .7rem; border-radius: 8px; font-size: .72rem; }
.map-status.ready { color: var(--green-dark); }
.map-legend { left: 1rem; bottom: 1rem; padding: .75rem; border-radius: 7px; display: grid; gap: .42rem; font-size: .7rem; }
.map-legend strong { margin-bottom: .15rem; }
.map-legend span { display: flex; align-items: center; gap: .5rem; }
.legend-marker { display: inline-block; width: 15px; height: 15px; transform: rotate(45deg); border: 2px solid white; box-shadow: 0 0 0 1px rgba(16,44,39,.25); }
.legend-marker.primary { background: var(--orange); }
.legend-marker.equal { background: var(--green); border-radius: 50%; transform: none; }
.legend-marker.secondary { background: var(--gold); clip-path: polygon(50% 0,100% 100%,0 100%); transform: none; border: 0; box-shadow: none; }
.legend-marker.absent { background: white; border-color: #60756f; border-radius: 3px; transform: none; box-shadow: none; }
.map-reset { right: 1rem; bottom: 1rem; padding: .58rem .75rem; border-radius: 6px; color: var(--ink); font-size: .72rem; font-weight: 700; }
.map-tools { left: 1rem; top: 1rem; display: grid; overflow: hidden; border-radius: 10px; z-index: 10; }
.map-tools button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--green-dark); }
.map-tools button:last-child { border-bottom: 0; }
.map-tools button:hover { background: white; color: var(--orange-dark); }
.map-tools button.loading { animation: tool-pulse .9s ease-in-out infinite alternate; }
.map-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes tool-pulse { to { opacity: .35; } }
.map-scope { left: 50%; top: 1rem; translate: -50% 0; padding: .48rem .68rem; border-radius: 999px; color: var(--muted); font-size: .66rem; font-weight: 700; }
.user-location-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: #258cfb;
  box-shadow: 0 0 12px rgba(37, 140, 251, 0.6), 0 4px 14px rgba(16, 44, 39, 0.35);
}
.user-location-dot::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(37, 140, 251, 0.28);
  animation: radar-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}
.user-location-dot::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 140, 251, 0.45);
  animation: radar-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.5s;
  pointer-events: none;
}
@keyframes radar-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.maya-marker { width: 32px; height: 40px; padding: 0; border: 0; background: transparent; position: absolute; filter: drop-shadow(0 5px 5px rgba(16,44,39,.25)); transition: filter .16s ease, opacity .16s ease; }
.maya-marker:hover,.maya-marker:focus-visible,.maya-marker.selected { filter: drop-shadow(0 8px 7px rgba(16,44,39,.34)); }
.maya-marker span { position: absolute; left: 3px; top: 2px; width: 26px; height: 26px; background: var(--marker-color); border: 3px solid white; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); box-shadow: 0 0 0 1px rgba(16,44,39,.18); display: grid; place-items: center; }
.maya-marker span i { width: 7px; height: 7px; border-radius: 50%; background: white; box-shadow: 0 0 0 1px rgba(16,44,39,.08); }
.maya-marker.absent span { background: white; border-color: #60756f; }
.maya-marker.absent span i { background: #60756f; }
.maya-marker.compact { width: 18px; height: 18px; filter: drop-shadow(0 3px 4px rgba(16,44,39,.24)); }
.maya-marker.compact:hover,.maya-marker.compact:focus-visible,.maya-marker.compact.selected { filter: drop-shadow(0 5px 6px rgba(16,44,39,.34)); z-index: 2; }
.maya-marker.compact span { left: 1px; top: 1px; width: 16px; height: 16px; border-width: 2px; border-radius: 50%; transform: none; }
.maya-marker.compact span i { width: 4px; height: 4px; }
.maya-marker.compact.primary span { border-radius: 4px; transform: rotate(45deg); }
.maya-marker.compact.equal span { border-radius: 50%; transform: none; }
.maya-marker.compact.secondary span { width: 17px; height: 16px; border: 0; border-radius: 0; clip-path: polygon(50% 3%,97% 94%,3% 94%); transform: none; filter: drop-shadow(0 0 1px white) drop-shadow(0 1px 1px rgba(16,44,39,.2)); }
.maya-marker.compact.secondary span i { display: none; }
.maya-marker.compact.absent span { border-radius: 4px; transform: none; }
.maya-marker.overview { width: 24px; height: 24px; filter: none; opacity: .88; }
.maya-marker.overview:hover,.maya-marker.overview:focus-visible,.maya-marker.overview.selected { filter: drop-shadow(0 4px 5px rgba(16,44,39,.34)); opacity: 1; z-index: 3; }
.maya-marker.overview span { left: 6px; top: 6px; width: 12px; height: 12px; border-width: 1.5px; box-shadow: 0 0 0 1px rgba(16,44,39,.12); }
.maya-marker.overview span i { display: none; }
.maya-marker.overview.primary span { border-radius: 3px; transform: rotate(45deg); }
.maya-marker.overview.equal span { border-radius: 50%; transform: none; }
.maya-marker.overview.secondary span { width: 13px; height: 12px; border: 0; border-radius: 0; clip-path: polygon(50% 3%,97% 94%,3% 94%); transform: none; filter: drop-shadow(0 0 1px white) drop-shadow(0 1px 1px rgba(16,44,39,.18)); }
.maya-marker.overview.absent span { border-radius: 3px; transform: none; background: rgba(255,255,255,.92); border-color: #60756f; }
.map-cluster-marker { position: absolute; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: white; filter: drop-shadow(0 6px 7px rgba(16,44,39,.24)); transition: filter .16s ease; }
.map-cluster-marker:hover,.map-cluster-marker:focus-visible { filter: drop-shadow(0 10px 10px rgba(16,44,39,.34)); }
.map-cluster-marker .cluster-symbol { position: absolute; inset: 7px; display: grid; place-items: center; border: 2px solid white; border-radius: 9px; background: var(--orange); box-shadow: 0 0 0 1px rgba(16,44,39,.18); transform: rotate(45deg); }
.map-cluster-marker .cluster-symbol i { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.map-cluster-marker strong { position: absolute; top: -3px; right: -5px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; border: 2px solid white; border-radius: 999px; background: var(--green-dark); color: white; box-shadow: 0 3px 8px rgba(16,44,39,.24); font-size: .62rem; font-weight: 800; line-height: 1; }
.map-cluster-marker.compact { width: 34px; height: 34px; filter: drop-shadow(0 4px 5px rgba(16,44,39,.22)); }
.map-cluster-marker.compact .cluster-symbol { inset: 6px; border-radius: 7px; }
.map-cluster-marker.compact .cluster-symbol i { width: 7px; height: 7px; }
.map-cluster-marker.compact strong { top: -5px; right: -7px; min-width: 19px; height: 19px; font-size: .58rem; }
.maplibregl-popup-content { border-radius: 10px; padding: 0; overflow: hidden; box-shadow: 0 18px 45px rgba(16,44,39,.24); border: 1px solid rgba(16,44,39,.1); }
.map-preview-popup { pointer-events: none; }
.map-preview-popup .maplibregl-popup-tip { border-top-color: white; }
.marker-popup { width: min(235px,68vw); background: white; }
.marker-popup > img { width: 100%; height: 92px; display: block; object-fit: cover; background: var(--panel); }
.marker-popup > div { padding: .7rem .78rem .75rem; }
.marker-popup small { display: block; color: var(--orange-dark); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.marker-popup h3 { margin: .22rem 0 .28rem; font-family: var(--font-display); font-size: .9rem; line-height: 1.15; }
.marker-popup .popup-languages { margin: 0 0 .42rem; }
.marker-popup p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: .72rem; line-height: 1.4; margin: 0; }
.cluster-preview > img { height: 96px; }

.detail-panel { position: absolute; z-index: 40; right: 0; top: 0; bottom: 0; width: min(420px,42vw); background: var(--surface); box-shadow: -20px 0 50px rgba(16,44,39,.16); transform: translateX(105%); transition: transform .28s ease; overflow: auto; }
.detail-panel.open { transform: none; }
.detail-close { position: sticky; top: .75rem; float: right; margin: .75rem; z-index: 5; }
.icon-button,.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.92); border-radius: 50%; font-size: 1.35rem; color: var(--ink); }
.detail-photo { aspect-ratio: 16/10; width: 100%; object-fit: contain; background: #10241f; }
.detail-photo.photo-unavailable { display: grid; place-items: center; color: var(--muted); }
.detail-photo.photo-unavailable::after { content: 'Fotografía temporalmente no disponible'; padding: 1rem; font-size: .72rem; font-weight: 700; text-align: center; }
.detail-gallery { position: relative; background: var(--panel); }
.detail-photo-stage { position: relative; }
.detail-gallery-expand { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; background: rgba(16,44,39,.72); color: white; font-size: 1.15rem; box-shadow: 0 5px 18px rgba(16,44,39,.22); backdrop-filter: blur(6px); }
.detail-gallery-expand:hover,.detail-gallery-expand:focus-visible { background: var(--jade); border-color: white; }
.detail-gallery-status { position: absolute; top: .75rem; left: .75rem; z-index: 1; padding: .35rem .55rem; border-radius: 999px; background: rgba(16,44,39,.82); color: white; font-size: .68rem; font-weight: 700; backdrop-filter: blur(6px); }
.detail-gallery-arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.68); border-radius: 50%; background: rgba(16,44,39,.72); color: white; font-size: 1.7rem; line-height: 1; box-shadow: 0 5px 18px rgba(16,44,39,.22); backdrop-filter: blur(6px); }
.detail-gallery-arrow:hover,.detail-gallery-arrow:focus-visible { background: var(--jade); border-color: white; }
.detail-gallery-arrow.previous { left: .75rem; }
.detail-gallery-arrow.next { right: .75rem; }
.detail-thumbnails { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: flex; gap: .4rem; overflow-x: auto; padding: .25rem; }
.detail-thumbnails button { width: 52px; height: 42px; flex: 0 0 auto; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(16,44,39,.2); }
.detail-thumbnails button.active { border-color: var(--orange); }
.detail-thumbnails img { width: 100%; height: 100%; display: block; border-radius: 4px; object-fit: cover; }
.detail-photo-details { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .65rem .8rem; border-top: 1px solid var(--line); background: white; }
.detail-photo-details strong { min-width: 0; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-photo-details span { flex: none; color: var(--muted); font-size: .65rem; }
.detail-gallery:fullscreen { width: 100vw; height: 100vh; display: grid; grid-template-rows: minmax(0,1fr) auto; background: #071b17; }
.detail-gallery:fullscreen .detail-photo-stage { min-height: 0; display: grid; place-items: center; }
.detail-gallery:fullscreen .detail-photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.detail-gallery:fullscreen .detail-photo-details { border-color: rgba(255,255,255,.16); background: #071b17; color: white; }
.detail-gallery:fullscreen .detail-photo-details span { color: rgba(255,255,255,.72); }
.detail-body { padding: 1.35rem; }
.detail-body h2 { margin: .4rem 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 1rem; }
.badge { padding: .32rem .5rem; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; font-size: .68rem; font-weight: 700; }
.detail-section { padding: 1rem 0; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.detail-field small { display: block; color: var(--muted); font-size: .68rem; }.detail-field strong { font-size: .82rem; }
.detail-coordinates { font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.record-language-note { margin: .8rem 0; padding: .55rem .7rem; border-left: 3px solid var(--gold); background: rgba(242,189,66,.1); color: var(--muted); font-size: .67rem; line-height: 1.4; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.history-list { list-style: none; padding: 0; font-size: .76rem; color: var(--muted); }
.cluster-detail { padding: 4.3rem 1.1rem 1.4rem; }
.cluster-detail h2 { margin: .35rem 0 .5rem; }
.cluster-detail-list { display: grid; gap: .55rem; margin-top: 1rem; }
.cluster-detail-list button { width: 100%; display: grid; grid-template-columns: 76px 1fr; gap: .75rem; align-items: center; padding: .45rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; box-shadow: 0 5px 15px rgba(16,44,39,.06); }
.cluster-detail-list button:hover { border-color: var(--orange); transform: translateY(-1px); }
.cluster-detail-list img,.cluster-detail-placeholder { width: 76px; height: 62px; display: block; border-radius: 7px; object-fit: cover; background: linear-gradient(135deg,var(--panel),#e2eadf); }
.cluster-detail-list span:not(.cluster-detail-placeholder) { min-width: 0; display: grid; gap: .2rem; }
.cluster-detail-list small,.cluster-detail-list em { overflow: hidden; color: var(--muted); font-size: .63rem; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.cluster-detail-list strong { overflow: hidden; font-family: var(--font-display); font-size: .88rem; white-space: nowrap; text-overflow: ellipsis; }

.method-section { scroll-margin-top: 76px; padding: clamp(3.5rem,7vw,6rem) clamp(1.25rem,6vw,6rem); display: grid; grid-template-columns: minmax(260px,.68fr) minmax(0,1.7fr); gap: clamp(2.5rem,5vw,5.5rem); background: var(--jade); color: white; }
.method-section .eyebrow { color: #ffac4f; }
.method-intro { position: relative; z-index: 1; align-self: start; }
.method-intro h2 { max-width: 520px; margin: .65rem 0 1rem; }
.method-intro > p { max-width: 520px; color: #bfd0ca; font-size: .94rem; line-height: 1.7; }
.method-principle { display: grid; gap: .35rem; margin-top: 1.6rem; padding: 1rem 1.1rem; border-left: 3px solid var(--orange); background: rgba(255,255,255,.055); }
.method-principle strong { color: #fff7e6; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.method-principle span { color: #bfd0ca; font-size: .8rem; line-height: 1.55; }
.method-body { position: relative; z-index: 1; min-width: 0; }
.method-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: .65rem; align-items: center; margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.055); }
.method-flow span { display: flex; align-items: center; gap: .45rem; color: #ecf3f0; font-size: .7rem; font-weight: 700; }
.method-flow b { color: var(--gold); font-size: .58rem; letter-spacing: .08em; }
.method-flow i { color: rgba(255,255,255,.35); font-style: normal; }
.method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px; margin: 0; list-style: none; background: rgba(255,255,255,.16); }
.method-grid li { min-height: 158px; display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.15rem; background: #102c27; }
.method-grid span { color: var(--orange); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.method-grid h3 { margin: -.15rem 0 .45rem; font-family: var(--font-display); font-size: 1.05rem; color: #fffaf0; }
.method-grid p { margin: 0; color: #b9ccc5; line-height: 1.55; font-size: .78rem; }
.method-grid em { color: #f8d9a8; font-style: normal; font-weight: 700; }
.method-definitions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 1rem; background: rgba(255,255,255,.14); }
.method-definitions article { padding: 1rem; background: rgba(5,35,31,.88); }
.method-definitions small { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.method-definitions h3 { margin: .45rem 0 .35rem; font-family: var(--font-display); font-size: .98rem; color: #fffaf0; }
.method-definitions p { margin: 0; color: #aec3bc; font-size: .72rem; line-height: 1.5; }

.modal { border: 0; padding: 0; width: min(520px,calc(100% - 2rem)); max-height: calc(100vh - 2rem); color: var(--ink); background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(7,30,26,.72); backdrop-filter: blur(5px); }
.modal-card { margin: 0; position: relative; background: var(--surface); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); max-height: calc(100vh - 2rem); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-card > .modal-close { position: absolute; top: .9rem; right: .9rem; }
.modal-card h2 { margin: .5rem 2.5rem .6rem 0; }
.modal-card > p { color: var(--muted); line-height: 1.55; }
.modal-card label { margin-top: .85rem; }
.form-message { min-height: 1.2rem; margin: .6rem 0; font-size: .76rem; color: var(--danger); }

.contribution-modal { width: min(900px,calc(100% - 2rem)); }
.contribution-card { padding: 0; overflow: hidden; }
.wizard-header { padding: 1.25rem 1.5rem .9rem; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wizard-header h2 { margin: .35rem 0 0; }.wizard-header .modal-close { position: static; }
.stepper { display: grid; grid-template-columns: repeat(6,1fr); list-style: none; padding: 0; margin: 0; background: var(--panel); border-bottom: 1px solid var(--line); counter-reset: steps; }
.stepper li { padding: .8rem .35rem; color: var(--muted); text-align: center; font-size: .66rem; border-bottom: 3px solid transparent; }
.stepper li::before { counter-increment: steps; content: counter(steps); display: grid; place-items: center; width: 22px; height: 22px; margin: 0 auto .3rem; border: 1px solid var(--line); background: white; border-radius: 50%; }
.stepper li.active { color: var(--green-dark); border-color: var(--orange); font-weight: 800; }.stepper li.complete::before { content: '✓'; background: var(--green); color: white; border-color: var(--green); }
.wizard-body { padding: 1.4rem 1.5rem; min-height: 360px; max-height: 55vh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wizard-step { display: none; }.wizard-step.active { display: block; animation: reveal .22s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
.wizard-step h3 { font-family: var(--font-display); font-size: 1.4rem; }
.wizard-step fieldset { border: 1px solid var(--line); padding: .8rem; margin: .8rem 0; border-radius: 7px; }
.location-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.wizard-step legend { font-size: .76rem; font-weight: 800; padding: 0 .3rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 1rem; }.check-row label { display: flex; align-items: center; gap: .35rem; margin: 0; }.check-row input,.consent input { width: auto; min-height: 0; }
.drop-zone { min-height: 190px; display: flex; flex-direction: column; place-content: center; place-items: center; padding: 1.2rem; border: 2px dashed var(--line); background: var(--panel); text-align: center; border-radius: 12px; }
.drop-zone span { color: var(--muted); font-weight: 400; margin-top: .2rem; }
.drop-zone-buttons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.photo-analysis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .7rem; }
.photo-analysis-actions span { flex: 1 1 220px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.metadata-summary { min-height: 1.2rem; margin-top: .75rem; }
.status-badge { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.3; }
.status-badge.success-badge { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.status-badge.notice-badge { background: #fef7e0; color: #b06000; border: 1px solid #feefc3; }

.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin-top: .8rem; }
.photo-preview-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 14px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.photo-thumbnail-wrap { width: 100%; aspect-ratio: 4/3; background: #0c1e1a; overflow: hidden; }
.photo-thumbnail-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-metadata { padding: .55rem .6rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; justify-content: space-between; }
.photo-name { display: block; color: var(--ink); font-size: .68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tag { display: inline-flex; align-items: center; font-size: .6rem; font-weight: 700; padding: .15rem .35rem; border-radius: 4px; width: fit-content; }
.photo-tag.gps-tag { background: #e6f4ea; color: #137333; }
.photo-tag.no-gps-tag { background: #f1f3f4; color: #5f6368; }
.photo-date, .photo-camera { font-size: .58rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-remove-button { position: absolute; top: 6px; right: 6px; z-index: 4; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(220,53,69,.9); color: white; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .15s ease, background .15s ease; }
.photo-remove-button:hover { background: #c82333; transform: scale(1.1); }
.prominence-options { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; }
.prominence-options label { margin: 0; }.prominence-options input { position: absolute; opacity: 0; }.prominence-options span { height: 100%; display: grid; justify-items: center; gap: .3rem; text-align: center; padding: .75rem .4rem; border: 1px solid var(--line); border-radius: 6px; }.prominence-options small { color: var(--muted); font-weight: 400; }.prominence-options input:checked + span { border: 2px solid var(--orange); background: #fff5e1; }
.counter { color: var(--muted); text-align: right; font-weight: 400; }.consent { grid-template-columns: auto 1fr; align-items: start; line-height: 1.5; }
.duplicate-notice { margin-top: .8rem; padding: .75rem; background: #fff3da; border-left: 3px solid var(--orange); font-size: .78rem; }
.review-card { border: 1px solid var(--line); background: white; border-radius: 7px; overflow: hidden; }.review-row { display: grid; grid-template-columns: 150px 1fr; gap: .8rem; padding: .65rem .8rem; border-bottom: 1px solid var(--line); font-size: .78rem; }.review-row:last-child { border: 0; }.review-row span { color: var(--muted); }
.quality-checks { margin: 1rem 0; padding: 1rem; border-radius: 10px; background: var(--panel); }
.quality-checks h4 { margin: 0 0 .7rem; font-size: .78rem; }
.quality-checks > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.quality-checks article { display: grid; grid-template-columns: 24px 1fr; gap: .5rem; align-items: start; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; background: white; }
.quality-checks article i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: .65rem; font-style: normal; font-weight: 800; }
.quality-checks .quality-warn i { background: var(--orange); color: #281609; }
.quality-checks .quality-info i { background: #78908a; }
.quality-checks article span { display: grid; gap: .15rem; }
.quality-checks article strong { font-size: .68rem; }
.quality-checks article small { color: var(--muted); font-size: .61rem; font-weight: 400; line-height: 1.35; }
.wizard-footer { padding: .85rem 1.5rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.wizard-footer > div:last-child { display: flex; gap: .5rem; }

.offline-card { overflow: hidden; }.offline-summary { padding: .75rem; margin: .9rem 0; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; background: var(--panel); color: var(--muted); font-size: .78rem; line-height: 1.45; }
.offline-list { max-height: min(360px,42vh); overflow: auto; display: grid; gap: .55rem; margin-bottom: 1rem; }.offline-item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 7px; background: white; }.offline-item strong { display: block; font-size: .82rem; }.offline-item small { color: var(--muted); font-size: .68rem; }.offline-item-status { color: var(--orange-dark); font-weight: 800; }.offline-item button { border: 0; background: transparent; color: var(--danger); font-size: .7rem; font-weight: 800; padding: .4rem; }.offline-list .empty-state { padding: 1.5rem .75rem; }
.stats-modal { width: min(720px,calc(100% - 2rem)); }
.stats-card { padding: clamp(1.3rem,4vw,2rem); }
.stats-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; margin: 1.2rem 0; }
.stats-kpis div { display: grid; gap: .15rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg,#fff,#f5f0e3); }
.stats-kpis strong { color: var(--green-dark); font-family: var(--font-display); font-size: 1.8rem; }
.stats-kpis span { color: var(--muted); font-size: .68rem; }
.stats-group { padding: 1rem 0; border-top: 1px solid var(--line); }
.stats-group h3 { margin: 0 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.stats-bars { display: grid; gap: .5rem; }
.stats-bars > div { display: grid; grid-template-columns: minmax(110px,.8fr) minmax(120px,1.5fr) 28px; gap: .6rem; align-items: center; font-size: .7rem; }
.stats-bars > div > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stats-bars i { height: 7px; overflow: hidden; border-radius: 99px; background: var(--panel); }
.stats-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),var(--gold)); }
.stats-bars strong { text-align: right; }
.stats-note { margin: .5rem 0 0; padding: .75rem; border-left: 3px solid var(--orange); background: var(--panel); color: var(--muted); font-size: .67rem; line-height: 1.45; }

.admin-modal { width: min(1150px,calc(100% - 2rem)); }.admin-card { padding: 0; overflow: hidden; }.admin-card > header { display: flex; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }.admin-card h2 { margin: .3rem 0 0; }.admin-layout { display: grid; grid-template-columns: 310px 1fr; height: min(680px,75vh); }.admin-layout aside { border-right: 1px solid var(--line); overflow: auto; }.submission-item { display: block; width: 100%; padding: 1rem; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }.submission-item.active { background: #fff3da; border-left: 4px solid var(--orange); }.submission-item small { color: var(--muted); }.admin-layout section { overflow: auto; padding: 1.3rem; }.compare-table { width: 100%; border-collapse: collapse; font-size: .75rem; }.compare-table th,.compare-table td { padding: .65rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }.compare-table th { background: var(--panel); }.admin-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }.admin-notes { width: 100%; }
.account-review-panel { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: #f7f5ed; }.account-review-panel h3 { margin: .2rem 0 .7rem; }.account-requests { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: .6rem; max-height: 180px; overflow: auto; }.account-request { display: flex; justify-content: space-between; gap: .7rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 7px; background: white; }.account-request strong,.account-request small { display: block; }.account-request small { color: var(--muted); font-size: .68rem; margin-top: .18rem; }.account-request > div:last-child { display: flex; gap: .35rem; }.account-request .button { padding: .45rem .6rem; font-size: .66rem; }
.toast-region { position: fixed; z-index: 9999; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; }.toast { max-width: 360px; background: var(--jade); color: white; padding: .8rem 1rem; border-left: 4px solid var(--orange); box-shadow: var(--shadow); border-radius: 5px; animation: reveal .2s ease; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem clamp(1rem,5vw,4.5rem); border-top: 1px solid rgba(255,255,255,.1); background: #062622; color: #c5d3ce; }
.site-footer > div { flex: none; display: flex; align-items: center; gap: .65rem; }
.site-footer span { display: grid; }
.site-footer strong { color: #f2e4bd; font-family: var(--font-display); font-size: 1.05rem; }
.site-footer small { color: #9fb5ae; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { max-width: 680px; margin: 0; font-size: .7rem; line-height: 1.55; text-align: right; }
.site-footer a { color: #f0c367; text-underline-offset: 3px; }
.footer-install { flex: none; min-height: 36px; padding: .48rem .75rem; border-color: rgba(240,195,103,.55); background: rgba(255,255,255,.06); color: #f4dfae; font-size: .68rem; }
.footer-install:hover { background: rgba(255,255,255,.12); }
.mobile-fab { display: none; }
#auth-button::after { content: attr(data-label); }

@media (max-width: 900px) {
  .atlas-shell { grid-template-columns: 300px 1fr; }
  .detail-panel { width: min(420px,65vw); }
  .hide-tablet { display: none; }
  .method-section { grid-template-columns: 1fr; }.method-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1200px) {
  .atlas-shell { grid-template-columns: minmax(360px,390px) minmax(0,1fr); }
  .explorer-panel { padding-inline: 1.5rem; }
}
@media (max-width: 820px) {
  .site-page { padding-top: calc(56px + var(--header-inset)); }
  .site-header { height: calc(56px + var(--header-inset)); min-height: calc(56px + var(--header-inset)); padding: var(--header-inset) .7rem 0; gap: .55rem; }
  .brand { min-width: 0; flex: 1; gap: .55rem; }
  .brand span { min-width: 0; }
  .brand strong { overflow: hidden; font-size: 1.05rem; white-space: nowrap; text-overflow: ellipsis; }
  .brand small,.hide-mobile { display: none; }
  .header-actions { flex: none; gap: .4rem; }
  .connection-pill { width: 40px; min-height: 40px; grid-template-columns: 1fr; place-items: center; padding: 0; }
  .connection-pill > span { width: 10px; height: 10px; grid-row: auto; }
  .connection-pill strong,.connection-pill small { display: none; }
  .header-actions .button-ghost { min-width: 72px; min-height: 40px; padding: .5rem .6rem; }
  #auth-button::after { content: attr(data-mobile-label); font-size: .72rem; }
  .atlas-shell { height: calc(100svh - 66px); min-height: 560px; display: block; scroll-margin-top: 66px; }
  .map-stage { width: 100%; height: 100%; }
  .explorer-panel { position: absolute; z-index: 4; left: 0; right: 0; top: auto; bottom: 0; max-height: 43%; padding: .72rem .75rem calc(.8rem + env(safe-area-inset-bottom)); border: 0; border-radius: 17px 17px 0 0; box-shadow: 0 -16px 42px rgba(16,44,39,.18); transition: max-height .22s ease; }
  .explorer-panel.filters-open { max-height: 72%; }
  .explorer-panel::before { content: ''; width: 38px; height: 4px; display: block; margin: -.25rem auto .55rem; border-radius: 99px; background: #c9cfc9; }
  .explorer-panel .eyebrow,.explorer-panel h1,.explorer-panel .intro,.explorer-panel .atlas-pulse { display: none; }
  .search-box { height: 44px; margin: 0 0 .45rem; }
  .search-shortcut { display: none; }
  .mobile-filter-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border: 1px solid var(--line); background: rgba(255,255,255,.46); color: var(--green-dark); font-size: .72rem; font-weight: 800; text-align: left; }
  .mobile-filter-toggle span { flex: 1; }
  .mobile-filter-toggle strong { min-width: 21px; padding: .16rem .38rem; border-radius: 99px; background: var(--orange); color: white; font-size: .6rem; text-align: center; }
  .mobile-filter-toggle i { color: var(--orange-dark); font-size: 1rem; font-style: normal; font-weight: 500; }
  .filter-drawer { display: none; padding: .7rem 0 .2rem; }
  .filters-open .filter-drawer { display: block; }
  .filter-group { margin: 0 0 .75rem; }
  .filter-drawer > .filter-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .segmented button { min-height: 40px; padding: .45rem .12rem; font-size: .62rem; }
  .advanced-filters { margin: .7rem 0 .35rem; }
  .advanced-filter-body .filter-grid { display: grid; }
  .results-heading { position: static; margin-top: .35rem; padding: .65rem .1rem .5rem; box-shadow: none; backdrop-filter: none; }
  .result-list { display: flex; gap: .55rem; overflow-x: auto; padding: 0 .05rem .25rem; scroll-padding-inline: .05rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .result-list::-webkit-scrollbar { display: none; }
  .result-card { min-width: min(82vw,300px); padding: .72rem; scroll-snap-align: start; }
  .result-card h3 { font-size: 1rem; }
  .empty-state { min-width: 100%; padding: 1.4rem .8rem; }
  .map-tools { left: .65rem; top: .65rem; display: flex; }
  .map-tools button { width: 40px; height: 40px; border-right: 1px solid var(--line); border-bottom: 0; }
  .map-tools button:last-child { border-right: 0; }
  .map-status { left: .65rem; top: 3.65rem; max-width: calc(100% - 1.3rem); }
  .map-scope { left: auto; right: 3.65rem; top: .65rem; max-width: 42vw; overflow: hidden; translate: 0 0; white-space: nowrap; text-overflow: ellipsis; }
  .map-legend { display: none; }
  .map-reset { right: auto; left: .75rem; bottom: calc(43% + .8rem); min-height: 42px; }
  .detail-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 82svh; border-radius: 16px 16px 0 0; transform: translateY(105%); }.detail-panel.open { transform: none; }.sheet-handle { width: 42px; height: 4px; background: var(--line); border-radius: 2px; margin: .5rem auto -.2rem; }
  .method-section { scroll-margin-top: 66px; padding: 3.3rem 1rem 3rem; }.method-grid,.method-definitions { grid-template-columns: 1fr; }.method-grid li { min-height: 0; padding: 1rem; }
  .method-flow { grid-template-columns: 1fr 1fr; }.method-flow i { display: none; }
  .mobile-fab { display: flex; position: absolute; z-index: 20; right: .75rem; bottom: calc(43% + .8rem); min-height: 42px; align-items: center; gap: .3rem; border: 0; border-radius: 28px; padding: .65rem .9rem; background: var(--orange); color: #251407; font-size: .78rem; font-weight: 800; box-shadow: 0 12px 30px rgba(16,44,39,.28); }.mobile-fab span { font-size: 1.1rem; }
  .mobile-filters-open .map-reset,.mobile-filters-open .mobile-fab { display: none; }
  .modal { width: calc(100% - .75rem); max-height: calc(100dvh - .75rem); }
  .modal-card { max-height: calc(100dvh - .75rem); padding: 1.15rem; }
  .contribution-modal { width: calc(100% - .35rem); max-height: calc(100dvh - .35rem); }
  .contribution-card { max-height: calc(100dvh - .35rem); }
  .wizard-header { padding: 1rem .9rem .75rem; }
  .wizard-header h2 { font-size: 1.45rem; }
  .stepper li { padding: .58rem .2rem; font-size: 0; }.stepper li::before { width: 25px; height: 25px; font-size: .68rem; margin-bottom: 0; }
  .wizard-body { min-height: 0; max-height: calc(100dvh - 210px); padding: 1rem .9rem; }
  .wizard-footer { position: sticky; bottom: 0; padding: .72rem .9rem; background: var(--surface); }.wizard-footer .form-message { display: none; }
  .wizard-footer > div:last-child { width: 100%; justify-content: flex-end; }
  .wizard-footer .button { min-height: 44px; }
  .two-columns,.quality-checks > div { grid-template-columns: 1fr; }
  .prominence-options { grid-template-columns: repeat(2,1fr); }
  .photo-preview { grid-template-columns: repeat(2,1fr); }
  .stats-kpis { grid-template-columns: repeat(2,1fr); gap: .4rem; }.stats-kpis div { padding: .75rem .6rem; }.stats-kpis strong { font-size: 1.35rem; }.stats-bars > div { grid-template-columns: minmax(90px,.8fr) minmax(80px,1.2fr) 24px; }
  .admin-layout { grid-template-columns: 1fr; height: 75vh; }.admin-layout aside { max-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .8rem; padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .site-footer p { text-align: left; }
  .toast-region { left: .65rem; right: .65rem; bottom: calc(.65rem + env(safe-area-inset-bottom)); }
  .toast { width: 100%; max-width: none; }
}
@media (max-width: 580px) {
  .header-actions #auth-button::after { font-size: .72rem; }
}
@media (max-width: 390px) {
  .site-header { padding-inline: .55rem; }
  .brand { gap: .4rem; }
  .brand strong { font-size: .95rem; }
  .header-actions .button-ghost { min-width: 64px; padding-inline: .4rem; }
  .connection-pill { width: 36px; min-height: 38px; }
  .segmented button { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Atlas editorial: navegación del archivo y tarjetas fotográficas. */
.mobile-sheet-toolbar { display: none; }
.explorer-toggle {
  position: absolute;
  z-index: 3;
  left: 4.7rem;
  top: 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding: .5rem .7rem;
  border: 1px solid rgba(16,44,39,.15);
  border-radius: 9px;
  background: rgba(255,253,247,.94);
  color: var(--green-dark);
  box-shadow: 0 9px 24px rgba(16,44,39,.13);
  backdrop-filter: blur(12px);
  font-size: .68rem;
  font-weight: 800;
}
.explorer-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.results-heading > div { display: grid; gap: .08rem; }
.results-heading small { color: var(--orange-dark); font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: .75rem;
  align-items: stretch;
  min-height: 104px;
  padding: .45rem .7rem .45rem .45rem;
  overflow: hidden;
}
.result-card-photo { width: 88px; height: 100%; min-height: 92px; display: block; border-radius: 5px; object-fit: cover; background: var(--panel); }
.result-card-placeholder { position: relative; overflow: hidden; background: linear-gradient(145deg,#dce5df,#eee7d8); }
.result-card-placeholder::before,.result-card-placeholder::after { content: ''; position: absolute; border: 1px solid rgba(23,125,99,.27); transform: rotate(45deg); }
.result-card-placeholder::before { width: 38px; height: 38px; left: 24px; top: 25px; }
.result-card-placeholder::after { width: 16px; height: 16px; left: 35px; top: 36px; background: rgba(23,125,99,.17); }
.result-card-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; }
.result-card-kicker { width: 100%; display: flex; justify-content: space-between; gap: .45rem; margin-bottom: .28rem; color: var(--muted); font-size: .57rem; line-height: 1.2; }
.result-card-kicker b { overflow: hidden; color: var(--green-dark); letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.result-card-kicker em { flex: none; color: var(--marker-color); font-style: normal; font-weight: 800; }
.result-card-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink); font-family: var(--font-display); font-size: .98rem; font-weight: 800; line-height: 1.08; }
.result-card .result-meta { margin-top: .3rem; font-size: .62rem; }
.result-card .result-languages { margin-top: .42rem; }
.result-card-arrow { position: absolute; right: .55rem; bottom: .42rem; color: var(--marker-color); font-size: .7rem; opacity: .66; }
.result-skeleton { min-height: 104px; display: grid; grid-template-columns: 88px 1fr; gap: .75rem; padding: .45rem; border: 1px solid var(--line); background: rgba(255,255,255,.54); animation: skeleton-pulse 1.25s ease-in-out infinite alternate; animation-delay: var(--delay); }
.result-skeleton > span,.result-skeleton i { display: block; background: linear-gradient(90deg,rgba(16,44,39,.07),rgba(255,255,255,.7),rgba(16,44,39,.07)); background-size: 220% 100%; animation: skeleton-shimmer 1.4s linear infinite; }
.result-skeleton > span { min-height: 92px; }
.result-skeleton > div { display: grid; align-content: center; gap: .55rem; }
.result-skeleton i { height: 10px; }.result-skeleton i:nth-child(2) { width: 88%; height: 18px; }.result-skeleton i:nth-child(3) { width: 62%; }
@keyframes skeleton-pulse { to { opacity: .68; } }
@keyframes skeleton-shimmer { to { background-position: -220% 0; } }
.wizard-progress-label { margin: .25rem 0 0; color: var(--muted); font-size: .68rem; font-weight: 700; }

@media (min-width: 821px) {
  .atlas-shell > .explorer-panel { grid-column: 1; }
  .atlas-shell > .map-stage { grid-column: 2; }
  .atlas-shell.explorer-collapsed { grid-template-columns: 0 minmax(0,1fr); }
  .atlas-shell.explorer-collapsed .explorer-panel { display: none; }
  .atlas-shell.explorer-collapsed .explorer-toggle { left: 4.7rem; }
  .map-status { top: 4.35rem; }
}

@media (max-width: 820px) {
  .explorer-toggle { display: none; }
  .map-status { display: none !important; }
  .map-tools {
    position: absolute !important;
    left: 1rem !important;
    top: 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    width: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 252, 240, 0.94) !important;
    border: 1px solid rgba(91, 78, 48, 0.24) !important;
    box-shadow: 0 10px 28px rgba(16, 44, 39, 0.16) !important;
    backdrop-filter: blur(14px) saturate(1.1) !important;
    overflow: hidden !important;
    z-index: 25 !important;
  }
  .map-tools button {
    width: 42px !important;
    height: 42px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(91, 78, 48, 0.14) !important;
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
    color: var(--green-dark) !important;
  }
  .map-tools button:last-child {
    border-bottom: 0 !important;
  }
  .map-tools button.active {
    background: var(--jade) !important;
    color: white !important;
  }
  .map-tools button.active svg {
    stroke: white !important;
  }
  .map-scope {
    position: absolute !important;
    left: auto !important;
    right: 4.2rem !important;
    top: 1.2rem !important;
    translate: 0 0 !important;
    z-index: 20 !important;
    max-width: 42vw !important;
  }
  .maplibregl-ctrl-top-right {
    position: absolute !important;
    top: 1.2rem !important;
    right: 1rem !important;
    z-index: 25 !important;
    margin: 0 !important;
  }
  .maplibregl-ctrl-group {
    border-radius: 10px !important;
    border: 1px solid rgba(91, 78, 48, 0.24) !important;
    box-shadow: 0 10px 28px rgba(16, 44, 39, 0.16) !important;
  }
  .maplibregl-ctrl-group button {
    width: 40px !important;
    height: 40px !important;
  }
  .explorer-panel { max-height: 36%; padding-top: .38rem; }
  .explorer-panel.filters-open { max-height: 82%; }
  .mobile-list-open .explorer-panel { max-height: 74%; }
  .mobile-filters-open .explorer-panel { max-height: 82%; }
  .mobile-sheet-toolbar { position: sticky; z-index: 5; top: -.38rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 36px; margin: 0 -.2rem .4rem; padding: .2rem .2rem .35rem; background: inherit; }
  .mobile-sheet-grip { grid-column: 2; width: 36px; height: 4px; border-radius: 99px; background: #b9c0ba; }
  .mobile-view-switch { grid-column: 3; justify-self: end; display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5); }
  .mobile-view-switch button { min-height: 29px; padding: .32rem .62rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .62rem; font-weight: 800; }
  .mobile-view-switch button.active { background: var(--green-dark); color: white; box-shadow: 0 3px 9px rgba(16,44,39,.17); }
  .explorer-panel::before { display: none; }
  .map-reset,.mobile-fab { bottom: calc(36% + .72rem); transition: bottom .2s ease; }
  .mobile-list-open .map-reset,.mobile-list-open .mobile-fab { display: none; }
  .mobile-list-open .result-list { display: grid; gap: .6rem; overflow-x: visible; padding-bottom: 1rem; scroll-snap-type: none; }
  .mobile-list-open .result-card { min-width: 0; width: 100%; scroll-snap-align: none; }
  .result-card { min-width: min(88vw,340px); grid-template-columns: 84px minmax(0,1fr); min-height: 100px; }
  .result-card-photo { width: 84px; min-height: 88px; }
  .result-card-kicker em { display: none; }
  .result-card-title { font-size: .95rem; }
  .result-skeleton { min-width: min(88vw,340px); }
  .wizard-progress-label { display: block; color: var(--green-dark); }
}

@media (min-width: 581px) and (max-width: 1024px) {
  .site-header { padding: max(16px, env(safe-area-inset-top, 0px)) 1.5rem 0; }
  .modal { width: min(600px, calc(100% - 2rem)); }
  .contribution-modal { width: min(760px, calc(100% - 2rem)); }
  .contribution-card { max-height: 88vh; }
  .stepper li { font-size: .65rem; }
  .wizard-body { max-height: 60vh; }
}

@media (max-width: 580px) {
  .site-header { padding: var(--header-inset) .6rem 0; }
  .brand strong { font-size: 1.12rem; }
  .brand small { display: none; }
  .lang-picker { padding: 1px; }
  .lang-btn { padding: .24rem .42rem; font-size: .6rem; }
  .connection-pill { padding: .25rem .4rem; min-height: 30px; }
  .connection-pill small { display: none; }
  #auth-button { min-height: 32px; padding: .35rem .6rem; }
  #auth-button::after { font-size: .72rem; }
  .modal { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); }
  .contribution-modal {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  .contribution-card {
    border-radius: 20px 20px 0 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: calc(100dvh - max(28px, env(safe-area-inset-top, 0px))) !important;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top, 0px))) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .wizard-header {
    padding: 1.1rem 1.2rem .65rem !important;
    flex-shrink: 0 !important;
  }
  .stepper { font-size: 0; padding: .2rem; flex-shrink: 0 !important; }
  .stepper li { font-size: 0; padding: .45rem .1rem; }
  .stepper li::before { margin: 0 auto; width: 24px; height: 24px; font-size: .72rem; font-weight: 800; }
  .wizard-body {
    flex: 1 1 auto !important;
    max-height: none !important;
    padding: 1rem 1.2rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  .wizard-step h3 { margin-top: .3rem !important; font-size: 1.2rem !important; line-height: 1.25 !important; }
  .wizard-actions {
    padding: .85rem 1.2rem max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 450px) {
  .brand { flex: 0 0 auto; }
  .brand span { display: none; }
}

/* ==========================================================================
   Language Picker
   ========================================================================== */
.lang-picker {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(16, 44, 39, .15);
  border-radius: 99px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
}
.lang-btn {
  border: 0;
  border-radius: 99px;
  background: transparent;
  padding: .28rem .55rem;
  font-size: .65rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: all .16s ease;
}
.lang-btn:hover { color: var(--green-dark); }
.lang-btn.active {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 44, 39, .2);
}

/* ==========================================================================
   Satellite Layer Toggle
   ========================================================================== */
#toggle-layer.active {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 44, 39, .3);
}

/* ==========================================================================
   Academic Factsheet Modal & Printing
   ========================================================================== */
.factsheet-modal .factsheet-card {
  max-width: 680px;
  padding: 1.8rem;
}
.factsheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .8rem;
}
.factsheet-body {
  display: grid;
  gap: 1.2rem;
  font-size: .88rem;
  line-height: 1.5;
}
.factsheet-hero-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.factsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.factsheet-grid div strong {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .15rem;
}
.factsheet-citation-box {
  background: #f1f5f3;
  border-left: 3px solid var(--green-dark);
  padding: .8rem 1rem;
  border-radius: 0 6px 6px 0;
  font-family: monospace;
  font-size: .78rem;
  color: #203530;
  word-break: break-word;
}
.factsheet-footer {
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media print {
  body * { visibility: hidden; }
  .factsheet-modal, .factsheet-modal * { visibility: visible; }
  .factsheet-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: white;
  }
  .factsheet-modal .modal-close,
  .factsheet-modal .factsheet-footer { display: none !important; }
}
