/* ═══════════════════════════════════════════════
   DFB Ezekiels Tempel — Pergament & Oxblod
   ═══════════════════════════════════════════════ */

.dfb-ez-tempel-wrap {
    max-width: 720px;
    margin: 1.5rem auto;
    font-family: var(--bb-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
}

/* ── Diagram-container ──────────────────────── */

.dfb-ez-tempel-diagram {
    background: var(--bb-pergament-lys, #FAF6EE);
    border: 1px solid var(--bb-kant, #D5C9B5);
    border-radius: 8px;
    padding: 0.5rem;
}

.dfb-ez-tempel-svg {
    display: block;
}

/* ── SVG farver ─────────────────────────────── */

/* Forgård og belægning */
.dfb-ez-pavement      { fill: #DDD2BF; stroke: none; }
.dfb-ez-court-outer    { fill: #EDE4D4; stroke: none; }
.dfb-ez-court-inner    { fill: #F0E8DA; stroke: none; }

/* Mure */
.dfb-ez-mur-ydre       { fill: none; stroke: #8B7355; stroke-width: 4; }
.dfb-ez-mur-indre      { fill: none; stroke: #A08060; stroke-width: 3; }

/* Ydre porte */
.dfb-ez-port-ydre > rect:first-child {
    fill: #C4A060;
    stroke: #8B7355;
    stroke-width: 1;
}

/* Indre porte */
.dfb-ez-port-indre > rect:first-child {
    fill: #D4AA50;
    stroke: #A08060;
    stroke-width: 1;
}

/* Vagtkamre */
.dfb-ez-vagtkammer {
    fill: #B89858;
    stroke: #8B7355;
    stroke-width: 0.5;
}

/* Port-labels */
.dfb-ez-port-label {
    font-family: var(--bb-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 11px;
    font-weight: 500;
    fill: #5C4A36;
}

/* Tempelbygning */
.dfb-ez-tempel > rect:first-child {
    fill: #C49B18;
    stroke: var(--bb-oxblod, #8b1a1a);
    stroke-width: 2;
}
.dfb-ez-tempel-ulam  { fill: #D8B44C; stroke: #8B6914; stroke-width: 0.5; }
.dfb-ez-tempel-hekal { fill: #E0C050; stroke: #8B6914; stroke-width: 0.5; }
.dfb-ez-tempel-debir { fill: #EDD060; stroke: #8B6914; stroke-width: 0.5; }
.dfb-ez-tempel-label-sm {
    font-family: var(--bb-serif, Georgia, "Times New Roman", serif);
    font-size: 10px;
    font-weight: 500;
    fill: #5C3A00;
}

/* Alter */
.dfb-ez-alter > rect:first-child {
    fill: #B0884C;
    stroke: #8B6914;
    stroke-width: 1;
}
.dfb-ez-alter-ild {
    fill: #D4680C;
    stroke: #A04E08;
    stroke-width: 0.5;
}
.dfb-ez-alter-label {
    font-family: var(--bb-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 10px;
    fill: #5C3A00;
}

/* Præstekamre */
.dfb-ez-kamre > rect {
    fill: #C8B898;
    stroke: #A09070;
    stroke-width: 0.5;
}
.dfb-ez-kamre-label {
    font-family: var(--bb-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 9px;
    fill: #5C4A36;
}

/* Vandløbet */
.dfb-ez-vand {
    stroke: #4A9CC8;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 6 4;
    cursor: pointer;
}
.dfb-ez-vand:hover {
    stroke: #2E7DAA;
    stroke-width: 3.5;
}

/* Kompasrose */
.dfb-ez-kompas {
    font-family: var(--bb-serif, Georgia, "Times New Roman", serif);
    font-size: 13px;
    fill: #A09080;
    font-weight: 500;
}

/* Målestok */
.dfb-ez-maal-linje {
    stroke: #A09080;
    stroke-width: 0.5;
    stroke-dasharray: 3 3;
}
.dfb-ez-maal-endestop {
    stroke: #A09080;
    stroke-width: 0.5;
}
.dfb-ez-maal-tekst {
    font-family: var(--bb-sans, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 11px;
    fill: #A09080;
}

/* ── Klikbare zoner ─────────────────────────── */

.dfb-ez-zone {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.dfb-ez-zone:hover {
    opacity: 0.82;
}
.dfb-ez-zone.dfb-ez-aktiv {
    opacity: 1;
}
/* Ydre mur er klikbar men kun som streg */
.dfb-ez-mur-ydre {
    cursor: pointer;
    pointer-events: stroke;
}

/* ── Info-panel ─────────────────────────────── */

.dfb-ez-tempel-info {
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bb-pergament-lys, #FAF6EE);
    border: 1px solid var(--bb-kant, #D5C9B5);
    border-radius: 8px;
    min-height: 80px;
    line-height: 1.65;
    color: var(--bb-tekst, #3D2B1F);
    font-size: 0.92rem;
}

.dfb-ez-info-placeholder {
    color: #A09080;
    text-align: center;
    padding: 1rem 0;
}
.dfb-ez-info-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    opacity: 0.5;
}

/* Info-panel indhold */
.dfb-ez-info-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.dfb-ez-info-titel {
    font-family: var(--bb-serif, Georgia, "Times New Roman", serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bb-oxblod, #8b1a1a);
    margin: 0;
}
.dfb-ez-info-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bb-oxblod, #8b1a1a);
    color: #FAF6EE;
    padding: 0.15em 0.55em;
    border-radius: 3px;
}
.dfb-ez-info-hebraisk {
    font-family: "SBL Hebrew", "Frank Ruehl CLM", "Ezra SIL", serif;
    font-size: 1rem;
    color: #6B5842;
    direction: rtl;
    margin-bottom: 0.5rem;
}
.dfb-ez-info-afsnit {
    margin: 0.5rem 0;
}
.dfb-ez-info-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bb-oxblod, #8b1a1a);
    margin-bottom: 0.15rem;
}
.dfb-ez-info-maal {
    font-family: var(--bb-sans, -apple-system, sans-serif);
    font-size: 0.85rem;
    color: #6B5842;
    background: #F0E8DA;
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    margin: 0.25rem 0;
}
.dfb-ez-info-teologisk {
    border-left: 3px solid var(--bb-oxblod, #8b1a1a);
    padding-left: 0.75rem;
    margin: 0.65rem 0;
    font-style: italic;
    color: #5C4A36;
}
.dfb-ez-info-refs {
    margin-top: 0.5rem;
}
.dfb-ez-info-refs a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bb-oxblod, #8b1a1a);
    text-decoration: none;
    background: #F0E8DA;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    margin: 0.15rem 0.25rem 0.15rem 0;
    transition: background 0.15s;
}
.dfb-ez-info-refs a:hover {
    background: #E0D4C0;
    text-decoration: underline;
}

/* ── Legende ────────────────────────────────── */

.dfb-ez-tempel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6B5842;
}
.dfb-ez-tempel-legend > span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dfb-ez-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}
.dfb-ez-sw-ydreport  { background: #C4A060; }
.dfb-ez-sw-indreport { background: #D4AA50; }
.dfb-ez-sw-tempel    { background: #C49B18; }
.dfb-ez-sw-alter     { background: #D4680C; }
.dfb-ez-sw-kamre     { background: #C8B898; }
.dfb-ez-sw-vand      { background: #4A9CC8; }
