html, body { margin: 0; height: 100%; background: #e4e7ea; font: 14px/1.4 system-ui, sans-serif; color: #1d2329; }
#map { position: absolute; inset: 0; }
#site-links { display: flex; gap: 2px; font-size: 12px; }
#site-links a { padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #1d2329; text-decoration: none; }
#site-links a:hover { background: #fff; text-decoration: underline; }
/* Sits to the right of the scale bar rather than on its own row. */
#zoom-readout { clear: none; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .75); font-size: 11px; color: #333; font-variant-numeric: tabular-nums; }
/* Top left (app.js): the logo, linking to the landing page, with the style switch beside it. */
#title-bar { display: flex; gap: 6px; }
#home-link { display: block; border-radius: 4px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); }
#home-link img { display: block; width: 29px; height: 29px; }
/* Style switch (app.js): the base map or another look of it, such as Ferðakort. */
#style-switch { display: flex; }
#style-switch button { width: auto; padding: 0 10px; font: 600 12px system-ui, sans-serif; color: #1d2329; }
#style-switch button + button { border-top: 0; border-left: 1px solid #ddd; }
#style-switch button.active { background: #1d2329; color: #fff; }
/* "Under construction" notice (index.html), shown once per browser. */
#notice { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 20px 8px; border: 0; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); color: #1d2329; }
#notice:focus { outline: none; }
#notice::backdrop { background: rgba(20, 25, 30, .45); }
#notice p { margin: 0 0 12px; padding-right: 20px; }
#notice a { color: #1a5fb4; }
#notice .notice-close { position: absolute; top: 6px; right: 8px; padding: 2px 8px; border: 0; background: none; font: 22px/1 system-ui, sans-serif; color: #4b5560; cursor: pointer; }
#notice .notice-close:hover { color: #1d2329; }
/* GPX overlay (gpx.js): a button under zoom and locate, with the list of loaded files to its left. */
#gpx-control { position: relative; }
#gpx-control .gpx-toggle { background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='15' r='2'/%3E%3Ccircle cx='15' cy='5' r='2'/%3E%3Cpath d='M6.5 13.5 C10 11 6 8 9.5 6.5 S12 6 13 5.5'/%3E%3C/svg%3E"); }
#gpx-control.gpx-active .gpx-toggle { background-color: #ffe3f2; }
#gpx-control .gpx-panel { position: absolute; top: 0; right: calc(100% + 8px); width: 250px; padding: 8px 10px; border-radius: 4px;
  background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); font-size: 13px; }
#gpx-control .gpx-panel[hidden] { display: none; }
#gpx-control .gpx-hint { margin: 0 0 6px; color: #4b5560; font-size: 12px; }
#gpx-control .gpx-list { margin: 0; padding: 0; list-style: none; }
#gpx-control .gpx-list li { display: flex; align-items: center; border-top: 1px solid #e4e7ea; }
#gpx-control .gpx-panel button { width: auto; height: auto; border: 0; font: inherit; cursor: pointer; }
#gpx-control .gpx-name { flex: 1; min-width: 0; padding: 5px 0; background: none; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gpx-control .gpx-name:hover { text-decoration: underline; }
#gpx-control .gpx-swatch { display: inline-block; width: 12px; height: 4px; margin: 0 6px 3px 0; border-radius: 2px; vertical-align: middle; }
#gpx-control .gpx-km { color: #4b5560; font-variant-numeric: tabular-nums; }
#gpx-control .gpx-remove { padding: 0 6px; background: none; font-size: 18px !important; line-height: 1; color: #4b5560; }
#gpx-control .gpx-remove:hover { color: #c4001d; }
#gpx-control .gpx-status { margin: 4px 0 0; color: #c4001d; white-space: pre-line; }
#gpx-control .gpx-status:empty { display: none; }
#gpx-control .gpx-actions { display: flex; gap: 6px; margin-top: 6px; }
#gpx-control .gpx-actions button { padding: 4px 10px; border: 1px solid #b8c0c8; border-radius: 4px; background: #fff; }
#gpx-control .gpx-actions button:hover { background: #f2f4f6; }
#gpx-drop { position: fixed; inset: 8px; z-index: 10; display: flex; align-items: center; justify-content: center; pointer-events: none;
  border: 3px dashed #1d2329; border-radius: 10px; background: rgba(255, 255, 255, .55); font: 600 20px system-ui, sans-serif; color: #1d2329; }
#gpx-drop[hidden] { display: none; }
