body {
            font-family: 'Inter', 'Trebuchet MS', sans-serif;
            background: #f4f7f2;
        }
        .detail-shell {
            border: 1px solid #d8e1d2;
            box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
        }
        .detail-hero {
            position: relative;
            padding: 1.75rem;
        }
        .detail-hero::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 1px;
            background: rgba(17, 24, 39, 0.08);
        }
        .detail-hero-inner {
            display: flex;
            justify-content: space-between;
            gap: 1.25rem;
            align-items: flex-start;
        }
        .hero-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-end;
            max-width: 28rem;
        }
        .detail-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.42rem;
            min-height: 2rem;
            padding: 0.35rem 0.7rem;
            border-radius: 9999px;
            font-size: 0.82rem;
            font-weight: 800;
            background: rgba(255, 255, 255, 0.62);
            color: #24362b;
            box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
            backdrop-filter: blur(4px);
        }
        .detail-badge.status {
            background: var(--status-chip-bg, rgba(255, 255, 255, 0.72));
            color: var(--status-chip-text, #24362b);
        }
        .detail-badge.protected {
            background: #dbeafe;
            color: #1e40af;
        }
        .detail-badge.marketable {
            background: #fef3c7;
            color: #92400e;
        }
        .detail-status-chip {
            background: var(--status-chip-bg, #eef1ef) !important;
            color: var(--status-chip-text, #374151) !important;
        }
        .detail-badge .detail-icon,
        .detail-badge .detail-icon-svg,
        .detail-badge .status-icon {
            width: 1.15rem;
            height: 1.15rem;
            max-width: 1.3rem;
            margin-right: 0;
            font-size: 1rem;
        }
        .detail-badge .detail-icon-svg svg {
            max-width: 1.3rem;
        }
        .detail-section {
            border-radius: 0.5rem;
            background: #ffffff;
        }
        .gallery-panel {
            padding: 1rem;
            border: 1px solid rgba(47, 70, 56, 0.12);
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        }
        .detail-section-title {
            color: #1f2937;
            font-weight: 800;
            margin-bottom: 1rem;
        }
        .back-link {
            color: #2f4638;
            font-weight: 700;
        }
        .back-link:hover { color: #174a65; }
        .related-articles { grid-column: 1 / -1; }
        .related-articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
            gap: 1rem;
        }
        .related-article-card {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #d8e1d2;
            border-radius: 0.5rem;
            color: #1f2937;
            background: #fff;
            text-decoration: none;
        }
        .related-article-card:hover,
        .related-article-card:focus-visible {
            border-color: #2f4638;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
        }
        .related-article-card > img { width: 100%; height: 180px; object-fit: cover; }
        .related-article-copy { padding: 1rem; }
        .related-article-copy h4 { font-size: 1.1rem; font-weight: 700; }
        .related-article-copy time { font-size: 0.85rem; color: #4b5563; }
        .related-article-copy p { margin-top: 0.5rem; line-height: 1.6; }
        .related-article-link { display: block; margin-top: 0.75rem; color: #2f4638; font-weight: 700; }
        .border-protected { border-left: 6px solid #3b82f6; }
        .month-bubble { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 9999px; background-color: #bfdbfe; color: #1f2937; font-weight: 500; font-size: 0.875rem; line-height: 1; }
        .detail-icon { height: 1.75rem; width: auto; max-width: 2.75rem; object-fit: contain; margin-right: 0.5rem; display: inline-block; vertical-align: middle; flex-shrink: 0; }
        .detail-icon-svg { height: 1.75rem; width: auto; max-width: 2.75rem; margin-right: 0.5rem; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
        .detail-icon-svg svg { height: 100%; width: auto; max-width: 2.75rem; display: block; }
        .detail-icon:not(.status-icon) { width: 2.75rem; }
        .detail-icon-svg:not(.status-icon) { width: 2.75rem; }
        .detail-icon-placeholder { width: 2.75rem; margin-right: 0.5rem; flex-shrink: 0; }
        .status-icon { font-size: 1.25rem; margin-right: 0.5rem; vertical-align: middle; }

        /* Ikon és színminta hover nagyítás. */
        .detail-icon, .detail-icon-svg, .status-icon, .szinminta-nagyithato {
            transition: transform 0.2s ease-in-out;
        }
        .detail-icon:hover, .detail-icon-svg:hover, .status-icon:hover, .szinminta-nagyithato:hover {
            transform: scale(3);
            position: relative;
            z-index: 10;
        }

        .icon-aszko svg rect { fill: #d6eaf8; stroke: #5dade2; } .icon-aszko svg path { stroke: #aed6f1; } .icon-aszko svg ellipse[fill="#c0392b"] { fill: #c0392b; }
        .icon-bazi svg ellipse[fill="#f5b7b1"] { fill: #f5b7b1; stroke: #cd6155; } .icon-bazi svg path { stroke: #cd6155; } .icon-bazi svg circle[fill="#ec7063"] { fill: #ec7063; stroke: #922b21; }
        .text-black { color: #000000 !important; }
        .text-white { color: #ffffff !important; }
        .pantone-chip { display: inline-flex; align-items: center; justify-content: center; max-width: 13rem; min-width: 4.3rem; min-height: 1.65rem; padding: 0.24rem 0.65rem; border-radius: 9999px; border: 1px solid rgba(17, 24, 39, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 1px 2px rgba(15, 23, 42, 0.08); vertical-align: middle; }
        .pantone-chip-code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; font-weight: 800; line-height: 1; letter-spacing: 0; }
        .pantone-chip-light { color: #111827 !important; }
        .pantone-chip-dark { color: #ffffff !important; }
        .pantone-chip-missing { color: #4b5563; background: #f3f4f6; }
        .sporaszin-detail-value { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
        .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 0.55rem; }
        .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.45rem; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; background: #eef2ef; }
        .gallery-item img:hover { border-color: #93c5fd; transform: translateY(-1px); }
        .gallery-item img.active { border-color: #2f4638; box-shadow: 0 0 0 2px rgba(47, 70, 56, 0.16); }
        .main-image-container { position: relative; border-radius: 0.5rem; overflow: hidden; background: #f4f7f2; border: 1px solid rgba(47, 70, 56, 0.12); }
        .main-image { display: block; width: 100%; max-height: 420px; object-fit: contain; cursor: zoom-in; }
        .main-image-container.is-missing,
        .gallery-item.is-missing {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 8rem;
            border-radius: 0.5rem;
            background: #eef2ef;
            color: #4b6358;
            font-size: 0.84rem;
            font-weight: 800;
            text-align: center;
        }
        .main-image-container.is-missing::after,
        .gallery-item.is-missing::after {
            content: "A kép nem elérhető";
            padding: 0.75rem;
        }
        .gallery-item.is-missing {
            min-height: auto;
            aspect-ratio: 1;
            font-size: 0.72rem;
        }
        .main-image.is-missing,
        .gallery-item img.is-missing,
        .lightbox-image.is-missing {
            display: none;
        }
        .sidebar-card {
            padding: 1rem;
            border: 1px solid rgba(47, 70, 56, 0.12);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
        }
        .feature-list {
            display: grid;
            gap: 0.75rem;
        }
        .feature-list li {
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgba(47, 70, 56, 0.1);
        }
        .feature-list li:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }
        .description-section {
            background: #fbfdf9;
            border: 1px solid rgba(47, 70, 56, 0.12);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
        }
        .description-copy {
            max-width: 74ch;
            color: #374151;
            font-size: 1rem;
            line-height: 1.78;
        }
        .stepper-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 50; padding: 0.75rem; background-color: rgba(255, 255, 255, 0.7); border-radius: 9999px; text-decoration: none; color: #1f2937; transition: all 0.2s ease-in-out; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
        .stepper-nav:hover { background-color: rgba(255, 255, 255, 1); transform: translateY(-50%) scale(1.1); }
        .stepper-nav.prev { left: 1rem; }
        .stepper-nav.next { right: 1rem; }
        .stepper-nav svg { width: 1.5rem; height: 1.5rem; }
        @media (max-width: 767px) {
            body { padding-bottom: 5rem; }
            .stepper-nav {
                top: auto;
                bottom: calc(1rem + env(safe-area-inset-bottom));
                transform: none;
                padding: 0.35rem;
                background-color: transparent;
                border: 0;
                box-shadow: none;
                color: rgba(31, 41, 55, 0.86);
            }
            .stepper-nav:hover { transform: none; }
            .stepper-nav.prev { left: 0.85rem; }
            .stepper-nav.next { right: 0.85rem; }
            .stepper-nav svg {
                width: 2.15rem;
                height: 2.15rem;
                filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
            }
        }
        .image-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background-color: rgba(0, 0, 0, 0.3); color: white; border: none; border-radius: 9999px; padding: 0.5rem; cursor: pointer; transition: background-color 0.2s; display: none; }
        .image-nav:hover { background-color: rgba(0, 0, 0, 0.6); }
        .image-nav svg { width: 1.5rem; height: 1.5rem; display: block; }
        .image-nav.prev { left: 0.5rem; }
        .image-nav.next { right: 0.5rem; }
        .main-image-container:hover .image-nav { display: block; }
        body.lightbox-open { overflow: hidden; }
        .image-lightbox {
            position: fixed;
            inset: 0;
            z-index: 100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background: rgba(8, 13, 18, 0.9);
        }
        .image-lightbox.is-open { display: flex; }
        .lightbox-stage {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: min(100%, 1180px);
            height: min(100%, 86vh);
        }
        .lightbox-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 0.5rem;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
            background: #111827;
        }
        .lightbox-caption {
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2.25rem;
            color: rgba(255, 255, 255, 0.86);
            font-size: 0.92rem;
            text-align: center;
        }
        .lightbox-control {
            position: absolute;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 9999px;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.22);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
            transition: background-color 0.18s ease, transform 0.18s ease;
        }
        .lightbox-control:hover {
            background: rgba(255, 255, 255, 0.28);
            transform: translateY(-1px);
        }
        .lightbox-close {
            top: 1rem;
            right: 1rem;
            font-size: 1.8rem;
            line-height: 1;
        }
        .lightbox-prev,
        .lightbox-next {
            top: 50%;
            transform: translateY(-50%);
        }
        .lightbox-prev:hover,
        .lightbox-next:hover {
            transform: translateY(-50%) translateY(-1px);
        }
        .lightbox-prev { left: 1rem; }
        .lightbox-next { right: 1rem; }
        .lightbox-control svg {
            width: 1.55rem;
            height: 1.55rem;
        }
        .map-placeholder {
            min-height: 400px;
            border-radius: 0.5rem;
            background:
                linear-gradient(135deg, rgba(232, 241, 232, 0.92), rgba(216, 228, 214, 0.92)),
                repeating-linear-gradient(0deg, rgba(47, 70, 56, 0.08) 0 1px, transparent 1px 28px),
                repeating-linear-gradient(90deg, rgba(47, 70, 56, 0.08) 0 1px, transparent 1px 28px);
            border: 1px solid rgba(47, 70, 56, 0.16);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1.5rem;
        }
        .map-placeholder.hidden {
            display: none;
        }
        .map-pin {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            margin-bottom: 0.8rem;
            border-radius: 9999px;
            background: #174a65;
            color: #fff8e6;
            font-size: 1.45rem;
            box-shadow: 0 12px 24px rgba(23, 74, 101, 0.22);
        }
        .map-placeholder.is-loading {
            color: #4b6358;
        }
        .map-placeholder.is-error {
            background: #fff3f1;
            border-color: rgba(207, 63, 50, 0.24);
            color: #811910;
        }
        .map-load-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            padding: 0.7rem 1rem;
            border-radius: 9999px;
            background: #174a65;
            color: #fff8e6;
            font-weight: 800;
            box-shadow: 0 8px 18px rgba(23, 74, 101, 0.2);
            transition: transform 0.18s ease, background-color 0.18s ease;
        }
        .map-load-button:hover {
            background: #123f56;
            transform: translateY(-1px);
        }
        .map-load-button:disabled {
            cursor: wait;
            opacity: 0.72;
            transform: none;
        }
        #map {
            min-height: 400px;
            width: 100%;
            border-radius: 0.5rem;
            background-color: #e5e7eb;
        }
        @media (min-width: 1024px) {
            .detail-desktop-three-panel {
                align-items: start;
            }
            .detail-desktop-three-panel .description-section,
            .detail-desktop-three-panel .gallery-panel,
            .detail-desktop-three-panel .sidebar-card {
                height: fit-content;
            }
            .detail-desktop-three-panel .main-image {
                max-height: 320px;
            }
            .detail-desktop-three-panel .gallery {
                grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
                gap: 0.45rem;
            }
            .detail-desktop-three-panel .description-copy {
                font-size: 0.96rem;
                line-height: 1.72;
            }
        }
        @media (max-width: 767px) {
            .detail-hero {
                padding: 1.25rem;
            }
            .detail-hero-inner {
                display: grid;
                gap: 1rem;
            }
            .hero-badges {
                justify-content: flex-start;
            }
            .gallery-panel,
            .sidebar-card {
                padding: 0.85rem;
            }
        }
        @media (min-width: 768px) {
            .hero-badges {
                display: none;
            }
        }
