/* /flytta och /hitta-din-plats (flytta.html, hitta-din-plats.html). Egna fl-klasser, sidans tokens; accenten = --a-4 (SKAL_FALLOR #1166) */
.sida-flytta {
  --fl-kort: var(--b5-yta-kort); --fl-kort-2: var(--b5-yta-2); --fl-rim: rgba(var(--b5-slo), .08); --fl-rim-2: rgba(var(--b5-slo), .13);
  --fl-t1: var(--fg-1); --fl-t2: var(--fg-4); --fl-t3: var(--fg-6); --fl-acc-t: rgba(93, 202, 165, .12);
}
[data-theme="light"] .sida-flytta { --fl-acc-t: #e2f3ec; }
.fl { max-width: min(100%, 1200px); margin: 0 auto; padding: 0 0 96px; color: var(--fl-t1); }   /* samma bredd som sidornas .ny-panel, smulorna i egen panel ovanför (Malte 2026-12-02) */
.fl h1 { font: var(--h1); letter-spacing: -.015em; margin: 0; }
.fl h2 { font: var(--h2); letter-spacing: -.01em; margin: 0; }
.fl h3 { font: 600 16px/1.3 var(--font-ui); margin: 0; }
.fl p { margin: 0; }
.fl-meta { font: var(--type-meta); color: var(--fl-t3); }
.fl-kicker { font: var(--type-kicker); letter-spacing: var(--kicker-tracking); text-transform: uppercase; color: var(--fl-t3); }
.fl-lank { color: var(--lank); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.fl-lank:hover { text-decoration: underline; text-underline-offset: 2px; }
.fl .ny-i, .fl [data-lucide] { width: 16px; height: 16px; flex: none; }
.fl-kort { background: var(--fl-kort); box-shadow: inset 0 0 0 1px var(--fl-rim); border-radius: 20px; padding: 24px; }
[data-theme="light"] .fl-kort { box-shadow: inset 0 0 0 1px var(--fl-rim), 0 1px 2px rgba(40, 52, 40, .06), 0 12px 30px -14px rgba(40, 52, 40, .18); }
a.fl-kort { color: inherit; text-decoration: none; transition: transform .15s ease-out; }
a.fl-kort:hover { transform: translateY(-2px); }
.fl-ik { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--fl-acc-t); color: var(--lank); flex: none; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-chip { padding: 8px 12px; border-radius: 999px; font: var(--type-chip); box-shadow: inset 0 0 0 1px var(--fl-rim-2); color: var(--fl-t2); cursor: pointer; background: none; border: 0; }
.fl-chip:hover { color: var(--fl-t1); }
.fl-chip[aria-pressed="true"] { background: var(--fl-acc-t); color: var(--lank); box-shadow: none; }
.fl-chip:focus-visible, .fl-seg button:focus-visible, .fl-stega button:focus-visible { outline: 2px solid var(--a-4); outline-offset: 2px; }

/* ---- navet ---- */
.fl-hjalte { padding: 40px 0 48px; max-width: 760px; }
.fl-hjalte .fl-lead { font-size: 18px; line-height: 1.5; color: var(--fl-t2); max-width: 52ch; margin: 16px 0 28px; }
.fl-knappar { display: flex; gap: 12px; flex-wrap: wrap; }
.fl-ai { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-bottom: 16px; padding: 28px; }
.fl-ai__hd { display: flex; flex-direction: column; gap: 10px; }
.fl-ai__hd p { font-size: 14px; color: var(--fl-t3); }
.fl-ruta { position: relative; border-radius: 16px; background: var(--fl-kort-2); box-shadow: inset 0 0 0 1px var(--fl-rim); }
.fl-ruta:focus-within { box-shadow: inset 0 0 0 1.5px var(--a-4); }
.fl-ruta textarea { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 104px; padding: 16px 64px 16px 16px; font: 400 15px/1.5 var(--font-ui); color: var(--fl-t1); white-space: pre-wrap; }
.fl-ruta textarea::placeholder { color: var(--fl-t3); }
.fl-skicka { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--a-4); color: var(--on-accent); cursor: pointer; }
.fl-exempel { margin-top: 12px; }
.fl-exempel .fl-chip { font-weight: 400; color: var(--fl-t3); }
.fl-tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fl-ingang { display: flex; flex-direction: column; gap: 14px; }
.fl-ingang p { font-size: 14px; color: var(--fl-t3); flex: 1; }
.fl-ingang .fl-fot { display: flex; justify-content: space-between; align-items: center; }
.fl-sekt { padding-top: 72px; }
.fl-sekt-hd { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.fl-sekt-hd h2 { margin-top: 10px; }
.fl-forslag { display: flex; flex-direction: column; gap: 12px; }
.fl-forslag ol { list-style: none; padding: 0; margin: 0; }
.fl-forslag li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--fl-rim); font-size: 14px; color: inherit; text-decoration: none; }
.fl-forslag li:last-child a { box-shadow: none; }
.fl-forslag li a:hover span:first-of-type { color: var(--lank); }
.fl-forslag em { font-style: normal; color: var(--fl-t3); font-size: 12px; width: 14px; }
.fl-forslag b { margin-left: auto; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--fl-t2); }
.fl-tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fl-tips .fl-kort { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fl-tips p { font-size: 13px; color: var(--fl-t3); }

/* ---- Hitta din plats: steg 1 formuläret, steg 2 lista + karta ---- */
.fl-hitta { max-width: none; padding: 0 16px 0; }
.fl-intro { max-width: 720px; margin: 0 auto; padding: 32px 0 16px; }
.fl-intro .fl-lead { color: var(--fl-t2); margin-top: 8px; }
.fl-sammanfatt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 8px 0; }
.fl-sammanfatt .fl-chip { cursor: default; }
.fl-sammanfatt .ny-btn { margin-left: auto; }
.fl-verktyg { display: grid; gap: 16px; padding-top: 16px; align-items: start; }
.fl-filter { padding: 4px 32px 0; display: flex; flex-direction: column; }
.fl-framsteg { height: 4px; border-radius: 4px; background: var(--fl-rim-2); margin-top: 10px; overflow: hidden; }
.fl-framsteg i { display: block; height: 100%; width: var(--p, 0%); background: var(--lank); transition: width .2s; }
.fl-sit-hd { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; }
.fl-del { box-shadow: inset 0 -1px 0 var(--fl-rim); }
.fl-del summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 16px 0; }
.fl-del summary::-webkit-details-marker { display: none; }
.fl-del summary .fl-ik { width: 30px; height: 30px; border-radius: 9px; }
.fl-del-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-del-t b { font-weight: 600; font-size: 15px; }
.fl-del-t small { font-size: 12.5px; color: var(--fl-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-del .fl-pil { color: var(--fl-t3); transition: transform .15s; }
.fl-del[open] .fl-pil { transform: rotate(90deg); }
.fl-del-kropp { display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px 42px; }
.fl-ai-mini { margin-top: 16px; }
.fl-ai-mini summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; }
.fl-ai-mini summary::-webkit-details-marker { display: none; }
.fl-ai-mini summary .fl-ik { width: 28px; height: 28px; border-radius: 8px; }
.fl-ai-mini summary .fl-meta { margin-left: auto; }
.fl-ai-mini .fl-ruta { margin-top: 12px; }
.fl-varning { margin-top: 8px; }
.fl-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--fl-kort-2); box-shadow: inset 0 0 0 1px var(--fl-rim); }
.fl-seg button { all: unset; text-align: center; padding: 9px 0; border-radius: 9px; font: 500 13px/1 var(--font-ui); color: var(--fl-t3); cursor: pointer; }
.fl-seg button[aria-pressed="true"] { background: var(--fl-kort); color: var(--fl-t1); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--fl-rim-2); }
.fl-stega { display: grid; grid-template-columns: 1fr 32px 28px 32px; align-items: center; gap: 4px; font-size: 14px; }
.fl-stega button { all: unset; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--fl-rim-2); cursor: pointer; color: var(--fl-t2); }
.fl-stega b { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-falt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--fl-kort-2); box-shadow: inset 0 0 0 1px var(--fl-rim); font-size: 14px; color: var(--fl-t3); }
.fl-falt:focus-within { box-shadow: inset 0 0 0 1.5px var(--a-4); }
.fl-falt input { all: unset; flex: 1; color: var(--fl-t1); }
.fl-skjut label { display: flex; justify-content: space-between; font-size: 13px; color: var(--fl-t2); margin-bottom: 8px; }
.fl-skjut output { font-weight: 500; color: var(--fl-t1); font-variant-numeric: tabular-nums; }
.fl input[type="range"] { width: 100%; accent-color: var(--a-4); margin: 0; }
.fl-vikt { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; font-size: 13px; color: var(--fl-t2); }
.fl-info { font-size: 13px; color: var(--fl-t2); padding: 12px 14px; border-radius: 12px; background: var(--fl-kort-2); }
.fl-lage { display: flex; flex-direction: column; gap: 12px; }
.fl-kor { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -32px; padding: 16px 32px; border-radius: 0 0 20px 20px;
  background: rgba(var(--glas-rgb), .85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 var(--fl-rim); }
.fl-kor .fl-meta b { color: var(--fl-t1); font-weight: 600; }
.fl-resultat { display: flex; flex-direction: column; gap: 12px; }
.fl-res-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; }
.fl-res-hd .fl-seg { width: 200px; }
.fl-lista { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fl-traff { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; padding: 18px 20px; cursor: pointer; }
.fl-traff.is-vald { box-shadow: inset 0 0 0 1.5px var(--lank); }
.fl-nr { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--fl-kort-2); font: 600 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fl-traff.is-vald .fl-nr { background: var(--a-4); color: var(--on-accent); }
.fl-traff h3 span { font-weight: 400; color: var(--fl-t3); }
.fl-varfor { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--fl-t2); }
.fl-traff .fl-lank { font-size: 13px; margin-top: 10px; }
.fl-poang { text-align: right; }
.fl-poang b { display: block; font: 600 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fl-poang small { font-size: 12px; color: var(--fl-t3); }
.fl-vagt { font-size: 12px; color: var(--fl-t3); background: var(--fl-kort-2); padding: 10px 14px; border-radius: 12px; }
.fl-karta { position: sticky; top: 16px; height: calc(100vh - 32px); padding: 0; overflow: hidden; }
.fl-karta__duk { position: absolute; inset: 0; }
.fl-kartlager { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.fl-kartlager > * { pointer-events: auto; }
.fl-kartlager .fl-chip, .fl-glas { background: rgba(var(--glas-rgb), .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: var(--fl-t1); }
.fl-kartlager .fl-chip[aria-pressed="true"] { background: rgba(var(--glas-rgb), .92); color: var(--lank); box-shadow: inset 0 0 0 1.5px var(--lank); }
.fl-prick { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0072b2; margin-right: 6px; }
.fl-oppna { position: absolute; right: 16px; bottom: 32px; }
.fl-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fl-kort); color: var(--fl-t1); font: 600 12px/1 var(--font-ui);
  box-shadow: inset 0 0 0 1.5px var(--lank), 0 4px 12px -4px rgba(0, 0, 0, .5); cursor: pointer; border: 0; padding: 0; }
.fl-pin.is-vald { background: var(--a-4); color: var(--on-accent); transform: scale(1.15); }

/* stegen: fyll = bara formuläret, se = lista + karta, lada = formuläret som låda över se */
.fl-hitta[data-steg="fyll"] :is(.fl-resultat, .fl-karta, .fl-sammanfatt),
.fl-hitta[data-steg="se"] .fl-intro, .fl-hitta[data-steg="se"]:not(.is-lada) .fl-filter { display: none; }
.fl-hitta[data-steg="fyll"] .fl-verktyg { grid-template-columns: minmax(0, 720px); justify-content: center; }
.fl-hitta[data-steg="se"] .fl-verktyg { grid-template-columns: minmax(340px, 440px) 1fr; }
.fl-hitta[data-steg="se"] .fl-resultat { max-height: calc(100vh - 32px); overflow: auto; position: sticky; top: 16px; padding: 0 4px 24px; }
.fl-hitta.is-lada .fl-filter { position: fixed; left: 16px; top: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); overflow: auto; z-index: 40; padding: 4px 24px 0;
  box-shadow: inset 0 0 0 1px var(--fl-rim-2), 0 24px 60px -20px rgba(0, 0, 0, .6); }
.fl-hitta.is-lada .fl-kor { margin: auto -24px 0; padding: 16px 24px; }
.fl-hitta.is-lada::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 39; }

@media (max-width: 900px) {
  .fl-ai, .fl-hitta[data-steg="se"] .fl-verktyg { grid-template-columns: 1fr; }
  .fl-tre { grid-template-columns: 1fr; } .fl-tips { grid-template-columns: 1fr 1fr; }
  .fl-hitta[data-steg="se"] .fl-resultat { position: static; max-height: none; order: 2; }
  .fl-karta { position: relative; top: 0; height: 60vh; }
  .fl-filter { padding: 4px 20px 0; } .fl-kor { margin: 0 -20px; padding: 14px 20px; }
  .fl-del-kropp { padding-left: 0; }
}
