/* Magasinet Self Storage — sidans stil: förslag 1 (Linje) + storleksguiden och pristabellen ur förslag 3. */
/* ───────── Förslag 1 · Linje: Apple-ljust, en accent, huset som parametrisk 3D-linjeritning ───────── */
  .hero { position: relative; padding-top: clamp(36px, 5vw, 64px); background:
    radial-gradient(60% 50% at 50% 78%, rgb(24 121 58 / 0.07), transparent 70%), var(--bg); overflow: hidden; }
  .hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
  .hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
  .hero-copy .eyebrow .goldline { width: 28px; }
  .hero-title { margin-top: 14px; }
  .hero-title em { font-style: normal; color: var(--green); }
  .hero-lead { margin: 16px auto 0; max-width: 40ch; }
  .hero-cta { justify-content: center; margin-top: 26px; --gap: 14px; }
  .hero-cta .status { margin-left: 4px; }

  .scene { position: relative; height: clamp(380px, 48vw, 640px); margin-top: clamp(-8px, -1vw, 0px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .hero .hero-toggle { bottom: 60px; }
  .scene.dragging { cursor: grabbing; }
  .scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .scene > svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .l-ground { stroke: rgb(29 29 31 / 0.22); stroke-width: 1.1; }
  .l-gold { stroke: var(--gold); stroke-width: 2; }
  .l-walls, .l-roof, .l-trailer { stroke: var(--fg); stroke-width: 1.6; }
  .l-faint { stroke: rgb(29 29 31 / 0.3); stroke-width: 1.1; }
  .l-inside { stroke: rgb(29 29 31 / 0.62); stroke-width: 1.25; }
  .l-boxes { stroke: #8a6a1c; stroke-width: 1.3; }
  .l-person { stroke: var(--fg-3); stroke-width: 1.4; }
  .l-accent { stroke: var(--green); stroke-width: 2; }
  .far { opacity: 0.5; }

  .callout { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; pointer-events: none;
    padding: 7px 12px 7px 9px; border-radius: var(--r-pill); background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line), 0 8px 24px rgb(0 0 0 / 0.08);
    -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
    font-size: 0.8125rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 600ms var(--ease); will-change: transform; }
  .callout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint-2); }
  .callout.on { opacity: 1; }
  .callout b { font-weight: 600; color: var(--fg-3); }
  @media (max-width: 720px) { .callout[data-minor] { display: none; } }
  .scene-hint { position: absolute; left: var(--gutter); bottom: 64px; font-size: 0.8125rem; color: var(--fg-3); display: inline-flex; align-items: center; gap: 8px; }
  @media (hover: none) { .scene-hint { display: none; } }

  /* Snabbval som lägger sig över hjältens underkant */
  .picker-wrap { position: relative; z-index: 3; margin-top: -36px; }
  .picker { display: grid; grid-template-columns: auto minmax(150px, 1fr) minmax(170px, 1fr) auto auto; align-items: end; gap: 18px;
    padding: 18px 18px 18px 22px; border-radius: var(--r-2xl); background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line), var(--shadow-card-hover);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
  .picker .price-out { display: grid; gap: 2px; min-width: 132px; padding-bottom: 2px; }
  .picker .price-out b { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
  .picker .price-out > span { font-size: 0.8125rem; color: var(--fg-3); }
  @media (max-width: 980px) {
    .picker { grid-template-columns: 1fr 1fr; }
    .picker .field-ort { grid-column: 1 / -1; }
    .picker .seg { width: 100%; } .picker .seg > button { flex: 1; }
    .picker .btn { grid-column: 1 / -1; }
  }

  /* Storlekar i samma skala */
  .sizes-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
  .size { position: relative; display: flex; flex-direction: column; padding: 20px 20px 18px; border: 0; text-align: left; background: var(--card); border-radius: var(--r-xl);
    box-shadow: var(--shadow-card); transition: box-shadow var(--d-fast) var(--ease), transform var(--d-fast) var(--ease); }
  .size:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
  .size.on { box-shadow: inset 0 0 0 2px var(--green), var(--shadow-card-hover); }
  .size-top { display: flex; justify-content: space-between; align-items: center; }
  .size-m2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
  .size .iso { margin: 10px 0 6px; }
  .size-fits { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.014em; }
  .size-meta { font-size: 0.8125rem; color: var(--fg-3); margin-top: 2px; }
  .size-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline-2); margin-top: 16px; }
  .size-price b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
  .size-price span { font-size: 0.875rem; font-weight: 600; color: var(--fg-2); }
  .pop-tag { position: absolute; top: -10px; left: 18px; height: 22px; padding: 0 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; }
  .size.full .iso { opacity: 0.45; }

  /* Det här ingår */
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--hairline-2); border-radius: var(--r-2xl); overflow: hidden; box-shadow: 0 0 0 1px var(--hairline-2); }
  .feature { background: var(--bg); padding: 30px 28px 32px; }
  .feature .ic-wrap { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
  .feature h3 { margin-top: 18px; }
  .feature p { margin-top: 8px; color: var(--fg-2); font-size: 0.9875rem; }
  @media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

  /* Anläggningar */
  .sites { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
  .site { padding: 28px; border-radius: var(--r-2xl); background: var(--card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
  .site svg.facade { width: 100%; height: auto; margin: 4px 0 18px; }
  .facade path, .facade rect, .facade line { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .facade .fa { stroke: var(--green); stroke-width: 2; }
  .facade .ff { stroke: rgb(29 29 31 / 0.28); stroke-width: 1; }
  .facade .fg { stroke: var(--gold); stroke-width: 2; }
  .site dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-top: 18px; font-size: 0.9375rem; }
  .site dt { color: var(--fg-3); }
  .site dd { font-weight: 600; }
  .site .row { margin-top: auto; padding-top: 22px; }
  @media (max-width: 820px) { .sites { grid-template-columns: 1fr; } }

  /* Så går det till */
  .steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; counter-reset: step; }
  .steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.4s var(--ease); }
  .steps.in::before { --p: 1; }
  .step { position: relative; }
  .step::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--green); color: var(--green); font-weight: 700; font-size: 1.0625rem; }
  .step h3 { margin-top: 20px; }
  .step p { margin-top: 8px; color: var(--fg-2); }
  @media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

  .faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
  @media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

  .contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-2xl); background: var(--bg-2); }
  .contact .big { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
  .contact .big a:hover { color: var(--green); }
  .contact-list { display: grid; gap: 14px; }
  .contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; font-weight: 600; }
  .contact-list .ic { color: var(--green); }
  @media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ───────── Storleksguiden och pristabellen (förslag 3) ───────── */
/* ───────── Förslag 3 · Storleksguiden: verktyget är hjälten, shadcn-precision, hårfina linjer ───────── */
  .guide, #priser { --r-ui: 14px; --line: rgb(0 0 0 / 0.09); }

  .guide { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
  .guide-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
  /* Mobil: ritningen hamnar direkt under rubriken så att rörelsen syns medan man drar i reglaget */
  @media (max-width: 1000px) {
    .guide-grid { display: flex; flex-direction: column; gap: 0; }
    .guide-grid > .tool { display: contents; }
    .tool > .eyebrow, .tool > h2, .tool > .lead { order: 1; }
    .guide-grid > .board { order: 2; margin-top: 22px; min-height: 0; }
    .guide-grid > .board svg.room { min-height: 240px; }
    .tool > .group, .tool > .readout, .tool > .buy { order: 3; }
  }
  .tool { display: flex; flex-direction: column; }
  .tool h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; margin-top: 14px; }
  .tool .lead { margin-top: 14px; font-size: 1.125rem; }
  .group { margin-top: 26px; }
  .group-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
  .chip:hover { background: var(--bg-2); }
  .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }

  /* Reglaget: native range, egen stil, skalstreck som går att klicka på */
  .range { position: relative; padding: 8px 0 0; }
  .range input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
  .range input:focus-visible { outline: none; }
  .range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) 0 var(--fillp, 0%), var(--bg-3) var(--fillp, 0%) 100%); }
  .range input::-moz-range-track { height: 6px; border-radius: 6px; background: var(--bg-3); }
  .range input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--green); }
  .range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 3px 10px rgb(0 0 0 / 0.18); transition: transform var(--spring-press-dur, 323ms) var(--spring-press); }
  .range input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 3px 10px rgb(0 0 0 / 0.18); }
  .range input:active::-webkit-slider-thumb { transform: scale(1.12); }
  .range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--green-tint-2), 0 3px 10px rgb(0 0 0 / 0.18); }
  .ticks { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 6px; }
  .ticks button { border: 0; background: none; padding: 4px 0; min-width: 24px; font-size: 0.75rem; font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; }
  .ticks button[aria-current="true"] { color: var(--green); }

  .readout { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: end; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
  .readout .m2 { grid-row: span 2; font-size: clamp(3.6rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; }
  .readout .m2 small { font-size: 0.36em; letter-spacing: -0.02em; margin-left: 4px; color: var(--fg-2); }
  .readout .fact { font-weight: 600; }
  .readout .sub { color: var(--fg-3); font-size: 0.875rem; }
  .buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px 16px 16px 20px; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); }
  .buy .price b { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; }
  .buy .price span { color: var(--fg-2); font-weight: 600; }
  .buy .btn { margin-left: auto; }

  /* Ritningen: rutpapper, rummet i skala, kartonger som landar */
  .board { position: relative; overflow: hidden; border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--line);
    background:
      linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(rgb(0 0 0 / 0.035) 1px, transparent 1px) 0 0 / 8px 8px,
      linear-gradient(90deg, rgb(0 0 0 / 0.035) 1px, transparent 1px) 0 0 / 8px 8px,
      radial-gradient(70% 60% at 50% 60%, rgb(24 121 58 / 0.06), transparent), #fbfbfc;
    min-height: 460px; display: flex; flex-direction: column; }
  .board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
  .board-top .xs { display: inline-flex; gap: 8px; align-items: center; }
  .board svg.room { flex: 1; width: 100%; height: auto; min-height: 320px; }
  .board .iso-floor { fill: rgb(24 121 58 / 0.1); }
  .board .iso-edge { animation: march 1.6s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -16; } }
  .board .iso-box { animation: drop 620ms var(--spring-snappy) both; animation-delay: calc(var(--n) * 7ms); }
  .board.no-drop .iso-box { animation: none; }
  @keyframes drop { from { opacity: 0; transform: translateY(-46px); } 35% { opacity: 1; } }
  .board-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--fg-2); background: rgb(255 255 255 / 0.7); }
  .board-legend span { display: inline-flex; align-items: center; gap: 8px; }
  .board-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
  .board .hero-toggle { right: 14px; bottom: 62px; width: 34px; height: 34px; }

  /* Pristabell */
  .tabs-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
  .table-wrap { margin-top: 30px; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; background: var(--bg); }
  #priser table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
  #priser th { text-align: left; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  #priser td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  #priser tr:last-child td { border-bottom: 0; }
  #priser tbody tr { transition: background-color var(--d-fast) var(--ease); cursor: pointer; }
  #priser tbody tr:hover { background: var(--bg-2); }
  #priser tbody tr.on { background: var(--green-tint); }
  #priser td.m2 { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; white-space: nowrap; }
  #priser td.pris { font-weight: 650; white-space: nowrap; }
  #priser td.act { text-align: right; }
  @media (max-width: 760px) { .hide-sm { display: none; } #priser td, #priser th { padding: 12px; } }

/* Ingen etikett när antalet lediga är okänt. */
.badge:empty { display: none; }

/* Mobil: datumfältets inbyggda minsta bredd ska inte spränga väljarens rutnät (gav 2 px sidscroll), och
   pristabellen rullar i sidled i stället för att klippa Boka-knappen (tabellen var 429 px i 390 px). */
@media (max-width: 980px) {
  .picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .picker .input, .picker .select { min-width: 0; }
}
#priser .table-wrap { overflow-x: auto; }
@media (max-width: 560px) {
  #priser td, #priser th { padding: 10px 8px; }
  #priser .hide-xs { display: none; }
}
/* Hjältens etiketter flyttas med transform och får inte vidga sidan i sidled. */
.hero { overflow-x: clip; }
