/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f1f3f0;
  color: #222;
}

/* ── Top navigation ─────────────────────────────── */
.topnav {
  background: #355a48;
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Burger button — only visible on small screens */
.topnav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.topnav-burger b {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  font-style: normal;
  font-weight: normal;
}

/* Nav links */
.topnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  color: #fff;
  text-decoration: none;
  padding: 10px 4px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
  border-right: 1px solid #5e8170;
}

.topnav > a.topnav-item:last-of-type {
  border-right: none;
}

.topnav-burger {
  border-right: 1px solid #5e8170;
}

.topnav-item:hover,
.topnav-item:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

.topnav-item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.topnav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.topnav-item span {
  white-space: nowrap;
}

/* Dropdown panel — extra items on small screens */
.topnav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c4d3d;
  min-width: 160px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.topnav-dropdown[hidden] { display: none; }

.topnav-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  font-size: 0.9rem;
}

.topnav-dd-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.topnav-dd-item:hover { background: rgba(255, 255, 255, 0.1); }

/* Small screens: show burger, hide Quiz+Shop from main row */
@media (max-width: 599px) {
  .topnav-burger { display: flex; }
  .topnav-wide   { display: none; }
}

/* Inline søgefelt i topnav — kun synligt på brede skærme */
.topnav-soeg-inline {
  display: none;
}

/* Wide screens: inline søgefelt, faste item-bredder */
@media (min-width: 951px) {
  .topnav {
    justify-content: center;
  }

  .topnav-item {
    flex: 0 0 10%;
  }

  .topnav-item[data-soeg="1"] {
    display: none;
  }

  .topnav-soeg-inline {
    display: flex;
    align-items: center;
    flex: 0 0 210px;
    padding: 8px 20px;
    min-width: 0;
    position: relative;
    border-right: 1px solid #5e8170;
  }

  .topnav-soeg-ikon {
    width: 15px;
    height: 15px;
    fill: #5e8170;
    flex-shrink: 0;
    position: absolute;
    left: 32px;
    pointer-events: none;
    z-index: 1;
  }

  .topnav-soeg-input {
    flex: 1;
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 14px 7px 30px;
    color: #222;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    min-width: 0;
    caret-color: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  .topnav-soeg-input::placeholder {
    color: #aaa;
  }

  .topnav-soeg-input::-webkit-search-cancel-button {
    display: none;
  }

  .topnav-soeg-input:hover {
    background: #f5f5f5;
  }
}

/* ── Forside-grid ────────────────────────────────── */
main.forside {
  max-width: none;
  width: 85%;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 1750px) {
  main.forside {
    width: 95%;
  }
}

.forside-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 0;
}

.forside-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.forside-domæne {
    font-size: 2.8rem;
    font-weight: 600;
    color: #2b4e3e;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 1px 1px #fff;
}

@media (max-width: 899px) {
  .forside-domæne { font-size: 2.2rem; }
}

@media (max-width: 649px) {
  .forside-domæne { font-size: 1.4rem; }
}

.forside-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

/* 1 kolonne: border mellem boksene nedad */
.forside-boks {
  border-bottom: 1px solid #d0d4ce;
}
.forside-boks:last-child {
  border-bottom: none;
}

/* 2 kolonner */
@media (min-width: 850px) and (max-width: 1999px) {
  .forside-grid { grid-template-columns: 1fr 1fr; }

  .forside-boks { border-right: 1px solid #d0d4ce; }

  /* 2. kolonne og ensom sidsteboks: ingen højre-border */
  .forside-boks:nth-child(2n),
  .forside-boks:last-child   { border-right: none; }

  /* Sidste 2 bokse har ingenting nedenunder i deres kolonne */
  .forside-boks:nth-last-child(-n+2) { border-bottom: none; }
}

/* 3 kolonner */
@media (min-width: 2000px) {
  .forside-grid { grid-template-columns: 1fr 1fr 1fr; }

  .forside-boks { border-right: 1px solid #d0d4ce; }

  /* 3. kolonne: ingen højre-border */
  .forside-boks:nth-child(3n) { border-right: none; }

  /* Sidste 3 bokse: ingen bund-border */
  .forside-boks:nth-last-child(-n+3) { border-bottom: none; }
}

.forside-boks {
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.forside-boks-num {
display: inline-block;
    font-size: 0.6rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.10em;
    margin-bottom: 12px;
    align-self: flex-start;
    border-radius: 3px;
    padding: 2px 7px;
    background-color: #355a48;
	    text-transform: uppercase;
}

/* ── Forside boks-indhold ────────────────────────── */
.boks-indhold {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.boks-overskrift {
    font-size: 1.55rem;
    font-weight: 500;
    color: #41352a;
    margin: 0;
    line-height: 1.3;
}

.boks-body {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.boks-venstre {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.boks-tekst-p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

.boks-knap {
display: inline-block;
    align-self: flex-start;
    background: #355a48;
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

.boks-knap:hover {
  background: #2c4d3d;
}

.boks-billede-link {
  flex-shrink: 0;
  width: 43%;
  display: block;
}

.boks-billede {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 850px) {
  .boks-indhold {
    align-items: center;
    text-align: center;
  }

  .boks-body {
    flex-direction: column;
    align-items: center;
  }

  .boks-venstre {
    align-items: center;
  }

  .boks-knap {
    align-self: center;
  }

  .boks-billede-link {
    order: -1;
    width: 200px;
  }
}

/* ── Forside tæller og kort ──────────────────────── */
.countnumber {
    font-size: 5.0rem;
    color: #e4811f;
    display: block;
    text-shadow: 1px 1px #666;
}
.countnumber em {
    font-size: 1.5rem;
    font-style: normal;
    color: #000;
    text-shadow: none;
    font-weight: 500;
    margin-left: -13px;
}
#countlink {
    text-align: center;
    text-decoration: none;
    margin-top: -55px;
}
#mapmarker {
    max-width: 208px;
    margin: -60px auto 0px;
}
@media (max-width: 1500px) {
    .countnumber { font-size: 3.0rem; }
    .countnumber em { margin-left: 0px; }
}
@media (max-width: 1400px) {
    #mapmarker { margin: 0px auto 0px; }
}
@media (max-width: 1100px) {
    .countnumber { font-size: 2.6rem; }
}
@media (max-width: 1000px) {
    .countnumber { font-size: 2.0rem; }
    .countnumber em { font-size: 1.2rem; margin-left: 0px; }
}
@media (max-width: 850px) {
    main.forside { width: auto; }
    .forside-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 15px 17px;
        background-color: #d8dfd4;
    }
    .forside-domæne { font-size: 1.2rem; font-weight: 500; }
    .countnumber { margin-top: 0px; font-size: 4.0rem; }
    #countlink { margin-top: 0px; }
}

/* ── Art grid ────────────────────────────────────── */
main {
    margin: 45px auto;
    padding: 0 16px;
    width: 85%;
}
@media (max-width: 1200px) {
	main {
		width: 100%;
	}
}

main h1 {
  margin-top: -16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
	main {
		margin: 34px auto;
	}
	main h1 {
		font-size: 1.5rem;
	}
}

.kat-andre-overskrift {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.kat-liste {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.kat-liste li {
  border-bottom: 1px solid #e8ebe7;
}

.kat-liste li:last-child {
  border-bottom: none;
}

.kat-liste a {
  display: block;
  padding: 14px 20px;
  color: #222;
  text-decoration: none;
  font-size: 1rem;
}

.kat-liste a:hover {
  background: #f5f7f4;
}

.kat-antal {
  color: #355a48;
}

#breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 31px;
}

#breadcrumb a {
  color: #355a48;
  text-decoration: none;
}

#breadcrumb a:hover {
  text-decoration: underline;
}

#breadcrumb a[aria-current="page"] {
  color: #555;
}

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

.kort {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.kort:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.kort-img-wrap {
  position: relative;
}

.kort-badges {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 0;
}

.kort-badge-hel,
.kort-badge-sjaelden {
  display: none;
  width: 16px;
  height: 16px;
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}

.kort-badge-hel      { color: #2a7a2a; }
.kort-badge-sjaelden { color: #e07800; }

#arealist-grid.vis-hel [data-hel="1"] .kort-badge-hel           { display: flex; }
#arealist-grid.vis-sjaelden [data-sjaelden="1"] .kort-badge-sjaelden { display: flex; }

.kort-billede {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.kort-ingen-billede {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #dde8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.kort-tekst {
  padding: 10px 12px 7px;
}

.kort-navn {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.kort-latin {
  font-size: 0.75rem;
  color: #777;
  font-style: italic;
  margin-top: 3px;
}

.ingen {
  text-align: center;
  color: #888;
  margin-top: 60px;
  font-size: 1.1rem;
}

/* ── Tekstside (side.php) ────────────────────────────────── */
.side-indhold { max-width: 680px; line-height: 1.75; }
.side-indhold h1 { font-size: 1.8rem; margin: 0 0 .6em; }
.side-indhold h2 { font-size: 1.35rem; margin: 1.6em 0 .4em; }
.side-indhold h3 { font-size: 1.1rem; margin: 1.3em 0 .3em; }
.side-indhold p  { margin: .7em 0; }
.side-indhold ul, .side-indhold ol { margin: .6em 0 .6em 1.4em; }
.side-indhold li { margin: .25em 0; }
.side-indhold a  { color: #355a48; }
.side-indhold a:hover { text-decoration: underline; }

/* ── Søge-backdrop ───────────────────────────────── */
.soeg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.soeg-backdrop.soeg-skjult { display: none; }

/* ── Søge-overlay ────────────────────────────────── */
.soeg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #355a48;
  z-index: 200;
}

.soeg-overlay.soeg-skjult { display: none; }

.soeg-bjælke {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 12px 9px;
}

.soeg-bjælke-ikon {
  width: 22px; height: 22px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

#soeg-input {
  flex: 1;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  color: #222;
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

@media (min-width: 951px) {
  .soeg-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .soeg-bjælke {
    width: 100%;
    justify-content: center;
  }

  #soeg-input {
    max-width: 550px;
  }

  #soeg-resultater {
    width: calc(100% - 20px);
    max-width: 550px;
    margin: 0 0 10px;
  }
}

#soeg-input::placeholder              { color: #aaa; }
#soeg-input::-webkit-search-cancel-button { display: none; }

#soeg-luk {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}

#soeg-luk:hover { opacity: 1; }
#soeg-luk svg   { width: 22px; height: 22px; fill: currentColor; }

#soeg-resultater {
  background: #fff;
  margin: 0 10px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  max-height: calc(100svh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.soeg-resultat {
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #222;
}

.soeg-resultat:last-child    { border-bottom: none; }
.soeg-resultat:hover,
.soeg-resultat.aktiv         { background: #f4f6f4; }

.soeg-art-navn { font-size: 0.95rem; }
.soeg-latin    { font-size: 0.78rem; color: #888; font-style: italic; margin-top: 1px; }

mark           { background: none; color: #c0392b; font-style: normal; }

.soeg-ingen    { padding: 16px; color: #888; text-align: center; font-size: 0.9rem; }

.soeg-kat               { background: #f7f9f6; }
.soeg-kat:hover,
.soeg-kat.aktiv         { background: #edf2eb; }
.soeg-kat-ikon          { width: 13px; height: 13px; fill: #5a7a5a; vertical-align: -2px; margin-right: 5px; flex-shrink: 0; }
.soeg-kat-antal         { color: #888; font-size: 0.85em; }
.soeg-separator         { height: 1px; background: #e8e8e8; margin: 4px 0; }

/* ── Liste: filter-bjælke ────────────────────────────────────────────────── */
.liste-filtre {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Filter-gruppe: pill + dropdown samlet */
.fg {
  position: relative;
}

.filter-nulstil-alt {
  background: none;
  border: none;
  padding: 6px 4px;
  font-size: 0.82rem;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  align-self: center;
}

/* Pill-knap */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  color: #333;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s, background 0.12s;
}
.filter-pill:hover      { border-color: #aaa; }
.filter-pill.aaben      { background: #f0f0f0; border-color: #aaa; }

/* Grå pill (Flyvetid default + irrelevant) */
.filter-pill-graa .fpt  { color: #aaa; }
.filter-pill-graa .fpc  { color: #ccc; }

/* Chevron-ikon via CSS */
.fpc::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  margin-top: -1px;
}
.filter-pill.aaben .fpc::after {
  border-top: none;
  border-bottom: 5px solid currentColor;
}

/* Badge-tæller (fx "2" for farve) */
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  line-height: 1;
}

/* ── Dropdown-panel ──────────────────────────────────────────────────────── */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  z-index: 60;
  min-width: 220px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.filter-dropdown[hidden] { display: none !important; }
.filter-dropdown.dd-flip { left: auto; right: 0; }

.filter-options {
  overflow-y: auto;
  flex: 1 1 auto;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.1s;
}
.filter-option:last-child       { border-bottom: none; }
.filter-option:hover            { background: #f7f7f7; }
.filter-option.valgt            { background: #f0f0f0; font-weight: 600; }

/* Farve-swatch */
.fo-swatch {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.fo-tekst { flex: 1; }

.fo-check {
  color: #222;
  font-size: 0.88rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Footer med Nulstil + Gem */
.filter-footer {
  display: flex;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.filter-knap-nulstil,
.filter-knap-gem {
  flex: 1;
  padding: 12px 8px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.filter-knap-nulstil {
  background: #fff;
  color: #ccc;
  border-right: 1px solid #e0e0e0;
}
.filter-knap-nulstil:not(:disabled):hover { background: #f5f5f5; color: #333; }
.filter-knap-nulstil:not(:disabled)       { color: #333; cursor: pointer; }

.filter-knap-gem {
  background: #fff;
  color: #ccc;
}
.filter-knap-gem:not(:disabled) {
  background: #222;
  color: #fff;
  cursor: pointer;
}
.filter-knap-gem:not(:disabled):hover { background: #000; }

/* ── Liste: antal + kategori-header ─────────────────────────────────────── */
.liste-antal {
  color: #888;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.liste-kat-header {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 8px 0 4px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 4px;
}
.liste-kat-header:first-child { padding-top: 0; }

/* ── Sommerfugle i området ───────────────────────────────────────────────── */

main.arealist-main {
  max-width: 85%;
}

.arealist-intro {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #444;
}

.arealist-kolonne-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.arealist-venstre,
.arealist-hoejre {
  flex: 1 1 50%;
  min-width: 0;
}

@media (max-width: 1200px) {
  main.arealist-main {
    max-width: 960px;
  }
  .arealist-kolonne-wrap {
    flex-direction: column;
    gap: 0;
  }
  .arealist-venstre,
  .arealist-hoejre {
    flex: none;
    width: 100%;
  }
}
@keyframes arealist-spin {
  to { transform: rotate(360deg); }
}

.arealist-status {
  margin-bottom: 16px;
}

.arealist-besked {
  font-size: 1rem;
  color: #555;
}

.arealist-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
  pointer-events: none;
}

.arealist-overlay[hidden] {
  display: none;
}

.arealist-overlay-spinner {
  display: block;
  width: 20px;
  height: 20px;
  border: 2.5px solid #ddd;
  border-top-color: #355a48;
  border-radius: 50%;
  animation: arealist-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.arealist-knapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.arealist-knap {
  display: inline-block;
  background: #a14e0b;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.arealist-knap:hover {
  background: #2c4d3d;
}

.arealist-radius-sektion {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.arealist-radius-label {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  min-width: 100px;
}

.arealist-radius-skyder {
  flex: 1;
  accent-color: #355a48;
  cursor: pointer;
}

.arealist-filter-sektion {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.arealist-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.arealist-filter input {
  cursor: pointer;
  width: 15px;
  height: 15px;
  accent-color: #355a48;
  flex-shrink: 0;
}

.arealist-hel-ikon      { display: none; }
.arealist-hel-ikon > span { color: #2a7a2a; }
.arealist-sjaelden-ikon { display: none; }
.arealist-sjaelden-ikon > span { color: #e07800; }

.arealist-kort-sektion {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.arealist-kort {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  cursor: crosshair;
}

.arealist-kort-vejl {
  font-size: 0.82rem;
  color: #888;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .arealist-kort { height: 260px; }
}

/* ── Identifikationsguide ────────────────────────────────────────────────── */

/* Guide wrapper */
.guide-main {
    max-width: 700px;
}

/* Mobil: billedet floater til højre */
.guide-nose-wrap {
    float: right;
    width: 42%;
    max-width: 220px;
    margin-left: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.guide-nose {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-top: 0px;
}

/* Guide-trin starter under billedet */
.guide-trin-liste {
    clear: both;
}

/* Desktop: grid med billedet i kolonne 2 */
@media (min-width: 1201px) {
    .guide-main {
        display: grid;
        grid-template-columns: minmax(0, 700px) 280px;
        column-gap: 3rem;
        max-width: none;
        align-items: start;
    }
    .guide-main > *:not(.guide-nose-wrap) {
        grid-column: 1;
    }
    .guide-nose-wrap {
        float: none;
        width: auto;
        max-width: none;
        margin: 0;
        grid-column: 2;
        grid-row: 1 / span 10;
        position: sticky;
        top: 1rem;
        align-self: start;
    }
    .guide-nose {
        margin-top: 131px;
    }
    .guide-trin-liste {
        clear: none;
    }
}

.guide-flyver-nu {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
}

.guide-trin-liste {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
  margin-bottom: 36px;
}

.guide-trin {
  border-bottom: 1px solid #e8ebe7;
}

.guide-trin:last-child {
  border-bottom: none;
}

.guide-intro {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.5;
}

.guide-trin-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #d0d5ce;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  color: #222;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}

.guide-trin-aaben .guide-trin-header {
  background: #537c97;
}

.guide-trin-inaktiv .guide-trin-header {
  cursor: default;
  color: #aaa;
}

.guide-trin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.guide-trin-tag {
  font-size: 1.10rem;
  color: #000;
  background: #fff;
  padding: 4px 7px 4px 10px;
  border-radius: 50%;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.24rem;
}

.guide-trin-inaktiv .guide-trin-tag {
  color: #aca9a9;
}

.guide-trin-navn {
  font-weight: 700;
  letter-spacing: 0.09em;
  font-size: 1.02rem;
  padding-left: 12px;
  text-transform: uppercase;
}

.guide-trin-inaktiv .guide-trin-navn {
  color: #bbb;
}

.guide-trin-aaben .guide-trin-navn {
  color: #fff;
}

.guide-trin-svar {
  flex: 1;
  font-size: 0.85rem;
  color: #355a48;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chevron arrow */
.guide-trin-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #aaa;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.guide-trin-inaktiv .guide-trin-chevron {
  border-top-color: #ddd;
}

.guide-trin-aaben .guide-trin-chevron {
  transform: rotate(180deg);
  border-top: 6px solid #fff;
}

/* Step content */
.guide-trin-indhold {
  padding: 4px 20px 22px;
  border-top: 1px solid #f0f0f0;
}

.guide-spoergsmaal {
  font-size: 0.95rem;
  color: #444;
  margin-top: 13px;
  margin-bottom: 14px;
}

.guide-hjaelp-knap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #aaa;
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  margin-left: 4px;
  vertical-align: middle;
  padding: 0;
  line-height: 1;
}

.guide-hjaelp-knap:hover {
  color: #444;
  border-color: #666;
}

.guide-hjaelp-pop {
  position: fixed;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 11px 36px 11px 14px;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  max-width: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 200;
}

.guide-hjaelp-luk {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 0.82rem;
  padding: 2px 4px;
  line-height: 1;
}

.guide-hjaelp-luk:hover {
  color: #555;
}


.guide-paamund {
  background: #fff8e6;
  border-left: 3px solid #e6a800;
  color: #7c5800;
  padding: 9px 14px;
  font-size: 0.88rem;
  border-radius: 0 4px 4px 0;
  margin-top: 6px;
}

/* Radio groups */
.guide-radio-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-radio-label input[type="radio"] {
  display: none;
}

.guide-radio-label:hover {
  border-color: #999;
  background: #f9faf8;
}

.guide-radio-label.valgt {
  border-color: #355a48;
  background: #f8e6ae;
  font-weight: 600;
  color: #1e3d2c;
}

.guide-side {
  padding: 33px 54px;
  margin-right: 34px;
  position: relative;
  background: #f1f3f0;
  min-width: 250px;
}

.guide-stoerrelse {
  padding: 25px 50px 25px 29px;
  position: relative;
  background: #f1f3f0;
  flex: 1 0 100%;
  min-width: 250px;
}

.guide-stoerrelse-ref-img {
  position: absolute;
  height: 62px;
  bottom: 3px;
  right: 21px;
  left: auto;
  top: auto;
}

.guide-stoerrelse-art-img {
  position: absolute;
  height: auto;
  z-index: 2;
  left: auto;
  top: auto;
}


#size-image-lille {
  width: 47px;
  right: 28px;
  top: 20px;
}

#size-image-mellem {
  width: 73px;
  right: 15px;
  top: 20px;
}

#size-image-stor {
  width: 103px;
  right: -1px;
  top: 8px;
}

#size-image-questionmark {
  width: 33px;
  right: 35px;
  top: 19px;
}

@media (min-width: 550px) {
  #guide-stoerrelse-gruppe {
    column-gap: 0;
  }

  #guide-stoerrelse-gruppe .guide-stoerrelse {
    flex: 0 0 auto;
    min-width: 0;
    margin-right: 51px;
  }

  #guide-stoerrelse-gruppe .guide-stoerrelse:last-child {
    margin-right: 0;
  }

  .guide-stoerrelse-ref-img {
    right: -40px;
  }

  #size-image-lille {
    right: -32px;
  }

  #size-image-mellem {
    right: -46px;
  }

  #size-image-stor {
    right: -63px;
  }

  #size-image-questionmark {
    right: -24px;
  }
}


#guide-overside-img {
  position: absolute;
  width: 68px;
  top: -2px;
  left: -15px;
}

#guide-underside-img {
  position: absolute;
  height: 60px;
  top: -10px;
  left: -14px;
}

/* Color labels arranged in a grid */
.guide-farver-gruppe {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.guide-farve-label {
  flex-direction: row;
}

.guide-farve-swatch {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

/* Step footer */
.guide-trin-bund {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.guide-mulige {
  font-size: 0.9rem;
  color: #355a48;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.guide-naeste-knap {
  background: #355a48;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}

.guide-naeste-knap:hover {
  background: #2c4d3d;
}

/* Results heading */
.guide-resultater-h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #222;
}

/* OMRÅDE step buttons */
.guide-omrade-knapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.guide-omrade-btn {
  padding: 10px 18px;
  border: 1px solid #355a48;
  border-radius: 5px;
  background: #fff;
  color: #355a48;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.guide-omrade-btn:hover {
  background: #eef3f0;
}

.guide-omrade-btn-gemt {
  border-color: #888;
  color: #666;
}

.guide-omrade-btn-gemt:hover {
  background: #f5f5f5;
}

.guide-omrade-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Inline mini map */
#guide-mini-kort-wrap {
  margin-bottom: 14px;
}

#guide-mini-kort {
  width: 100%;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  cursor: default;
  background: #e8ebe7;
}

.guide-mini-kort-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}

/* Loader and error */
#guide-omrade-loader {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.guide-omrade-fejl {
  font-size: 0.88rem;
  color: #b00;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Forrige + Næste side by side */
.guide-bund-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.guide-forrige-knap {
  background: #fff;
  color: #355a48;
  border: 1px solid #355a48;
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}

.guide-forrige-knap:hover {
  background: #eef3f0;
}

/* ── Kortoverlay ─────────────────────────────────────────────────────────── */

.guide-kort-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.guide-kort-overlay[hidden] {
  display: none;
}

.guide-kort-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #355a48;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.guide-kort-overlay-luk {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 3px;
  transition: background 0.1s;
}

.guide-kort-overlay-luk:hover {
  background: rgba(255,255,255,0.18);
}

.guide-stor-kort {
  flex: 1;
  min-height: 0;
}

.guide-kort-overlay-bund {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.guide-kort-hint {
  flex: 1;
  font-size: 0.88rem;
  color: #555;
  min-width: 0;
}

.guide-kort-overlay-knapper {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.guide-knap-annuller {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}

.guide-knap-annuller:hover {
  background: #f5f5f5;
}

@media (max-width: 480px) {
  .guide-trin-header {
    padding: 16px 14px;
  }

  .guide-trin-indhold {
    padding: 4px 14px 18px;
  }

  .guide-farver-gruppe {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .guide-kort-overlay-bund {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-kort-overlay-knapper {
    justify-content: flex-end;
  }
}

/* ── Sidefod ─────────────────────────────────────── */
.sidefod {
    background: #355a48;
    color: #fff;
    margin-top: 3rem;
    width: 100%;
}
.sidefod-indhold {
    width: 85%;
    margin: 0 auto;
    padding: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.sidefod a {
    color: rgba(255,255,255,0.8);
}
.sidefod a:hover {
    color: #fff;
}
