/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Template: blocksy
 */

/* =========================================================
   UPPTÄCK MARIAPLAN – DESIGN (CHILD THEME ONLY)
   All visuell styling – plugin styr ENDAST funktion
   ========================================================= */

/* =========================================================
   PINS
   ========================================================= */

.lmr-app .lmr-pin {
  display:inline-block;
  width:16px;
  height:16px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 2px solid rgba(255,255,255,0.9);
}

/* labels */
.lmr-app .lmr-pin-label {
  margin-top:3px;
  font-size:11px;
  font-weight:600;
  padding:2px 6px;
  border-radius:6px;
  white-space:nowrap;
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,0.12);
  box-shadow:0 2px 4px rgba(0,0,0,0.12);
}

/* =========================================================
   FILTER / KATEGORI-KNAPPAR
   ========================================================= */

   
.lmr-app #lmr-buttons,
.lmr-app #lmr-type-buttons {
  display:flex;
  gap:8px;
  padding:6px 10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.lmr-app #lmr-buttons::-webkit-scrollbar,
.lmr-app #lmr-type-buttons::-webkit-scrollbar {
  display:none;
}

.lmr-app .lmr-btn,
.lmr-app .lmr-type-btn {
  padding:8px 14px;
  border-radius:14px;
  font-size:14px;
  font-weight:700;
  background: var(--bg);
  color: var(--text);
  border:1px solid rgba(0,0,0,0.06);
  white-space:nowrap;
  cursor:pointer;
  transition: all .15s ease;
}

.lmr-app .lmr-btn.active,
.lmr-app .lmr-type-btn.active {
  background:#fff;
  border:2px solid var(--accent);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  transform:translateY(-1px);
}

/* =========================================================
   LISTA / ITEMS
   ========================================================= */

.lmr-app .item {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 14px;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.04);
  margin:8px 12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.03);
  cursor:pointer;
}

.lmr-app .item:hover {
  background:#f7f7f7;
}

.lmr-app .item strong {
  font-size:15px;
  color:#111;
}

.lmr-app .item .sub {
  font-size:13px;
  color:#666;
}

.lmr-app .item.active-item {
  outline:3px solid rgba(0,0,0,0.05);
  background:#fff;
  transform:translateY(-1px);
}

/* =========================================================
   ACCORDION / GRUPPER
   ========================================================= */

.lmr-app .lmr-group {
  margin-bottom:12px;
  border-radius:10px;
  overflow:hidden;
}

.lmr-app .lmr-group-header {
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  background:#fff;
  border:1px solid rgba(0,0,0,0.04);
  border-left:6px solid var(--accent);
  color:var(--text);
}

.lmr-app .lmr-group-content {
  background:#fff;
  padding:8px 0;
}

/* =========================================================
   FULLSCREEN FILTER BARS (VISUELLT)
   ========================================================= */

body.lmr-map-fullscreen .lmr-app #lmr-buttons,
body.lmr-map-fullscreen .lmr-app #lmr-type-buttons {
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 30px rgba(0,0,0,0.15);
  padding:10px;
  border-radius:12px;
}

/* =========================================================
   CLAIM / EDIT BUTIK
   ========================================================= */

.claim-store-btn {
  display:inline-block;
  background:#000;
  color:#fff;
  padding:14px 22px;
  border-radius:8px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
}

.claim-store-btn:hover {
  background:#333;
  transform:translateY(-2px);
}

/* modal */
.edit-butik-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,0.6);
}

.edit-butik-modal-content {
  background:#fff;
  margin:60px auto;
  padding:20px;
  max-width:650px;
  border-radius:10px;
}

/* =========================================================
   BUTIK GRID / KORT
   ========================================================= */

.butik-grid {
  display:grid;
  gap:24px;
  margin: 8px;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
}

/* KORT */
.butik-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

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

/* BILD */
.butik-card-img-wrap {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.butik-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.butik-card-img.placeholder {
    background: #f2f2f2 center / cover no-repeat;
    background-image: var(--placeholder-image, url('assets/hero-fallback.jpg'));
}


/* CONTENT */
.butik-card-content {
    padding: 16px;
}


/* TITEL */
.butik-card-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    line-height: 1.2;
}

.butik-card-title a {
    text-decoration: none;
    color: #111;
}

/* META (kategori + typ) */
.butik-card-meta {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.butik-cat, .butik-typ {
    text-decoration: none;
    color: #111;
}

.butik-cat:hover, .butik-typ:hover {
    text-decoration: underline;
}


/* ADRESS */
.butik-card-adress {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 12px;
}


/* BESKRIVNING */
.butik-card-desc {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.9;
}

/* =========================================================
   SORTERING STICKY
   ========================================================= */




.butik-sortering-sticky {
  position:sticky;
  top:0;
  padding: 8px;
  z-index:30;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #eee;
}

.sort-btn {
  padding:6px 14px;
  border-radius:20px;
  font-size:14px;
  background:#f8f8f8;
  border:1px solid #ccc;
  cursor:pointer;
}

.sort-btn.active {
  background:#111;
  color:#fff;
  border-color:#111;
}


/* TRENDANDE HERO */


   .butik-archive {
    margin: 0px;
   }


.butik-hero-archive {
    margin: 0px;
    overflow: hidden;
    position: relative;
}

.butik-hero-archive-link {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
}

.butik-hero-archive-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.butik-hero-archive-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.butik-hero-archive-banner {
    align-self: flex-start;
    margin-bottom: auto;
}

.butik-hero-archive-banner.tag-label {
    text-transform: none;
    letter-spacing: 0;
    color: var(--fg, #fff);
    padding-right: 0.8em;
}

body.cat-butiker .butik-hero-archive-banner,
body.cat-yellow .butik-hero-archive-banner {
    --fg: #111;
}

.butik-card-img-wrap {
    position: relative;
}

.butik-card .tag-label {
    color: #fff;
    --bg: #111;
}

.butik-card-since {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(58, 66, 70, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 16px 5px 9px;
    line-height: 1.2;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    z-index: 2;
    max-width: 80%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.butik-hero-archive-badge {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.butik-hero-archive h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    margin: 0 0 6px;
}

.butik-hero-archive-meta {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.butik-hero-archive-cta {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.butik-hero-archive-img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}
.butik-hero-archive{
  margin-bottom:0px;
}


/* Sökkort */

.mp-card {
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.mp-card-title {
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}

.mp-card-header {
  display:flex;
  align-items:center;
  gap:8px;
}

.mp-card .lmr-pin {
  width:14px;
  height:14px;
}


.mp-card { border-left: 6px solid var(--accent); }


/* =========================
   GAMLA MARIAPLAN – FRAME FÄRG
========================= */
body.page-template-page-och-da,
body.page-template-page-ar,
body.page-template-page-kvarter,
body.page-template-page-tidslinje,
body.page-template-page-tidslinje-php,
body.page-template-page-kvarter-php,
body.taxonomy-decade,
body.tax-decade,
body.taxonomy-kvarter,
body.tax-kvarter,
body.single-historisk_plats {
  --theme-frame-color: #5B4636;
}

.arkiv-flikar {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  margin-bottom: 0 !important;
  border-bottom: 4px solid #5B4636;
}

.arkiv-flikar .flik {
  padding: 6px 14px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  border-bottom: none;
  background: #f2f2f2;
  position: relative;
  top: 1px;
  white-space: nowrap;
}

.arkiv-title {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 2px 16px;
  letter-spacing: 0.3px;
}

.arkiv-subtitle {
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 16px;
  color: #5B4636;
  white-space: nowrap;
}

body.page-template-page-och-da .arkiv-subtitle,
body.page-template-page-tidslinje .arkiv-subtitle,
body.page-template-page-tidslinje-php .arkiv-subtitle,
body.page-template-page-ar .arkiv-subtitle,
body.page-template-page-kvarter .arkiv-subtitle,
body.page-template-page-kvarter-php .arkiv-subtitle,
body.taxonomy-decade .arkiv-subtitle,
body.taxonomy-kvarter .arkiv-subtitle,
body.tax-kvarter .arkiv-subtitle {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  opacity: 0.9;
  white-space: normal;
  max-width: 72ch;
}

body.page-template-page-ar .decade-nav,
body.page-template-page-ar-php .decade-nav,
body.taxonomy-decade .decade-nav,
body.tax-decade .decade-nav {
  position: relative;
}

body.page-template-page-ar .decade-nav ul,
body.page-template-page-ar-php .decade-nav ul,
body.taxonomy-decade .decade-nav ul,
body.tax-decade .decade-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  list-style: none;
  margin: 0;
  padding: 8px 4px 4px 8px;
}

body.page-template-page-ar .decade-nav li,
body.page-template-page-ar-php .decade-nav li,
body.taxonomy-decade .decade-nav li,
body.tax-decade .decade-nav li {
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-template-page-ar .decade-nav li::marker,
body.page-template-page-ar-php .decade-nav li::marker,
body.taxonomy-decade .decade-nav li::marker,
body.tax-decade .decade-nav li::marker {
  content: "";
}

body.taxonomy-decade .decade-dynamic-tools,
body.tax-decade .decade-dynamic-tools {
  display: grid;
  gap: 6px;
}

body.taxonomy-decade .decade-filter-heading,
body.tax-decade .decade-filter-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body.taxonomy-decade .decade-filter-heading strong,
body.tax-decade .decade-filter-heading strong {
  font-size: 15px;
  color: #3f2f24;
}

body.taxonomy-decade .decade-current-buttons,
body.tax-decade .decade-current-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.taxonomy-decade .decade-filter-controls,
body.tax-decade .decade-filter-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

body.taxonomy-decade .decade-tools-label,
body.tax-decade .decade-tools-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5b4636;
}

body.taxonomy-decade .decade-tools-label-dynamic,
body.tax-decade .decade-tools-label-dynamic {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
}

body.page-template-page-ar .decade-chip,
body.page-template-page-ar-php .decade-chip,
body.taxonomy-decade .decade-chip,
body.tax-decade .decade-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  opacity: 1;
  color: #f6f2ea;
  background: #5b4636;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

body.page-template-page-ar .decade-chip:hover,
body.page-template-page-ar-php .decade-chip:hover,
body.taxonomy-decade .decade-chip:hover,
body.tax-decade .decade-chip:hover {
  background: #4b392c;
}

body.page-template-page-ar .decade-chip-btn,
body.page-template-page-ar-php .decade-chip-btn,
body.taxonomy-decade .decade-chip-btn,
body.tax-decade .decade-chip-btn {
  cursor: pointer;
}

body.page-template-page-ar .decade-chip.is-active,
body.page-template-page-ar-php .decade-chip.is-active,
body.page-template-page-ar .decade-chip-btn.is-active,
body.page-template-page-ar-php .decade-chip-btn.is-active,
body.taxonomy-decade .decade-chip.is-active,
body.tax-decade .decade-chip.is-active,
body.taxonomy-decade .decade-chip-btn.is-active,
body.tax-decade .decade-chip-btn.is-active {
  background: #2f6b55;
  border-color: #245644;
}

body.taxonomy-decade .butik-grid,
body.tax-decade .butik-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0;
}

body.taxonomy-decade .decade-sort-item,
body.tax-decade .decade-sort-item {
  min-width: 0;
}

@media (max-width: 1200px) {
  body.taxonomy-decade .butik-grid,
  body.tax-decade .butik-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.taxonomy-decade .butik-grid,
  body.tax-decade .butik-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.taxonomy-decade .decade-dynamic-tools,
  body.tax-decade .decade-dynamic-tools {
    gap: 4px;
  }

  body.taxonomy-decade .decade-filter-controls,
  body.tax-decade .decade-filter-controls {
    gap: 5px;
  }

  body.taxonomy-decade .decade-tools-label,
  body.tax-decade .decade-tools-label {
    font-size: 11px;
  }

  body.taxonomy-decade .decade-filter-heading strong,
  body.tax-decade .decade-filter-heading strong {
    font-size: 13px;
  }

  body.page-template-page-ar .decade-chip,
  body.page-template-page-ar-php .decade-chip,
  body.taxonomy-decade .decade-chip,
  body.tax-decade .decade-chip {
    padding: 5px 9px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  body.taxonomy-decade .decade-nav::after,
  body.tax-decade .decade-nav::after {
    content: "›";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #F6F2EA;
    background: #5B4636;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  body.taxonomy-decade .butik-grid,
  body.tax-decade .butik-grid {
    grid-template-columns: 1fr;
  }
}

body.taxonomy-decade .decade-dynamic-tools,
body.tax-decade .decade-dynamic-tools {
  gap: 8px;
}

body.taxonomy-decade .decade-toolbar,
body.tax-decade .decade-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.taxonomy-decade .decade-toolbar > * + *,
body.tax-decade .decade-toolbar > * + * {
  position: relative;
}

body.taxonomy-decade .decade-toolbar > * + *::before,
body.tax-decade .decade-toolbar > * + *::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}

body.taxonomy-decade .decade-toolbar-btn,
body.tax-decade .decade-toolbar-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f6f2ea;
  color: #2f2a25;
  border-radius: 12px;
  padding: 9px 12px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

body.taxonomy-decade .decade-toolbar-btn:hover,
body.tax-decade .decade-toolbar-btn:hover {
  border-color: rgba(0, 0, 0, 0.32);
}

body.taxonomy-decade .decade-toolbar-btn:focus-visible,
body.tax-decade .decade-toolbar-btn:focus-visible {
  outline: 2px solid rgba(47, 107, 85, 0.45);
  outline-offset: 2px;
}

body.taxonomy-decade .decade-toolbar-filter-btn[aria-expanded="false"],
body.tax-decade .decade-toolbar-filter-btn[aria-expanded="false"] {
  opacity: 0.75;
}

body.taxonomy-decade .decade-toolbar-btn-icon,
body.tax-decade .decade-toolbar-btn-icon {
  display: inline-flex;
  align-items: center;
}

body.taxonomy-decade .decade-toolbar-filter-count,
body.tax-decade .decade-toolbar-filter-count {
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f6b55;
  color: #f5f8f1;
  font-size: 12px;
  font-weight: 700;
}

body.taxonomy-decade .decade-toolbar-sort,
body.tax-decade .decade-toolbar-sort {
  min-width: 0;
}

body.taxonomy-decade .decade-toolbar-sort select,
body.tax-decade .decade-toolbar-sort select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #f6f2ea;
  color: #2f2a25;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 42px 10px 12px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.taxonomy-decade .decade-toolbar-sort select:focus-visible,
body.tax-decade .decade-toolbar-sort select:focus-visible {
  outline: 2px solid rgba(47, 107, 85, 0.45);
  outline-offset: 2px;
}

body.taxonomy-decade .decade-view-controls,
body.tax-decade .decade-view-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

body.taxonomy-decade .decade-view-btn,
body.tax-decade .decade-view-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #f6f2ea;
  color: #5b4636;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.taxonomy-decade .decade-view-btn:hover,
body.tax-decade .decade-view-btn:hover {
  border-color: rgba(0, 0, 0, 0.32);
}

body.taxonomy-decade .decade-view-btn:focus-visible,
body.tax-decade .decade-view-btn:focus-visible {
  outline: 2px solid rgba(47, 107, 85, 0.45);
  outline-offset: 2px;
}

body.taxonomy-decade .decade-view-btn.is-active,
body.taxonomy-decade .decade-view-btn[aria-pressed="true"],
body.tax-decade .decade-view-btn.is-active,
body.tax-decade .decade-view-btn[aria-pressed="true"] {
  background: rgba(47, 107, 85, 0.14);
  border-color: rgba(47, 107, 85, 0.5);
  color: #2f6b55;
}

body.taxonomy-decade .decade-filter-panel,
body.tax-decade .decade-filter-panel {
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 8px;
}

body.taxonomy-decade .decade-filter-panel[hidden],
body.tax-decade .decade-filter-panel[hidden] {
  display: none !important;
}

body.taxonomy-decade .decade-filter-state,
body.tax-decade .decade-filter-state {
  margin: 0;
  font-size: 13px;
  color: #5b4636;
  opacity: 0.85;
}

body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(1),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(1) { width: 36%; }
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(2),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(2) { width: 18%; }
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(3),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(3) { width: 18%; }
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(4),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(4) { width: 16%; }
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(5),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(5) { width: 14%; }

body.taxonomy-decade .js-decade-sort-table .adress-table,
body.tax-decade .js-decade-sort-table .adress-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

body.taxonomy-decade .js-decade-sort-table .adress-row-link,
body.tax-decade .js-decade-sort-table .adress-row-link {
  background: transparent;
}

body.taxonomy-decade .js-decade-sort-table .adress-row-link td,
body.tax-decade .js-decade-sort-table .adress-row-link td {
  background: transparent !important;
}

body.taxonomy-decade .js-decade-sort-table .adress-row-link:hover,
body.tax-decade .js-decade-sort-table .adress-row-link:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.taxonomy-decade .js-decade-sort-table .adress-row-link:focus-visible,
body.tax-decade .js-decade-sort-table .adress-row-link:focus-visible {
  background: rgba(47, 107, 85, 0.08);
}

body.taxonomy-decade .js-decade-kvarter-table .adress-table td:nth-child(1),
body.tax-decade .js-decade-kvarter-table .adress-table td:nth-child(1) { width: 42%; }
body.taxonomy-decade .js-decade-kvarter-table .adress-table td:nth-child(2),
body.tax-decade .js-decade-kvarter-table .adress-table td:nth-child(2) { width: 22%; }
body.taxonomy-decade .js-decade-kvarter-table .adress-table td:nth-child(3),
body.tax-decade .js-decade-kvarter-table .adress-table td:nth-child(3) { width: 22%; }
body.taxonomy-decade .js-decade-kvarter-table .adress-table td:nth-child(4),
body.tax-decade .js-decade-kvarter-table .adress-table td:nth-child(4) { width: 14%; }

body.taxonomy-decade .js-decade-sort-table .adress-title-cell,
body.tax-decade .js-decade-sort-table .adress-title-cell {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

body.taxonomy-decade .js-decade-sort-table .adress-title-cell a,
body.tax-decade .js-decade-sort-table .adress-title-cell a {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: visible;
  text-overflow: clip;
}

body.taxonomy-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid,
body.tax-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

@media (max-width: 1200px) {
  body.taxonomy-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid,
  body.tax-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.taxonomy-decade .decade-toolbar,
  body.tax-decade .decade-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.taxonomy-decade .decade-toolbar > * + *::before,
  body.tax-decade .decade-toolbar > * + *::before {
    display: none;
  }

  body.taxonomy-decade .decade-view-controls,
  body.tax-decade .decade-view-controls {
    justify-content: flex-start;
    margin-left: 0;
  }

  body.taxonomy-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid,
  body.tax-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.taxonomy-decade .decade-toolbar-btn,
  body.tax-decade .decade-toolbar-btn,
  body.taxonomy-decade .decade-toolbar-sort select,
  body.tax-decade .decade-toolbar-sort select {
    border-radius: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 640px) {
  body.taxonomy-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid,
  body.tax-decade .ar-decade[data-decade-view="grid-compact"] .js-decade-sort-grid.butik-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-template-page-ar .ar-grid,
body.page-template-page-ar-php .ar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  body.page-template-page-ar .ar-grid,
  body.page-template-page-ar-php .ar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.page-template-page-ar .ar-grid,
  body.page-template-page-ar-php .ar-grid {
    grid-template-columns: 1fr;
  }
}

body.page-template-page-ar .ar-card,
body.page-template-page-ar-php .ar-card {
  border: 1px solid rgba(91, 70, 54, 0.45);
  border-radius: 12px;
  background: #f1e7d6;
  box-shadow: 0 6px 18px rgba(91, 70, 54, 0.12);
  overflow: hidden;
}

body.page-template-page-ar .ar-card a,
body.page-template-page-ar-php .ar-card a {
  color: #3f2f24;
}

body.page-template-page-ar .ar-thumb,
body.page-template-page-ar-php .ar-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(91, 70, 54, 0.2);
  background: #d8c7ab;
  overflow: hidden;
}

body.page-template-page-ar .ar-thumb img,
body.page-template-page-ar-php .ar-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.36) saturate(0.82) contrast(1.04);
}

body.page-template-page-ar .ar-thumb .butik-card-img.placeholder,
body.page-template-page-ar-php .ar-thumb .butik-card-img.placeholder {
  width: 100%;
  height: 100%;
}

body.page-template-page-ar .ar-meta,
body.page-template-page-ar-php .ar-meta {
  padding: 12px 13px;
}

body.page-template-page-ar .ar-meta h2,
body.page-template-page-ar-php .ar-meta h2 {
  color: #4a382b;
  font-size: 1.02rem;
}

body.page-template-page-ar .ar-count,
body.page-template-page-ar-php .ar-count {
  color: #5b4636;
  opacity: 0.82;
}

body.page-template-page-ar .ar-count-stack,
body.page-template-page-ar-php .ar-count-stack {
  display: grid;
  gap: 2px;
}

body.page-template-page-ar .ar-count-stack span,
body.page-template-page-ar-php .ar-count-stack span {
  display: block;
}

body.page-template-page-ar .ar-preview,
body.page-template-page-ar-php .ar-preview {
  color: #6b5442;
  opacity: 0.85;
}

body.page-template-page-ar .decade-nav,
body.page-template-page-ar-php .decade-nav {
  position: relative;
}

body.page-template-page-ar .decade-nav::after,
body.page-template-page-ar-php .decade-nav::after {
  content: "›";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: #F6F2EA;
  background: #5B4636;
  pointer-events: none;
}

.arkiv-flikar .flik-active {
  background: #5B4636;
  border-color: #5B4636;
  color: #F6F2EA;
}

@media (max-width: 767px) {
  .arkiv-flikar {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .arkiv-flikar .flik,
  .arkiv-flikar .flik-active {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.mp-search-group {
  padding: 8px 0;
}

.mp-search-group-title {
  font-size: 16px;
  text-transform: uppercase;
  opacity: .6;
  margin: 6px 6px;
}

.mp-type-label {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.06);
}

.mp-card-tags {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-search-group-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin: 8px 6px 10px;
  opacity: .75;
}

.mp-type-label-status--active {
  background: #dff4e1;
  color: #1e4f2a;
}

.mp-type-label-status--historic {
  background: #efe4d4;
  color: #5b4636;
}

.historisk-sedan {
  font-size: 12px;
  font-weight: 700;
  color: #4a382b;
  margin: 2px 0 4px;
}

.plats-kvarter-box {
  margin: 34px 0 0;
}

.plats-kvarter-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5B4636;
  max-width: 70ch;
}

.plats-kvarter-readmore {
  display: inline-flex;
  margin-top: 10px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(91, 70, 54, 0.3);
  border-radius: 0;
  color: #5B4636;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  opacity: 0.85;
}

.plats-kvarter-readmore:hover {
  opacity: 1;
  border-bottom-color: rgba(91, 70, 54, 0.55);
}

.kvarter-map-explorer {
  margin: 0;
}

.kvarter-map-stage {
  position: relative;
}

.kvarter-map-title {
  --theme-frame-color: #5B4636;
  z-index: 450;
}

.kvarter-index-search {
  margin: 10px 16px 18px;
}

.kvarter-index-grid > .kvarter-index-search,
.kvarter-index-grid > .kvarter-index-address-results {
  grid-column: 1 / -1;
  margin: 0 0 14px;
}

.kvarter-index-search-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kvarter-search-col {
  display: grid;
  gap: 6px;
  position: relative;
  align-content: start;
  min-width: 0;
}

.kvarter-search-col-full {
  grid-column: 1 / -1;
}

.kvarter-search-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5b4636;
}

.kvarter-index-search .mp-kvarter-search-form {
  width: 100%;
  margin: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.kvarter-index-search .mp-address-search-input {
  min-width: 0;
  flex: 1 1 auto;
}

.kvarter-index-search-actions {
  margin-top: 8px;
}

.mp-kvarter-suggestions {
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
}

.mp-kvarter-suggestions li {
  margin: 0;
}

.mp-kvarter-suggestion-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 8px;
  color: #3f2f24;
  cursor: pointer;
}

.mp-kvarter-suggestion-btn:hover,
.mp-kvarter-suggestion-btn:focus-visible {
  background: rgba(91, 70, 54, 0.1);
  outline: none;
}

.kvarter-index-address-results {
  margin: 8px 16px 16px;
}

.kvarter-index-address-results-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5b4636;
  margin-bottom: 8px;
}

.kvarter-index-address-results .adress-table {
  min-width: 820px;
  table-layout: fixed;
}

.kvarter-index-address-results .adress-table td:nth-child(1) { width: 34%; }
.kvarter-index-address-results .adress-table td:nth-child(2) { width: 24%; }
.kvarter-index-address-results .adress-table td:nth-child(3) { width: 16%; }
.kvarter-index-address-results .adress-table td:nth-child(4) { width: 16%; }
.kvarter-index-address-results .adress-table td:nth-child(5) { width: 10%; }

.kvarter-index-address-results .adress-table td:first-child a {
  color: inherit;
}

.kvarter-index-address-results .adress-table td:nth-child(2),
.kvarter-index-address-results .adress-table td:nth-child(4),
.mp-address-archive .adress-table td:nth-child(2),
.mp-address-archive .adress-table td:nth-child(4),
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(2),
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(4),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(2),
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(4) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.kvarter-index-address-results .adress-table td:nth-child(2) .adress-field-value,
.kvarter-index-address-results .adress-table td:nth-child(4) .adress-field-value,
.mp-address-archive .adress-table td:nth-child(2) .adress-field-value,
.mp-address-archive .adress-table td:nth-child(4) .adress-field-value,
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(2) .adress-field-value,
body.taxonomy-decade .js-decade-sort-table .adress-table td:nth-child(4) .adress-field-value,
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(2) .adress-field-value,
body.tax-decade .js-decade-sort-table .adress-table td:nth-child(4) .adress-field-value {
  display: inline;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.kvarter-index-address-empty,
.kvarter-index-grid-empty {
  margin: 8px 0 0;
  color: #5b4636;
}

.och-da-search-shell {
  margin: 0 0 18px;
}

.och-da-search-shell .kvarter-index-search,
.och-da-search-shell .kvarter-index-address-results,
.och-da-kvarter-results {
  margin-left: 16px;
  margin-right: 16px;
}

.mp-och-da-geo-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(91, 70, 54, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 242, 234, 0.96), rgba(232, 219, 198, 0.92));
  box-shadow: 0 8px 18px rgba(42, 25, 12, 0.06);
}

.mp-och-da-geo-copy h3 {
  margin: 2px 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #3f2f24;
}

.mp-och-da-geo-copy p {
  margin: 0;
  color: #5b4636;
  line-height: 1.5;
  max-width: 62ch;
}

.mp-och-da-geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-och-da-geo-status {
  margin: 0;
  color: #3f2f24;
  font-size: 0.95rem;
}

.mp-och-da-geo-status.is-error {
  color: #8f2d2d;
}

.mp-och-da-geo-kvarter-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(91, 70, 54, 0.14);
  background: rgba(255, 255, 255, 0.72);
  max-width: 520px;
}

.mp-och-da-geo-kvarter-link {
  display: block;
  color: inherit;
}

.mp-och-da-geo-kvarter-fallback {
  display: grid;
  place-items: center;
  min-height: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(246, 242, 234, 0.96), rgba(224, 208, 182, 0.88));
  color: #3f2f24;
  font-weight: 600;
  text-align: center;
}

.mp-och-da-geo-kvarter-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mp-och-da-geo-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-och-da-geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(91, 70, 54, 0.14);
  color: #3f2f24;
  font-size: 0.92rem;
}

.och-da-kvarter-results {
  margin-bottom: 18px;
}

.mp-och-da-kvarter-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mp-och-da-kvarter-results-grid .kvarter-index-card[hidden] {
  display: none !important;
}

.mp-och-da-kvarter-results-grid .kvarter-index-card {
  border: 1px solid rgba(91, 70, 54, 0.18);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(42, 25, 12, 0.06);
}

.mp-och-da-kvarter-results-grid .kvarter-index-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mp-och-da-kvarter-results-grid .kvarter-index-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mp-och-da-kvarter-results-grid .kvarter-index-content {
  padding: 14px;
}

.mp-och-da-kvarter-results-grid .kvarter-index-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #3f2f24;
}

.mp-och-da-kvarter-results-grid .kvarter-index-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5b4636;
}

@media (max-width: 860px) {
  .kvarter-index-search-row {
    grid-template-columns: 1fr;
  }

  .mp-och-da-geo-panel {
    padding: 14px;
  }

  .mp-och-da-geo-summary {
    flex-direction: column;
  }
}

/* Kvarter-karta: låt wrapper följa kartans faktiska höjd så labeln hamnar på kartan */
body.page-template-page-kvarter .kvarter-map-stage #gmp-map-wrapper,
body.page-template-page-kvarter-php .kvarter-map-stage #gmp-map-wrapper,
body.taxonomy-kvarter .kvarter-map-stage #gmp-map-wrapper,
body.tax-kvarter .kvarter-map-stage #gmp-map-wrapper {
  min-height: 0 !important;
  height: auto !important;
}

body.page-template-page-kvarter .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.page-template-page-kvarter-php .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.taxonomy-kvarter .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.tax-kvarter .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell {
  flex: 0 0 auto;
  min-height: 0;
}

body.page-template-page-kvarter .kvarter-map-stage #gmp-map,
body.page-template-page-kvarter-php .kvarter-map-stage #gmp-map,
body.taxonomy-kvarter .kvarter-map-stage #gmp-map,
body.tax-kvarter .kvarter-map-stage #gmp-map {
  height: 62vh !important;
  min-height: 260px !important;
}

body.page-template-page-kvarter.gmp-map-fullscreen #gmp-map-wrapper,
body.page-template-page-kvarter-php.gmp-map-fullscreen #gmp-map-wrapper,
body.taxonomy-kvarter.gmp-map-fullscreen #gmp-map-wrapper,
body.tax-kvarter.gmp-map-fullscreen #gmp-map-wrapper {
  padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  height: 100dvh !important;
}

body.page-template-page-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.page-template-page-kvarter-php.gmp-map-fullscreen .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.taxonomy-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell,
body.tax-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map-wrapper .gmp-map-shell {
  flex: 1 1 auto;
  min-height: 0;
}

body.page-template-page-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map,
body.page-template-page-kvarter-php.gmp-map-fullscreen .kvarter-map-stage #gmp-map,
body.taxonomy-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map,
body.tax-kvarter.gmp-map-fullscreen .kvarter-map-stage #gmp-map {
  height: 100% !important;
  min-height: 0 !important;
}

.mp-card-header {
  display:flex;
  align-items:center;
  gap:8px;
}

.mp-live-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background-color);
  z-index: 999;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  padding: 8px;
}

.mp-search .mp-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* =========================
   NU & DÅ – TEASER
========================= */
.nu-da-teaser {
  margin: 32px 0 48px;
}

.nu-da-strip {
  width: 100%;
  height: 8px;
  background: #5B4636;
}

.nu-da-title {
  margin: 14px 16px 6px;
  font-size: 22px;
  font-weight: 700;
}

.nu-da-text {
  margin: 0 16px 16px;
  font-size: 15px;
  color: #4a382b;
}

.nu-da-grid {
  margin: 0 16px;
}

/* Nu & Då strip-färg */
.nu-da-teaser {
  --teaser-strip-color: #5B4636;
}

.nu-da-teaser::before {
  width: calc(100% + (var(--teaser-strip-bleed, 0px) * 2)) !important;
  margin: 4px calc(-1 * var(--teaser-strip-bleed, 0px)) 16px !important;
}

/* Nu & Då – länkplacering */
.nu-da-teaser .kategori-teaser-link {
  margin-right: 16px;
}

.nu-da-teaser .kategori-teaser-text {
  margin-left: 16px;
}

/* Align alla teaser-texter */
.kategori-teaser .kategori-teaser-text {
  margin-left: 16px;
}

/* Align alla teaser-länkar */
.kategori-teaser .kategori-teaser-link {
  margin-right: 16px;
}

/* Fullbredds-strip även i constrained layout */
.kategori-teaser::before {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

@media (max-width: 768px) {
  .nu-da-teaser .kategori-teaser-link {
    margin-left: 16px;
    margin-right: 0;
    display: inline-block;
  }

  .kategori-teaser .kategori-teaser-link {
    margin-left: 16px;
    margin-right: 0;
    display: inline-block;
  }
}

/* Login */

.butikslogin {
  max-width: 420px;
  margin: 4rem auto;
}
.butikslogin input {
  width: 100%;
}
.butikslogin-help {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.claim-butik-form {
  display: block;
}

.claim-butik-help {
  margin: 0 0 12px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.claim-butik-error {
  margin: 0 0 10px;
  color: #b91c1c;
}

.claim-butik-notice {
  margin: 40px 20px 0;
  padding: 16px 18px;
  border: 1px solid #b7dfc1;
  border-radius: 12px;
  background: #f3fbf5;
  color: #1d6f42;
  scroll-margin-top: 120px;
}

.claim-butik-notice strong {
  display: block;
  margin: 0 0 4px;
}

.claim-butik-label {
  display: block;
  margin: 0 0 6px;
}

.claim-butik-label-password {
  margin-top: 10px;
}

.claim-butik-form input[type="email"],
.claim-butik-form input[type="password"] {
  width: 100%;
}

.edit-butik-modal-open {
  overflow: hidden;
}

.butik-owner-panel {
  margin: 10px 0 14px;
  padding: 10px 11px;
  border: 1px solid #d9dfd2;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f8f2 0%, #eef4ea 100%);
}

.butik-owner-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.butik-owner-panel-eyebrow {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6b57;
}

.butik-owner-panel-title {
  margin: 0;
  font-size: 0.92rem;
}

.butik-owner-panel-action {
  border: none;
  border-radius: 999px;
  background: #1f3522;
  color: #fff;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.butik-owner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.decade-overview-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decade-overview-group {
  display: grid;
  gap: 12px;
  align-content: start;
}

.decade-overview-group-title {
  margin: 0;
  font-size: 0.9rem;
  color: #1f3522;
}

.decade-overview-group-stats {
  display: grid;
  gap: 10px;
}

.decade-overview-group-stat {
  display: grid;
  gap: 4px;
}

.decade-overview-top-categories {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.decade-overview-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.decade-overview-category-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.decade-overview-category-list strong {
  color: #1f3522;
}

.butik-owner-stat-card {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 53, 34, 0.08);
}

.butik-owner-stat-label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: #5f6b57;
}

.butik-owner-stat-value {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1;
  color: #1f3522;
}

@media (max-width: 720px) {
  .butik-owner-panel-header {
    flex-direction: column;
  }

  .butik-owner-panel-action {
    width: 100%;
  }

  .butik-owner-stats {
    grid-template-columns: 1fr;
  }

  .decade-overview-groups {
    grid-template-columns: 1fr;
  }
}

.arkitekt-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.mp-address-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.mp-address-search {
  margin: 6px 0 10px;
  padding: 0 16px;
}

.mp-address-search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: min(100%, 760px);
}

.mp-address-search-input {
  flex: 1 1 320px;
  min-width: 220px;
}

.mp-address-search-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #000 !important;
  cursor: pointer;
}

.mp-address-search-btn:hover {
  background: #f5f5f5;
  color: #000 !important;
}

.mp-site-search-form {
  margin-top: 10px;
  width: min(100%, 760px);
}

.mp-address-legend {
  margin: 4px 0 14px;
  border-bottom: 0;
}

.mp-address-legend-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-legend-filter-state {
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.72;
  margin-left: 4px;
}

.mp-legend-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font: inherit;
  line-height: 1.2;
}

.mp-legend-filter-btn.is-active,
.mp-legend-filter-btn[aria-pressed="true"] {
  background: rgba(47, 107, 85, 0.1);
  border-color: rgba(47, 107, 85, 0.5);
  opacity: 1;
}

.mp-legend-filter-btn[aria-pressed="false"] {
  opacity: 0.58;
}

.mp-legend-filter-btn:hover {
  border-color: rgba(0, 0, 0, 0.38);
}

.mp-legend-filter-btn:focus-visible {
  outline: 2px solid rgba(47, 107, 85, 0.45);
  outline-offset: 2px;
}

.adress-table-wrap {
  overflow-x: auto;
}

.adress-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  table-layout: fixed;
}

.adress-table th,
.adress-table td {
  text-align: left !important;
  padding: 11px 10px;
  vertical-align: top !important;
  border-width: 0;
}

.adress-table td:first-child a {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.adress-table-intro td {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: .65;
  padding-top: 2px;
  padding-bottom: 8px;
}

body.taxonomy-decade .decade-table-sort-btn,
body.tax-decade .decade-table-sort-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: inherit;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.taxonomy-decade .decade-table-sort-btn::after,
body.tax-decade .decade-table-sort-btn::after {
  content: "↕";
  font-size: 0.8em;
  opacity: 0.45;
}

body.taxonomy-decade .decade-table-sort-btn.is-active::after,
body.tax-decade .decade-table-sort-btn.is-active::after {
  opacity: 0.9;
}

body.taxonomy-decade .decade-table-sort-btn[data-sort-direction="asc"]::after,
body.tax-decade .decade-table-sort-btn[data-sort-direction="asc"]::after {
  content: "↑";
}

body.taxonomy-decade .decade-table-sort-btn[data-sort-direction="desc"]::after,
body.tax-decade .decade-table-sort-btn[data-sort-direction="desc"]::after {
  content: "↓";
}

body.taxonomy-decade .decade-table-sort-btn:focus-visible,
body.tax-decade .decade-table-sort-btn:focus-visible {
  outline: 2px solid rgba(47, 107, 85, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.adress-table td:nth-child(1) { width: 54%; }
.adress-table td:nth-child(2) { width: 18%; }
.adress-table td:nth-child(3) { width: 18%; }
.adress-table td:nth-child(4) { width: 10%; }

body.search .adress-table td:nth-child(1) { width: 42%; }
body.search .adress-table td:nth-child(2) { width: 20%; }
body.search .adress-table td:nth-child(3) { width: 14%; }
body.search .adress-table td:nth-child(4) { width: 14%; }
body.search .adress-table td:nth-child(5) { width: 10%; }

.adress-table td:empty::before {
  content: "\00a0";
  visibility: hidden;
}

.adress-table td:first-child a:hover {
  text-decoration: underline;
}

.adress-title-cell {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.adress-title-cell .gmp-legend-dot {
  flex: 0 0 auto;
  margin-top: 0.35em;
}

.adress-field-label {
  display: none;
}

.adress-row-link {
  cursor: pointer;
}

.adress-row-link td {
  background: transparent;
}

.adress-row-link:hover {
  background: rgba(0, 0, 0, 0.03);
}

.adress-row-link:focus-visible {
  background: rgba(47, 107, 85, 0.08);
}

@media (max-width: 767px) {
  .adress-table {
    min-width: 0;
    table-layout: auto;
  }

  .adress-table tbody tr {
    display: block;
    padding: 8px 0;
  }

  .adress-table-intro {
    display: none !important;
  }

  .adress-table td {
    display: block !important;
    width: 100% !important;
    padding: 2px 10px !important;
  }

  .adress-table td:first-child {
    padding-bottom: 6px !important;
  }

  .adress-table td:not(:first-child) {
    padding-left: 28px !important;
  }

  .adress-field-label {
    display: inline-block;
    min-width: 90px;
    font-size: 12px;
    font-weight: 700;
    opacity: .65;
  }

  .adress-field-value {
    display: inline-block;
    min-width: 1ch;
  }

  .adress-row-link:hover,
  .adress-row-link:focus-visible {
    background: transparent;
  }
}

.arkitekt-archive-header h1 {
  margin: 0 0 6px;
}

.arkitekt-archive-sub {
  margin: 0 0 18px;
  color: #666;
}

.arkitekt-table-wrap {
  overflow-x: auto;
}

.arkitekt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  --theme-table-border-width: 0px;
}

.arkitekt-table th,
.arkitekt-table td {
  text-align: left;
  padding: 12px 10px;
  vertical-align: top;
  border-style: solid;
  border-width: 0;
}

.arkitekt-table th:nth-child(2),
.arkitekt-table td:nth-child(2) {
  text-align: center;
}

/* =========================
   TIDSLINJE – KARTVY
========================= */

body.page-template-page-tidslinje .ct-footer,
body.page-template-page-tidslinje footer#footer,
body.page-template-page-tidslinje-php .ct-footer,
body.page-template-page-tidslinje-php footer#footer {
  display: none !important;
}

body.page-template-page-tidslinje,
body.page-template-page-tidslinje-php {
  padding-bottom: 0 !important;
}

body.page-template-page-tidslinje.gmp-has-fixed-dock,
body.page-template-page-tidslinje-php.gmp-has-fixed-dock {
  padding-bottom: 0 !important;
}

body.page-template-page-tidslinje #main-container > main,
body.page-template-page-tidslinje-php #main-container > main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-template-page-tidslinje .tidslinje-page,
body.page-template-page-tidslinje-php .tidslinje-page {
  height: calc(100vh - var(--header-current-height, 0px));
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.page-template-page-tidslinje .tidslinje-page-header,
body.page-template-page-tidslinje-php .tidslinje-page-header {
  flex: 0 0 auto;
}

body.page-template-page-tidslinje .tidslinje-inline-host,
body.page-template-page-tidslinje-php .tidslinje-inline-host {
  position: relative;
  z-index: 40;
}

body.page-template-page-tidslinje .tidslinje-inline-host #gmp-decadeslider,
body.page-template-page-tidslinje-php .tidslinje-inline-host #gmp-decadeslider {
  margin: 0;
  border-bottom: 1px solid rgba(91, 70, 54, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.page-template-page-tidslinje.gmp-decadeslider-inline .gmp-controls-dock #gmp-decadeslider,
body.page-template-page-tidslinje-php.gmp-decadeslider-inline .gmp-controls-dock #gmp-decadeslider {
  display: none !important;
}

body.page-template-page-tidslinje .tidslinje-map-host,
body.page-template-page-tidslinje-php .tidslinje-map-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

body.page-template-page-tidslinje .tidslinje-map-host #gmp-map-wrapper,
body.page-template-page-tidslinje-php .tidslinje-map-host #gmp-map-wrapper {
  min-height: 0;
  height: 100% !important;
}

body.page-template-page-tidslinje .tidslinje-map-host .gmp-map-shell,
body.page-template-page-tidslinje-php .tidslinje-map-host .gmp-map-shell {
  height: 100%;
}

body.page-template-page-tidslinje .tidslinje-map-host #gmp-map,
body.page-template-page-tidslinje-php .tidslinje-map-host #gmp-map {
  height: 100% !important;
  min-height: 280px;
}

body.page-template-page-tidslinje.gmp-map-fullscreen #gmp-map-wrapper,
body.page-template-page-tidslinje-php.gmp-map-fullscreen #gmp-map-wrapper {
  padding-top: calc(env(safe-area-inset-top) + 8px) !important;
}

body.page-template-page-tidslinje.gmp-map-fullscreen #gmp-map-wrapper > #gmp-decadeslider,
body.page-template-page-tidslinje-php.gmp-map-fullscreen #gmp-map-wrapper > #gmp-decadeslider {
  margin: 2px 0 0;
  z-index: 10001;
  border-bottom: 1px solid rgba(246, 242, 234, 0.28);
}

/* Bottenpanel: legend ovanför årtionden, och etikett före årtiondesknappar */
body.page-template-page-tidslinje .gmp-controls-dock .gmp-legend,
body.page-template-page-tidslinje-php .gmp-controls-dock .gmp-legend {
  order: 10;
}

body.page-template-page-tidslinje .gmp-controls-dock #gmp-timeline,
body.page-template-page-tidslinje-php .gmp-controls-dock #gmp-timeline {
  order: 20;
}

body.page-template-page-tidslinje .gmp-controls-dock #gmp-kartfilters,
body.page-template-page-tidslinje-php .gmp-controls-dock #gmp-kartfilters,
body.page-template-page-tidslinje .gmp-controls-dock #gmp-typefilters,
body.page-template-page-tidslinje-php .gmp-controls-dock #gmp-typefilters {
  order: 30;
}

body.page-template-page-tidslinje .gmp-controls-dock #gmp-filter-mode,
body.page-template-page-tidslinje-php .gmp-controls-dock #gmp-filter-mode {
  order: 40;
}

body.page-template-page-tidslinje .gmp-controls-dock #gmp-timeline::before,
body.page-template-page-tidslinje-php .gmp-controls-dock #gmp-timeline::before {
  content: "Per årtionde";
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b4636;
  margin-right: 4px;
}

@media (max-width: 767px) {
  body.page-template-page-tidslinje .arkiv-title,
  body.page-template-page-tidslinje-php .arkiv-title {
    margin-top: 12px;
  }

  body.page-template-page-tidslinje .tidslinje-map-host #gmp-map,
  body.page-template-page-tidslinje-php .tidslinje-map-host #gmp-map {
    min-height: 240px;
  }
}

.arkitekt-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: #222;
}

.arkitekt-table a {
  color: inherit;
  text-decoration: none;
}

.arkitekt-table a:hover {
  text-decoration: underline;
}

.arkitekt-group td {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #222;
  padding-top: 18px;
  padding-bottom: 6px;
}

.arkitekt-name-row td {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #222;
}

.arkitekt-group-name {
  display: inline-block;
  font-weight: 700;
  padding-bottom: 2px;
  text-decoration: none;
}

.arkitekt-table th:first-child,
.arkitekt-table td:first-child,
.arkitekt-group td:first-child a,
.arkitekt-name-row td:first-child a {
  white-space: nowrap;
}

.arkitekt-entry td:first-child {
  width: 1%;
}

.arkitekt-entry td {
  padding-top: 6px;
}

.arkitekt-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.arkitekt-sort {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arkitekt-sort-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.arkitekt-sort-btn.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.arkitekt-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
  font-weight: 600;
  font-size: 13px;
}

.arkitekt-alpha a {
  text-decoration: none;
  color: #222;
}

.arkitekt-alpha a:hover {
  text-decoration: underline;
}

.arkitekt-alpha-empty {
  color: #aaa;
}

.arkitekt-group,
.arkitekt-name-row {
  scroll-margin-top: 140px;
}

.arkitekt-archive-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.arkitekt-clear {
  margin-left: 8px;
  font-size: 12px;
  text-decoration: none;
  color: #555;
}

.arkitekt-clear:hover {
  text-decoration: underline;
}

.mp-front-editable-content {
  position: relative;
}

.mp-content-edit-toggle {
  position: static;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.mp-content-edit-entry {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-content-edit-entry .mp-content-edit-helper {
  margin: 0;
}

.mp-content-edit-form {
  margin: 8px 0 18px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
}

.mp-content-edit-form textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
}

.mp-content-edit-row {
  margin: 0 0 10px;
}

.mp-content-edit-row label {
  display: block;
  font-size: 12px;
  margin: 0 0 4px;
  opacity: 0.8;
}

.mp-content-edit-row input[type="text"],
.mp-content-edit-row input[type="email"] {
  width: 100%;
}

.mp-content-edit-form .wp-editor-wrap {
  margin-top: 10px;
}

.mp-content-edit-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mp-content-edit-notice {
  margin: 4px 0 10px;
  font-size: 13px;
}

.mp-content-edit-notice.is-success {
  color: #1d6f42;
}

.mp-content-edit-notice.is-error {
  color: #a02b2b;
}

.mp-content-edit-helper {
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;
}
