/* ── Reset & variabelen ──────────────────────────────────────────────────── */
:root {
  --bg: #0f0f1a;
  --bg2: #1a1a2e;
  --bg3: #252540;
  --text: #e8e8f0;
  --text2: #9999bb;
  --accent: #7c6af5;
  --accommodation: #FF6B35;
  --water: #29B6F6;
  --food: #E91E63;
  --sights: #66BB6A;
  --radius: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  border-bottom: 1px solid var(--bg3);
}

#header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

#header h1 span { color: var(--accent); }

/* ── Zoekbalk ────────────────────────────────────────────────────────────── */
#search-wrap {
  position: relative;
  margin-bottom: 10px;
}

#search {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--bg3);
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
}

#search::placeholder { color: var(--text2); }
#search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-size: 1rem;
  pointer-events: none;
}

/* ── Filter-chips ────────────────────────────────────────────────────────── */
#filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
#filters::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--bg3);
  background: transparent;
  color: var(--text2);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.chip.active {
  color: #fff;
  border-color: transparent;
}
.chip[data-cat="all"].active    { background: var(--accent); }
.chip[data-cat="accommodation"].active { background: var(--accommodation); }
.chip[data-cat="water"].active  { background: var(--water); }
.chip[data-cat="food"].active   { background: var(--food); }
.chip[data-cat="sights"].active { background: var(--sights); }
/* Favorieten-chip: goudgeel */
.chip-star { border-color: #c8962a44; color: #c8962a; }
.chip-star.active { background: #c8962a; color: #fff; border-color: transparent; }
/* Notities-chip: zachtgroen */
.chip-note { border-color: #2a7a4444; color: #4caf7d; }
.chip-note.active { background: #2a7a44; color: #fff; border-color: transparent; }

/* ── ··· menu (exporteer / importeer) ────────────────────────────────────── */
#header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;   /* ankerpunt voor #more-menu */
}
#more-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  letter-spacing: .1em;
  border-radius: 8px;
}
#more-btn:active,
#more-btn[aria-expanded="true"] { background: var(--bg3); color: var(--text); }

#more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;   /* onder het menu, boven de rest */
}
#more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  overflow: hidden;
  min-width: 220px;
}
#more-menu button,
#more-menu label {
  display: block;
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--text);
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
#more-menu button:last-child,
#more-menu label:last-child { border-bottom: none; }
#more-menu button:active,
#more-menu label:active { background: var(--bg3); }

/* Toast-melding na importeren */
#import-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e3a2a;
  color: #7de8a8;
  border: 1px solid #2a7a44;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: .85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
}
#import-toast.toast-error {
  background: #3a1e1e;
  color: #e87d7d;
  border-color: #7a2a2a;
}
#import-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Statistieken-balk ───────────────────────────────────────────────────── */
/* ── Verbindingsprompt (mobiele data) ────────────────────────────────────── */

#cache-prompt {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: #2a1f0e;
  border-bottom: 1px solid #a0660044;
  font-size: .78rem;
  color: #e8c97a;
}
#cache-prompt-text {
  line-height: 1.4;
}
#cache-prompt-btns {
  display: flex;
  gap: 8px;
}
#cache-prompt-yes {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .78rem;
  cursor: pointer;
}
#cache-prompt-no {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--bg3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .78rem;
  cursor: pointer;
}

/* ── Cache-voortgangsbalk ────────────────────────────────────────────────── */

#cache-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--bg3);
  font-size: .72rem;
  color: var(--text2);
  transition: opacity .6s;
}
#cache-status.cache-complete {
  color: #4caf7d;
}
#cache-status-bar {
  flex: 1;
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}
#cache-status-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s ease;
}
#cache-status.cache-complete #cache-status-fill {
  background: #4caf7d;
}
#cache-status-text {
  white-space: nowrap;
  min-width: 170px;
  text-align: right;
}

#stats {
  padding: 6px 16px;
  font-size: .78rem;
  color: var(--text2);
}

/* ── POI-lijst ───────────────────────────────────────────────────────────── */
#list {
  padding: 8px 12px calc(var(--safe-bottom) + 80px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── POI-kaart ───────────────────────────────────────────────────────────── */
.poi-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--bg3);
  transition: transform .12s, box-shadow .12s;
  -webkit-user-select: none;
}
.poi-card:active { transform: scale(.98); }

.poi-card-inner {
  display: flex;
  gap: 10px;
  padding: 12px;
  align-items: flex-start;
}

.poi-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}

.poi-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.poi-info { flex: 1; min-width: 0; }

.poi-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cat-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  color: #fff;
}
.cat-badge.accommodation { background: var(--accommodation); }
.cat-badge.water  { background: var(--water); color: #000; }
.cat-badge.food   { background: var(--food); }
.cat-badge.sights { background: var(--sights); color: #000; }

.poi-km { font-size: .78rem; color: var(--text2); }

.stars { color: #f5c518; font-size: .8rem; letter-spacing: 1px; }

.poi-snippet {
  font-size: .82rem;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Detail-weergave ─────────────────────────────────────────────────────── */
#detail {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#detail.open { display: block; }

#detail-back {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg2);
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--bg3);
}

#detail-back button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Ster-knop rechtsboven in detail-header */
#detail-star-btn {
  margin-left: auto;   /* duwt naar rechts */
  font-size: 1.6rem;
  color: var(--text2);
  transition: color .15s, transform .1s;
}
#detail-star-btn:active { transform: scale(1.3); }
#detail-star-btn.starred { color: #f4b942; }

/* Ster-badge naast naam in lijstkaart */
.poi-star-badge {
  color: #f4b942;
  font-size: .95rem;
  margin-left: 5px;
  vertical-align: middle;
}
/* Notitie-badge naast naam in lijstkaart */
.poi-note-badge {
  font-size: .8rem;
  margin-left: 4px;
  vertical-align: middle;
  opacity: .75;
}

/* Notitiesectie in detail */
#detail-notes-section {
  margin: 20px 0 8px;
}
.detail-section-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text2);
  margin: 0 0 8px;
}
#detail-note-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
  min-height: 72px;
}
#detail-note-input:focus {
  outline: none;
  border-color: var(--accent);
}
#detail-note-input::placeholder {
  color: var(--text2);
  opacity: .55;
}

#detail-back h2 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interactieve mini-kaart in detail-venster */
#detail-mini-map {
  width: 100%;
  height: 220px;
  background: var(--bg3);
  position: relative;
  z-index: 1;           /* onder de sticky header (z-index:10) */
}
/* Compactere Leaflet-attributie in de mini-kaart */
#detail-mini-map .leaflet-control-attribution {
  font-size: 9px;
  opacity: 0.7;
  background: rgba(0,0,0,.45);
  color: #ddd;
}
#detail-mini-map .leaflet-control-attribution a { color: #adf; }
/* Zoom-knoppen iets kleiner */
#detail-mini-map .leaflet-control-zoom a {
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 16px;
}

/* Foto-carousel */
#detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
}
#detail-photos::-webkit-scrollbar { display: none; }

/* hoogte via .photo-wrap img — zie Lightbox-sectie */

/* Info-blok */
#detail-info {
  padding: 0 16px 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg3);
  margin-bottom: 12px;
}

.detail-desc {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text2);
  margin-bottom: 16px;
}

/* Reviews */
#detail-reviews-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text2);
  margin-bottom: 10px;
}

.review-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--bg3);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author { font-size: .82rem; font-weight: 600; }
.review-date { font-size: .75rem; color: var(--text2); }

.review-original {
  font-size: .83rem;
  color: var(--text2);
  margin-bottom: 6px;
  font-style: italic;
  line-height: 1.45;
}

.review-english {
  font-size: .85rem;
  line-height: 1.5;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.tag {
  font-size: .75rem;
  padding: 3px 8px;
  background: var(--bg3);
  border-radius: 6px;
  color: var(--text2);
}
/* Tag die van Google Maps afkomstig is */
.tag.tag-google {
  border: 1px solid rgba(66,133,244,.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tag.tag-google a { color: #7ab4ff; text-decoration: none; }
.tag.tag-google a:hover { text-decoration: underline; }
/* Klein G-badge rechtsboven in de tag */
.tag-google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
}

/* Open-in-Mapy-knop */
/* Twee externe knoppen naast elkaar */
#open-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.open-btn {
  display: block;
  padding: 12px 8px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.open-btn-mapy {
  background: var(--accent);
  color: #fff;
}
.open-btn-google {
  background: #4285f4;
  color: #fff;
}
.open-btns-note {
  text-align: center;
  font-size: .72rem;
  color: var(--text2);
  margin: 5px 0 0;
}

/* Geen-resultaten */
#no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
  display: none;
}
#no-results.show { display: block; }

/* ── GPS-locatie-knop ────────────────────────────────────────────────────── */
#locate-btn {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 20px);
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124, 106, 245, 0.5);
  z-index: 150;
  transition: transform .15s;
}
#locate-btn:active { transform: scale(.92); }

/* ── Weergave-tabs ───────────────────────────────────────────────────────── */
#view-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.view-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  border: 1.5px solid var(--bg3);
  background: transparent;
  color: var(--text2);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.view-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Kaartweergave ───────────────────────────────────────────────────────── */
#map-view {
  position: fixed;
  /* top wordt dynamisch ingesteld via JS (header.offsetHeight) */
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  z-index: 10;
}
#map {
  width: 100%;
  height: 100%;
}

/* Leaflet popup aanpassen aan dark theme */
.leaflet-popup-content-wrapper {
  background: var(--bg2);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.leaflet-popup-tip { background: var(--bg2); }
.leaflet-popup-content { margin: 10px 14px; }
.map-popup-name {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
}
.map-popup-meta {
  font-size: .78rem;
  color: var(--text2);
  margin-bottom: 8px;
}
.map-popup-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
}

/* Locatie-puls-animatie */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.location-pulse {
  width: 16px; height: 16px;
  background: #2979ff;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(41,121,255,.5);
}
.location-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(41,121,255,.3);
  animation: pulse 1.8s ease-out infinite;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .93);
  z-index: 500;
  align-items: center;
  justify-content: center;
  touch-action: none; /* pinch-zoom zelf afhandelen */
  overflow: hidden;
}
#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 100%;
  max-height: 100dvh;
  object-fit: contain;
  border-radius: 4px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* klik gaat door naar overlay → sluit */
}

#lightbox-close {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  right: 16px;
  background: rgba(0, 0, 0, .55);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .45);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 44px;
  height: 64px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}
#lightbox-prev { left: 6px; }
#lightbox-next { right: 6px; }
#lightbox-prev.hidden,
#lightbox-next.hidden { visibility: hidden; }

#lightbox-counter {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .82rem;
  padding: 4px 14px;
  border-radius: 20px;
  pointer-events: none;
}
#lightbox-counter.hidden { display: none; }

/* foto-thumbnails zijn klikbaar */
#detail-photos img { cursor: zoom-in; }

/* foto-wrapper voor Google-badge */
.photo-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.photo-wrap img {
  height: 130px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}
/* Verwijder oude standalone img-stijl (nu via .photo-wrap img) */

/* Google "G" badge op foto's */
.photo-wrap.google-photo::after {
  content: 'G';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #4285F4;
  font-size: 10px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  pointer-events: none;
}

/* Datum-badge op foto-thumbnail */
.photo-date {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: .6rem;
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}

/* Datum-label in lightbox (boven de teller) */
#lightbox-date {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 58px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: .8rem;
  padding: 3px 12px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}
#lightbox-date.hidden { display: none; }

/* ── Review-tabs ─────────────────────────────────────────────────────────── */
.review-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.review-tab {
  flex: 1;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--bg3);
  background: transparent;
  color: var(--text2);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.review-tab.active {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
}
.tab-count {
  font-size: .72rem;
  font-weight: 400;
  opacity: .75;
}

/* Google-attributie */
.google-attr {
  font-size: .7rem;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.google-attr-g {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4285F4;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--text2);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Offline-banner ──────────────────────────────────────────────────────── */
#offline-banner {
  display: none;
  background: #2d1b1b;
  color: #ff6b6b;
  text-align: center;
  padding: 6px;
  font-size: .8rem;
}
#offline-banner.show { display: block; }
