[data-frame="default"] {
    border: var(--theme-frame-size, 0px) solid var(--theme-frame-color);
}

/* ===================================
   BLOCKSY FRAME – ALLTID ÖVERST
=================================== */

.ct-site-frame,
.ct-frame {
  position: relative;
  z-index: 110000!important; /* högre än header, nav, modals */
  pointer-events: none; /* viktigt */
}

.ct-header, .ct-sticky-container{
  z-index: 900 !important;
}

.ct-offcanvas,
.ct-drawer,
.ct-panel {
  z-index: 20000 !important;
}

/* Själva overlay-bakgrunden */
.ct-offcanvas-backdrop {
  z-index: 19999 !important;
}

@media (max-width: 768px) {
  .ct-site-frame,
  .ct-frame {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

/* ===============================
   LEAFLET UI – Z-INDEX FIX
================================ */

.leaflet-control,
.leaflet-top,
.leaflet-bottom {
  z-index: 800 !important;
}

.leaflet-tile-pane {
  z-index: 200 !important;
}

.leaflet-overlay-pane {
  z-index: 400 !important;
}

.leaflet-mariaplan-area-pane {
  z-index: 450 !important;
}

.leaflet-shadow-pane {
  z-index: 500 !important;
}

.leaflet-marker-pane {
  z-index: 600 !important;
}

.leaflet-tooltip-pane {
  z-index: 650 !important;
}

.leaflet-popup-pane {
  z-index: 700 !important;
}


/* ============================================================
   KATEGORIFÄRGER – NYA NAMN + GAMLA ALIAS
============================================================ */

/* Default */
:root {
  --theme-frame-color: #BF1E2D;
  --pin-x: 5px;
  --pin-y: 0px;
}

/* Butiker */
body.cat-butiker,
body.cat-yellow {
  --theme-frame-color: #F4C542;
  color: #222;
}


/* Mat & dryck */
body.cat-mat-dryck,
body.cat-red {
  --theme-frame-color: #D94B4B;
}

/* Hälsa & välmående */
body.cat-halsa,
body.cat-purple {
  --theme-frame-color: #8E44AD;
}

/* Konst & kultur */
body.cat-konst-kultur,
body.cat-black {
  --theme-frame-color: #222;
}

/* Platser & fritid */
body.cat-platser-fritid,
body.cat-green {
  --theme-frame-color: #206323;
}

/* Hållplatser */
body.cat-hallplatser,
body.cat-tram {
  --theme-frame-color: #2980B9;
}

/* Närbutiker */
body.cat-narbutiker {
  --theme-frame-color: #6FBF8F;
  color: #222;
}

/* Tjänster */
body.cat-tjanster,
body.cat-grey {
  --theme-frame-color: #7F8C8D;
  color: #222;
}





/* Fullskärmsläge */
#map.lmr-fullscreen {
  position: fixed !important;
  top: 0;  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999;
  border-radius: 0 !important;
}

/* Knapp på kartan */

#map-fullscreen-btn {
    position: absolute;
    top: 52px;
    right: 16px;
    left: auto;
    transform: none;
    background: #111;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    cursor: pointer;
    z-index: 700 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    opacity: 0.96;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto !important;
}

/* no hover effect for fullscreen button */
#map-fullscreen-btn:hover {
    opacity: 1;
    transform: none;
}

.leaflet-container .leaflet-touch-drag .leaflet-touch-zoom {
    touch-action: auto;
}

/* ===== Layout: Desktop left list / right map ===== */
.lmr-container { 
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* KARTA FULLBREDD */
.lmr-mapwrap {
    width: 100%;
    position: relative;
    
}

#map {
    width: 98% !important;
    height: 60vh !important;
    border-radius: 0 !important;
    pointer-events: auto;
    touch-action: auto;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Leaflet reset */
.lmr-label-icon {
  background: none;
  border: none;
}

/* Själva labeln */
.lmr-map-label {
  display: inline-block;
  padding: 4px 8px;

  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;

  background: rgba(255,255,255,0.9);
  color: #111;
  border-radius: 4px;

  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Hover */
.lmr-map-label:hover {
  background: #111;
  color: #fff;
  cursor: pointer;
}


/* LISTAN SVÄVAR ÖVER KARTA */
.lmr-list {
    position: absolute !important;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 160px);
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 14px 12px;
    overflow-y: auto !important;
    z-index: 100;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.08);
}

/* Hovereffekter tydligare när flytande */
.lmr-list .item:hover {
    background: rgba(0,0,0,0.04);
}

.butik-hero-archive,
.butik-frame {
  border-color: var(--theme-frame-color);
}


/* ============================================================
   HORISONTELL SCROLL – DELAD (buttons + links)
============================================================ */

#lmr-buttons,
.lmr-scroll {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

/* Integrera knappar med kartan */

body:not(.lmr-map-fullscreen) #lmr-buttons {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px; /* closer to bottom */
  z-index: 700;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

/* Typ-knappar följer med som rad ovanför, om de finns */
body:not(.lmr-map-fullscreen) #lmr-type-buttons {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px; /* above buttons */
  z-index: 701;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
}

body:not(.lmr-map-fullscreen) #lmr-type-buttons:empty {
  display: none !important;
}

@media (max-width: 768px) {
  body:not(.lmr-map-fullscreen) #lmr-buttons {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  body:not(.lmr-map-fullscreen) #lmr-type-buttons {
    left: 10px;
    right: 10px;
    bottom: 96px;
  }
  #map-fullscreen-btn {
    top: 50px;
    right: 10px;
    left: auto;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  }
  .lmr-filter-label {
    bottom: 98px;
  }
}

/* Viktigt: gäller ALLA barn */
#lmr-buttons > *,
.lmr-scroll > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Scrollbar */
#lmr-buttons::-webkit-scrollbar,
.lmr-scroll::-webkit-scrollbar {
  height: 6px;
}

#lmr-buttons::-webkit-scrollbar-thumb,
.lmr-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

#lmr-buttons::-webkit-scrollbar-track,
.lmr-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* ===============================
   Kategori nav
================================ */

:root {
  --header-height: 96px;        /* full header */
  --header-sticky-height: 64px; /* krympt header */
  --kategori-nav-height: 56px;
}




/* Höjd på din fasta kategori-nav */
body.admin-bar .kategori-scroll {
  top: calc(var(--header-current-height, var(--header-height, 96px)) + 32px);
}

body.admin-bar[data-header*="sticky"] .kategori-scroll {
  top: calc(var(--header-current-height, var(--header-sticky-height, 64px)) + 32px);
}



.kategori-scroll {
  position: sticky;
  top: var(--header-current-height, var(--header-height, 96px));
  
  display: flex;
  z-index: 900;

  padding: 0px 0px env(safe-area-inset-bottom);
  gap: 0px;
  overflow-x: auto;

  transition:
    top 0.25s ease,
    padding 0.25s ease,
    opacity 0.2s ease,
    transform 0.25s ease;

  /* snygg scroll på iOS */
  -webkit-overflow-scrolling: touch;
}

/* Header krympt → flytta ner nav */
body[data-header*="sticky"] .kategori-scroll {
  top: calc(var(--header-sticky-height, 64px) + 8px);
}


/* Dölj scrollbar visuellt */
.archive-butik .kategori-scroll::-webkit-scrollbar {
  display: none;
}


.kategori-pill {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/*  Butiker */
.kategori-pill.cat-butiker {
  background: #F4C542;
  color: #222;
}

/* Mat & dryck */
.kategori-pill.cat-mat-dryck {
  background: #D94B4B;
  color: #fff;
}

/* Hälsa & välmående */
.kategori-pill.cat-halsa {
  background: #8E44AD;
  color: #fff;
}

/* Konst & kultur */
.kategori-pill.cat-konst-kultur {
  background: #222222;
  color: #fff;
}

/* Tjänster */
.kategori-pill.cat-tjanster {
  background: #7F8C8D;
  color: #fff;
}

/* Närbutiker */
.kategori-pill.cat-narbutiker {
  background: #6FBF8F;
  color: #222;
}

/* Platser & fritid */
.kategori-pill.cat-platser-fritid {
  background: #206323;
  color: #fff;
}

/* Hållplatser */
.kategori-pill.cat-hallplatser {
  background: #2980B9;
  color: #fff;
}

/* NU & DÅ */
.kategori-pill.nu-da {
  background: #5B4636;
  color: #F6F2EA;
}


/* ============================================================
   HORISONTELL SCROLL FÖR TYPER (lmr-type-buttons)
============================================================ */
#lmr-type-buttons {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap; /* <-- Detta är nyckeln */
}

#lmr-type-buttons .lmr-type-btn {
  flex: 0 0 auto;      /* <-- gör att de inte trycks ihop */
  white-space: nowrap; /* <-- knappens text bryts inte */
  padding:4px 10px;
  margin:3px;
  font-size:13px;
  border-radius:6px;
  border:1px solid transparent;
  cursor:pointer;
  color:#fff;
  font-weight:500;
}


#lmr-type-buttons::-webkit-scrollbar {
  height: 6px;
}
#lmr-type-buttons::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}
#lmr-type-buttons::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
    .lmr-container { flex-direction:column !important; }
    .lmr-list { 
        width:100% !important; 
        margin-top:12px; 
        max-height:calc(100vh - 220px) !important; /* Mobiljustering */
        overflow-y:auto !important;
        display: none;
    }
    .lmr-mapwrap { width:100% !important; margin-bottom:0 !important; }
}

/* Category buttons */
#lmr-buttons { margin-bottom:6px; }
#lmr-buttons button {
    margin:4px 6px 4px 0;
    padding:6px 12px;
    border-radius:8px;
    border:1px solid #ddd;
    cursor:pointer;
}
#lmr-buttons button.active { filter:brightness(85%); }

/* Typ buttons */
#lmr-type-buttons { margin-bottom:12px; }

/* Typ button colors */
.lmr-type-yellow { background:#f1c40f; border-color:#d4ac0d; color:#000 !important; }
.lmr-type-red { background:#e74c3c; border-color:#c0392b; }
.lmr-type-green { background:#206323; border-color:#1a4f1c; color:#fff; }
.lmr-type-black { background:#111; border-color:#000; }
.lmr-type-grey { background:#9bc8ed; border-color:#749cbd; color:#000; }
.lmr-type-purple { background:#c25ce7; border-color:#a74ec5; color:#fff; }
.lmr-type-tram { background:#60cbff; border-color:#2980b9; color:#000; }
.lmr-type-narbutiker { background:#6FBF8F; border-color:#5AA97A; color:#000 !important;
}

#lmr-type-buttons .lmr-type-btn.active { filter:brightness(85%); }

/* Category button color variants */
.lmr-btn-yellow { background:#f1c40f !important; border-color:#d4ac0d !important; color:#000 !important; }
.lmr-btn-red    { background:#e74c3c !important; border-color:#c0392b !important; color:#fff !important; }
.lmr-btn-green  { background:#206323 !important; border-color:#1a4f1c !important; color:#fff !important; }
.lmr-btn-black  { background:#111 !important; border-color:#000 !important; color:#fff !important; }
.lmr-btn-grey   { background:#9bc8ed !important; border-color:#749cbd !important; color:#000 !important; }
.lmr-btn-purple { background:#c25ce7 !important; border-color:#a74ec5 !important; color:#fff !important; }
.lmr-btn-tram   { background:#60cbff !important; border-color:#2980b9 !important; color:#000 !important; }
.lmr-btn-narbutiker { background:#6FBF8F !important; border-color:#5AA97A !important; color:#000 !important;
}

/* Pins */
.lmr-pin { 
    width:16px; height:16px;
    border-radius:50%; 
    display:inline-block; 
    margin-right:8px; 
    border:2px solid #fff; 
    box-shadow:0 4px 10px rgba(0,0,0,0.12); 
    vertical-align:middle; 
}
.lmr-pin-yellow { background:#f1c40f; }
.lmr-pin-red    { background:#e74c3c; }
.lmr-pin-green  { background:#206323; }
.lmr-pin-black  { background:#111; }
.lmr-pin-grey   { background:#9bc8ed; }
.lmr-pin-purple { background:#c25ce7; }
.lmr-pin-tram   { background:#60cbff; }
.lmr-pin-narbutiker { background:#6FBF8F;
}

/* Accordion */
.lmr-group {
    margin-bottom:12px;
    border:1px solid #eee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.lmr-group-header {
    padding:10px 12px;
    cursor:pointer !important;
    font-weight:bold;
    font-size:15px;
    position:relative;
    border-bottom:1px solid #eee;
}

.lmr-group-header::after {
    content:'▸';
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    transition:transform .2s;
}

.lmr-group.open .lmr-group-header::after {
    transform:translateY(-50%) rotate(90deg);
}

.lmr-header-yellow { background:#fff9db; border-left:6px solid #f1c40f; }
.lmr-header-red { background:#fdecea; border-left:6px solid #e74c3c; }
.lmr-header-green { background:#e6f1e9; border-left:6px solid #206323; }
.lmr-header-black { background:#f0f0f0; border-left:6px solid #111; }
.lmr-header-grey { background:#ecf4f7; border-left:6px solid #95b8c9; }
.lmr-header-purple { background:#f5e3fb; border-left:6px solid #c25ce7; }
.lmr-header-tram { background:#e7faff; border-left:6px solid #71dafa; }

.lmr-group-content { 
    max-height:0; 
    overflow:hidden; 
    transition:max-height .3s ease; 
}

.lmr-group.open .lmr-group-content { 
    max-height:2000px; 
}

/* Typer i listan */
.lmr-group .sub,
.lmr-type-btn {
  text-transform: capitalize;
}

/* Dölj etiketter som standard */
.lmr-pin-label {
    display: none !important;
    margin-top:3px;
    font-size:11px;
    line-height:11px;
    font-weight:500;
    padding:2px 6px;
    border-radius:6px;
    white-space: nowrap;
    border:1px solid rgba(0,0,0,0.10);
    box-shadow:0 2px 4px rgba(0,0,0,0.12);
    background:#fff;
}

/* List items */
.lmr-list .item {
    cursor:pointer !important;
    padding:8px 6px;
    border-bottom:1px solid #f3f3f3;
}
.lmr-list .item:hover { background:#f5f5f5; }

.active-item { background:#eef7ff !important; }

/* Pop up buttons */

.lmr-popup-btns {
  display:flex; 
  gap:6px; 
  justify-content:center;
  margin-top:10px;
}
.lmr-popup-btns a {
  padding:6px 12px;
  border-radius:8px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size:14px;
}


/* Exit-knapp i fullskärm (syns endast då) */
#map-exit-fullscreen {
  position: fixed;
  top: 20px;
  right: 20px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 10px;
  z-index: 10000;
  font-weight:700;
  display:none;
  background: #111;
  color: #fff;
  border:1px solid rgba(0,0,0,0.06);
}
#map-exit-fullscreen.visible { display:block; }

body.lmr-map-fullscreen #map-exit-fullscreen {
  top: 20px !important;
  right: 20px !important;
}

body.lmr-map-fullscreen #map-fullscreen-btn {
  display: none !important;
}


/* Nära mig-knapp */
.map-nearby-btn {
  position: absolute;
  top: 12px;
  left: auto;
  right: 16px;
  z-index: 703;
  background: #111;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0.96;
}

/* Återställ-knapp */
.map-reset-btn {
  position: absolute;
  top: 12px;
  left: auto;
  right: 120px;
  z-index: 703;
  background: #fff;
  color: #111;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0.96;
  display: none;
}

body.lmr-map-fullscreen .map-nearby-btn {
  position: fixed;
  top: 64px;
  right: 20px;
  left: auto;
  bottom: auto;
  z-index: 10000;
}

body.lmr-map-fullscreen .map-reset-btn {
  position: fixed;
  top: 64px;
  right: 124px;
  left: auto;
  bottom: auto;
  z-index: 10000;
}

@media (max-width: 768px) {
  .map-nearby-btn {
    top: 10px;
    right: 10px;
    left: auto;
  }
  .map-reset-btn {
    top: 10px;
    right: 100px;
    left: auto;
  }
}

/* Knappar över karta i helskärm */
/* Bottenstapel i fullscreen-läge */
body.lmr-map-fullscreen #lmr-buttons {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 10px);
  left: 0px;
  right: 0px;
  z-index: 9998;
  display: flex !important;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow-x: auto;
  white-space: nowrap;
}

/* Typknappar ska hamna precis ovanför */
body.lmr-map-fullscreen #lmr-type-buttons {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 10px) + 58px);
  left: 0px;
  right: 0px;
  z-index: 9999; /* över kategorier */
  display: flex !important;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow-x: auto;
  white-space: nowrap;
}


body.lmr-map-fullscreen #lmr-type-buttons:empty {
  display:none !important;
}


body.lmr-map-fullscreen #lmr-list {
  display:none !important;
}

body.lmr-map-fullscreen #lmr-buttons,
body.lmr-map-fullscreen #lmr-type-buttons {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpFilters .25s ease forwards;
}

@keyframes slideUpFilters {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Touch target och småjust */
button, .lmr-btn, .lmr-type-btn { -webkit-tap-highlight-color: rgba(0,0,0,0.06); }


/* ================================
   PIN / LABEL VISIBILITY LOGIC
   ================================ */

/* 1. ALLA → endast pins */
#map.pins-only .lmr-pin {
    display: inline-block !important;
}
#map.pins-only .lmr-pin-label {
    display: none !important;
}

/* 2. Kategori vald → pins + labels */
#map.show-pin-labels .lmr-pin {
    display: inline-block !important;
}
#map.show-pin-labels .lmr-pin-label {
    display: inline-block !important;
}

/* 3. Typ vald → ENDAST labels */
#map.labels-only .lmr-pin {
    display: none !important;
}
#map.labels-only .lmr-pin-label {
    display: inline-block !important;
}

/* Archive-map: endast labels */
#archive-map.labels-only .lmr-pin {
    display: none !important;
}
#archive-map.labels-only .lmr-pin-label {
    display: inline-block !important;
}






/* Wrapping element */
.lmr-pin-wrapper {
    display:flex;
    flex-direction:column;
    align-items:center;
    position: relative;
    padding: 10px 12px;
    margin: -10px -12px;
    transform: translate(var(--pin-x, 0px), var(--pin-y, 0px));
}

/* Center labels using iconAnchor (no CSS offset) */
.lmr-pin-with-label {
  transform: none;
}

/* Kategori-färgade etiketter */
.lmr-pin-wrapper .lmr-pin-yellow ~ .lmr-pin-label {
    background: #fFF6c2;
    border-color:#f1c40f;
    color:#000;
}

.lmr-pin-wrapper .lmr-pin-red ~ .lmr-pin-label {
    background:#ffd9d6;
    border-color:#e74c3c;
    color:#8a1e1e;
}

.lmr-pin-wrapper .lmr-pin-purple ~ .lmr-pin-label {
    background:#f4dbff;
    border-color:#c25ce7;
    color:#5b30a9;
}

.lmr-pin-wrapper .lmr-pin-grey ~ .lmr-pin-label,
.lmr-pin-wrapper .lmr-pin-grey-light ~ .lmr-pin-label {
    background:#e7f1f4;
    border-color:#95b8c9;
    color:#07324a;
}

.lmr-pin-wrapper .lmr-pin-black ~ .lmr-pin-label {
    background:#eeeeee;
    border-color:#000;
    color:#111;
}

.lmr-pin-wrapper .lmr-pin-green ~ .lmr-pin-label,
.lmr-pin-wrapper .lmr-pin-green-dark ~ .lmr-pin-label {
    background:#e6f6e6;
    border-color:#206323;
    color:#133f1c;
}

.lmr-pin-wrapper .lmr-pin-tram ~ .lmr-pin-label {
    background:#e7faff;
    border-color:#71dafa;
    color:#00495c;
}


/* När en kategori är aktiv visas etiketter */
.show-pin-labels .lmr-pin-label {
    display: inline-block !important;
}

/* ========= Hero Image Fullscreen ========= */
.butik-hero {
    width: 100%;
    height: 70vh!important; /* här är magin */
    overflow: hidden;
    position: relative;
}

.butik-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ========= Wrapper under hero ========= */
.butik-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    padding: 12px 16px;
    border-radius: 8px;
}

/* textstorlek */
.leaflet-popup-content {
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
}

.leaflet-popup-content a {
  text-decoration: none;
  font-weight: 600;
}

/* Popup spacing + pill button */
.leaflet-popup-content h5 {
  margin: 0 0 6px;
  font-size: 16px;
}

.leaflet-popup-content p {
  margin: 8px 0 !important;
}

.leaflet-popup-content .lmr-popup-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* no arrow */

/* mobil – mindre popup */
@media (max-width: 600px) {
    .leaflet-popup-content-wrapper {
        max-width: 220px !important;
        padding: 8px 10px;
    }

    .leaflet-popup-content h3,
    .leaflet-popup-content h5 {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .leaflet-popup-content p {
        font-size: 13px !important;
        line-height: 1.4;
    }

    .leaflet-popup-tip {
        width: 16px;
        height: 16px;
    }
}

.butik-hero-archive-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
width: 130px;
  background: #fff;
  color: #000;

  padding: .55em 1em;
  white-space: nowrap; 
  border-radius: 999px; /* helt rundad */

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  cursor: pointer;

  transition: 
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

/* Hover */
.butik-hero-archive-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Active */
.butik-hero-archive-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.butik-hero-archive-overlay h2 {
  color: #222;
  text-shadow:
    0 1px 2px rgba(255,255,255,.9),   /* vit “gloria” nära texten */
    0 2px 6px rgba(0,0,0,.35);        /* lätt mörk skugga för djup */
}


/* Mest besökta grid */

.butik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.butik-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.butik-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.butik-card-image img,
.placeholder-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
}

.butik-card-content {
    padding: 12px 16px;
}

.butik-card-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.visits {
    display: inline-block;
    font-size: 13px;
    color: #666;
}

.butik-color-strip {
    width: 100vw;
    height: 8px;
    margin-left: calc(50% - 50vw);
    background: var(--theme-frame-color);
}


/* Karusell */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}

.hero-slide-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .butik-hero-archive-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: none;
    z-index: 2;
    pointer-events: none;
}

.hero-carousel .butik-hero-archive-banner {
    pointer-events: auto;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
}

.hero-prev { left: 10px; }
.hero-next { right: 10px; }

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0,0,0,0.55);
}


/* =========================
Breadcrumbs - Kopplade till theme-frame-color
   ========================= */
.vb-breadcrumbs {
  display: inline-flex;
  align-items: stretch;
}

/* Breadcrumb links: vit text på mörka kategorier (single) */
body.cat-konst-kultur .vb-breadcrumbs a,
body.cat-mat-dryck .vb-breadcrumbs a,
body.cat-halsa .vb-breadcrumbs a,
body.cat-platser-fritid .vb-breadcrumbs a,
body.cat-tjanster .vb-breadcrumbs a,
body.cat-hallplatser .vb-breadcrumbs a,
body.cat-tram .vb-breadcrumbs a,
body.cat-black .vb-breadcrumbs a,
body.cat-red .vb-breadcrumbs a,
body.cat-purple .vb-breadcrumbs a,
body.cat-grey .vb-breadcrumbs a {
  color: #fff;
}

body.cat-narbutiker .vb-breadcrumbs a {
  color: #111;
}

/* =========================
   Bas label – Vagabond
   ========================= */
.tag-label {
  --bg: var(--theme-frame-color);

  background-color: var(--bg);
  color: #fff;

  display: inline-flex;
  align-items: center;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;

  padding: .5em .9em .5em .7em;
  position: relative;
  text-transform: uppercase;

  overflow: visible;
}

.tag-label a {
  color: inherit;
  text-decoration: none;
}

.tag-label a:hover,
.tag-label a:focus {
  color: inherit;
}

/* =========================
   PIL – ALLA LABELS
   ========================= */
.tag-label::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100%;

  border-top: 1em solid transparent;
  border-bottom: 1em solid transparent;
  border-left: .8em solid var(--bg);
  z-index: 3;
}

/* =========================
   VIT OUTLINE – ENDAST FÖRSTA PILEN
   ========================= */
.tag-label:first-child::before {
  content: "";
  position: absolute;
  top: 0;

  border-top: 1em solid transparent;
  border-bottom: 1em solid transparent;
  /*border-left: .7em solid #fff;  outline */
  z-index: -1;
}

.tag-label:first-child { z-index: 3; }
.tag-label:nth-child(2) { z-index: 1; }

.tag-label:has(+.tag-label) {
  filter: drop-shadow(2px 0 0 #fff)
}


/* =========================
   LUFT MELLAN LABELS
   ========================= */
.tag-label + .tag-label {
  padding-left: 1.4em; 
}

/* =========================
   SEKUNDÄR (typ / sort)
   ========================= */
.tag-label.secondary {
  --bg: var(--theme-frame-color);
  filter: brightness(90%);
  color: #fff;
}

.tag-label.primary,
.tag-label.secondary {
  font-size: 0.6rem;
  padding-right: 0.6em;
}

.tag-label.primary::after,
.tag-label.secondary::after {
  left: 100%;
  border-left-width: .8em;
}

/* Bakgrund dämpad – text opåverkad */
.tag-label.secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
 
  z-index: -1;
}


/* =========================
   Hero-variant
   ========================= */
.vb-breadcrumbs-hero {
  --h: 40px;
}

.vb-breadcrumbs-hero .tag-label {
  font-size: 13px;
}

.vb-breadcrumbs-hero .tag-label.primary,
.vb-breadcrumbs-hero .tag-label.secondary {
  font-size: 12px;
}

/* =========================
   Inline tags – butik-card
   ========================= */

.vb-inline-tags {
  display: inline-flex;
  align-items: stretch;
}

/* Själva labeln */
.vb-inline-tag {
  position: relative;
  display: inline-flex;
  align-items: center;

  background-color: #222;
  color: #fff;                 
  text-decoration: none;       

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;

  padding: .5em .5em .5em 1em;
  overflow: visible;
}

/* Butik-grid: säkerställ vit länktext + hover på svarta breadcrumbs */
.vb-inline-tag,
.vb-inline-tag:visited,
.vb-inline-tag:hover,
.vb-inline-tag:focus {
  color: #fff;
  text-decoration: none;
}



/* Vagabond-pil */
.vb-inline-tag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;

  border-top: 1em solid transparent;
  border-bottom: 1em solid transparent;
  border-left: .7em solid #222;
  
}

/* =========================
   LUFT MELLAN LABELS
   ========================= */
.vb-inline-tag + .vb-inline-tag {
  padding-left: 1.7em; 
}


/* VIT DROPSHADOW-PIL (EXAKT Vagabond) */
.vb-inline-tag:has(+ .vb-inline-tag) {
  filter: drop-shadow(4px 0 0 #fff)!important;
}

.vb-inline-tag:first-child { z-index: 3; }
.vb-inline-tag:nth-child(2) { z-index: 1; }


/* Typ något lugnare (valfritt) */
.vb-inline-tag.vb-typ {
  filter: brightness(90%);
}

/* Startsida: kategori-teasers */
.kategori-teasers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 24px 0;
  --teaser-strip-bleed: 24px;
}

.kategori-teaser {
  padding: 8px 0;
  border-top: none;
}

.kategori-teaser::before {
  content: "";
  display: block;
  height: 12px;
  border-radius: 0;
  background: var(--teaser-strip-color, rgba(0,0,0,0.12));
  width: calc(100% + (var(--teaser-strip-bleed, 0px) * 2));
  margin: 4px calc(-1 * var(--teaser-strip-bleed, 0px)) 16px;
}

.kategori-teaser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.kategori-teaser-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.kategori-teaser-head p {
  margin: 0;
  opacity: .7;
}

.kategori-teaser-link {
  font-weight: 700;
  text-decoration: none;
}

.kategori-teaser-grid {
  padding: 8px 0;
}

/* Teaser-strip färger per kategori */
.kategori-teaser.cat-butiker { --teaser-strip-color: #F4C542; }
.kategori-teaser.cat-mat-dryck { --teaser-strip-color: #D94B4B; }
.kategori-teaser.cat-konst-kultur { --teaser-strip-color: #222; }
.kategori-teaser.cat-halsa { --teaser-strip-color: #8E44AD; }
.kategori-teaser.cat-tjanster { --teaser-strip-color: #7F8C8D; }
.kategori-teaser.cat-narbutiker { --teaser-strip-color: #6FBF8F; }
.kategori-teaser.cat-platser-fritid { --teaser-strip-color: #206323; }
.kategori-teaser.cat-hallplatser { --teaser-strip-color: #2980B9; }
.kategori-teaser.nu-da-teaser { --teaser-strip-color: #5B4636; }

@media (max-width: 768px) {
  .kategori-teaser-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .kategori-teasers {
    --teaser-strip-bleed: 16px;
  }
}
/* Rad-separation i kort */
.vb-row-cat {
  margin-bottom: .35em;
}

.vb-row-typ {
  margin-bottom: .25em;
}

/* Archive Map */
.archive-map-wrap {
  margin: 0;
  position: relative;
  z-index: 80;
}

#archive-map {
  height: 400px;
 width: 100%;
  overflow: hidden;
  z-index: 90;
}



.archive-map-category {
position: absolute;
  left: 0;
  bottom: 0;
  z-index: 400;

  display: inline-block;

  padding: 10px 14px;
  
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  background: var(--theme-frame-color, #111);
  color: #fff;

  }

/* Archive map: Nära mig-knapp */
.archive-map-nearby-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0.96;
}

.archive-map-reset-btn {
  position: absolute;
  top: 12px;
  right: 110px;
  z-index: 500;
  background: #fff;
  color: #111;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0.96;
  display: none;
}


.lmr-map-category-label {
  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  color: #222;

  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.lmr-map-category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
}

/* Live search results + suggestions */
.mp-live-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000;
  overflow: hidden;
}

.mp-live-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1001;
}

.mp-suggest-item {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f7f7f7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mp-suggest-item:hover {
  background: #111;
  color: #fff;
}

.archive-map-category.cat-butiker { --theme-frame-color: #F4C542; color:#222;}
.archive-map-category.cat-mat-dryck { --theme-frame-color: #D94B4B; }
.archive-map-category.cat-halsa { --theme-frame-color: #8E44AD; }
.archive-map-category.cat-konst-kultur { --theme-frame-color: #222; }
.archive-map-category.cat-platser-fritid { --theme-frame-color: #206323; }
.archive-map-category.cat-hallplatser { --theme-frame-color: #2980B9; }
.archive-map-category.cat-narbutiker { --theme-frame-color: #6FBF8F; color:#222; }
.archive-map-category.cat-tjanster { --theme-frame-color: #7F8C8D; color:#222; }

.butik-nearby h3 {
  margin: 16px;
}

/* (handled by main .butik-grid block above) */

/* Gemensamt kort-beteende */
.butik-card,
.butik-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.butik-distance,
.butik-cta {
  margin-top: auto;
}

.butik-distance {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: .6;
}

/* Horisontell scroll kort */

.butik-grid.is-scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 8px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.butik-grid.is-scroll > * {
  scroll-snap-align: start;
}

.butik-grid.is-scroll::-webkit-scrollbar {
  display: none;
}

.butik-grid.is-scroll {
  scrollbar-width: none;
}

/* Scrollpilar */
.scroll-arrows {
  position: relative;
}

.scroll-arrows .scroll-btn {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
}

.scroll-arrows .scroll-btn.left {
  left: 6px;
}

.scroll-arrows .scroll-btn.right {
  right: 6px;
}



/* Historiska kort */

.butik-historical h3 {
  margin: 16px;
}

/* Wrappern */
.butik-grid.is-horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

/* SJÄLVA KORTET */
.historisk-card,
.butik-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Innehåll */
.historisk-card-content,
.butik-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
   flex: 1;
  min-width: 0;
}

/* Bild */
.historisk-card-image,
.butik-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.historisk-card-image img,
.butik-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.historisk-card-image .butik-card-img.placeholder,
.butik-card-image .butik-card-img.placeholder {
  width: 100%;
  height: 100%;
}

/* Avstånd längst ner */
.historisk-card-distance,
.butik-card-distance {
  margin-top: auto;
  font-size: 13px;
  opacity: .6;
}

.historisk-card-link,
.historisk-card-link:hover {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Stoppa hover-styles på rubriker */
.historisk-card-link h4,
.historisk-card-link:hover h4 {
  color: inherit;
}

/* Om Blocksy sätter opacity / filter */
.historisk-card-link * {
  transition: none !important;
}

.historisk-card-title, 
.historisk-card-meta.address {
  display: flex;
  gap: 4px;
  line-height: 1.4;
}
.historisk-card-title,
.historisk-card-meta.address strong {
  white-space: normal;
}

.historisk-card-title,
.historisk-card-meta.address {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Gör slashen visuellt tydlig */
.historisk-card-meta.address::after {
  content: "";
}

/* (handled by main .butik-grid block above) */

/* ============================= */
/* HISTORISK PLATS – SINGLE */
/* ============================= */

.historisk-plats {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---------- Gallery ---------- */

.plats-gallery {
  overflow-x: auto;
  margin-bottom: 32px;
}

.plats-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 420px);
  gap: 16px;
}

.plats-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.plats-header {
  margin-bottom: 32px;
}

.plats-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.plats-adress {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Meta ---------- */

.plats-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.plats-meta li span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Content ---------- */

.plats-content {
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ---------- Nearby sections ---------- */

.nearby-buildings {
  margin-top: 48px;
  margin-left: 16px;
}

.nearby-section {
  margin-top: 48px;
}

.nearby-section h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.nearby-grid {
  display: grid;
  gap: 16px;
}

/* Mobil → horisontell scroll */
@media (max-width: 768px) {
  .nearby-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

.kvarter-hero {
  background: var(--hero) center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
}

.kvarter-hero-inner {
  padding: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  width: 100%;
}

.kvarter-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
}

.kvarter-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
}

/* ---- HERO CAROUSEL ---- */
.mp-hero-carousel {
    position: relative;
    width: 100%;
    
    overflow: hidden;
}

.mp-hero-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.mp-hero-slide {
position: relative;  
  display: none;            /* alla slides dolda */
  height: 60vh;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
}

.mp-hero-slide.active {
    display: flex;
}

.mp-hero-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Carousel buttons */
.mp-hero-prev,
.mp-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    color: white;
    font-size: 28px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.mp-hero-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;

  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 6px;

  pointer-events: none;      /* klick går igenom */
  white-space: nowrap;
}

.mp-hero-prev { left: 10px; }
.mp-hero-next { right: 10px; }

/* ---- SINGLE HISTORISK: HERO ---- */
body.single-historisk_plats .mp-hero-carousel--historisk {
  background: #f2ede6;
  border-bottom: 1px solid rgba(91, 70, 54, 0.18);
}

body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-slide {
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  padding: 20px 60px 14px;
}

body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-slide img {
  display: block;
  max-width: min(100%, 1500px);
  max-height: min(72vh, 960px);
  width: auto;
  height: auto;
}

body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-alt {
  width: min(100%, 82ch);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #3a2c22;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-prev,
body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-next {
  top: 42%;
}

@media (max-width: 900px) {
  body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-slide {
    padding: 18px 16px 14px;
  }

  body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-slide img {
    max-height: 58vh;
  }

  body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-prev,
  body.single-historisk_plats .mp-hero-carousel--historisk .mp-hero-next {
    top: 30%;
  }
}
