/* ==========================================================================
 * INDICE DE ESTE ARCHIVO. Solo comentarios: no cambia ninguna regla.
 * Orden: ventana tipo Google Earth.
 * Numero = linea donde empieza el comentario de esa parte (el texto es el del propio comentario).
 *
 *   linea 17: Ventana "Google Earth Pro" (#w-earth). Usa los tokens de windows.css (--font, silver, bevels). [menciona #w-earth]
 *   linea 29: Panel izquierdo
 *   linea 45: Barra de herramientas + mapa
 *   linea 57: Brújula y zoom
 *   linea 66: Leyenda
 *   linea 75: Aspecto Windows 98: botones con relieve, paneles grises, leyenda como mini-ventana
 *   linea 101: Panel de navegación: brújula + zoom como botones y trackbar de Windows 98
 *   linea 111: Leyenda: mini-ventana con barra de título azul
 *   linea 119: iconos de la barra de herramientas SIN funcionalidad: en gris y sin efecto de botón, para que el usuar...
 *   linea 124: barra de menú superior (Archivo, Edición, Ver...) sin función: en gris y sin efecto hover.
 * ========================================================================= */
/* Ventana "Google Earth Pro" (#w-earth). Usa los tokens de windows.css (--font, --silver, bevels). */
.window--earth { width: min(100%, 840px); justify-self: start; container-type: inline-size; }
@media (min-width: 1280px) { #w-earth { grid-column: 1 / -1; } }

.earth { display: flex; flex-direction: column; background: #fff; box-shadow: var(--bevel-field); font: 12px/1.3 Tahoma, 'Segoe UI', Arial, sans-serif; }
.earth__menu { display: flex; gap: 14px; padding: 3px 8px; background: var(--silver); }
.earth__menu span { cursor: default; }
.earth__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); height: clamp(320px, 56vh, 440px); }
.window--earth.is-nosb .earth__body { grid-template-columns: minmax(0, 1fr); }
.window--earth.is-nosb .earth__side { display: none; }
@container (max-width: 560px) { .earth__body { grid-template-columns: minmax(0, 1fr); } .earth__side { display: none; } }

/* Panel izquierdo */
.earth__side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid #c8c8c8; }
.earth__hd { display: flex; align-items: center; gap: 5px; padding: 4px 6px; color: #000; font-weight: 700; background: var(--silver); box-shadow: inset 1px 1px #fff, inset -1px -1px grey; cursor: default; }
.earth__hd--c { border-top: 1px solid #fff; font-weight: 400; color: #223; }
.earth__tri { font-size: 8px; }
.earth__q { display: flex; gap: 4px; padding: 6px 4px 3px; }
.earth__q input { flex: 1; min-width: 0; padding: 2px 4px; font: inherit; border: 1px solid #7a7a7a; background: #fff; }
.earth__go { padding: 1px 8px; font: inherit; font-weight: 700; color: #223; background: linear-gradient(#fff, #dcdcdc); border: 1px solid #8a8a8a; border-radius: 2px; cursor: pointer; }
.earth__lnks { display: flex; justify-content: flex-end; gap: 10px; padding: 2px 8px 6px; color: #1a4fa8; font-weight: 700; font-size: 11px; }
.earth__res { list-style: none; margin: 0 4px 4px; background: #fff; border: 1px solid #b9b9b9; }
.earth__res button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; font: inherit; color: #1a4fa8; text-align: left; background: none; border: 0; cursor: pointer; }
.earth__res button:hover { background: #e8f0fc; }
.earth__res li + li { border-top: 1px solid #eee; }
.earth__res svg { flex: none; width: 12px; height: 16px; }
.earth__grey { flex: 1; min-height: 0; background: #8e8e8e; }

/* Barra de herramientas + mapa */
.earth__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.earth__tb { display: flex; align-items: center; flex-wrap: wrap; gap: 1px; padding: 3px 4px; background: var(--silver); box-shadow: inset 0 -1px grey, inset 0 1px #fff; }
.earth__tb button { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; background: none; border: 0; cursor: default; }
.earth__tb button:hover { box-shadow: inset -1px -1px grey, inset 1px 1px #fff; }
.earth__tb button[data-e] { cursor: pointer; }
.earth__tb button[data-e].is-on, .earth__tb button:active { background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px; box-shadow: inset 1px 1px grey, inset -1px -1px #fff; }
.earth__tb svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.earth__tb i { width: 2px; height: 20px; margin: 0 3px; box-shadow: inset 1px 0 grey, inset -1px 0 #fff; }
.earth__map { position: relative; flex: 1; min-height: 0; background: #000; overflow: hidden; }
.earth__map canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }

/* Brújula y zoom */
.earth__nav { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.earth__compass { width: 44px; height: 44px; padding: 0; color: #fff; font: 700 11px Arial, sans-serif; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.55); border-radius: 50%; cursor: pointer; }
.earth__compass svg { width: 100%; height: 100%; }
.earth__zoom { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.earth__zoom button { width: 20px; height: 20px; padding: 0; color: #fff; font: 700 15px/1 Arial, sans-serif; background: none; border: 0; cursor: pointer; }
.earth__track { position: relative; width: 4px; height: 70px; background: rgba(255,255,255,.55); border-radius: 2px; }
.earth__track i { position: absolute; left: 50%; width: 14px; height: 7px; margin: -3px 0 0 -7px; background: #fff; border: 1px solid #556; border-radius: 3px; }

/* Leyenda */
.earth__legend { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 76px); padding: 6px 10px 7px; color: #fff; font: 12px/1.35 Arial, sans-serif; background: rgba(8,12,22,.8); border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }
.earth__legend b { display: block; margin-bottom: 3px; color: #ffe14d; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.earth__legend p { display: flex; align-items: center; gap: 7px; margin: 2px 0; }
.earth__legend svg { flex: none; width: 14px; height: 16px; }
.earth__legend .earth__work { font-weight: 700; }
.window--earth .status-bar__field { font-family: Tahoma, Arial, sans-serif; font-size: 11px; white-space: nowrap; overflow: hidden; }
@media (max-width: 520px) { .window--earth .status-bar__field:nth-child(n+3) { display: none; } }

/* ==========================================================================
   Aspecto Windows 98: botones con relieve, paneles grises, leyenda como mini-ventana
   ========================================================================== */
.earth { font: var(--fs) / 1.3 var(--font); background: var(--silver); }
.earth__menu { gap: 0; padding: 2px 3px; background: var(--silver); box-shadow: inset 0 -1px grey, inset 0 1px #fff; }
.earth__menu span { padding: 2px 7px; }
.earth__menu span::first-letter { text-decoration: underline; }
.earth__menu span:hover { color: #fff; background: var(--navy); }
.earth__body { gap: 0; }
.earth__side { padding: 3px 0 3px 3px; gap: 3px; background: var(--silver); border-right: 0; }
.earth__hd { padding: 3px 6px; background: var(--silver); box-shadow: var(--bevel-raised); }
.earth__hd--c { border-top: 0; color: #000; }
.earth__q { padding: 3px 2px 2px; }
.earth__q input { padding: 3px 4px; font: inherit; color: #000; background: #fff; border: 0; border-radius: 0; box-shadow: var(--bevel-field); }
.earth__go { padding: 2px 10px; font: inherit; font-weight: 400; color: #000; background: var(--silver); border: 0; border-radius: 0; box-shadow: var(--bevel-raised); }
.earth__go:active { box-shadow: var(--bevel-pressed); }
.earth__lnks { padding: 0 6px 3px; color: #0000ee; font-weight: 400; font-size: var(--fs); text-decoration: underline; }
.earth__res { margin: 0 2px; background: #fff; border: 0; box-shadow: var(--bevel-field); }
.earth__res button { color: #000; font: inherit; padding: 4px 6px; }
.earth__res button:hover { color: #fff; background: var(--navy); }
.earth__res li + li { border-top: 0; }
.earth__grey { margin: 0 2px; background: #fff; box-shadow: var(--bevel-field); }

.earth__tb { padding: 2px 3px; }
.earth__map { margin: 2px 3px 3px 2px; border: 2px solid; border-color: #808080 #fff #fff #808080; }

/* Panel de navegación: brújula + zoom como botones y trackbar de Windows 98 */
.earth__nav { top: 6px; right: 6px; gap: 3px; padding: 3px; background: var(--silver); box-shadow: var(--bevel-window); border-radius: 0; }
.earth__compass { width: 34px; height: 34px; padding: 1px; color: #000; background: var(--silver); border: 0; border-radius: 0; box-shadow: var(--bevel-raised); }
.earth__compass:active { box-shadow: var(--bevel-pressed); }
.earth__zoom { gap: 2px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.earth__zoom button { width: 22px; height: 20px; color: #000; font: 700 13px / 1 var(--font); background: var(--silver); box-shadow: var(--bevel-raised); }
.earth__zoom button:active { box-shadow: var(--bevel-pressed); }
.earth__track { width: 4px; height: 70px; background: #fff; border-radius: 0; box-shadow: inset 1px 1px grey, inset -1px -1px #dfdfdf, 0 0 0 1px #fff; }
.earth__track i { width: 18px; height: 10px; margin: -5px 0 0 -9px; background: var(--silver); border: 0; border-radius: 0; box-shadow: var(--bevel-raised); }

/* Leyenda: mini-ventana con barra de título azul */
.earth__legend { left: 6px; bottom: 6px; max-width: calc(100% - 72px); padding: 2px; color: #000; font: var(--fs) / 1.35 var(--font); background: var(--silver); border: 0; border-radius: 0; box-shadow: var(--bevel-window); }
.earth__legend b { margin: 0 0 3px; padding: 2px 5px; color: #fff; font-size: var(--fs); letter-spacing: 0; text-transform: none; background: linear-gradient(90deg, var(--navy), var(--sky)); }
.earth__legend p { margin: 0; padding: 2px 6px 3px; }
.earth__legend .earth__work { font-weight: 700; }
.window--earth .status-bar__field { font-family: var(--font); font-size: var(--fs); }
.earth__legend { max-width: min(250px, calc(100% - 72px)); }

/* iconos de la barra de herramientas SIN funcionalidad: en gris y sin efecto de botón,
   para que el usuario sepa que no hacen nada. Solo el botón "Panel lateral" (data-e="side") sigue activo. */
.earth__tb button:not([data-e]) { cursor: default; pointer-events: none; }
.earth__tb button:not([data-e]) svg { filter: grayscale(1) contrast(.75); opacity: .45; }
.earth__tb button:not([data-e]):hover { box-shadow: none; }
/* barra de menú superior (Archivo, Edición, Ver...) sin función: en gris y sin efecto hover. */
.earth__menu span { color: grey; text-shadow: 1px 1px #fff; pointer-events: none; }
.earth__menu span:hover { color: grey; background: none; }
