/* ── Kortvisning (?kort – separat dokument) ──────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html.kort-visning, html.kort-visning body { height: 100%; background: #fff; }
html.kort-visning body { padding: 12px; }
#kort-side  { height: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.13); }

/* ── Fælles kort-kontroller ──────────────────────────────────────────────── */
.ud-cirkel       { width: 40px !important; height: 40px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.22) !important; display: flex !important; align-items: center; justify-content: center; text-decoration: none !important; }
.ud-cirkel:hover { background: #f5f5f5 !important; }
.ud-cirkel img   { width: 20px; height: 20px; display: block; }
.ud-knapper { overflow: hidden; }
.ud-k       { display: flex !important; align-items: center; justify-content: center; width: 30px !important; height: 30px !important; line-height: 1 !important; font-size: 18px; color: #444 !important; text-decoration: none !important; }
.ud-k:hover { background: #f0f0f0 !important; color: #111 !important; }
@media (pointer: coarse) { .ud-zoom-ctrl { display: none !important; } }
.ud-hel-banner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1000; pointer-events: none;
    background: #355a48; color: #fff;
    padding: 12px 26px; border-radius: 8px;
    font-size: 1rem; font-weight: 600;
    white-space: normal; text-align: center; max-width: 80%; line-height: 1.5;
    box-shadow: 0 3px 16px rgba(0,0,0,.28);
    letter-spacing: .01em;
}

/* ── Art-side ────────────────────────────────────────────────────────────── */
main {
    max-width: 960px;
    padding: 0 20px;
}
h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.art-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 4px 0 24px;
    font-size: .95rem;
    color: #555;
}
.art-meta .latin { font-style: italic; color: #777; }
.art-meta .sep   { color: #ccc; }
.stoerr-kat      { color: #999; font-size: .88em; }
.art-ingress     { font-size: 1.05rem; line-height: 1.6; color: #333; margin: 0 0 24px; }
.art-laes-mere   { display: inline; font-size: .93rem; color: #2a6db5; text-decoration: none; white-space: nowrap; }
.art-laes-mere:hover { text-decoration: underline; }
.art-beskrivelse { font-size: .97rem; line-height: 1.7; color: #333; margin: 0 0 12px; }
.art-beskrivelse p { margin: 0 0 .8em; }
.art-besk-sektion { margin-top: 32px; scroll-margin-top: 60px; }
.art-besk-overskrift { font-size: .90rem; font-weight: 700; color: #5e5757; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.art-til-toppen  { display: inline-block; font-size: .87rem; color: #2a6db5; text-decoration: none; margin-top: 4px; }
.art-til-toppen:hover { text-decoration: underline; }
.sjaelden-badge  {
    padding: 2px 10px;
    background: #f5e6c8;
    color: #8a5a00;
    border: 1px solid #e0c080;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
}

/* ── Galleri ─────────────────────────────────────────────────────────────── */
.galleri {
    position: relative;
    user-select: none;
    margin-bottom: 6px;
}
.g-ramme {
    overflow: hidden;
    border-radius: 6px;
}
.g-baelte {
    display: flex;
    transition: transform .3s ease;
    will-change: transform;
}
.g-fig {
    flex: 0 0 100%;
    margin: 0;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.kon-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 10px rgba(0,0,0,.5);
    pointer-events: none;
    z-index: 3;
}
.g-img {
    max-width: 100%;
    max-height: min(480px, 55vh);
    object-fit: contain;
    display: block;
}
.g-pil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,.88);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
    transition: background .15s;
}
.g-pil:hover  { background: #fff; }
.g-prev       { left: 8px; }
.g-next       { right: 8px; }
@media (pointer: coarse) { .g-pil { display: none !important; } }
.g-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 9px 0 4px;
}
.g-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s;
}
.g-dot.aktiv { background: #2a6db5; }
.g-foto {
    font-size: .78rem;
    color: #aaa;
    text-align: center;
    min-height: 1.3em;
    margin-top: 5px;
}
.g-foto a { color: #aaa; text-decoration: underline; }
.ingen-billede {
    font-size: 5rem;
    display: block;
    text-align: center;
    margin-bottom: 16px;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lys-boks {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 56px 8px 16px;
    box-sizing: border-box;
}
.lys-boks[hidden] { display: none; }
.lys-luk {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    padding: 4px 8px;
}
.lys-luk:hover { opacity: 1; }
.lys-inner {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lys-img {
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
    display: block;
    border-radius: 4px;
}
.lys-foto {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    text-align: center;
}
.lys-img-wrap { position: relative; display: inline-flex; max-width: 100%; }
.lys-img-wrap .kon-badge { font-size: 2rem; }
.samm-kon-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.85);
    pointer-events: none;
    z-index: 6;
}
.lys-foto a { color: rgba(255,255,255,.65); text-decoration: underline; }
.lys-pil {
    flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.lys-pil:hover { background: rgba(255,255,255,.26); }

/* ── Flyvetid ────────────────────────────────────────────────────────────── */
.ft-sektion { margin-top: 32px; }
.ft-overskrift {
    font-size: .90rem;
    font-weight: 700;
    color: #5e5757;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.ft-bar {
    position: relative;
    height: 16px;
    background: #c8d6cf;
    border-radius: 4px;
}
.ft-periode {
    position: absolute;
    top: 0;
    height: 100%;
    background: #355a48;
    border-radius: 3px;
}
.ft-linje {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(255,255,255,.5);
    pointer-events: none;
}
.ft-labels {
    position: relative;
    height: 16px;
    margin-top: 4px;
}
.ft-label {
    position: absolute;
    font-size: .7rem;
    color: #4c4747;
    white-space: nowrap;
    line-height: 1;
}
.ft-nu-wrap   { position: relative; }
.ft-nu-lijn   { position: absolute; top: 0; width: 2px; background: #e87700; z-index: 1; pointer-events: none; transform: translateX(-1px); }
.ft-nu-row    { position: absolute; height: 0; overflow: visible; z-index: 2; }
.ft-nu-marker { position: absolute; top: 0; display: flex; gap: 5px; align-items: center; white-space: nowrap; transform: translateX(-15px) translateY(-50%); }
.ft-nu-left   { transform: translateX(calc(-100% + 15px)) translateY(-50%); }
.ft-nu-badge  { background: #e87700; color: #fff; padding: 2px 9px; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.ft-fly-badge { background: #89908c; color: #fff; padding: 2px 9px; border-radius: 3px; font-size: .72rem; font-weight: 600; }

/* ── Udbredelse ──────────────────────────────────────────────────────────── */
.ud-sektion    { margin-top: 32px; }
.ud-overskrift { font-size: .90rem; font-weight: 700; color: #5e5757; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
#ud-kort        { height: 300px; border-radius: 6px; overflow: hidden; border: 1px solid #e0e0e0; background: #f5f5f5; isolation: isolate; }

/* ── Forveksling ─────────────────────────────────────────────────────────── */
.fv-sektion      { margin-top: 32px; }
.fv-overskrift   { font-size: .90rem; font-weight: 700; color: #5e5757; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.fv-liste        { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-top: 19px; }
.fv-rad          { cursor: pointer; }
.fv-rad:focus-visible { outline: 2px solid #355a48; outline-offset: 2px; }
.fv-badge-nofly,
.fv-badge-sjaelden-img { display: none; width: 16px; height: 16px; background: #fff; align-items: center; justify-content: center; font-size: .7rem; line-height: 1; }
.fv-badge-nofly        { color: #dd0000; }
.fv-badge-sjaelden-img { color: #e07800; }
.fv-liste.fv-nofly-aktiv .fv-rad[data-flyver="0"] .fv-badge-nofly              { display: flex; }
.fv-liste.fv-marker-aktiv .fv-rad[data-sjaelden="1"] .fv-badge-sjaelden-img    { display: flex; }
.fv-cmp-btn      { display: inline-block; padding: 3px 10px; font-size: .75rem; background: #f1f3f0; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; color: #000; margin-top: 11px; }
.fv-filtre       { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fv-filter       { display: flex; align-items: center; gap: 7px; margin-bottom: 0; font-size: .85rem; color: #555; cursor: pointer; user-select: none; }
.fv-filter input { cursor: pointer; width: 15px; height: 15px; accent-color: #514627; flex-shrink: 0; }
.fv-filter-ikon       { display: none; }
.fv-filter-ikon > span { color: #e07800; }
.fv-nofly-filter-ikon  { display: none; }
.fv-nofly-filter-ikon > span { color: #dd0000; }
.fv-ingen        { font-size: .9rem; color: #888; margin-top: 8px; }

/* ── Sprognavne ──────────────────────────────────────────────────────────── */
.lang-sektion    { margin-top: 32px; }
.lang-overskrift { font-size: .90rem; font-weight: 700; color: #5e5757; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.lang-intro      { font-size: .83rem; color: #888; margin: 0 0 10px; }
.lang-liste      { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; padding: 0; list-style: none; }
.lang-rad        { display: contents; }
.lang-label      { font-size: .85rem; color: #888; }
.lang-navn       { font-size: .85rem; color: #333; margin: 0; }

/* ── Sammenligning reveal-slider ─────────────────────────────────────────── */
.samm-modal      { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9998; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 52px 16px 16px; box-sizing: border-box; }
.samm-modal[hidden] { display: none; }
.samm-luk        { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .65; padding: 4px 8px; }
.samm-luk:hover  { opacity: 1; }
.samm-toggle     { display: flex; gap: 8px; flex-shrink: 0; }
.samm-side       { padding: 5px 20px; border: 1px solid #fff; border-radius: 20px; background: #fff; color: #666; cursor: pointer; font-size: .83rem; transition: all .15s; }
.samm-side.aktiv { color: #000; font-weight: 600; }
.samm-side:disabled { opacity: .3; cursor: default; }
.samm-wrap       { position: relative; width: min(860px, 100%); height: min(58vh, 480px); overflow: hidden; border-radius: 8px; background: #0d0d0d; cursor: ew-resize; user-select: none; flex-shrink: 0; }
.samm-img-b, .samm-img-a { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.samm-bg         { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); pointer-events: none; }
.samm-fg         { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.samm-lader      { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 1.4rem; }
.samm-label      { position: absolute; bottom: 14px; padding: 5px 11px; background: rgba(0,0,0,.62); color: #fff; font-size: .82rem; font-weight: 600; border-radius: 4px; max-width: 44%; display: flex; align-items: center; gap: 6px; min-width: 0; cursor: default; pointer-events: auto; }
.samm-label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.samm-label-a    { right: calc(50% + 10px); }
.samm-label-b    { left:  calc(50% + 10px); }
.samm-info-btn   { flex-shrink: 0; background: rgb(255 255 255 / 99%); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; width: 17px; height: 17px; font-size: .68rem; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.samm-info-btn:hover { background: rgba(255,255,255,.35); }
.samm-info-btn[hidden] { display: none; }
.samm-kommentar  { position: absolute; bottom: 48px; background: rgba(0,0,0,.82); color: #fff; font-size: .82rem; line-height: 1.5; border-radius: 6px; padding: 10px 28px 10px 14px; cursor: default; width: calc(25% - 6px); min-width: 120px; }
.samm-kommentar-a { right: calc(50% + 6px); }
.samm-kommentar-b { left: calc(50% + 6px); }
.samm-kommentar[hidden] { display: none; }
.samm-kom-luk    { position: absolute; top: 5px; right: 7px; background: none; border: none; color: #888; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 2px; }
.samm-kom-luk:hover { color: #fff; }
.samm-divider    { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: rgba(255,255,255,.85); transform: translateX(-50%); pointer-events: none; }
.samm-handle     { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,.5); gap: 3px; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.ikke-fundet           { margin-top: 60px; color: #888; }
.ikke-fundet h1        { font-size: 1.5rem; margin-bottom: 12px; }
