/* ============ FriCamp Sverige ============
   Mobilanpassad först. Palett: gran, mossa, björkljus, lägereld. */

:root {
  --spruce: #1e4033;
  --spruce-dark: #142b23;
  --moss: #3f7a5c;
  --moss-soft: #e3efe7;
  --bg: #f4f6f2;
  --card: #ffffff;
  --ink: #1c2420;
  --muted: #66716a;
  --line: #dde4dd;
  --fire: #e4622f;
  --fire-dark: #c74f22;
  --lake: #2b6e8f;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20,40,30,.08), 0 4px 14px rgba(20,40,30,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 68px; /* plats för bottennav på mobil */
}
h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.2; color: var(--spruce); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
a { color: var(--lake); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- Toppmeny ---------- */
.topbar {
  background: var(--spruce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}
.logo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.logo span { color: #ffd9a8; }
.logo:hover { text-decoration: none; }
.topnav { display: none; gap: 18px; align-items: center; }
.topnav a { color: #e8efe9; font-weight: 500; font-size: .95rem; }
.topnav a.cta {
  background: var(--fire); color: #fff; padding: 7px 14px; border-radius: 999px;
}
.topnav a.cta:hover { background: var(--fire-dark); text-decoration: none; }
.pill {
  background: var(--fire); color: #fff; border-radius: 999px;
  font-size: .72rem; padding: 1px 7px; vertical-align: top;
}

/* ---------- Bottennav (mobil) ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center;
  font-size: .68rem; color: var(--muted); gap: 1px; position: relative;
  min-width: 56px;
}
.bottomnav a span { font-size: 1.25rem; line-height: 1; }
.bottomnav a:hover { text-decoration: none; color: var(--spruce); }
.bottomnav .bn-add span {
  background: var(--fire); color: #fff; border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  margin-top: -14px; box-shadow: var(--shadow); font-size: 1.4rem;
}
.bottomnav .dot {
  position: absolute; top: 0; right: 10px; width: 8px; height: 8px;
  background: var(--fire); border-radius: 50%;
}

/* ---------- Flash ---------- */
.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.flash-ok   { background: var(--moss-soft); color: #1d5a3a; }
.flash-fel  { background: #fde8e2; color: #a3341a; }
.flash-info { background: #e2eef5; color: #1f5876; }

/* ---------- Kort ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 14px; }
a.card-link { color: inherit; display: block; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s; }
.card-img {
  height: 170px; background: var(--moss-soft) center/cover no-repeat;
  display: grid; place-items: center; font-size: 2.4rem; position: relative;
}
.card h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-block; font-size: .74rem; font-weight: 600;
  border-radius: 999px; padding: 3px 10px; letter-spacing: .02em;
}
.badge-free  { background: var(--moss-soft); color: #1d5a3a; }
.badge-stall { background: #e2eef5; color: #1f5876; }
.badge-tomt  { background: #fdeede; color: #9c5417; }
.badge-status { background: #eee; color: #555; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0f4ef; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; font-size: .85rem; margin: 2px 3px 2px 0;
}
.chip-off { opacity: .35; text-decoration: line-through; }
.price { font-weight: 700; color: var(--spruce); }
.stars { color: #e8a13c; letter-spacing: 1px; }

/* ---------- Formulär ---------- */
form.stack { display: grid; gap: 14px; }
label.field { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], select, textarea {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--moss); outline: none; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label {
  display: flex; align-items: center; gap: 8px; background: #f0f4ef;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px;
  cursor: pointer; font-size: .92rem;
}
.check-grid label:has(input:checked) { border-color: var(--moss); background: var(--moss-soft); }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--fire); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 22px; text-align: center;
}
.btn:hover { background: var(--fire-dark); text-decoration: none; }
.btn-secondary { background: var(--spruce); }
.btn-secondary:hover { background: #16332a; }
.btn-ghost { background: transparent; color: var(--spruce); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #eef2ed; }
.btn-small { padding: 7px 14px; font-size: .88rem; }
.btn-danger { background: #b03a20; }

/* ---------- Hjälte (startsida) ---------- */
.hero {
  background: linear-gradient(160deg, #16342a 0%, var(--spruce) 45%, #2c5a45 100%);
  color: #fff; border-radius: var(--radius); padding: 30px 22px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 3; }
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Stjärnor som blinkar */
.hero .star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fdf6e3; opacity: .8; animation: twinkle 3.2s ease-in-out infinite;
}
.hero .s1 { top: 12%; left: 55%; }
.hero .s2 { top: 22%; left: 66%; animation-delay: .7s; }
.hero .s3 { top:  9%; left: 76%; animation-delay: 1.4s; width: 2px; height: 2px; }
.hero .s4 { top: 30%; left: 82%; animation-delay: 2.1s; }
.hero .s5 { top: 15%; left: 90%; animation-delay: .3s; width: 2px; height: 2px; }
.hero .s6 { top: 38%; left: 71%; animation-delay: 1.8s; width: 2px; height: 2px; }
.hero .s7 { top:  7%; left: 63%; animation-delay: 2.6s; }
.hero .s8 { top: 26%; left: 95%; animation-delay: 1.1s; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Stjärnfall då och då */
.hero .shooting-star {
  position: absolute; top: 10%; left: 95%; width: 70px; height: 1.5px;
  background: linear-gradient(90deg, #fff, transparent); border-radius: 2px;
  opacity: 0; transform: rotate(-18deg);
  animation: shoot 9s ease-in 3s infinite;
}
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-18deg) translateX(0); }
  3%   { opacity: .9; }
  8%   { opacity: 0; transform: rotate(-18deg) translateX(-220px); }
  100% { opacity: 0; transform: rotate(-18deg) translateX(-220px); }
}

/* Månen */
.hero-moon { position: absolute; top: 10px; right: 26px; width: 44px; height: 44px; }

/* Dimma som driver förbi */
.hero .mist {
  position: absolute; left: -40%; width: 180%; height: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220,235,225,.14), transparent 70%);
}
.hero .mist1 { bottom: 26px; animation: drift 26s linear infinite; }
.hero .mist2 { bottom: 8px; height: 26px; animation: drift 34s linear infinite reverse; opacity: .8; }
@keyframes drift {
  from { transform: translateX(-6%); }
  50%  { transform: translateX(6%); }
  to   { transform: translateX(-6%); }
}

/* Trädsiluetter, tält och eld längs nederkanten */
.hero-trees { position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; opacity: .9; }
.hero .tent-glow { animation: glow 2.8s ease-in-out infinite; transform-origin: 470px 100px; }
@keyframes glow { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.hero .flame { transform-origin: 0 12px; }
.hero .f-a { animation: flicker 1.1s ease-in-out infinite; }
.hero .f-b { animation: flicker 0.8s ease-in-out infinite reverse; }
@keyframes flicker {
  0%,100% { transform: scale(1) skewX(0deg); }
  30%     { transform: scale(1.08, 1.15) skewX(-3deg); }
  60%     { transform: scale(0.94, 0.9) skewX(3deg); }
}
.hero h1 { color: #fff; font-size: 1.7rem; margin: 0 0 8px; }
.hero p { color: #d6e4da; margin: 0 0 18px; max-width: 46ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Karta ---------- */
#map { height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
#map.tall { height: calc(100vh - 220px); min-height: 420px; }
#pickmap { height: 300px; border-radius: 10px; border: 1.5px solid var(--line); }
.leaflet-popup-content { font-family: 'Public Sans', sans-serif; }

/* ---------- Filterrad ---------- */
.filterbar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0;
}
.filterbar select { width: auto; padding: 8px 10px; }

/* ---------- Detaljsida ---------- */
/* ---------- Bildkarusell ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; border-radius: 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-slide img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  background: var(--moss-soft);
}
.carousel-btn {
  position: absolute; top: 124px; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--spruce);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-count {
  position: absolute; right: 10px; top: 10px;
  background: rgba(20,43,35,.72); color: #fff;
  font-size: .78rem; padding: 3px 10px; border-radius: 999px;
}
.carousel-thumbs {
  display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px;
}
.carousel-thumbs img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: .55; flex-shrink: 0; border: 2px solid transparent;
  transition: opacity .15s;
}
.carousel-thumbs img.active { opacity: 1; border-color: var(--moss); }
.carousel-thumbs img:hover { opacity: 1; }
.split { display: grid; gap: 18px; grid-template-columns: 1fr; }
.host-box { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: var(--moss-soft); display: grid; place-items: center; font-size: 1.4rem;
  flex-shrink: 0;
}
.avatar-lg { width: 84px; height: 84px; font-size: 2.1rem; }

/* ---------- Meddelanden ---------- */
.msg-list a { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); color: inherit; }
.msg-list a:hover { background: #f7faf6; text-decoration: none; }
.msg-list .unread { font-weight: 700; }
.chat { display: grid; gap: 8px; padding: 12px 0; }
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: .95rem;
  background: #fff; box-shadow: var(--shadow); justify-self: start;
  border-bottom-left-radius: 4px;
}
.bubble.mine {
  background: var(--moss-soft); justify-self: end;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 4px;
}
.bubble .muted { display: block; font-size: .72rem; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; position: sticky; bottom: 74px; }
.chat-form textarea { min-height: 48px; }

/* ---------- Recensioner ---------- */
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review:first-child { border-top: 0; }

/* ---------- Tabeller / rader ---------- */
.rowline {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}

/* ---------- Sidfot ---------- */
.footer { background: var(--spruce); color: #cfdcd3; margin-top: 40px; }
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 26px 16px;
  display: grid; gap: 16px;
}
.footer strong { color: #fff; font-family: 'Sora', sans-serif; }
.footer a { color: #ffd9a8; display: block; padding: 3px 0; }
.footer .muted { color: #9db5a6; }

/* ---------- Favoritknapp ---------- */
.fav-btn {
  position: absolute; top: 10px; right: 10px; background: #fff; border: 0;
  border-radius: 50%; width: 38px; height: 38px; font-size: 1.15rem;
  cursor: pointer; box-shadow: var(--shadow);
}
.fav-btn.active { color: var(--fire); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .carousel-slide img { height: 420px; }
  .carousel-btn { top: 194px; }
  .footer-inner { grid-template-columns: 1.5fr 1fr; }
  .hero { padding: 46px 40px; }
  .hero h1 { font-size: 2.2rem; }
  #map { height: 420px; }
  .chat-form { bottom: 12px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Radera-knapp på bilder i redigeringsläget */
.photo-del {
  position: absolute; top: 6px; right: 6px;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.94); font-size: 1rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 1px 5px rgba(0,0,0,.25);
}
.photo-del:hover { background: #ffe9e4; }
.file-count { font-size: .85rem; color: var(--moss); margin-top: 4px; display: block; }

/* ---------- Adminpanel ---------- */
.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--line); }
.admin-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.btn-small { padding: 4px 10px; font-size: .82rem; }

/* Stjärnväljare (personomdömen) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 1.9rem; color: #cfd8cf; cursor: pointer; transition: color .1s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f0a500; }

/* ---------- Mina platser: radlayout med tumnagel ---------- */
.stack > * + * { margin-top: 10px; }
.mylisting { display: flex; gap: 14px; align-items: center; }
.mylisting-thumb {
  flex: 0 0 76px; height: 64px; border-radius: 10px;
  background: var(--moss-soft) center/cover no-repeat;
  display: grid; place-items: center; font-size: 1.5rem; text-decoration: none;
}
.mylisting-info { flex: 1; min-width: 0; }
.mylisting-title { display: block; margin: 3px 0 2px; }
.mylisting-title a { overflow-wrap: anywhere; }
.mylisting-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: .88rem; }
.mylisting-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) {
  .mylisting { flex-wrap: wrap; }
  .mylisting-info { flex-basis: calc(100% - 92px); }
  .mylisting-actions { flex-direction: row; width: 100%; }
  .mylisting-actions .btn { flex: 1; text-align: center; }
}

/* Logotyp i sidhuvudet */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-img {
  height: 38px; width: 38px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

/* ---------- Delningsknappar ---------- */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.share-label { font-size: .85rem; margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; border: none;
  color: #fff; font-size: .85rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: transform .1s, box-shadow .12s, filter .12s;
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn:hover {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.18); filter: brightness(1.05);
}
.share-btn:active { transform: translateY(0); }
.share-native { background: var(--fire, #e4622f); }
.share-fb  { background: #1877f2; }
.share-wa  { background: #23b558; }
.share-ig  { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.share-sms { background: #2b6e8f; }
.share-copy { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.share-copy:hover { border-color: var(--moss); background: var(--moss-soft); filter: none; }
@media (max-width: 560px) {
  .share-label { flex-basis: 100%; }
  .share-btn { padding: 7px 11px; font-size: .8rem; }
}

/* ---------- Adressökning i platsformuläret ---------- */
.addr-search { display: flex; gap: 10px; margin: 6px 0 4px; }
.addr-search input { flex: 1; }
.addr-results { display: grid; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin: 10px 0 12px; }
.addr-hit {
  text-align: left; padding: 9px 12px; background: #fff; border: none;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: .9rem;
}
.addr-hit:last-child { border-bottom: none; }
.addr-hit:hover { background: var(--moss-soft); }

/* ---------- Sökrutan på Utforska ---------- */
.searchbox {
  flex: 1 1 100%; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 6px 5px 14px; transition: border-color .12s, box-shadow .12s;
}
.searchbox:focus-within {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(63,122,92,.15);
}
.searchbox-icon { opacity: .55; font-size: .95rem; }
.searchbox input[type=search] {
  flex: 1; border: none; outline: none; background: none;
  font: inherit; padding: 7px 4px; min-width: 0;
}
.searchbox input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.searchbox .btn { border-radius: 999px; flex-shrink: 0; }
@media (min-width: 700px) { .searchbox { flex: 1 1 340px; max-width: 460px; } }

/* ---------- "Ta med dig"-lista (anteckningsblock) ---------- */
.packlist {
  position: relative; margin-top: 16px;
  background: #f6ecd9; border-radius: 10px;
  padding: 26px 20px 18px;
  font-family: 'Courier New', ui-monospace, monospace;
  color: #4a3b28;
  box-shadow: 0 2px 8px rgba(74,59,40,.12);
}
.packlist-tape {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: 88px; height: 20px; background: #e8cf9e; opacity: .85; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.packlist-title {
  margin: 0 0 12px; font-size: .85rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; color: #a3542e;
  font-family: inherit;
}
.packlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; cursor: pointer; font-size: .92rem;
}
.packlist-item input {
  appearance: none; width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #4a3b28; border-radius: 4px; background: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.packlist-item input:checked { background: #d96f2e; border-color: #d96f2e; }
.packlist-item input:checked::after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 700; }
.packlist-item input:checked + span { opacity: .65; }
.packlist-divider { border-top: 1.5px dashed #c7b394; margin: 12px 0 10px; }
.packlist-ps { margin: 0; font-size: .84rem; color: #7a684d; }

/* Utfällbara delningsknappar */
.share-more { display: contents; }
.share-more[hidden] { display: none; }
.share-native.is-open { filter: brightness(.92); }

/* ---------- "Så funkar det": animerade ikoner ---------- */
.howto-card .card-body { text-align: left; }
.howto-icon { width: 60px; height: 60px; margin-bottom: 6px; }
.howto-icon svg { width: 100%; height: 100%; overflow: visible; }

/* Tält – ram ritas + eldflugor blinkar */
.howto-tent .ht-ground { fill: none; stroke: var(--moss); stroke-width: 2.5; stroke-linecap: round; opacity: .4; }
.howto-tent .ht-tent { fill: var(--moss-soft); stroke: var(--spruce); stroke-width: 2.5; stroke-linejoin: round;
  stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.4s ease forwards; }
.howto-tent .ht-flap { fill: var(--fire, #e4622f); opacity: .85; stroke: var(--spruce); stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw 1.2s ease .5s forwards; }
.howto-tent .ht-firefly { fill: #f0a500; opacity: 0; }
.howto-tent .f1 { animation: firefly 2.6s ease-in-out infinite .2s; }
.howto-tent .f2 { animation: firefly 2.6s ease-in-out infinite 1.1s; }
.howto-tent .f3 { animation: firefly 2.6s ease-in-out infinite 1.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes firefly { 0%,100% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Stuga – rök som stiger ur skorstenen */
.howto-home .hh-house { fill: var(--moss-soft); stroke: var(--spruce); stroke-width: 2.5; stroke-linejoin: round; }
.howto-home .hh-roof { fill: none; stroke: var(--spruce); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.howto-home .hh-door { fill: var(--fire, #e4622f); opacity: .85; }
.howto-home .hh-smoke { fill: #9bb3a5; opacity: 0; }
.howto-home .s1 { animation: smoke 3s ease-out infinite; }
.howto-home .s2 { animation: smoke 3s ease-out infinite 1s; }
.howto-home .s3 { animation: smoke 3s ease-out infinite 2s; }
@keyframes smoke {
  0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
  30%  { opacity: .6; }
  100% { opacity: 0; transform: translate(4px, -18px) scale(1.4); }
}

/* Stjärnor – pulserar i tur och ordning som ett betyg som fylls */
.howto-star .hs-star { fill: #f0a500; opacity: .25; transform-origin: 32px 32px; }
.howto-star .s-a { animation: pop 2.4s ease-in-out infinite .0s; }
.howto-star .s-b { animation: pop 2.4s ease-in-out infinite .3s; }
.howto-star .s-c { animation: pop 2.4s ease-in-out infinite .6s; }
@keyframes pop {
  0%, 60%, 100% { opacity: .25; transform: scale(1); }
  20%, 40%      { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .howto-icon * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}

/* ---------- Cookie-info ---------- */
.cookie-note {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1100;
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--spruce); color: #fff;
  padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  animation: cookie-in .4s ease;
}
.cookie-note p { margin: 0; font-size: .86rem; line-height: 1.4; }
.cookie-note a { color: #ffd9a8; text-decoration: underline; }
.cookie-note .btn { flex-shrink: 0; }
@keyframes cookie-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* Lyft ovanför mobilens bottennav så den inte krockar */
@media (max-width: 720px) { .cookie-note { bottom: 74px; } }

/* ---------- Tomt läge (inga träffar) ---------- */
.empty-state {
  text-align: center; padding: 40px 20px; max-width: 460px; margin: 8px auto;
}
.empty-emoji { font-size: 3rem; margin-bottom: 6px; opacity: .9; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state .actions { margin-top: 16px; }

/* ---------- Adminpanel: besöksgraf ---------- */
.visit-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 160px; padding-top: 10px;
}
.visit-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.visit-bar-fill {
  width: 100%; max-width: 34px; min-height: 3px;
  background: linear-gradient(180deg, var(--moss) 0%, var(--spruce) 100%);
  border-radius: 5px 5px 0 0; position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  transition: filter .12s;
}
.visit-bar:hover .visit-bar-fill { filter: brightness(1.12); }
.visit-bar-num { font-size: .68rem; color: #fff; padding-top: 2px; font-weight: 600; }
.visit-bar-label { font-size: .7rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.top-places { margin: 0; padding-left: 20px; }
.top-places li { padding: 3px 0; }

/* Vindskydd-badge */
.badge-vind { background: #e7f0e9; color: #2f6b4f; }
