/* Approved C design: desktop navigation and contact map. Original mobile navigation retained. */
.fn-dock { display: none; }

@media (min-width: 1200px) {
  html.floating-nav {
    --fn-bottom: 30px;
    --fn-dock-h: 70px;                 /* skrivs över av flytande-nav.js med uppmätt höjd */
    --fn-space: calc(var(--fn-dock-h) + var(--fn-bottom) + 20px);
    --fn-frame: 1440px;                /* hela kompositionen växer inte förbi detta på stora skärmar */
    --fn-ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
    --fn-serif: Georgia, "Times New Roman", serif;
    scroll-padding-top: 16px;
    scroll-padding-bottom: var(--fn-space);
  }

  /* ---------- Skissens ton: cigarrbrunt, Georgia, mjukare former ---------- */
  .floating-nav body.theme-magasin {
    --ink: #2b1b14; --ink-2: #4a3a31; --muted: #7b7066; --line: #ddd0bf; --line-2: #c9b9a5;
    --dark: #2b1b14; --dark-2: #33231b; --dark-3: #3d2b22;
    --header-h: 115px; --logo-h: 80px;
    --gutter: 42px; --wrap: calc(var(--fn-frame) - 84px); /* innehållet linjerar med loggan, som i skissen */
    --r-sm: 3px; --r: 12px; --r-lg: 14px; --r-xl: 20px;
    color: var(--ink);
  }
  .floating-nav body.theme-magasin h1, .floating-nav body.theme-magasin h2, .floating-nav body.theme-magasin h3 {
    font-family: var(--fn-serif); font-weight: normal; font-variation-settings: normal; color: var(--ink);
  }
  .floating-nav body.theme-magasin h1 { letter-spacing: -.05em; line-height: 1; }
  .floating-nav body.theme-magasin h2 { letter-spacing: -.035em; line-height: 1.06; }
  .floating-nav body.theme-magasin h3 { letter-spacing: -.01em; }
  .floating-nav body.theme-magasin .mg-kicker, .floating-nav body.theme-magasin .eyebrow {
    font: bold 11px/1.2 var(--fn-ui); letter-spacing: 3px; text-transform: uppercase; color: #873e37;
  }
  .floating-nav body.theme-magasin .mg-lead, .floating-nav body.theme-magasin .page-hero .lead {
    font: italic 22px/1.5 var(--fn-serif); color: var(--ink);
  }
  .floating-nav body.theme-magasin .mg-btn {
    min-height: 0; padding: 17px 24px; border-radius: 3px; font: bold 16px/1.15 var(--fn-ui); letter-spacing: 0;
  }
  .floating-nav body.theme-magasin .mg-btn:hover { background: #1a100c; border-color: #1a100c; color: #fff8ef; }
  .floating-nav body.theme-magasin .mg-btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
  .floating-nav body.theme-magasin .mg-link { font: 14px/1.4 var(--fn-ui); }
  /* Bilder och kort får samma mjuka formspråk som skissen: en tydlig rundning uppe till vänster, små hörn i övrigt. */
  .floating-nav body.theme-magasin .mg-fig img { border-radius: 96px 3px 3px 3px; }
  .floating-nav body.theme-magasin .svc-page-img img { border-radius: 96px 3px 3px 3px; }
  .floating-nav body.theme-magasin .mg-fig-pair .mg-fig-small img,
  .floating-nav body.theme-magasin .mg-fig-quiet img { border-radius: 64px 3px 3px 3px; }
  .floating-nav body.theme-magasin .svc, .floating-nav body.theme-magasin .contact-card, .floating-nav body.theme-magasin .card { border-radius: 14px; overflow: hidden; }
  .floating-nav body.theme-magasin :focus-visible { outline: 2px solid #873e37; outline-offset: 3px; }

  /* ---------- Sidhuvud: kompakt, liten logga, diskret telefon/språk (rullar bort som i skissen) ---------- */
  .floating-nav body.theme-magasin .site-header { position: relative; background: transparent; }
  .floating-nav body.theme-magasin .header-row {
    max-width: var(--fn-frame); height: 115px; padding: 0 42px; gap: 0; justify-content: space-between;
  }
  .floating-nav body.theme-magasin .mg-brand { margin: 0; }
  .floating-nav body.theme-magasin .brand img.mg-logo { height: 80px; width: 80px; object-fit: contain; }
  .floating-nav body.theme-magasin .site-header .nav { display: none; }
  .floating-nav body.theme-magasin .header-actions .mg-btn[data-nav="boka"] { display: none; }
  .floating-nav body.theme-magasin .header-actions { margin-left: auto; gap: 22px; align-items: center; }
  .floating-nav body.theme-magasin .header-phone,
  .floating-nav body.theme-magasin .lang-switch {
    display: inline-flex; align-items: center; width: auto; height: auto; min-height: 32px; padding: 0;
    font: 12px/1.2 var(--fn-ui); letter-spacing: 0; color: #73655b; text-decoration: none; background: none;
  }
  .floating-nav body.theme-magasin .header-phone .i { display: none; }
  .floating-nav body.theme-magasin .header-phone span { display: inline; }
  .floating-nav body.theme-magasin .lang-long { display: none; }
  .floating-nav body.theme-magasin .lang-short { display: inline; }
  .floating-nav body.theme-magasin .header-phone:hover,
  .floating-nav body.theme-magasin .lang-switch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
  .floating-nav body.theme-magasin .site-header :focus-visible { outline-offset: 5px; }

  /* ---------- Startsidans öppning: skissens 55/45-komposition ---------- */
  .floating-nav body.theme-magasin .mg-open { padding: 0 30px; }
  .floating-nav body.theme-magasin .mg-open-grid {
    max-width: calc(var(--fn-frame) - 60px); margin: 0 auto; padding: 0;
    grid-template-columns: 55% 45%; gap: 0; align-items: stretch; min-height: 710px;
  }
  .floating-nav body.theme-magasin .mg-open-copy { padding: 45px 55px 48px; }
  .floating-nav body.theme-magasin .mg-open .mg-kicker { margin: 5px 0 0; }
  .floating-nav body.theme-magasin .mg-open h1 {
    font-size: 88px; line-height: 1; letter-spacing: -5px; margin: 28px 0; max-width: 9ch;
  }
  .floating-nav body.theme-magasin .mg-open .mg-lead { margin: 24px 0 30px; max-width: 30ch; }
  .floating-nav body.theme-magasin .mg-open .mg-actions { margin-top: 0; gap: 14px 28px; }
  /* Fakta som skissens lugna adressrad: små grå rader, rubrikerna finns kvar för skärmläsare. */
  .floating-nav body.theme-magasin .mg-open .mg-facts { display: block; margin-top: 45px; border: 0; }
  .floating-nav body.theme-magasin .mg-open .mg-facts > div { padding: 0; margin: 0; }
  .floating-nav body.theme-magasin .mg-open .mg-facts dt {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .floating-nav body.theme-magasin .mg-open .mg-facts dd { font: 12px/1.8 var(--fn-ui); color: #7b7066; }
  .floating-nav body.theme-magasin .mg-open .mg-facts a:hover { color: var(--ink); text-decoration: underline; }
  .floating-nav body.theme-magasin .mg-open-fig { display: flex; flex-direction: column; min-height: 0; }
  .floating-nav body.theme-magasin .mg-open-fig img {
    flex: 1 1 auto; width: 100%; height: auto; min-height: 710px; max-height: 780px;
    object-fit: cover; object-position: 50% 50%; border-radius: 150px 3px 3px 3px;
  }
  /* Bildtexten ligger kvar för skärmläsare men syns inte, som i skissen. */
  .floating-nav body.theme-magasin .mg-open-fig figcaption {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
  }
  .floating-nav body.theme-magasin .mg-open + .mg-index { padding-top: 64px; }

  /* ---------- Undersidornas inledning: börjar högre, mindre och tajtare rubrik ---------- */
  .floating-nav body.theme-magasin .page-hero { padding-block: 45px 56px; }
  .floating-nav body.theme-magasin .page-hero h1 { font-size: clamp(56px, 4.6vw, 72px); letter-spacing: -3px; line-height: 1.02; margin-top: 22px; }
  .floating-nav body.theme-magasin .page-hero .lead { margin-top: 20px; max-width: 46ch; }
  .floating-nav body.theme-magasin .mg-story h2 { font-size: clamp(40px, 3.6vw, 54px); }
  .floating-nav body.theme-magasin .mg-footer-title { font-family: var(--fn-serif); font-weight: normal; letter-spacing: -.035em; }
  .floating-nav body.theme-magasin .mg-i-t, .floating-nav body.theme-magasin .mg-step-n { font-family: var(--fn-serif); letter-spacing: -.02em; }

  /* Marginal under innehållet så att sidfotens sista rad aldrig hamnar bakom dockan. */
  .floating-nav body.theme-magasin .mg-footer { padding-bottom: var(--fn-space); }


  /* ---------- Dockan: exakt skissens form ---------- */
  .floating-nav .fn-dock {
    display: flex; align-items: center; gap: 22px;
    position: fixed; left: 50%; bottom: var(--fn-bottom); z-index: 80;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px); white-space: nowrap;
    padding: 10px 12px 10px 25px;
    background: #fffaf2; color: #2b1b14;
    border: 1px solid #d7c9b8; border-radius: 20px;
    box-shadow: 0 14px 45px rgba(43, 27, 20, .125);
    font: 13px/1.2 var(--fn-ui); letter-spacing: 0;
  }
  .fn-links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
  .fn-links li { display: flex; }
  .fn-link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0;
    color: #2b1b14; text-decoration: none; font-weight: normal;
  }
  .fn-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  /* Aktiv sida: mjuk platta som sticker ut lika mycket åt båda håll (påverkar inte radens mått) + vinröd markör. */
  .fn-link[aria-current="page"] { font-weight: bold; text-decoration: none; }
  .fn-link[aria-current="page"]::before {
    content: ""; position: absolute; inset: 6px -10px; z-index: -1; border-radius: 10px; background: #efe4d4;
  }
  .fn-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px;
    border-radius: 2px; background: #873e37;
  }
  .fn-links li { position: relative; z-index: 0; }

  .fn-book {
    display: inline-flex; align-items: center; gap: 6px; padding: 17px 24px;
    border-radius: 12px; background: #2b1b14; color: #fff8ef; text-decoration: none; font-weight: bold;
  }
  .fn-book:hover { background: #1a100c; }
  .fn-book[aria-current="page"] { box-shadow: 0 0 0 2px #fffaf2, 0 0 0 4px #873e37; }
  .fn-link:focus-visible { outline: 2px solid #873e37; outline-offset: 4px; border-radius: 2px; }
  .fn-book:focus-visible { outline: 2px solid #873e37; outline-offset: 3px; }

  @media (prefers-reduced-motion: no-preference) {
    .fn-book { transition: background-color .16s ease; }
  }

  /* Skarv vid rundningen: skum.jpg har i själva fotot en ca 14 px ljusblå remsa längs vänsterkanten (≈ 1,3 % av
     bredden) som syntes som en smal ljus kant under det rundade hörnet. Fotot ändras inte – bilden görs 1/0,975 bredare,
     flyttas lika mycket åt vänster och klipps (clip-path) så att de vänstra 2,5 % aldrig syns. Höjd och läge är oförändrade. */
  .floating-nav body.theme-magasin .mg-fig-small img[src$="/skum.jpg"] {
    width: calc(100% / .975); max-width: none; margin-left: calc(-100% * .025 / .975);
    aspect-ratio: .8205; border-radius: 0;
    clip-path: inset(0 0 0 2.5% round 64px 3px 3px 3px);
  }
}

/* Låg skärm: dockan krymper så att den tar mindre av höjden, och öppningen slutar ovanför den. */
@media (min-width: 1200px) and (max-height: 720px) {
  html.floating-nav { --fn-bottom: 16px; }
  .floating-nav .fn-dock { padding-block: 7px; }
  .fn-book { padding-block: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html.floating-nav { scroll-behavior: auto; }
}

@media print {
  .fn-dock { display: none !important; }
}

/* ================= Hitta hit + statisk karta (kontaktsidan, alla bredder) =================
   Kartan är en inline-SVG omritad från OpenStreetMap-data som sparats lokalt (kartdata/). Inga externa anrop. */
.fn-visit { padding-block: clamp(28px, 5vw, 64px); border-top: 1px solid var(--line, #d9cfc1); border-bottom: 1px solid var(--line, #d9cfc1); }
.fn-visit-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.fn-visit h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; margin: 0 0 16px; }
.fn-visit-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2, #3a332e); margin: 0; }
.fn-visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 0; }
.fn-visit-note { font-size: 13px; color: var(--muted, #675d56); }
.fn-visit .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fn-map { margin: 0; }
.fn-map-frame {
  display: block; cursor: pointer;
  position: relative; overflow: hidden; aspect-ratio: 1092 / 768;
  border-radius: 20px; border: 1px solid #d7c9b8; background: #b9cfca;
  box-shadow: 0 14px 40px rgba(43, 27, 20, .08);
}
.fn-map-frame:focus-visible { outline: 3px solid #2b1b14; outline-offset: 5px; }
.fn-map-svg { display: block; width: 100%; height: 100%; }
.fn-map figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted, #675d56); }
.fn-map figcaption a { color: inherit; text-underline-offset: 3px; }
.fn-visit + .fn-after-visit { padding-top: clamp(28px, 5vw, 56px); }
@media (min-width: 1200px) {
  .floating-nav body.theme-magasin .fn-map-frame { border-radius: 96px 20px 20px 20px; } /* skissens rundade hörn uppe till vänster */
}
@media (max-width: 860px) {
  .fn-visit-grid { grid-template-columns: 1fr; }
  .fn-map-frame { aspect-ratio: 4 / 5; border-radius: 16px; }
}
/* Etiketter som ligger utanför mobilens mittbeskärning döljs där i stället för att visas avhuggna. */
@media (max-width: 860px) { .fn-map-svg .fn-map-edge { display: none; } }

/* Local experiment only: desktop top-edge navigation. Mobile retains the published menu. */
.topnav-brand, .topnav-lang { display: none; }
@media screen and (min-width: 1200px) {
  html.floating-nav { scroll-padding-top: 120px; scroll-padding-bottom: 24px; --fn-space: 32px; }
  .floating-nav body.theme-magasin { padding-top: 126px; }
  .floating-nav .site-header { display: none; }
  .floating-nav .fn-dock {
    top: 0; bottom: auto; width: max-content; max-width: calc(100% - 96px);
    min-height: 82px; box-sizing: border-box; padding: 10px 20px; gap: 24px;
    background: #2b1b14; color: #fff8ee; border: 0; border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 28px rgb(43 27 20 / .09); isolation: isolate;
    font: 450 17px/1.3 "Inter", sans-serif; letter-spacing: -.025em;
  }
  .floating-nav .fn-dock::before, .floating-nav .fn-dock::after {
    content: ''; position: absolute; top: 0; width: 32px; height: 32px; pointer-events: none;
  }
  .floating-nav .fn-dock::before { left: -31px; background: radial-gradient(circle at 0 100%, transparent 32px, #2b1b14 32.5px); }
  .floating-nav .fn-dock::after { right: -31px; background: radial-gradient(circle at 100% 100%, transparent 32px, #2b1b14 32.5px); }
  .floating-nav .topnav-brand { display: flex; align-items: center; flex: 0 0 62px; margin-right: 4px; }
  .floating-nav .topnav-brand img { width: 62px; height: 62px; object-fit: contain; filter: brightness(0) invert(1); }
  .floating-nav .fn-links { flex: 0 1 auto; justify-content: center; gap: 24px; }
  .floating-nav .fn-links li { border: 0; padding: 0; }
  .floating-nav .fn-link { color: #e2d6cc; font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 350; letter-spacing: -.015em; min-height: 46px; }
  .floating-nav .fn-link:hover { color: #fffaf2; text-decoration: none; }
  .floating-nav .fn-link[aria-current=page] { color: #fffaf2; font-weight: 400; }
  .floating-nav .fn-link[aria-current=page]::before { background: rgb(255 248 238 / .09); border-radius: 8px; inset: 3px -9px; }
  .floating-nav .fn-link[aria-current=page]::after { background: #c5aa88; bottom: 1px; }
  .floating-nav .topnav-lang { display: inline-flex; color: #c5b5a8; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; text-decoration: none; font-size: 14px; }
  .floating-nav .topnav-lang .lang-long { display: none; }
  .floating-nav .topnav-lang .lang-short { display: inline; }
  .floating-nav .fn-book { padding: 16px 23px; background: #fff8ee; color: #2b1b14; border-radius: 14px; min-height: 52px; box-sizing: border-box; gap: 12px; font-size: 17px; font-weight: 600; }
  .floating-nav .fn-book:hover { background: #eedecc; }
  .floating-nav .fn-dock a:focus-visible { outline: 2px solid #e9c59a; outline-offset: 4px; }
  .floating-nav .mg-footer { padding-bottom: 40px; }
}
@media print { .topnav-brand, .topnav-lang { display: none; } }

@media screen and (min-width:1200px) { .floating-nav .fn-book { border:0; box-shadow:none; } .floating-nav .fn-book:focus-visible { outline:2px solid #c5aa88; outline-offset:4px; } }

.footer-mini-map {width:220px;max-width:100%;margin-top:16px;} .footer-mini-map>a {display:block;position:relative;border-radius:16px;overflow:hidden;} .footer-mini-map img {width:100%;height:140px;object-fit:cover;display:block;} .footer-mini-map span {position:absolute;bottom:10px;right:10px;background:#fff8ee;color:#2b1b14;padding:6px 12px;border-radius:8px;font-size:13px;} .footer-mini-map small {font-size:10px;opacity:.75;}
