/* Mobile-first styling for the static companion. Tokens and tag colours are
   ported from the main app (frontend/src/index.css) so the two look alike. */
:root {
  --accent:  #8b1538;
  --bg:      #f7f5f0;
  --surface: #ffffff;
  --text:    #1a1a1a;
  --muted:   #666;
  --border:  #e0dbd4;
  --radius:  8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }

/* ── Header ──────────────────────────────────── */
.site-header {
  background: var(--accent); color: #fff;
  padding: .8rem 1.1rem;
  padding-top: calc(.8rem + env(safe-area-inset-top));
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  position: sticky; top: 0; z-index: 100;
}
.site-logo { font-weight: 700; font-size: 1.1rem; }

.status {
  font-size: .82rem; color: var(--muted);
  padding: .55rem 1.1rem;
}

/* ── Filter chips ────────────────────────────── */
.filters {
  display: flex; gap: .4rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 1.1rem .7rem;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: .8rem; padding: .35em .8em;
  border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
}
.chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.chip-wish.active { background: #b3243f; border-color: #b3243f; }

/* ── List ────────────────────────────────────── */
.list { list-style: none; padding: 0 1.1rem 2rem; }
.card {
  display: flex; gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem;
  margin-bottom: .7rem;
}
.card-thumb {
  width: 78px; height: 78px; flex-shrink: 0;
  object-fit: cover; border-radius: 6px; background: #eee;
}
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.card-top { display: flex; align-items: baseline; gap: .5rem; }
.card-name { font-weight: 600; font-size: 1rem; flex: 1; min-width: 0; }
.card-dist {
  flex-shrink: 0; font-size: .82rem; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}
.card-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.card-desc {
  font-size: .85rem; color: #444;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-addr { font-size: .8rem; color: var(--muted); }
.card-links { display: flex; gap: 1rem; margin-top: .15rem; }
.card-link { font-size: .85rem; color: var(--accent); font-weight: 500; }

.empty { list-style: none; text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ── Tag pills ───────────────────────────────── */
.tag-pill {
  display: inline-block; font-size: .72rem;
  padding: .15em .55em; border-radius: 99px;
  background: #e5e0d8; color: #444; white-space: nowrap;
}
.tag-restaurang      { background: #fde8d0; color: #7a3800; }
.tag-cafe            { background: #ece0d4; color: #4a2800; }
.tag-gardsbutik      { background: #d4edda; color: #1a5e2a; }
.tag-aktivitet       { background: #d0e8fd; color: #003880; }
.tag-utflyktmal      { background: #ccf0eb; color: #005048; }
.tag-butik           { background: #e8d0f0; color: #3a005e; }
.tag-museum          { background: #f0d0d0; color: #580000; }
.tag-naturupplevelse { background: #ccf0de; color: #004028; }
.tag-vandring        { background: #d4f0cc; color: #1a4800; }
.tag-konst           { background: #f0d0e8; color: #580038; }
.tag-evenemang       { background: #fef0cc; color: #583800; }
.tag-hotell          { background: #d8dde0; color: #283840; }
