/* ============================================================
   BIOAUREA · MAPA TIERRA — editorial SVG choropleth
   v2.0 (2026-05-07) — replaces Leaflet skin with full SVG layout
   matching `Mapa Tierra _ standalone.html` (handoff).
   ============================================================ */

/* ── Tokens (scoped to .demo-section.tierra) ───────────────── */
.demo-section.tierra {
    --t-cream:      #f3ede0;
    --t-cream-2:    #faf4e6;
    --t-paper:      #fff9eb;
    --t-ink:        #2d2620;
    --t-ink-2:      #4d3920;
    --t-mute:       #7a5c3c;
    --t-mute-2:     #9a7f54;
    --t-line:       rgba(122, 92, 60, 0.18);
    --t-line-2:     rgba(122, 92, 60, 0.12);
    --t-rust:       #b85c2a;
    --t-rust-2:     #8a3d18;
    --t-green:      #5a6b3f;
    --t-green-2:    #6b8a4f;
    --t-gold:       #c4a878;
    --t-gold-2:     #9a7f54;
    --t-sand:       #d9c89a;
    --t-tile:       #ede2c9;
}

/* ── Section ───────────────────────────────────────────────── */
.demo-section.tierra {
    padding: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0;
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--t-ink);
}
.demo-section.tierra .demo-header { display: none; }

.demo-section.tierra .map-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 95px);
    min-height: 640px;
    background: transparent;
    overflow: hidden;
}

/* ── SVG choropleth stage ──────────────────────────────────── */
.demo-section.tierra .mapwrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 340px 70px 340px;
}
.demo-section.tierra .colmap {
    width: 100%;
    height: 100%;
    cursor: grab;
}
.demo-section.tierra .colmap.dragging { cursor: grabbing; }
.demo-section.tierra .colmap path.dept {
    cursor: pointer;
    transition: filter 0.15s;
    stroke-linejoin: round;
}
.demo-section.tierra .colmap path.dept:hover { filter: brightness(1.08); }
.demo-section.tierra .colmap path.dept.active {
    stroke-width: 1.6 !important;
    stroke: var(--t-ink) !important;
}
.demo-section.tierra .colmap circle.vereda {
    cursor: pointer;
    transition: r 0.15s, stroke-width 0.15s;
}
.demo-section.tierra .colmap circle.vereda:hover { stroke-width: 1.5; }
.demo-section.tierra .colmap circle.vereda.active {
    stroke: var(--t-ink);
    stroke-width: 2;
}
.demo-section.tierra .colmap text.dept-label {
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 600;
    fill: var(--t-ink);
    pointer-events: none;
    text-anchor: middle;
    paint-order: stroke;
    stroke: var(--t-cream-2);
    stroke-width: 2.2;
    stroke-linejoin: round;
}

/* ── Loading ───────────────────────────────────────────────── */
/* Hidden by default. Shown when .active is added (matches showLoading() in ui.js). */
.demo-section.tierra .loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    background: rgba(243, 237, 224, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
}
.demo-section.tierra .loading.active { display: flex; }
.demo-section.tierra .loading.hidden { display: none !important; }
.demo-section.tierra .loading .ring {
    width: 32px; height: 32px;
    border: 3px solid rgba(184, 92, 42, 0.2);
    border-top-color: var(--t-rust);
    border-radius: 50%;
    animation: tierra-spin 1s linear infinite;
}
@keyframes tierra-spin { to { transform: rotate(360deg); } }
.demo-section.tierra .loading .txt {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--t-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   SEARCH PANEL (.searcher) — left
   ============================================================ */
.demo-section.tierra .searcher {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 500;
    width: 320px;
    background: var(--t-cream-2);
    border: 1px solid var(--t-line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(74, 56, 38, 0.10);
    overflow: hidden;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Header bar: gold/sand gradient (matches la Guajira card) with dark text */
/* Header bar: café medio sólido (matches image 2 "Generar reporte" button tone) */
.demo-section.tierra .searcher .h {
    background: #9a7e5c;
    padding: 14px 18px 12px;
    color: #ffffff;
}
.demo-section.tierra .searcher .h h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
    color: #ffffff;
}
.demo-section.tierra .searcher .h .sub {
    font-size: 13px;
    font-family: 'Manrope', -apple-system, sans-serif;
    text-transform: none;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 4px;
    font-weight: 500;
}
.demo-section.tierra .searcher .body { padding: 14px 18px 16px; }

.demo-section.tierra .searcher .mode-row {
    display: flex;
    background: var(--t-tile);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
    gap: 1px;
}
.demo-section.tierra .searcher .mode-row button {
    flex: 1;
    background: none;
    border: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 6px;
    border-radius: 6px;
    cursor: pointer;
    color: #3a2818;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.demo-section.tierra .searcher .mode-row button.active {
    background: var(--t-cream-2);
    color: #1a1208;
    box-shadow: 0 1px 2px rgba(74, 56, 38, 0.12);
}
.demo-section.tierra .searcher .mode-row button svg { width: 12px; height: 12px; }

/* Vereda input */
.demo-section.tierra .searcher .input {
    display: flex;
    align-items: center;
    background: var(--t-paper);
    border: 1px solid var(--t-line);
    border-radius: 8px;
    padding: 11px 13px;
    gap: 9px;
    margin-bottom: 10px;
}
.demo-section.tierra .searcher .input:focus-within {
    border-color: #a06030;
    background: #fff;
}
.demo-section.tierra .searcher .input svg {
    width: 14px; height: 14px;
    color: var(--t-mute-2);
    flex-shrink: 0;
}
.demo-section.tierra .searcher .input input {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    outline: none;
    min-width: 0;
    color: #1a1208;
}
.demo-section.tierra .searcher .input input::placeholder {
    color: #6a5230;
    font-size: 14px;
}

.demo-section.tierra .searcher .pane { display: none; }
.demo-section.tierra .searcher .pane.active { display: block; }

/* Coord grid */
.demo-section.tierra .searcher .coord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 6px;
}
.demo-section.tierra .searcher .coord-cell {
    background: var(--t-paper);
    border: 1px solid var(--t-line);
    border-radius: 8px;
    padding: 6px 9px;
}
.demo-section.tierra .searcher .coord-cell label {
    display: block;
    font-size: 8px;
    color: var(--t-mute-2);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1px;
}
.demo-section.tierra .searcher .coord-cell input {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    color: var(--t-ink-2);
}

/* Polygon toggle */
.demo-section.tierra .searcher .poly-toggle {
    display: flex;
    background: var(--t-tile);
    border-radius: 7px;
    padding: 2px;
    margin-bottom: 8px;
    gap: 1px;
}
.demo-section.tierra .searcher .poly-toggle button {
    flex: 1;
    background: none;
    border: none;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 3px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--t-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.demo-section.tierra .searcher .poly-toggle button.active {
    background: var(--t-cream-2);
    color: var(--t-ink-2);
    box-shadow: 0 1px 2px rgba(74, 56, 38, 0.10);
}

.demo-section.tierra .searcher .poly-list {
    background: var(--t-paper);
    border: 1px solid var(--t-line);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    max-height: 110px;
    overflow-y: auto;
}
.demo-section.tierra .searcher .poly-row {
    display: grid;
    grid-template-columns: 18px 1fr 1fr 18px;
    gap: 3px;
    align-items: center;
    margin-bottom: 3px;
}
.demo-section.tierra .searcher .poly-row:last-child { margin-bottom: 0; }
.demo-section.tierra .searcher .poly-idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--t-mute-2);
    font-weight: 600;
    text-align: center;
}
.demo-section.tierra .searcher .poly-row input {
    width: 100%;
    border: 1px solid var(--t-line);
    background: #fff;
    border-radius: 5px;
    padding: 4px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    outline: none;
    color: var(--t-ink-2);
}
.demo-section.tierra .searcher .poly-row input:focus { border-color: var(--t-green-2); }
.demo-section.tierra .searcher .poly-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t-rust);
    font-size: 13px;
    padding: 0;
}
.demo-section.tierra .searcher .poly-del:hover { color: var(--t-rust-2); }
.demo-section.tierra .searcher .poly-add {
    background: none;
    border: 1px dashed rgba(122, 92, 60, 0.3);
    border-radius: 7px;
    padding: 5px;
    width: 100%;
    font: inherit;
    font-size: 10px;
    color: var(--t-green-2);
    cursor: pointer;
    font-weight: 600;
    margin-top: 3px;
}
.demo-section.tierra .searcher .poly-add:hover {
    background: rgba(107, 138, 79, 0.06);
    border-color: var(--t-green-2);
}
.demo-section.tierra .searcher .poly-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--t-mute-2);
    margin-bottom: 6px;
    padding: 0 4px;
}
.demo-section.tierra .searcher .poly-meta b {
    color: var(--t-ink-2);
    font-weight: 600;
}

/* Date input as inline pill */
.demo-section.tierra .searcher .date-fixed {
    background: var(--t-paper);
    border: 1px solid var(--t-line);
    border-radius: 8px;
    padding: 9px 13px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.demo-section.tierra .searcher .date-fixed svg {
    width: 13px; height: 13px;
    color: #a06030;
}
.demo-section.tierra .searcher .date-fixed .lbl {
    font-size: 11px;
    color: #3a2818;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.demo-section.tierra .searcher .date-fixed input[type="date"] {
    margin-left: auto;
    border: none;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #1a1208;
    outline: none;
    cursor: pointer;
    padding: 0;
}
.demo-section.tierra .searcher .date-fixed input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.45) sepia(0.5) saturate(2) hue-rotate(20deg);
    width: 14px; height: 14px;
}

/* CTA — solid dark green (matches navbar) with white text */
.demo-section.tierra .searcher .cta {
    width: 100%;
    background: #566c41;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 10px;
    box-shadow: none;
    transition: background 0.2s ease;
}
.demo-section.tierra .searcher .cta:hover:not(:disabled) {
    background: #3d4f2c;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}
.demo-section.tierra .searcher .cta svg { width: 14px; height: 14px; }
.demo-section.tierra .searcher .cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.demo-section.tierra .searcher .cta svg { width: 12px; height: 12px; }

/* Quotas row */
.demo-section.tierra .searcher .quotas {
    display: flex;
    gap: 4px;
    background: var(--t-tile);
    border-radius: 7px;
    padding: 8px 11px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #3a2818;
    font-weight: 600;
}
.demo-section.tierra .searcher .quotas span { flex: 1; text-align: center; }
.demo-section.tierra .searcher .quotas b {
    color: #3d4f2c;
    font-weight: 800;
}
.demo-section.tierra .searcher .quotas .sep {
    width: 1px;
    background: rgba(122, 92, 60, 0.2);
    flex: none;
}

.demo-section.tierra .searcher .upload-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #566c41;
    margin-top: 10px;
    padding-top: 11px;
    border-top: 1px solid var(--t-line-2);
    text-decoration: none;
    font-weight: 700;
}
.demo-section.tierra .searcher .upload-link:hover { color: #3d4f2c; }

/* Search suggestions dropdown */
.demo-section.tierra .searcher .suggest { position: relative; }
.demo-section.tierra .searcher .suggest-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid rgba(122, 92, 60, 0.2);
    border-radius: 8px;
    margin-top: 3px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(74, 56, 38, 0.12);
    display: none;
}
.demo-section.tierra .searcher .suggest-list.open { display: block; }
.demo-section.tierra .searcher .suggest-list .item {
    padding: 7px 11px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid rgba(122, 92, 60, 0.08);
}
.demo-section.tierra .searcher .suggest-list .item:last-child { border-bottom: none; }
.demo-section.tierra .searcher .suggest-list .item:hover { background: var(--t-paper); }
.demo-section.tierra .searcher .suggest-list .item .nm {
    font-weight: 600;
    color: var(--t-ink-2);
}
.demo-section.tierra .searcher .suggest-list .item .dt {
    font-size: 10px;
    color: var(--t-mute-2);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   HOVER CARD (.hcard) — right
   ============================================================ */
.demo-section.tierra .hcard {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 500;
    width: 300px;
    background: var(--t-cream-2);
    border: 1px solid var(--t-line);
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(74, 56, 38, 0.10);
    overflow: hidden;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hover card top: gold/sand gradient (matches la Guajira card) with dark text */
/* Hover card top: café medio sólido (matches image 2 button tone) */
.demo-section.tierra .hcard .top {
    background: #9a7e5c;
    padding: 14px 18px 11px;
    color: #ffffff;
}
.demo-section.tierra .hcard .name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 2px;
    color: #ffffff;
}
.demo-section.tierra .hcard .sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Manrope', -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.demo-section.tierra .hcard .body { padding: 13px 18px 15px; }
.demo-section.tierra .hcard .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 14px;
}
.demo-section.tierra .hcard .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--t-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 600;
}
.demo-section.tierra .hcard .val {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--t-ink-2);
    line-height: 1;
}
.demo-section.tierra .hcard .val.neg { color: #a06030; }
.demo-section.tierra .hcard .val.pos { color: var(--t-green); }
.demo-section.tierra .hcard .val em {
    font-size: 11.5px;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    color: var(--t-mute-2);
    font-weight: 500;
    margin-left: 3px;
}
.demo-section.tierra .hcard .spark {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--t-line);
}
.demo-section.tierra .hcard .spark svg {
    width: 100%;
    height: 36px;
    display: block;
}
.demo-section.tierra .hcard .spark .ttl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--t-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
    font-weight: 600;
}

/* ============================================================
   LEGEND + ZOOM CONTROLS
   ============================================================ */
.demo-section.tierra .legend {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 500;
    background: var(--t-cream-2);
    border: 1px solid var(--t-line);
    border-radius: 12px;
    padding: 12px 18px 14px;
    box-shadow: 0 5px 16px rgba(74, 56, 38, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 460px;
}
.demo-section.tierra .legend .legend-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.demo-section.tierra .legend .legend-row-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.demo-section.tierra .legend .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #2d2620;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
}
.demo-section.tierra .legend .legend-hint {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 11.5px;
    color: var(--t-mute);
    line-height: 1.2;
}
.demo-section.tierra .legend .min,
.demo-section.tierra .legend .max {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    flex-shrink: 0;
    min-width: 56px;
}
.demo-section.tierra .legend .max { align-items: flex-end; }
.demo-section.tierra .legend .min b,
.demo-section.tierra .legend .max b {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #2d2620;
    font-weight: 700;
}
.demo-section.tierra .legend .min em,
.demo-section.tierra .legend .max em {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: var(--t-mute);
    margin-top: 2px;
}
.demo-section.tierra .legend .min b { color: #7a2d1a; }
.demo-section.tierra .legend .max b { color: #3d5a26; }
.demo-section.tierra .legend .grad {
    flex: 1 1 auto;
    min-width: 120px;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(to right,
        #7a2d1a, #a04a25, #c47e4a, #dfb088, #f0d9b5,
        #dde2c0, #bccc97, #8ea66a, #5e7d44, #3d5a26);
    border: 1px solid rgba(122, 92, 60, 0.18);
}

.demo-section.tierra .zoom-info {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 500;
    background: var(--t-cream-2);
    border: 1px solid var(--t-line);
    border-radius: 10px;
    padding: 11px 15px;
    box-shadow: 0 5px 16px rgba(74, 56, 38, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--t-mute);
    font-weight: 600;
}
.demo-section.tierra .zoom-info b {
    color: var(--t-ink-2);
    font-weight: 700;
}
.demo-section.tierra .zoom-info button {
    background: var(--t-tile);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--t-ink-2);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'JetBrains Mono', monospace;
}
.demo-section.tierra .zoom-info button:hover { background: var(--t-sand); }
.demo-section.tierra .zoom-info button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   MOBILE
   ============================================================ */
.demo-section.tierra .mobile-map-toggles {
    display: none;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    gap: 6px;
}
.demo-section.tierra .mobile-toggle-btn {
    padding: 7px 13px;
    background: var(--t-cream-2);
    border: 1px solid var(--t-line);
    border-radius: 18px;
    color: var(--t-ink-2);
    font-weight: 600;
    font-size: 11.5px;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(74, 56, 38, 0.10);
    cursor: pointer;
}
.demo-section.tierra .mobile-toggle-btn:hover,
.demo-section.tierra .mobile-toggle-btn.active {
    background: var(--t-tile);
    border-color: var(--t-mute);
    color: var(--t-rust);
}
.demo-section.tierra .mobile-sidebar-close {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(255, 249, 235, 0.9);
    border: 1px solid var(--t-line);
    border-radius: 50%;
    color: var(--t-rust);
    font-size: 13px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
    .demo-section.tierra .mapwrap { padding: 20px 320px 70px 320px; }
    .demo-section.tierra .searcher,
    .demo-section.tierra .hcard { width: 270px; }
    .demo-section.tierra .legend { width: 270px; }
}

@media (max-width: 980px) {
    .demo-section.tierra .map-wrapper {
        height: auto;
        min-height: 100vh;
    }
    .demo-section.tierra .mapwrap {
        position: relative;
        inset: auto;
        padding: 80px 16px 280px;
        height: 80vh;
        min-height: 520px;
    }
    .demo-section.tierra .mobile-map-toggles { display: flex; }
    .demo-section.tierra .searcher,
    .demo-section.tierra .hcard {
        position: absolute;
        width: calc(100% - 24px);
        max-width: 360px;
        left: 50%;
        transform: translate(-50%, -130%);
        opacity: 0;
        pointer-events: none;
    }
    .demo-section.tierra .searcher.show,
    .demo-section.tierra .hcard.show {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }
    .demo-section.tierra .mobile-sidebar-close { display: flex; }
    .demo-section.tierra .legend {
        width: calc(100% - 36px);
        max-width: 360px;
        bottom: 70px;
    }
    .demo-section.tierra .zoom-info { bottom: 18px; }
}
