
/* Muzejski fontovi */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* Osnovni muzejski stil za cijeli sajt */
body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.65;
    color: #3a2b1b;
    background-color: #f5f1e8;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

/* Globalni dark mode */
body.dark-mode {
    background-color: #0b0b0b !important;
    color: #f3f3f3 !important;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode div,
body.dark-mode td,
body.dark-mode th,
body.dark-mode label,
body.dark-mode small {
    color: #f3f3f3 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff !important;
}

body.dark-mode a {
    color: #c9d6ff !important;
}

body.dark-mode a:hover {
    color: #ffffff !important;
}

body.dark-mode .result-item,
body.dark-mode .card,
body.dark-mode .box,
body.dark-mode .filter-panel,
body.dark-mode .vitrina-card,
body.dark-mode .stats-box,
body.dark-mode .leaderboard-box,
body.dark-mode .map-box,
body.dark-mode .table,
body.dark-mode .table-bordered,
body.dark-mode .panel,
body.dark-mode .panel-body {
    background-color: #181818 !important;
    color: #f3f3f3 !important;
    border-color: #333 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #262626 !important;
    border-color: #555 !important;
    color: #f3f3f3 !important;
}

/* pregazi tipične braon inline boje u dark modu */
body.dark-mode [style*="color:#8a6d3b"],
body.dark-mode [style*="color: #8a6d3b"],
body.dark-mode [style*="color:#a67c52"],
body.dark-mode [style*="color: #a67c52"] {
    color: #f3f3f3 !important;
}

/* Kraj osnovnog dark moda */


/* --- Sakupljeni stilovi iz pojedinačnih stranica --- */

/* ---- styles from nalaz.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
            color: #3a2b1b;
        }


        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo {
            font-size: 22px;
            font-weight: bold;
        }
        .logo span {
            color: #d9b15c;
        }
        nav a {
            margin-left: 18px;
            font-size: 14px;
            opacity: 0.9;
            color: inherit;
            text-decoration: none;
        }
        nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .page-wrapper {
            max-width: 1200px;
            margin: 20px auto 40px auto;
            padding: 0 15px;
        }

        .breadcrumb {
            font-size: 12px;
            color: #7a6b55;
            margin-bottom: 8px;
        }
        .breadcrumb a {
            color: #7a6b55;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .title-block h1 {
            margin: 0 0 4px 0;
            font-size: 24px;
        }
        .title-block .subtitle {
            font-size: 13px;
            color: #7a6b55;
        }

        .content-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 18px;
            margin-top: 15px;
        }

        /* SLICE BLOK */

        .image-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 12px;
        }

        .main-image-wrapper {
            text-align: center;
            margin-bottom: 10px;
        }

        .main-image {
            max-width: 100%;
            max-height: 420px;
            border-radius: 4px;
            border: 1px solid #cbb79a;
            background: #f0e4d2;
            cursor: zoom-in;
        }

        .thumb-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 6px;
            justify-content: center;
        }

        .thumb-item {
            text-align: center;
            font-size: 11px;
            color: #746450;
        }

        .thumb-item img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 3px;
            border: 1px solid #cbb79a;
            background: #f2e9d8;
            cursor: pointer;
            transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
        }

        .thumb-item img.active-thumb {
            border-color: #8c6f4d;
            box-shadow: 0 0 0 2px rgba(140,111,77,0.4);
            transform: translateY(-1px);
        }

        /* PODACI O NALAZU */

        .info-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 14px;
        }

        .info-heading {
            font-size: 16px;
            margin-top: 0;
            margin-bottom: 8px;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin-bottom: 10px;
        }
        .info-table th,
        .info-table td {
            padding: 4px 4px;
            vertical-align: top;
        }
        .info-table th {
            width: 35%;
            font-weight: bold;
            color: #6b5a45;
        }

        .badge-type {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #e0d4c0;
            font-size: 11px;
            margin-bottom: 4px;
        }
        .badge-material {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #d9e8f5;
            font-size: 11px;
            margin-bottom: 4px;
        }

        .description-box {
            margin-top: 10px;
            font-size: 13px;
            line-height: 1.5;
            color: #4d402f;
        }
        .description-box h3 {
            font-size: 14px;
            margin: 0 0 4px 0;
        }

        .detektor-link {
            font-size: 12px;
            margin-top: 4px;
        }
        .detektor-link a {
            color: #004080;
            text-decoration: underline;
        }

        /* RATING (OCJENE) */
        .rating-block {
            margin-top: 12px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .rating-label {
            font-weight: bold;
            margin-bottom: 4px;
        }
        .rating-stars {
            display: inline-flex;
            gap: 2px;
            cursor: pointer;
            margin-bottom: 4px;
        }
        .rating-star {
            font-size: 20px;
            color: #c3b7a1;
            transition: color 0.15s;
        }
        .rating-star.filled {
            color: #e0a840;
        }
        .rating-info {
            font-size: 12px;
            color: #6b5a45;
        }


        /* KOMENTARI NALAZA */
        .comments-block {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .comments-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .comment-item {
            border-top: 1px solid #e2d3bd;
            padding: 6px 0;
        }
        .comment-item:first-child {
            border-top: none;
        }
        .comment-meta {
            font-size: 11px;
            color: #8a7b66;
            margin-bottom: 3px;
        }
        .comment-body {
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form label {
            display: block;
            font-size: 12px;
            margin-top: 6px;
            margin-bottom: 2px;
            color: #5b4733;
        }
        .comment-form input[type="text"],
        .comment-form textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 6px 8px;
            border-radius: 6px;
            border: 1px solid #d2c0a4;
            background: #fffaf0;
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form textarea {
            min-height: 80px;
            resize: vertical;
        }
        .comment-form button {
            margin-top: 8px;
            padding: 7px 14px;
            border-radius: 20px;
            border: none;
            background: linear-gradient(135deg, #c99b4f, #a06b2c);
            color: #fff;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        .comment-form button:hover {
            filter: brightness(1.05);
        }

        /* SLICNI NALAZI BLOK */
        .related-block {
            margin-top: 18px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .related-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .related-item {
            display: flex;
            align-items: center;
            width: calc(50% - 5px);
            text-decoration: none;
            border-radius: 8px;
            padding: 6px;
            background: #fdf3e3;
            border: 1px solid #e2d3bd;
            box-sizing: border-box;
        }
        .related-item:hover {
            background: #fbe8cd;
        }
        .related-thumb {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 8px;
            background: #eee0c8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: #7b674d;
        }
        .related-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .related-info {
            flex: 1;
            min-width: 0;
        }
        .related-title {
            font-size: 13px;
            font-weight: bold;
            color: #3a2b1b;
            margin-bottom: 2px;
        }
        .related-meta {
            font-size: 11px;
            color: #7b6b57;
        }

        /* DARK MODE za slicne nalaze */
        body.dark-mode .related-block {
            background: #171717;
            border-color: #444;
            color: #eee;
        }
        body.dark-mode .related-block h3 {
            color: #f5d27a;
        }
        body.dark-mode .related-item {
            background: #111;
            border-color: #333;
        }
        body.dark-mode .related-item:hover {
            background: #181818;
        }
        body.dark-mode .related-thumb {
            background: #222;
            color: #aaa;
        }
        body.dark-mode .related-title {
            color: #f0f0f0;
        }
        body.dark-mode .related-meta {
            color: #bbbbbb;
        }


/* DARK MODE za komentare (body.dark-mode) */
body.dark-mode .comments-block {
    background: #171717;
    border-color: #444;
    color: #eee;
}

body.dark-mode .comments-block h3 {
    color: #f5d27a;
}

body.dark-mode .comment-item {
    border-top-color: #333;
}

body.dark-mode .comment-meta {
    color: #aaaaaa;
}

body.dark-mode .comment-body {
    color: #f0f0f0;
}

body.dark-mode .comment-form label {
    color: #d9c7a2;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form textarea {
    background: #111;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode .comment-form input[type="text"]::placeholder,
body.dark-mode .comment-form textarea::placeholder {
    color: #777;
}

body.dark-mode .comment-form button {
    background: linear-gradient(135deg, #b8893d, #88551f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

        /* OVERLAY ZOOM */

        .image-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .overlay-inner {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: #111;
            border-radius: 6px;
            padding: 10px;
            box-sizing: border-box;
        }

        .overlay-img-wrapper {
            position: relative;
            overflow: hidden;
            max-width: 100%;
            max-height: 78vh;
            cursor: grab;
            background: #111;
        }

        .overlay-img-wrapper img {
            max-width: 100%;
            max-height: 100%;
            user-select: none;
            -webkit-user-drag: none;
            transform-origin: center center;
            transition: transform 0.05s linear;
        }

        .overlay-controls {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 12px;
            color: #eee;
        }

        .zoom-buttons {
            display: flex;
            gap: 6px;
        }

        .zoom-btn, .close-btn {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 4px;
            border: 1px solid #666;
            background: #222;
            color: #f8f8f8;
            cursor: pointer;
        }
        .zoom-btn:hover, .close-btn:hover {
            background: #333;
        }

        @media (max-width: 800px) {
            .content-layout {
                grid-template-columns: 1fr;
            }
        }
    
        /* Mini priča ispod nalaza */
        .story-single {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid #d3c1a5;
            background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
            font-size: 13px;
            line-height: 1.5;
            color: #3a2b1b;
        }
        .story-single h3 {
            margin: 0 0 6px 0;
            font-size: 14px;
        }
        .story-line {
            margin: 0 0 4px 0;
            font-size: 12px;
            color: #5f5342;
        }
        .story-line strong {
            font-weight: bold;
        }

    
        /* Header modern + dugme za dark mode */
        header {
            background: rgba(59, 53, 42, 0.97);
            color: #f5f2e9;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 20;
            box-shadow: 0 4px 12px rgba(0,0,0,0.35);
            backdrop-filter: blur(8px);
        }
        header .logo {
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 0.6px;
        }
        header .logo span {
            color: #f5d189;
        }
        header nav a {
            color: #f5f2e9;
            margin-left: 15px;
            font-size: 14px;
            position: relative;
            padding-bottom: 2px;
            text-decoration: none;
        }
        header nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #f5d189;
            transition: width 0.25s ease;
        }
        header nav a:hover {
            color: #f5d189;
        }
        header nav a:hover::after {
            width: 100%;
        }
        .theme-toggle {
            margin-left: 14px;
            padding: 5px 12px;
            border-radius: 999px;
            border: 1px solid rgba(245,241,230,0.6);
            background: rgba(0,0,0,0.15);
            color: #f5f2e9;
            font-size: 0.78rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.4);
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }
        .theme-toggle:hover {
            background: rgba(0,0,0,0.3);
            transform: translateY(-1px);
            box-shadow: 0 5px 12px rgba(0,0,0,0.5);
        }
        .theme-toggle:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0,0,0,0.5);
        }

        /* Dark mode varijante */
        body.dark-mode {
            background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
            color: #f1e7d4;
        }
        body.dark-mode .page-wrapper {
            color: #f1e7d4;
        }
        body.dark-mode .content-layout,
        body.dark-mode .image-panel,
        body.dark-mode .info-panel,
        body.dark-mode .details-panel,
        body.dark-mode .rating-block,
        body.dark-mode .comments-panel,
        body.dark-mode .comment,
        body.dark-mode .story-single,
        body.dark-mode .description-box {
            background: #1f1912;
            border-color: #5c4a31;
            color: #f1e7d4;
            box-shadow: 0 12px 24px rgba(0,0,0,0.7);
        }
        body.dark-mode .info-table th {
            background: #2a2017;
            color: #f1e7d4;
        }
        body.dark-mode .info-table td {
            background: #241c13;
            color: #f1e7d4;
        }
        body.dark-mode .thumb-item img {
            background: #241c13;
            border-color: #6b5740;
        }
        body.dark-mode .breadcrumb {
            color: #c9bfa8;
        }
        body.dark-mode .breadcrumb a {
            color: #f5d189;
        }
        body.dark-mode header {
            background: rgba(15, 11, 8, 0.97);
            box-shadow: 0 4px 14px rgba(0,0,0,0.8);
        }
        body.dark-mode header nav a {
            color: #f1e7d4;
        }
        body.dark-mode header nav a:hover {
            color: #f5d189;
        }


/* ---- styles from o_muzeju.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    
    .finds-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* Na manjim ekranima (tablet) samo 2 u redu */
@media (max-width: 1100px) {
    .finds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Na jako uskim (mobitel) jedna po redu */
@media (max-width: 700px) {
    .finds-grid {
        grid-template-columns: 1fr;
    }
}

    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


/* ---- styles from assistant_widget.php ---- */
.ai-assistant-wrapper {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 9999;
        font-family: Arial, sans-serif;
    }
    .ai-assistant-toggle {
        border-radius: 999px;
        border: none;
        padding: 10px 16px;
        background: #3b352a;
        color: #f5f2e9;
        font-size: 13px;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(0,0,0,0.4);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .ai-assistant-toggle span.icon {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #f5d189;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #2b2115;
    }
    .ai-assistant-window {
        width: 290px;
        max-height: 420px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        box-shadow: 0 16px 32px rgba(0,0,0,0.65);
        border: 1px solid #d3c1a5;
        display: none;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 8px;
    }
    .ai-assistant-window.open {
        display: flex;
    }
    .ai-assistant-header {
        padding: 8px 10px;
        background: linear-gradient(135deg, #3b352a 0, #5a4b37 100%);
        color: #f5f2e9;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .ai-assistant-header-title {
        font-weight: bold;
    }
    .ai-assistant-close {
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
    }
    .ai-assistant-body {
        padding: 8px 8px 6px 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .ai-assistant-messages {
        flex: 1;
        min-height: 120px;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 4px;
        font-size: 12px;
    }
    .ai-msg {
        margin-bottom: 6px;
        display: flex;
    }
    .ai-msg.ai-bot {
        justify-content: flex-start;
    }
    .ai-msg.ai-user {
        justify-content: flex-end;
    }
    .ai-bubble {
        max-width: 90%;
        border-radius: 10px;
        padding: 6px 8px;
        white-space: pre-line;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    .ai-bot .ai-bubble {
        background: #f5f0e3;
        color: #3a2b1b;
        border: 1px solid #d3c1a5;
    }
    .ai-user .ai-bubble {
        background: #3b352a;
        color: #f5f2e9;
        border: 1px solid #2b2418;
    }
    .ai-assistant-form {
        display: flex;
        gap: 4px;
        margin-top: 2px;
    }
    .ai-assistant-input {
        flex: 1;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        padding: 5px 8px;
        font-size: 12px;
        outline: none;
    }
    .ai-assistant-input:focus {
        border-color: #f5d189;
        box-shadow: 0 0 0 2px rgba(245,209,137,0.4);
    }
    .ai-assistant-send {
        border-radius: 999px;
        border: none;
        padding: 5px 9px;
        font-size: 12px;
        background: #3b352a;
        color: #f5f2e9;
        cursor: pointer;
    }
    .ai-assistant-send:disabled {
        opacity: 0.6;
        cursor: default;
    }
    .ai-assistant-hints {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }
    .ai-hint-btn {
        border-radius: 999px;
        border: 1px solid #d3c1a5;
        background: #f8f2e4;
        font-size: 10px;
        padding: 3px 6px;
        cursor: pointer;
    }
    .ai-hint-btn:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
    }

    /* Dark mode varijante za widget */
    body.dark-mode .ai-assistant-window {
        background: #1f1912;
        border-color: #5c4a31;
    }
    body.dark-mode .ai-bot .ai-bubble {
        background: #241c13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .ai-user .ai-bubble {
        background: #f5d189;
        color: #2b2115;
        border-color: #d0aa4f;
    }
    body.dark-mode .ai-assistant-input {
        background: #241c13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .ai-assistant-input:focus {
        border-color: #f5d189;
    }
    body.dark-mode .ai-assistant-send {
        background: #f5d189;
        color: #2b2115;
    }
    body.dark-mode .ai-hint-btn {
        background: #241c13;
        border-color: #6b5740;
        color: #f1e7d4;
    }


/* ---- styles from muzejbb.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from indexbb.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: #5c3b1c;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    a:hover {
        text-decoration: underline;
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Top mini-nav */
    .top-nav {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 10px 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        color: #f5f2e9;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .top-nav > div:first-child {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 14px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

    .top-nav > div:first-child strong {
        letter-spacing: 0.6px;
        font-size: 0.95rem;
    }

    .top-nav-links {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .top-nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        color: #f5f2e9;
        text-decoration: none;
        position: relative;
        padding-bottom: 1px;
    }
    .top-nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.2s ease;
    }
    .top-nav-links a:hover {
        color: #f5d189;
        text-decoration: none;
    }
    .top-nav-links a:hover::after {
        width: 100%;
    }

    /* Wrapper & layout */
    .wrapper {
        max-width: 1200px;
        margin: 15px auto 30px auto;
        padding: 15px;
        display: flex;
        gap: 18px;
        box-sizing: border-box;
    }

    .main-content {
        flex: 2;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px 18px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    .side-column {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 14px 16px 16px 16px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.07);
        font-size: 0.9rem;
        animation: fadeUp 0.7s ease-out;
    }

    h1 {
        margin-top: 0;
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .subtitle {
        margin: 0;
        font-size: 0.85rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    .help-text {
        font-size: 0.8rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    /* Messages */
    .message-info,
    .message-error,
    .message-success {
        padding: 8px 10px;
        border-radius: 6px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .message-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .message-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }
    .message-success {
        background-color: #e6f7e8;
        border: 1px solid #86c190;
        color: #2d6b37;
    }

    /* Form polja */
    form {
        font-size: 0.9rem;
    }

    .field-group {
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin-top: 8px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        width: 100%;
        padding: 7px 9px;
        margin-top: 4px;
        border: 1px solid #c8b89b;
        border-radius: 6px;
        background-color: #fffdf7;
        box-sizing: border-box;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    textarea {
        min-height: 80px;
        resize: vertical;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="date"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .field-group-inline {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .field-group-inline > div {
        flex: 1;
        min-width: 0;
    }

    /* Dugme */
    .btn {
        display: inline-block;
        padding: 9px 18px;
        margin-top: 14px;
        background: #3b352a;
        color: #fffaf0;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn:hover {
        background: #4a4031;
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(0,0,0,0.3);
    }
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .hint {
        font-size: 0.75rem;
        color: #7b6a50;
        margin-top: 6px;
    }

    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
    }
    .radio-group label {
        display: inline-flex;
        align-items: center;
        margin-top: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f4ebd6;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .radio-group input[type="radio"] {
        margin-right: 4px;
    }
    .radio-group label:hover {
        background: #e7dcc5;
        border-color: #c39b63;
    }

    .sub-section-title {
        margin-top: 18px;
        font-weight: bold;
        font-size: 0.95rem;
        padding-bottom: 2px;
        border-bottom: 1px solid #dec9a6;
        color: #4a3822;
    }

    /* Zadnjih 10 nalaza */
    .side-column h2 {
        margin-top: 0;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .last-finds-item {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 4px;
        border-bottom: 1px dashed #d3c1a5;
    }

    .last-finds-thumb {
        width: 58px;
        height: 58px;
        background: #e3d3b2;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .last-finds-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .last-finds-info {
        flex: 1;
        font-size: 0.85rem;
    }

    .last-finds-title {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .last-finds-meta {
        font-size: 0.78rem;
        color: #7b6a50;
    }

    /* Animacije */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 800px) {
        .wrapper {
            flex-direction: column;
            padding: 10px;
        }
        .top-nav {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }
        .top-nav > div:first-child,
        .top-nav-links {
            justify-content: center;
        }
    }

/* Header from muzej */
header {
    background: rgba(59, 53, 42, 0.97);
    color: #f5f2e9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}
header .logo {font-size:20px;font-weight:bold; letter-spacing:0.5px;}
header nav a {
    color:#f5f2e9;
    margin-left:18px;
    font-size:14px;
    opacity:0.9;
    text-decoration:none;
    position:relative;
    padding-bottom:2px;
}
header nav a::after {
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0; height:2px;
    background:#f5d189;
    transition:width 0.25s ease;
}
header nav a:hover {color:#f5d189;}
header nav a:hover::after {width:100%;}


    /* Hero sekcija */
    .hero {
        max-width: 1200px;
        margin: 12px auto 0 auto;
        padding: 14px 18px;
        display: flex;
        gap: 16px;
        align-items: center;
        box-sizing: border-box;
    }
    .hero-main {
        flex: 2;
        background: linear-gradient(135deg, #3b352a 0, #514533 45%, #3b352a 100%);
        color: #f5f2e9;
        padding: 14px 16px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    }
    .hero-title {
        margin: 0 0 6px 0;
        font-size: 1.4rem;
    }
    .hero-subtitle {
        margin: 0 0 10px 0;
        font-size: 0.9rem;
        color: #e3d7bd;
    }
    .hero-actions {
        font-size: 0.8rem;
        color: #f5e7c3;
    }
    .hero-badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 999px;
        background: #f5d189;
        color: #3b2a1a;
        font-weight: bold;
        font-size: 0.75rem;
        margin-right: 3px;
    }
    .hero-user {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 10px 12px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        font-size: 0.85rem;
        color: #4a3822;
    }
    .hero-user-links {
        margin-top: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-link {
        font-size: 0.8rem;
        color: #5c3b1c;
        cursor: pointer;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .main-content,
    body.dark-mode .side-column,
    body.dark-mode .hero-user {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .hero-main {
        background: linear-gradient(135deg, #181310 0, #262018 45%, #181310 100%);
        box-shadow: 0 14px 30px rgba(0,0,0,0.9);
    }
    body.dark-mode input[type="text"],
    body.dark-mode input[type="password"],
    body.dark-mode input[type="date"],
    body.dark-mode select,
    body.dark-mode textarea {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode input[type="text"]:focus,
    body.dark-mode input[type="password"]:focus,
    body.dark-mode input[type="date"]:focus,
    body.dark-mode select:focus,
    body.dark-mode textarea:focus {
        border-color: #f5d189;
        box-shadow: 0 0 0 2px rgba(245,209,137,0.5);
        background: #241d14;
    }
    body.dark-mode .btn {
        background: #f5d189;
        color: #2b2115;
    }
    body.dark-mode .btn:hover {
        background: #ffe09b;
    }
    body.dark-mode .last-finds-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .sub-section-title {
        border-bottom-color: #5c4a31;
        color: #f5d6a0;
    }
    body.dark-mode .radio-group label {
        background: #2a2218;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .radio-group label:hover {
        background: #352a1d;
    }
    body.dark-mode .last-finds-meta {
        color: #d1c0a0;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }
    @media (max-width: 800px) {
        .hero {
            flex-direction: column;
            padding: 10px 12px;
        }
    }


/* ---- styles from profil.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    a:hover {
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Header kao na modernim stranicama */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        backdrop-filter: blur(8px);
    }

    header .logo {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 0.6px;
    }

    header .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f5d189;
        text-decoration: none;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Glavni container */
    .main {
        max-width: 1200px;
        margin: 18px auto 30px auto;
        padding: 0 15px 20px 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Paneli / kartice */
    .panel {
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
    }

    h1, h2, h3 {
        margin-top: 0;
        color: #3b2a1a;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
        border-bottom: 1px solid #dec9a6;
    }

    /* Profil: stat grid i nalazi */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-top: 6px;
    }

    .stat-box {
        background: #fdf7eb;
        border-radius: 8px;
        border: 1px solid #d0c29e;
        padding: 8px 10px;
        font-size: 13px;
    }
    .stat-label {
        color: #7a7161;
        font-size: 12px;
    }
    .stat-value {
        font-size: 18px;
        font-weight: bold;
        margin-top: 2px;
    }

    .status-badge {
        display: inline-block;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 999px;
        margin-right: 4px;
    }
    .status-approved {
        background: #6fbf6f;
        color: #143414;
    }
    .status-pending {
        background: #f0d37a;
        color: #4a3b10;
    }
    .status-rejected {
        background: #e9a1a1;
        color: #5b1616;
    }

    .find-list {
        margin-top: 10px;
        border-top: 1px solid #e0d4be;
    }

    .find-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #e0d4be;
        font-size: 13px;
    }

    .thumb-wrap {
        width: 70px;
        height: 70px;
        background: #e3d3b2;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .thumb-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .find-meta {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .find-dates {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .back-links,
    .back-link {
        margin-top: 10px;
        font-size: 12px;
        color: #5a5346;
    }
    .back-links a,
    .back-link a {
        text-decoration: underline;
    }

    /* Savjeti: lista clanaka */
    .article-list {
        list-style: none;
        margin: 0;
        padding: 0;
        margin-top: 10px;
    }
    .article-item {
        border-bottom: 1px dashed #e0d4be;
        padding: 8px 0;
    }
    .article-title {
        font-weight: bold;
        margin-bottom: 2px;
    }
    .article-meta {
        font-size: 11px;
        color: #7a7161;
        margin-bottom: 4px;
    }
    .article-excerpt,
    .article-full {
        font-size: 13px;
        color: #3b2a1a;
    }
    .badge-cat {
        display: inline-block;
        margin-left: 6px;
        padding: 2px 7px;
        border-radius: 999px;
        background: #e2d1aa;
        font-size: 11px;
        color: #3b2a1a;
    }

    /* Poruke */
    .alert-info,
    .alert-error {
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    .alert-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .alert-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }

    /* Paginacija */
    .pagination {
        margin-top: 10px;
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .pagination a,
    .pagination span {
        padding: 3px 8px;
        border-radius: 999px;
        border: 1px solid #d0c29e;
        background: #f5f2e9;
        color: #3c352b;
        text-decoration: none;
    }
    .pagination .current {
        background: #d9b15c;
        border-color: #b89345;
        font-weight: bold;
    }
    .pagination .disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .panel {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .stats-grid .stat-box {
        background: #221b13;
        border-color: #6b5740;
    }
    body.dark-mode .article-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .find-row {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode input,
    body.dark-mode textarea,
    body.dark-mode select {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }

    @media (max-width: 800px) {
        .main {
            padding: 0 10px 16px 10px;
        }
        header {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
    }


/* ---- styles from kolekcija.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: #5c3b1c;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    a:hover {
        text-decoration: underline;
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Top mini-nav */
    .top-nav {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 10px 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        color: #f5f2e9;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .top-nav > div:first-child {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 14px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

    .top-nav > div:first-child strong {
        letter-spacing: 0.6px;
        font-size: 0.95rem;
    }

    .top-nav-links {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .top-nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        color: #f5f2e9;
        text-decoration: none;
        position: relative;
        padding-bottom: 1px;
    }
    .top-nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.2s ease;
    }
    .top-nav-links a:hover {
        color: #f5d189;
        text-decoration: none;
    }
    .top-nav-links a:hover::after {
        width: 100%;
    }

    /* Wrapper & layout */
    .wrapper {
        max-width: 1200px;
        margin: 15px auto 30px auto;
        padding: 15px;
        display: flex;
        gap: 18px;
        box-sizing: border-box;
    }

    .main-content {
        flex: 2;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px 18px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    .side-column {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 14px 16px 16px 16px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.07);
        font-size: 0.9rem;
        animation: fadeUp 0.7s ease-out;
    }

    h1 {
        margin-top: 0;
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .subtitle {
        margin: 0;
        font-size: 0.85rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    .help-text {
        font-size: 0.8rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    /* Messages */
    .message-info,
    .message-error,
    .message-success {
        padding: 8px 10px;
        border-radius: 6px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .message-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .message-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }
    .message-success {
        background-color: #e6f7e8;
        border: 1px solid #86c190;
        color: #2d6b37;
    }

    /* Form polja */
    form {
        font-size: 0.9rem;
    }

    .field-group {
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin-top: 8px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        width: 100%;
        padding: 7px 9px;
        margin-top: 4px;
        border: 1px solid #c8b89b;
        border-radius: 6px;
        background-color: #fffdf7;
        box-sizing: border-box;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    textarea {
        min-height: 80px;
        resize: vertical;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="date"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .field-group-inline {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .field-group-inline > div {
        flex: 1;
        min-width: 0;
    }

    /* Dugme */
    .btn {
        display: inline-block;
        padding: 9px 18px;
        margin-top: 14px;
        background: #3b352a;
        color: #fffaf0;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn:hover {
        background: #4a4031;
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(0,0,0,0.3);
    }
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .hint {
        font-size: 0.75rem;
        color: #7b6a50;
        margin-top: 6px;
    }

    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
    }
    .radio-group label {
        display: inline-flex;
        align-items: center;
        margin-top: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f4ebd6;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .radio-group input[type="radio"] {
        margin-right: 4px;
    }
    .radio-group label:hover {
        background: #e7dcc5;
        border-color: #c39b63;
    }

    .sub-section-title {
        margin-top: 18px;
        font-weight: bold;
        font-size: 0.95rem;
        padding-bottom: 2px;
        border-bottom: 1px solid #dec9a6;
        color: #4a3822;
    }

    /* Zadnjih 10 nalaza */
    .side-column h2 {
        margin-top: 0;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .last-finds-item {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 4px;
        border-bottom: 1px dashed #d3c1a5;
    }

    .last-finds-thumb {
        width: 58px;
        height: 58px;
        background: #e3d3b2;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .last-finds-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .last-finds-info {
        flex: 1;
        font-size: 0.85rem;
    }

    .last-finds-title {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .last-finds-meta {
        font-size: 0.78rem;
        color: #7b6a50;
    }

    /* Animacije */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 800px) {
        .wrapper {
            flex-direction: column;
            padding: 10px;
        }
        .top-nav {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }
        .top-nav > div:first-child,
        .top-nav-links {
            justify-content: center;
        }
    }

/* Header from muzej */
header {
    background: rgba(59, 53, 42, 0.97);
    color: #f5f2e9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}
header .logo {font-size:20px;font-weight:bold; letter-spacing:0.5px;}
header nav a {
    color:#f5f2e9;
    margin-left:15px;
    text-decoration:none;
    position:relative;
    padding-bottom:2px;
}
header nav a::after {
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0; height:2px;
    background:#f5d189;
    transition:width 0.25s ease;
}
header nav a:hover {color:#f5d189;}
header nav a:hover::after {width:100%;}


    /* Hero sekcija */
    .hero {
        max-width: 1200px;
        margin: 12px auto 0 auto;
        padding: 14px 18px;
        display: flex;
        gap: 16px;
        align-items: center;
        box-sizing: border-box;
    }
    .hero-main {
        flex: 2;
        background: linear-gradient(135deg, #3b352a 0, #514533 45%, #3b352a 100%);
        color: #f5f2e9;
        padding: 14px 16px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    }
    .hero-title {
        margin: 0 0 6px 0;
        font-size: 1.4rem;
    }
    .hero-subtitle {
        margin: 0 0 10px 0;
        font-size: 0.9rem;
        color: #e3d7bd;
    }
    .hero-actions {
        font-size: 0.8rem;
        color: #f5e7c3;
    }
    .hero-badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 999px;
        background: #f5d189;
        color: #3b2a1a;
        font-weight: bold;
        font-size: 0.75rem;
        margin-right: 3px;
    }
    .hero-user {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 10px 12px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        font-size: 0.85rem;
        color: #4a3822;
    }
    .hero-user-links {
        margin-top: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-link {
        font-size: 0.8rem;
        color: #5c3b1c;
        cursor: pointer;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .main-content,
    body.dark-mode .side-column,
    body.dark-mode .hero-user {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .hero-main {
        background: linear-gradient(135deg, #181310 0, #262018 45%, #181310 100%);
        box-shadow: 0 14px 30px rgba(0,0,0,0.9);
    }
    body.dark-mode input[type="text"],
    body.dark-mode input[type="password"],
    body.dark-mode input[type="date"],
    body.dark-mode select,
    body.dark-mode textarea {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode input[type="text"]:focus,
    body.dark-mode input[type="password"]:focus,
    body.dark-mode input[type="date"]:focus,
    body.dark-mode select:focus,
    body.dark-mode textarea:focus {
        border-color: #f5d189;
        box-shadow: 0 0 0 2px rgba(245,209,137,0.5);
        background: #241d14;
    }
    body.dark-mode .btn {
        background: #f5d189;
        color: #2b2115;
    }
    body.dark-mode .btn:hover {
        background: #ffe09b;
    }
    body.dark-mode .last-finds-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .sub-section-title {
        border-bottom-color: #5c4a31;
        color: #f5d6a0;
    }
    body.dark-mode .radio-group label {
        background: #2a2218;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .radio-group label:hover {
        background: #352a1d;
    }
    body.dark-mode .last-finds-meta {
        color: #d1c0a0;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }
    @media (max-width: 800px) {
        .hero {
            flex-direction: column;
            padding: 10px 12px;
        }
    }


/* ---- styles from nalazzadnjibb.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
            color: #3a2b1b;
        }


        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo {
            font-size: 22px;
            font-weight: bold;
        }
        .logo span {
            color: #d9b15c;
        }
        nav a {
            margin-left: 18px;
            font-size: 14px;
            opacity: 0.9;
            color: inherit;
            text-decoration: none;
        }
        nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .page-wrapper {
            max-width: 1200px;
            margin: 20px auto 40px auto;
            padding: 0 15px;
        }

        .breadcrumb {
            font-size: 12px;
            color: #7a6b55;
            margin-bottom: 8px;
        }
        .breadcrumb a {
            color: #7a6b55;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .title-block h1 {
            margin: 0 0 4px 0;
            font-size: 24px;
        }
        .title-block .subtitle {
            font-size: 13px;
            color: #7a6b55;
        }

        .content-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 18px;
            margin-top: 15px;
        }

        /* SLICE BLOK */

        .image-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 12px;
        }

        .main-image-wrapper {
            text-align: center;
            margin-bottom: 10px;
        }

        .main-image {
            max-width: 100%;
            max-height: 420px;
            border-radius: 4px;
            border: 1px solid #cbb79a;
            background: #f0e4d2;
            cursor: zoom-in;
        }

        .thumb-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 6px;
            justify-content: center;
        }

        .thumb-item {
            text-align: center;
            font-size: 11px;
            color: #746450;
        }

        .thumb-item img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 3px;
            border: 1px solid #cbb79a;
            background: #f2e9d8;
            cursor: pointer;
            transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
        }

        .thumb-item img.active-thumb {
            border-color: #8c6f4d;
            box-shadow: 0 0 0 2px rgba(140,111,77,0.4);
            transform: translateY(-1px);
        }

        /* PODACI O NALAZU */

        .info-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 14px;
        }

        .info-heading {
            font-size: 16px;
            margin-top: 0;
            margin-bottom: 8px;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin-bottom: 10px;
        }
        .info-table th,
        .info-table td {
            padding: 4px 4px;
            vertical-align: top;
        }
        .info-table th {
            width: 35%;
            font-weight: bold;
            color: #6b5a45;
        }

        .badge-type {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #e0d4c0;
            font-size: 11px;
            margin-bottom: 4px;
        }
        .badge-material {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #d9e8f5;
            font-size: 11px;
            margin-bottom: 4px;
        }

        .description-box {
            margin-top: 10px;
            font-size: 13px;
            line-height: 1.5;
            color: #4d402f;
        }
        .description-box h3 {
            font-size: 14px;
            margin: 0 0 4px 0;
        }

        .detektor-link {
            font-size: 12px;
            margin-top: 4px;
        }
        .detektor-link a {
            color: #004080;
            text-decoration: underline;
        }

        /* RATING (OCJENE) */
        .rating-block {
            margin-top: 12px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .rating-label {
            font-weight: bold;
            margin-bottom: 4px;
        }
        .rating-stars {
            display: inline-flex;
            gap: 2px;
            cursor: pointer;
            margin-bottom: 4px;
        }
        .rating-star {
            font-size: 20px;
            color: #c3b7a1;
            transition: color 0.15s;
        }
        .rating-star.filled {
            color: #e0a840;
        }
        .rating-info {
            font-size: 12px;
            color: #6b5a45;
        }


        /* KOMENTARI NALAZA */
        .comments-block {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .comments-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .comment-item {
            border-top: 1px solid #e2d3bd;
            padding: 6px 0;
        }
        .comment-item:first-child {
            border-top: none;
        }
        .comment-meta {
            font-size: 11px;
            color: #8a7b66;
            margin-bottom: 3px;
        }
        .comment-body {
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form label {
            display: block;
            font-size: 12px;
            margin-top: 6px;
            margin-bottom: 2px;
            color: #5b4733;
        }
        .comment-form input[type="text"],
        .comment-form textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 6px 8px;
            border-radius: 6px;
            border: 1px solid #d2c0a4;
            background: #fffaf0;
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form textarea {
            min-height: 80px;
            resize: vertical;
        }
        .comment-form button {
            margin-top: 8px;
            padding: 7px 14px;
            border-radius: 20px;
            border: none;
            background: linear-gradient(135deg, #c99b4f, #a06b2c);
            color: #fff;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        .comment-form button:hover {
            filter: brightness(1.05);
        }

        /* SLICNI NALAZI BLOK */
        .related-block {
            margin-top: 18px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .related-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .related-item {
            display: flex;
            align-items: center;
            width: calc(50% - 5px);
            text-decoration: none;
            border-radius: 8px;
            padding: 6px;
            background: #fdf3e3;
            border: 1px solid #e2d3bd;
            box-sizing: border-box;
        }
        .related-item:hover {
            background: #fbe8cd;
        }
        .related-thumb {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 8px;
            background: #eee0c8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: #7b674d;
        }
        .related-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .related-info {
            flex: 1;
            min-width: 0;
        }
        .related-title {
            font-size: 13px;
            font-weight: bold;
            color: #3a2b1b;
            margin-bottom: 2px;
        }
        .related-meta {
            font-size: 11px;
            color: #7b6b57;
        }

        /* DARK MODE za slicne nalaze */
        body.dark-mode .related-block {
            background: #171717;
            border-color: #444;
            color: #eee;
        }
        body.dark-mode .related-block h3 {
            color: #f5d27a;
        }
        body.dark-mode .related-item {
            background: #111;
            border-color: #333;
        }
        body.dark-mode .related-item:hover {
            background: #181818;
        }
        body.dark-mode .related-thumb {
            background: #222;
            color: #aaa;
        }
        body.dark-mode .related-title {
            color: #f0f0f0;
        }
        body.dark-mode .related-meta {
            color: #bbbbbb;
        }


/* DARK MODE za komentare (body.dark-mode) */
body.dark-mode .comments-block {
    background: #171717;
    border-color: #444;
    color: #eee;
}

body.dark-mode .comments-block h3 {
    color: #f5d27a;
}

body.dark-mode .comment-item {
    border-top-color: #333;
}

body.dark-mode .comment-meta {
    color: #aaaaaa;
}

body.dark-mode .comment-body {
    color: #f0f0f0;
}

body.dark-mode .comment-form label {
    color: #d9c7a2;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form textarea {
    background: #111;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode .comment-form input[type="text"]::placeholder,
body.dark-mode .comment-form textarea::placeholder {
    color: #777;
}

body.dark-mode .comment-form button {
    background: linear-gradient(135deg, #b8893d, #88551f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

        /* OVERLAY ZOOM */

        .image-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .overlay-inner {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: #111;
            border-radius: 6px;
            padding: 10px;
            box-sizing: border-box;
        }

        .overlay-img-wrapper {
            position: relative;
            overflow: hidden;
            max-width: 100%;
            max-height: 78vh;
            cursor: grab;
            background: #111;
        }

        .overlay-img-wrapper img {
            max-width: 100%;
            max-height: 100%;
            user-select: none;
            -webkit-user-drag: none;
            transform-origin: center center;
            transition: transform 0.05s linear;
        }

        .overlay-controls {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 12px;
            color: #eee;
        }

        .zoom-buttons {
            display: flex;
            gap: 6px;
        }

        .zoom-btn, .close-btn {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 4px;
            border: 1px solid #666;
            background: #222;
            color: #f8f8f8;
            cursor: pointer;
        }
        .zoom-btn:hover, .close-btn:hover {
            background: #333;
        }

        @media (max-width: 800px) {
            .content-layout {
                grid-template-columns: 1fr;
            }
        }
    
        /* Mini priča ispod nalaza */
        .story-single {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid #d3c1a5;
            background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
            font-size: 13px;
            line-height: 1.5;
            color: #3a2b1b;
        }
        .story-single h3 {
            margin: 0 0 6px 0;
            font-size: 14px;
        }
        .story-line {
            margin: 0 0 4px 0;
            font-size: 12px;
            color: #5f5342;
        }
        .story-line strong {
            font-weight: bold;
        }

    
        /* Header modern + dugme za dark mode */
        header {
            background: rgba(59, 53, 42, 0.97);
            color: #f5f2e9;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 20;
            box-shadow: 0 4px 12px rgba(0,0,0,0.35);
            backdrop-filter: blur(8px);
        }
        header .logo {
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 0.6px;
        }
        header .logo span {
            color: #f5d189;
        }
        header nav a {
            color: #f5f2e9;
            margin-left: 15px;
            font-size: 14px;
            position: relative;
            padding-bottom: 2px;
            text-decoration: none;
        }
        header nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #f5d189;
            transition: width 0.25s ease;
        }
        header nav a:hover {
            color: #f5d189;
        }
        header nav a:hover::after {
            width: 100%;
        }
        .theme-toggle {
            margin-left: 14px;
            padding: 5px 12px;
            border-radius: 999px;
            border: 1px solid rgba(245,241,230,0.6);
            background: rgba(0,0,0,0.15);
            color: #f5f2e9;
            font-size: 0.78rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.4);
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }
        .theme-toggle:hover {
            background: rgba(0,0,0,0.3);
            transform: translateY(-1px);
            box-shadow: 0 5px 12px rgba(0,0,0,0.5);
        }
        .theme-toggle:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0,0,0,0.5);
        }

        /* Dark mode varijante */
        body.dark-mode {
            background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
            color: #f1e7d4;
        }
        body.dark-mode .page-wrapper {
            color: #f1e7d4;
        }
        body.dark-mode .content-layout,
        body.dark-mode .image-panel,
        body.dark-mode .info-panel,
        body.dark-mode .details-panel,
        body.dark-mode .rating-block,
        body.dark-mode .comments-panel,
        body.dark-mode .comment,
        body.dark-mode .story-single,
        body.dark-mode .description-box {
            background: #1f1912;
            border-color: #5c4a31;
            color: #f1e7d4;
            box-shadow: 0 12px 24px rgba(0,0,0,0.7);
        }
        body.dark-mode .info-table th {
            background: #2a2017;
            color: #f1e7d4;
        }
        body.dark-mode .info-table td {
            background: #241c13;
            color: #f1e7d4;
        }
        body.dark-mode .thumb-item img {
            background: #241c13;
            border-color: #6b5740;
        }
        body.dark-mode .breadcrumb {
            color: #c9bfa8;
        }
        body.dark-mode .breadcrumb a {
            color: #f5d189;
        }
        body.dark-mode header {
            background: rgba(15, 11, 8, 0.97);
            box-shadow: 0 4px 14px rgba(0,0,0,0.8);
        }
        body.dark-mode header nav a {
            color: #f1e7d4;
        }
        body.dark-mode header nav a:hover {
            color: #f5d189;
        }


/* ---- styles from savjeti.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    a:hover {
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Header kao na modernim stranicama */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        backdrop-filter: blur(8px);
    }

    header .logo {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 0.6px;
    }

    header .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f5d189;
        text-decoration: none;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Glavni container */
    .main {
        max-width: 1200px;
        margin: 18px auto 30px auto;
        padding: 0 15px 20px 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Paneli / kartice */
    .panel {
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
    }

    h1, h2, h3 {
        margin-top: 0;
        color: #3b2a1a;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
        border-bottom: 1px solid #dec9a6;
    }

    /* Profil: stat grid i nalazi */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-top: 6px;
    }

    .stat-box {
        background: #fdf7eb;
        border-radius: 8px;
        border: 1px solid #d0c29e;
        padding: 8px 10px;
        font-size: 13px;
    }
    .stat-label {
        color: #7a7161;
        font-size: 12px;
    }
    .stat-value {
        font-size: 18px;
        font-weight: bold;
        margin-top: 2px;
    }

    .status-badge {
        display: inline-block;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 999px;
        margin-right: 4px;
    }
    .status-approved {
        background: #6fbf6f;
        color: #143414;
    }
    .status-pending {
        background: #f0d37a;
        color: #4a3b10;
    }
    .status-rejected {
        background: #e9a1a1;
        color: #5b1616;
    }

    .find-list {
        margin-top: 10px;
        border-top: 1px solid #e0d4be;
    }

    .find-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #e0d4be;
        font-size: 13px;
    }

    .thumb-wrap {
        width: 70px;
        height: 70px;
        background: #e3d3b2;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .thumb-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .find-meta {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .find-dates {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .back-links,
    .back-link {
        margin-top: 10px;
        font-size: 12px;
        color: #5a5346;
    }
    .back-links a,
    .back-link a {
        text-decoration: underline;
    }

    /* Savjeti: lista clanaka */
    .article-list {
        list-style: none;
        margin: 0;
        padding: 0;
        margin-top: 10px;
    }
    .article-item {
        border-bottom: 1px dashed #e0d4be;
        padding: 8px 0;
    }
    .article-title {
        font-weight: bold;
        margin-bottom: 2px;
    }
    .article-meta {
        font-size: 11px;
        color: #7a7161;
        margin-bottom: 4px;
    }
    .article-excerpt,
    .article-full {
        font-size: 13px;
        color: #3b2a1a;
    }
    .badge-cat {
        display: inline-block;
        margin-left: 6px;
        padding: 2px 7px;
        border-radius: 999px;
        background: #e2d1aa;
        font-size: 11px;
        color: #3b2a1a;
    }

    /* Poruke */
    .alert-info,
    .alert-error {
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    .alert-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .alert-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }

    /* Paginacija */
    .pagination {
        margin-top: 10px;
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .pagination a,
    .pagination span {
        padding: 3px 8px;
        border-radius: 999px;
        border: 1px solid #d0c29e;
        background: #f5f2e9;
        color: #3c352b;
        text-decoration: none;
    }
    .pagination .current {
        background: #d9b15c;
        border-color: #b89345;
        font-weight: bold;
    }
    .pagination .disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .panel {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .stats-grid .stat-box {
        background: #221b13;
        border-color: #6b5740;
    }
    body.dark-mode .article-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .find-row {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode input,
    body.dark-mode textarea,
    body.dark-mode select {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }

    @media (max-width: 800px) {
        .main {
            padding: 0 10px 16px 10px;
        }
        header {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
    }

/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from dodaj_nalaz-backup.php ---- */
body {
            background: #111;
            color: #eee;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        h1 {
            text-align: center;
            margin-bottom: 20px;
        }
        .container {
            max-width: 900px;
            margin: 0 auto;
            background: #1b1b1b;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0,0,0,0.6);
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: bold;
        }
        input[type="text"],
        input[type="date"],
        input[type="number"],
        select,
        textarea {
            width: 100%;
            padding: 8px 10px;
            border-radius: 4px;
            border: 1px solid #444;
            background: #111;
            color: #eee;
            box-sizing: border-box;
        }
        input[type="file"] {
            color: #eee;
        }
        textarea {
            min-height: 120px;
            resize: vertical;
        }
        .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #8b5a2b;
            color: #fff;
            border: none;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
            font-weight: bold;
        }
        .btn:hover {
            background: #a96a30;
        }
        .messages {
            margin-bottom: 15px;
        }
        .error {
            background: #5a1c1c;
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 4px;
            white-space: pre-wrap;
        }
        .success {
            background: #1c5a2b;
            padding: 10px;
            border-radius: 4px;
        }
        .top-links {
            margin-bottom: 15px;
            text-align: right;
        }
        .top-links a {
            color: #ccc;
            text-decoration: none;
            margin-left: 10px;
        }
        .top-links a:hover {
            text-decoration: underline;
        }


/* ---- styles from statistika_muzejprijemobila.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


        
        .page-wrap {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 15px 40px;
        }
        .back-link {
            margin-bottom: 10px;
            font-size: 13px;
        }
        .back-link a {
            color: #8b5d23;
            text-decoration: none;
        }
        .back-link a:hover {
            text-decoration: underline;
        }
        .page-header {
            margin-bottom: 20px;
        }
        .page-title {
            margin: 0;
            font-size: 26px;
            color: #543a24;
        }
        .page-subtitle {
            margin: 6px 0 0 0;
            font-size: 14px;
            color: #7b6b57;
        }
        .cards-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 22px;
        }
        .stat-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 12px 14px;
            box-sizing: border-box;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
/* Dark mode prilagodba za statistiku (statistika_muzej.php) */
body.dark-mode .stat-card,
body.dark-mode .list-card,
body.dark-mode .recent-grid .find-card {
    background: #26211a;
    border-color: #8e7a54;
}

body.dark-mode .stat-value {
    color: #fdf1c2 !important;
}

body.dark-mode .section-title {
    color: #f5e3bf !important;
}

body.dark-mode .badge {
    background: rgba(244, 209, 145, 0.18);
    border-color: #c9973b;
    color: #f9e8c8 !important;
}

        .stat-label {
            font-size: 12px;
            color: #8a7b66;
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 22px;
            font-weight: bold;
            color: #3a2616;
        }
        .stat-extra {
            font-size: 12px;
            color: #7b6b57;
            margin-top: 4px;
        }
        h2.section-title {
            margin: 0 0 10px 0;
            font-size: 18px;
            color: #543a24;
        }
        .columns-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        .list-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 10px 12px;
            box-sizing: border-box;
        }
        ul.simple-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        ul.simple-list li {
            padding: 6px 0;
            border-top: 1px solid #e2d3bd;
            font-size: 14px;
        }
        ul.simple-list li:first-child {
            border-top: none;
        }
        .badge {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #e9d6b4;
            font-size: 11px;
            margin-left: 6px;
        }
        .recent-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 14px;
        }
        .find-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 10px;
            box-sizing: border-box;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .find-card a {
            color: inherit;
            text-decoration: none;
        }
        .find-image {
            width: 100%;
            height: 150px;
            border-radius: 8px;
            background: #eee0c8;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 6px;
            font-size: 12px;
            color: #7b6b57;
        }
        .find-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .find-title {
            font-size: 14px;
            font-weight: bold;
            color: #3a2616;
            margin-bottom: 3px;
        }
        .find-meta {
            font-size: 12px;
            color: #7b6b57;
        }


/* ---- styles from detektorista.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f5f2e9;
            color: #2f2b24;
        }
        a { color: inherit; text-decoration: none; }

        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo {
            font-size: 22px;
            font-weight: bold;
        }
        .logo span {
            color: #d9b15c;
        }
        nav a {
            margin-left: 18px;
            font-size: 14px;
            opacity: 0.9;
        }
        nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .main {
            max-width: 1150px;
            margin: 25px auto 30px auto;
            padding: 0 15px 20px 15px;
        }

        .panel {
            background: #fcfaf4;
            border-radius: 10px;
            border: 1px solid #ddd1b5;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            padding: 15px 16px;
            margin-bottom: 18px;
        }

        h1, h2, h3 {
            margin-top: 0;
        }

        .finds-grid {
            display:grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap:14px;
            margin-top:10px;
        }

        .find-card {
            background:#fdfaf3;
            border-radius:10px;
            border:1px solid #ddd1b5;
            box-shadow:0 2px 6px rgba(0,0,0,0.05);
            overflow:hidden;
            display:flex;
            flex-direction:column;
        }
        .find-thumb-wrap {
            width:100%;
            height:160px;
            background:#e1dccf;
            overflow:hidden;
        }
        .find-thumb-wrap img {
            width:100%;
            height:100%;
            object-fit:cover;
            display:block;
        }
        .find-body {
            padding:8px 10px 10px 10px;
            font-size:12px;
        }
        .find-title {
            font-weight:bold;
            font-size:13px;
            margin-bottom:4px;
        }
        .find-meta {
            color:#7a7161;
            line-height:1.4;
            margin-bottom:4px;
        }
        .find-footer {
            font-size:11px;
            color:#6b6354;
            border-top:1px solid #e1d7c0;
            padding:6px 10px 7px 10px;
            display:flex;
            justify-content:space-between;
            align-items:center;
        }
        .badge-type {
            display:inline-block;
            font-size:10px;
            padding:1px 6px;
            border-radius:999px;
            background:#d9b15c;
            color:#2f2b24;
        }
        .no-results {
            font-size:13px;
            color:#7a7161;
            margin-top:8px;
        }


/* ---- styles from periodiprijemobila.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


    /* TIMELINE ZA PERIODE NALAZA */
    .timeline {
        position: relative;
        margin-top: 10px;
        padding-left: 20px;
        border-left: 3px solid #d1b58a;
    }
    .timeline-period {
        position: relative;
        margin-bottom: 26px;
    }
    .timeline-marker {
        position: absolute;
        left: -10px;
        top: 6px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 20%, #ffe9b5, #c99b4f);
        border: 2px solid #8b5d23;
        box-shadow: 0 0 0 3px rgba(201,155,79,0.3);
    }
    .timeline-content {
        margin-left: 18px;
        background: #fdf7ec;
        border-radius: 12px;
        border: 1px solid #ddc9a8;
        padding: 10px 12px 12px;
    }
    .timeline-title {
        margin: 0 0 4px 0;
        font-size: 18px;
        color: #543a24;
    }
    .timeline-desc {
        margin: 0 0 8px 0;
        font-size: 13px;
        color: #7b6b57;
    }
    .timeline-empty {
        font-size: 13px;
        color: #a08c6a;
        margin: 4px 0 0 0;
    }
    .timeline-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 10px;
        margin-top: 8px;
    }
    .timeline-card {
        background: #fffaf0;
        border-radius: 10px;
        border: 1px solid #e2d3bd;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .timeline-card a {
        color: inherit;
        text-decoration: none;
        display: block;
    }
    .timeline-image {
        width: 100%;
        height: 130px;
        background: #eee0c8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #7b6b57;
    }
    .timeline-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .timeline-info {
        padding: 6px 8px 8px;
    }
    .timeline-card-title {
        font-size: 13px;
        font-weight: bold;
        color: #3a2b1b;
        margin-bottom: 2px;
    }
    .timeline-card-meta {
        font-size: 11px;
        color: #7b6b57;
    }
    .timeline-legend {
        background: #fdf7ec;
        border-radius: 10px;
        border: 1px solid #ddc9a8;
        padding: 8px 10px;
        font-size: 13px;
        color: #6b5b48;
    }

    @media (max-width: 600px) {
        .timeline {
            padding-left: 16px;
        }
        .timeline-marker {
            left: -11px;
        }
    }


/* ---- styles from muzej.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
        font-size:20px;
    line-height:1.65;
    font-weight:500;
}

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }


    .mini-story {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.4;
        color: #51412b;
        font-style: italic;
    }
    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}

/* Enhanced readability */
.museum-description,
.result-item p,
.card p {
    font-weight:500;
}

.result-item h2,
.card h2 {
    font-size:26px;
    font-weight:600;
}


/* ---- styles from savjetiprijemobila.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    a:hover {
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Header kao na modernim stranicama */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        backdrop-filter: blur(8px);
    }

    header .logo {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 0.6px;
    }

    header .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f5d189;
        text-decoration: none;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Glavni container */
    .main {
        max-width: 1200px;
        margin: 18px auto 30px auto;
        padding: 0 15px 20px 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Paneli / kartice */
    .panel {
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
    }

    h1, h2, h3 {
        margin-top: 0;
        color: #3b2a1a;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
        border-bottom: 1px solid #dec9a6;
    }

    /* Profil: stat grid i nalazi */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-top: 6px;
    }

    .stat-box {
        background: #fdf7eb;
        border-radius: 8px;
        border: 1px solid #d0c29e;
        padding: 8px 10px;
        font-size: 13px;
    }
    .stat-label {
        color: #7a7161;
        font-size: 12px;
    }
    .stat-value {
        font-size: 18px;
        font-weight: bold;
        margin-top: 2px;
    }

    .status-badge {
        display: inline-block;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 999px;
        margin-right: 4px;
    }
    .status-approved {
        background: #6fbf6f;
        color: #143414;
    }
    .status-pending {
        background: #f0d37a;
        color: #4a3b10;
    }
    .status-rejected {
        background: #e9a1a1;
        color: #5b1616;
    }

    .find-list {
        margin-top: 10px;
        border-top: 1px solid #e0d4be;
    }

    .find-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #e0d4be;
        font-size: 13px;
    }

    .thumb-wrap {
        width: 70px;
        height: 70px;
        background: #e3d3b2;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .thumb-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .find-meta {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .find-dates {
        font-size: 11px;
        color: #7a7161;
        margin-top: 4px;
    }

    .back-links,
    .back-link {
        margin-top: 10px;
        font-size: 12px;
        color: #5a5346;
    }
    .back-links a,
    .back-link a {
        text-decoration: underline;
    }

    /* Savjeti: lista clanaka */
    .article-list {
        list-style: none;
        margin: 0;
        padding: 0;
        margin-top: 10px;
    }
    .article-item {
        border-bottom: 1px dashed #e0d4be;
        padding: 8px 0;
    }
    .article-title {
        font-weight: bold;
        margin-bottom: 2px;
    }
    .article-meta {
        font-size: 11px;
        color: #7a7161;
        margin-bottom: 4px;
    }
    .article-excerpt,
    .article-full {
        font-size: 13px;
        color: #3b2a1a;
    }
    .badge-cat {
        display: inline-block;
        margin-left: 6px;
        padding: 2px 7px;
        border-radius: 999px;
        background: #e2d1aa;
        font-size: 11px;
        color: #3b2a1a;
    }

    /* Poruke */
    .alert-info,
    .alert-error {
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    .alert-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .alert-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }

    /* Paginacija */
    .pagination {
        margin-top: 10px;
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .pagination a,
    .pagination span {
        padding: 3px 8px;
        border-radius: 999px;
        border: 1px solid #d0c29e;
        background: #f5f2e9;
        color: #3c352b;
        text-decoration: none;
    }
    .pagination .current {
        background: #d9b15c;
        border-color: #b89345;
        font-weight: bold;
    }
    .pagination .disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .panel {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .stats-grid .stat-box {
        background: #221b13;
        border-color: #6b5740;
    }
    body.dark-mode .article-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .find-row {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode input,
    body.dark-mode textarea,
    body.dark-mode select {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }

    @media (max-width: 800px) {
        .main {
            padding: 0 10px 16px 10px;
        }
        header {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }
    }


/* ---- styles from nalazbb.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
            color: #3a2b1b;
        }


        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo {
            font-size: 22px;
            font-weight: bold;
        }
        .logo span {
            color: #d9b15c;
        }
        nav a {
            margin-left: 18px;
            font-size: 14px;
            opacity: 0.9;
            color: inherit;
            text-decoration: none;
        }
        nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .page-wrapper {
            max-width: 1200px;
            margin: 20px auto 40px auto;
            padding: 0 15px;
        }

        .breadcrumb {
            font-size: 12px;
            color: #7a6b55;
            margin-bottom: 8px;
        }
        .breadcrumb a {
            color: #7a6b55;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .title-block h1 {
            margin: 0 0 4px 0;
            font-size: 24px;
        }
        .title-block .subtitle {
            font-size: 13px;
            color: #7a6b55;
        }

        .content-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 18px;
            margin-top: 15px;
        }

        /* SLICE BLOK */

        .image-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 12px;
        }

        .main-image-wrapper {
            text-align: center;
            margin-bottom: 10px;
        }

        .main-image {
            max-width: 100%;
            max-height: 420px;
            border-radius: 4px;
            border: 1px solid #cbb79a;
            background: #f0e4d2;
            cursor: zoom-in;
        }

        .thumb-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 6px;
            justify-content: center;
        }

        .thumb-item {
            text-align: center;
            font-size: 11px;
            color: #746450;
        }

        .thumb-item img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 3px;
            border: 1px solid #cbb79a;
            background: #f2e9d8;
            cursor: pointer;
            transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
        }

        .thumb-item img.active-thumb {
            border-color: #8c6f4d;
            box-shadow: 0 0 0 2px rgba(140,111,77,0.4);
            transform: translateY(-1px);
        }

        /* PODACI O NALAZU */

        .info-panel {
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            border-radius: 8px;
            padding: 14px;
        }

        .info-heading {
            font-size: 16px;
            margin-top: 0;
            margin-bottom: 8px;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin-bottom: 10px;
        }
        .info-table th,
        .info-table td {
            padding: 4px 4px;
            vertical-align: top;
        }
        .info-table th {
            width: 35%;
            font-weight: bold;
            color: #6b5a45;
        }

        .badge-type {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #e0d4c0;
            font-size: 11px;
            margin-bottom: 4px;
        }
        .badge-material {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #d9e8f5;
            font-size: 11px;
            margin-bottom: 4px;
        }

        .description-box {
            margin-top: 10px;
            font-size: 13px;
            line-height: 1.5;
            color: #4d402f;
        }
        .description-box h3 {
            font-size: 14px;
            margin: 0 0 4px 0;
        }

        .detektor-link {
            font-size: 12px;
            margin-top: 4px;
        }
        .detektor-link a {
            color: #004080;
            text-decoration: underline;
        }

        /* RATING (OCJENE) */
        .rating-block {
            margin-top: 12px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .rating-label {
            font-weight: bold;
            margin-bottom: 4px;
        }
        .rating-stars {
            display: inline-flex;
            gap: 2px;
            cursor: pointer;
            margin-bottom: 4px;
        }
        .rating-star {
            font-size: 20px;
            color: #c3b7a1;
            transition: color 0.15s;
        }
        .rating-star.filled {
            color: #e0a840;
        }
        .rating-info {
            font-size: 12px;
            color: #6b5a45;
        }


        /* KOMENTARI NALAZA */
        .comments-block {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .comments-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .comment-item {
            border-top: 1px solid #e2d3bd;
            padding: 6px 0;
        }
        .comment-item:first-child {
            border-top: none;
        }
        .comment-meta {
            font-size: 11px;
            color: #8a7b66;
            margin-bottom: 3px;
        }
        .comment-body {
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form label {
            display: block;
            font-size: 12px;
            margin-top: 6px;
            margin-bottom: 2px;
            color: #5b4733;
        }
        .comment-form input[type="text"],
        .comment-form textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 6px 8px;
            border-radius: 6px;
            border: 1px solid #d2c0a4;
            background: #fffaf0;
            font-size: 13px;
            color: #3a2b1b;
        }
        .comment-form textarea {
            min-height: 80px;
            resize: vertical;
        }
        .comment-form button {
            margin-top: 8px;
            padding: 7px 14px;
            border-radius: 20px;
            border: none;
            background: linear-gradient(135deg, #c99b4f, #a06b2c);
            color: #fff;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        .comment-form button:hover {
            filter: brightness(1.05);
        }

        /* SLICNI NALAZI BLOK */
        .related-block {
            margin-top: 18px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #ddc9a8;
            background: #fdf7ec;
            font-size: 13px;
        }
        .related-block h3 {
            margin: 0 0 8px 0;
            font-size: 15px;
            color: #543a24;
        }
        .related-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .related-item {
            display: flex;
            align-items: center;
            width: calc(50% - 5px);
            text-decoration: none;
            border-radius: 8px;
            padding: 6px;
            background: #fdf3e3;
            border: 1px solid #e2d3bd;
            box-sizing: border-box;
        }
        .related-item:hover {
            background: #fbe8cd;
        }
        .related-thumb {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 8px;
            background: #eee0c8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: #7b674d;
        }
        .related-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .related-info {
            flex: 1;
            min-width: 0;
        }
        .related-title {
            font-size: 13px;
            font-weight: bold;
            color: #3a2b1b;
            margin-bottom: 2px;
        }
        .related-meta {
            font-size: 11px;
            color: #7b6b57;
        }

        /* DARK MODE za slicne nalaze */
        body.dark-mode .related-block {
            background: #171717;
            border-color: #444;
            color: #eee;
        }
        body.dark-mode .related-block h3 {
            color: #f5d27a;
        }
        body.dark-mode .related-item {
            background: #111;
            border-color: #333;
        }
        body.dark-mode .related-item:hover {
            background: #181818;
        }
        body.dark-mode .related-thumb {
            background: #222;
            color: #aaa;
        }
        body.dark-mode .related-title {
            color: #f0f0f0;
        }
        body.dark-mode .related-meta {
            color: #bbbbbb;
        }


/* DARK MODE za komentare (body.dark-mode) */
body.dark-mode .comments-block {
    background: #171717;
    border-color: #444;
    color: #eee;
}

body.dark-mode .comments-block h3 {
    color: #f5d27a;
}

body.dark-mode .comment-item {
    border-top-color: #333;
}

body.dark-mode .comment-meta {
    color: #aaaaaa;
}

body.dark-mode .comment-body {
    color: #f0f0f0;
}

body.dark-mode .comment-form label {
    color: #d9c7a2;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form textarea {
    background: #111;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode .comment-form input[type="text"]::placeholder,
body.dark-mode .comment-form textarea::placeholder {
    color: #777;
}

body.dark-mode .comment-form button {
    background: linear-gradient(135deg, #b8893d, #88551f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

        /* OVERLAY ZOOM */

        .image-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .overlay-inner {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: #111;
            border-radius: 6px;
            padding: 10px;
            box-sizing: border-box;
        }

        .overlay-img-wrapper {
            position: relative;
            overflow: hidden;
            max-width: 100%;
            max-height: 78vh;
            cursor: grab;
            background: #111;
        }

        .overlay-img-wrapper img {
            max-width: 100%;
            max-height: 100%;
            user-select: none;
            -webkit-user-drag: none;
            transform-origin: center center;
            transition: transform 0.05s linear;
        }

        .overlay-controls {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 12px;
            color: #eee;
        }

        .zoom-buttons {
            display: flex;
            gap: 6px;
        }

        .zoom-btn, .close-btn {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 4px;
            border: 1px solid #666;
            background: #222;
            color: #f8f8f8;
            cursor: pointer;
        }
        .zoom-btn:hover, .close-btn:hover {
            background: #333;
        }

        @media (max-width: 800px) {
            .content-layout {
                grid-template-columns: 1fr;
            }
        }
    
        /* Mini priča ispod nalaza */
        .story-single {
            margin-top: 16px;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid #d3c1a5;
            background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
            font-size: 13px;
            line-height: 1.5;
            color: #3a2b1b;
        }
        .story-single h3 {
            margin: 0 0 6px 0;
            font-size: 14px;
        }
        .story-line {
            margin: 0 0 4px 0;
            font-size: 12px;
            color: #5f5342;
        }
        .story-line strong {
            font-weight: bold;
        }

    
        /* Header modern + dugme za dark mode */
        header {
            background: rgba(59, 53, 42, 0.97);
            color: #f5f2e9;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 20;
            box-shadow: 0 4px 12px rgba(0,0,0,0.35);
            backdrop-filter: blur(8px);
        }
        header .logo {
            font-size: 20px;
            font-weight: bold;
            letter-spacing: 0.6px;
        }
        header .logo span {
            color: #f5d189;
        }
        header nav a {
            color: #f5f2e9;
            margin-left: 15px;
            font-size: 14px;
            position: relative;
            padding-bottom: 2px;
            text-decoration: none;
        }
        header nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #f5d189;
            transition: width 0.25s ease;
        }
        header nav a:hover {
            color: #f5d189;
        }
        header nav a:hover::after {
            width: 100%;
        }
        .theme-toggle {
            margin-left: 14px;
            padding: 5px 12px;
            border-radius: 999px;
            border: 1px solid rgba(245,241,230,0.6);
            background: rgba(0,0,0,0.15);
            color: #f5f2e9;
            font-size: 0.78rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.4);
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }
        .theme-toggle:hover {
            background: rgba(0,0,0,0.3);
            transform: translateY(-1px);
            box-shadow: 0 5px 12px rgba(0,0,0,0.5);
        }
        .theme-toggle:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0,0,0,0.5);
        }

        /* Dark mode varijante */
        body.dark-mode {
            background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
            color: #f1e7d4;
        }
        body.dark-mode .page-wrapper {
            color: #f1e7d4;
        }
        body.dark-mode .content-layout,
        body.dark-mode .image-panel,
        body.dark-mode .info-panel,
        body.dark-mode .details-panel,
        body.dark-mode .rating-block,
        body.dark-mode .comments-panel,
        body.dark-mode .comment,
        body.dark-mode .story-single,
        body.dark-mode .description-box {
            background: #1f1912;
            border-color: #5c4a31;
            color: #f1e7d4;
            box-shadow: 0 12px 24px rgba(0,0,0,0.7);
        }
        body.dark-mode .info-table th {
            background: #2a2017;
            color: #f1e7d4;
        }
        body.dark-mode .info-table td {
            background: #241c13;
            color: #f1e7d4;
        }
        body.dark-mode .thumb-item img {
            background: #241c13;
            border-color: #6b5740;
        }
        body.dark-mode .breadcrumb {
            color: #c9bfa8;
        }
        body.dark-mode .breadcrumb a {
            color: #f5d189;
        }
        body.dark-mode header {
            background: rgba(15, 11, 8, 0.97);
            box-shadow: 0 4px 14px rgba(0,0,0,0.8);
        }
        body.dark-mode header nav a {
            color: #f1e7d4;
        }
        body.dark-mode header nav a:hover {
            color: #f5d189;
        }


/* ---- styles from dodaj_nalaz.php ---- */
body {
            background: #111;
            color: #eee;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        h1 {
            text-align: center;
            margin-bottom: 20px;
        }
        .container {
            max-width: 900px;
            margin: 0 auto;
            background: #1b1b1b;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0,0,0,0.6);
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: bold;
        }
        input[type="text"],
        input[type="date"],
        input[type="number"],
        select,
        textarea {
            width: 100%;
            padding: 8px 10px;
            border-radius: 4px;
            border: 1px solid #444;
            background: #111;
            color: #eee;
            box-sizing: border-box;
        }
        input[type="file"] {
            color: #eee;
        }
        textarea {
            min-height: 120px;
            resize: vertical;
        }
        .btn {
            display: inline-block;
            padding: 10px 20px;
            background: #8b5a2b;
            color: #fff;
            border: none;
            border-radius: 4px;
            text-decoration: none;
            cursor: pointer;
            font-weight: bold;
        }
        .btn:hover {
            background: #a96a30;
        }
        .messages {
            margin-bottom: 15px;
        }
        .error {
            background: #5a1c1c;
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 4px;
            white-space: pre-wrap;
        }
        .success {
            background: #1c5a2b;
            padding: 10px;
            border-radius: 4px;
        }
        .top-links {
            margin-bottom: 15px;
            text-align: right;
        }
        .top-links a {
            color: #ccc;
            text-decoration: none;
            margin-left: 10px;
        }
        .top-links a:hover {
            text-decoration: underline;
        }


/* ---- styles from statistika_muzej.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


        
        .page-wrap {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 15px 40px;
        }
        .back-link {
            margin-bottom: 10px;
            font-size: 13px;
        }
        .back-link a {
            color: #8b5d23;
            text-decoration: none;
        }
        .back-link a:hover {
            text-decoration: underline;
        }
        .page-header {
            margin-bottom: 20px;
        }
        .page-title {
            margin: 0;
            font-size: 26px;
            color: #543a24;
        }
        .page-subtitle {
            margin: 6px 0 0 0;
            font-size: 14px;
            color: #7b6b57;
        }
        .cards-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 22px;
        }
        .stat-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 12px 14px;
            box-sizing: border-box;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .stat-label {
            font-size: 12px;
            color: #8a7b66;
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 22px;
            font-weight: bold;
            color: #3a2616;
        }
        .stat-extra {
            font-size: 12px;
            color: #7b6b57;
            margin-top: 4px;
        }
        h2.section-title {
            margin: 0 0 10px 0;
            font-size: 18px;
            color: #543a24;
        }
        .columns-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        .list-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 10px 12px;
            box-sizing: border-box;
        }
        ul.simple-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        ul.simple-list li {
            padding: 6px 0;
            border-top: 1px solid #e2d3bd;
            font-size: 14px;
        }
        ul.simple-list li:first-child {
            border-top: none;
        }
        .badge {
            display: inline-block;
            padding: 2px 7px;
            border-radius: 999px;
            background: #e9d6b4;
            font-size: 11px;
            margin-left: 6px;
        }
        .recent-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 14px;
        }
        .find-card {
            background: #fdf7ec;
            border-radius: 12px;
            border: 1px solid #ddc9a8;
            padding: 10px;
            box-sizing: border-box;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .find-card a {
            color: inherit;
            text-decoration: none;
        }
        .find-image {
            width: 100%;
            height: 150px;
            border-radius: 8px;
            background: #eee0c8;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 6px;
            font-size: 12px;
            color: #7b6b57;
        }
        .find-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .find-title {
            font-size: 14px;
            font-weight: bold;
            color: #3a2616;
            margin-bottom: 3px;
        }
        .find-meta {
            font-size: 12px;
            color: #7b6b57;
        }
    

/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from pristupprijemobila.php ---- */
/* Header / top navigation – preuzeto iz muzej.php */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }


/* ---- styles from index.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: #5c3b1c;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    a:hover {
        text-decoration: underline;
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Top mini-nav */
    .top-nav {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 10px 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        color: #f5f2e9;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .top-nav > div:first-child {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 14px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

    .top-nav > div:first-child strong {
        letter-spacing: 0.6px;
        font-size: 0.95rem;
    }

    .top-nav-links {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .top-nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        color: #f5f2e9;
        text-decoration: none;
        position: relative;
        padding-bottom: 1px;
    }
    .top-nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.2s ease;
    }
    .top-nav-links a:hover {
        color: #f5d189;
        text-decoration: none;
    }
    .top-nav-links a:hover::after {
        width: 100%;
    }

    /* Wrapper & layout */
    .wrapper {
        max-width: 1200px;
        margin: 15px auto 30px auto;
        padding: 15px;
        display: flex;
        gap: 18px;
        box-sizing: border-box;
    }

    .main-content {
        flex: 2;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px 18px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    .side-column {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 14px 16px 16px 16px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.07);
        font-size: 0.9rem;
        animation: fadeUp 0.7s ease-out;
    }

    h1 {
        margin-top: 0;
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .subtitle {
        margin: 0;
        font-size: 0.85rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    .help-text {
        font-size: 0.8rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    /* Messages */
    .message-info,
    .message-error,
    .message-success {
        padding: 8px 10px;
        border-radius: 6px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .message-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .message-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }
    .message-success {
        background-color: #e6f7e8;
        border: 1px solid #86c190;
        color: #2d6b37;
    }

    /* Form polja */
    form {
        font-size: 0.9rem;
    }

    .field-group {
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin-top: 8px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        width: 100%;
        padding: 7px 9px;
        margin-top: 4px;
        border: 1px solid #c8b89b;
        border-radius: 6px;
        background-color: #fffdf7;
        box-sizing: border-box;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    textarea {
        min-height: 80px;
        resize: vertical;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="date"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .field-group-inline {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .field-group-inline > div {
        flex: 1;
        min-width: 0;
    }

    /* Dugme */
    .btn {
        display: inline-block;
        padding: 9px 18px;
        margin-top: 14px;
        background: #3b352a;
        color: #fffaf0;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn:hover {
        background: #4a4031;
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(0,0,0,0.3);
    }
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .hint {
        font-size: 0.75rem;
        color: #7b6a50;
        margin-top: 6px;
    }

    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
    }
    .radio-group label {
        display: inline-flex;
        align-items: center;
        margin-top: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f4ebd6;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .radio-group input[type="radio"] {
        margin-right: 4px;
    }
    .radio-group label:hover {
        background: #e7dcc5;
        border-color: #c39b63;
    }

    .sub-section-title {
        margin-top: 18px;
        font-weight: bold;
        font-size: 0.95rem;
        padding-bottom: 2px;
        border-bottom: 1px solid #dec9a6;
        color: #4a3822;
    }

    /* Zadnjih 10 nalaza */
    .side-column h2 {
        margin-top: 0;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .last-finds-item {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 4px;
        border-bottom: 1px dashed #d3c1a5;
    }

    .last-finds-thumb {
        width: 58px;
        height: 58px;
        background: #e3d3b2;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .last-finds-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .last-finds-info {
        flex: 1;
        font-size: 0.85rem;
    }

    .last-finds-title {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .last-finds-meta {
        font-size: 0.78rem;
        color: #7b6a50;
    }

    /* Animacije */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 800px) {
        .wrapper {
            flex-direction: column;
            padding: 10px;
        }
        .top-nav {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }
        .top-nav > div:first-child,
        .top-nav-links {
            justify-content: center;
        }
    }

/* Header from muzej */
header {
    background: rgba(59, 53, 42, 0.97);
    color: #f5f2e9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}
header .logo {font-size:20px;font-weight:bold; letter-spacing:0.5px;}
header nav a {
    color:#f5f2e9;
    margin-left:18px;
    font-size:14px;
    opacity:0.9;
    text-decoration:none;
    position:relative;
    padding-bottom:2px;
}
header nav a::after {
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0; height:2px;
    background:#f5d189;
    transition:width 0.25s ease;
}
header nav a:hover {color:#f5d189;}
header nav a:hover::after {width:100%;}


    /* Hero sekcija */
    .hero {
        max-width: 1200px;
        margin: 12px auto 0 auto;
        padding: 14px 18px;
        display: flex;
        gap: 16px;
        align-items: center;
        box-sizing: border-box;
    }
    .hero-main {
        flex: 2;
        background: linear-gradient(135deg, #3b352a 0, #514533 45%, #3b352a 100%);
        color: #f5f2e9;
        padding: 14px 16px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    }
    .hero-title {
        margin: 0 0 6px 0;
        font-size: 1.4rem;
    }
    .hero-subtitle {
        margin: 0 0 10px 0;
        font-size: 0.9rem;
        color: #e3d7bd;
    }
    .hero-actions {
        font-size: 0.8rem;
        color: #f5e7c3;
    }
    .hero-badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 999px;
        background: #f5d189;
        color: #3b2a1a;
        font-weight: bold;
        font-size: 0.75rem;
        margin-right: 3px;
    }
    .hero-user {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 10px 12px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        font-size: 0.85rem;
        color: #4a3822;
    }
    .hero-user-links {
        margin-top: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-link {
        font-size: 0.8rem;
        color: #5c3b1c;
        cursor: pointer;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .main-content,
    body.dark-mode .side-column,
    body.dark-mode .hero-user {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .hero-main {
        background: linear-gradient(135deg, #181310 0, #262018 45%, #181310 100%);
        box-shadow: 0 14px 30px rgba(0,0,0,0.9);
    }
    body.dark-mode input[type="text"],
    body.dark-mode input[type="password"],
    body.dark-mode input[type="date"],
    body.dark-mode select,
    body.dark-mode textarea {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode input[type="text"]:focus,
    body.dark-mode input[type="password"]:focus,
    body.dark-mode input[type="date"]:focus,
    body.dark-mode select:focus,
    body.dark-mode textarea:focus {
        border-color: #f5d189;
        box-shadow: 0 0 0 2px rgba(245,209,137,0.5);
        background: #241d14;
    }
    body.dark-mode .btn {
        background: #f5d189;
        color: #2b2115;
    }
    body.dark-mode .btn:hover {
        background: #ffe09b;
    }
    body.dark-mode .last-finds-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .sub-section-title {
        border-bottom-color: #5c4a31;
        color: #f5d6a0;
    }
    body.dark-mode .radio-group label {
        background: #2a2218;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .radio-group label:hover {
        background: #352a1d;
    }
    body.dark-mode .last-finds-meta {
        color: #d1c0a0;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }
    @media (max-width: 800px) {
        .hero {
            flex-direction: column;
            padding: 10px 12px;
        }
    }


/* ---- styles from muzej-dobar-vrati.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from mapa_nalaza.php ---- */
body {
            font-family: Arial, sans-serif;
            background: #111;
            color: #eee;
            margin: 0;
            padding: 0;
        }
        .page-wrap {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px;
        }
        h1 { color: #e2c47c; }
        #map {
            width: 100%;
            height: 600px;
            border-radius: 6px;
            border: 1px solid #333;
        }
        a { color: #e2c47c; }


/* ---- styles from pristup.php ---- */
/* Header / top navigation – preuzeto iz muzej.php */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    
/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from kolekcije.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3b2a1a;
    }

    a {
        color: #5c3b1c;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    a:hover {
        text-decoration: underline;
        color: #c38b4b;
        text-shadow: 0 0 3px rgba(0,0,0,0.1);
    }

    /* Top mini-nav */
    .top-nav {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 10px 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        color: #f5f2e9;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .top-nav > div:first-child {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 14px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

    .top-nav > div:first-child strong {
        letter-spacing: 0.6px;
        font-size: 0.95rem;
    }

    .top-nav-links {
        background: rgba(59, 53, 42, 0.97);
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .top-nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
        color: #f5f2e9;
        text-decoration: none;
        position: relative;
        padding-bottom: 1px;
    }
    .top-nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f5d189;
        transition: width 0.2s ease;
    }
    .top-nav-links a:hover {
        color: #f5d189;
        text-decoration: none;
    }
    .top-nav-links a:hover::after {
        width: 100%;
    }

    /* Wrapper & layout */
    .wrapper {
        max-width: 1200px;
        margin: 15px auto 30px auto;
        padding: 15px;
        display: flex;
        gap: 18px;
        box-sizing: border-box;
    }

    .main-content {
        flex: 2;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 16px 18px 18px 18px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    .side-column {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 14px 16px 16px 16px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.07);
        font-size: 0.9rem;
        animation: fadeUp 0.7s ease-out;
    }

    h1 {
        margin-top: 0;
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .subtitle {
        margin: 0;
        font-size: 0.85rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    .help-text {
        font-size: 0.8rem;
        color: #7b6a50;
        margin-bottom: 12px;
    }

    /* Messages */
    .message-info,
    .message-error,
    .message-success {
        padding: 8px 10px;
        border-radius: 6px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .message-info {
        background-color: #fff9dd;
        border: 1px solid #e3d09b;
        color: #6a5a30;
    }
    .message-error {
        background-color: #ffe6e0;
        border: 1px solid #d48a78;
        color: #842b22;
    }
    .message-success {
        background-color: #e6f7e8;
        border: 1px solid #86c190;
        color: #2d6b37;
    }

    /* Form polja */
    form {
        font-size: 0.9rem;
    }

    .field-group {
        margin-bottom: 10px;
    }

    label {
        display: block;
        margin-top: 8px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        width: 100%;
        padding: 7px 9px;
        margin-top: 4px;
        border: 1px solid #c8b89b;
        border-radius: 6px;
        background-color: #fffdf7;
        box-sizing: border-box;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    textarea {
        min-height: 80px;
        resize: vertical;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="date"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .field-group-inline {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .field-group-inline > div {
        flex: 1;
        min-width: 0;
    }

    /* Dugme */
    .btn {
        display: inline-block;
        padding: 9px 18px;
        margin-top: 14px;
        background: #3b352a;
        color: #fffaf0;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn:hover {
        background: #4a4031;
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(0,0,0,0.3);
    }
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .hint {
        font-size: 0.75rem;
        color: #7b6a50;
        margin-top: 6px;
    }

    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
    }
    .radio-group label {
        display: inline-flex;
        align-items: center;
        margin-top: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f4ebd6;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .radio-group input[type="radio"] {
        margin-right: 4px;
    }
    .radio-group label:hover {
        background: #e7dcc5;
        border-color: #c39b63;
    }

    .sub-section-title {
        margin-top: 18px;
        font-weight: bold;
        font-size: 0.95rem;
        padding-bottom: 2px;
        border-bottom: 1px solid #dec9a6;
        color: #4a3822;
    }

    /* Zadnjih 10 nalaza */
    .side-column h2 {
        margin-top: 0;
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .last-finds-item {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 4px;
        border-bottom: 1px dashed #d3c1a5;
    }

    .last-finds-thumb {
        width: 58px;
        height: 58px;
        background: #e3d3b2;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .last-finds-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .last-finds-info {
        flex: 1;
        font-size: 0.85rem;
    }

    .last-finds-title {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .last-finds-meta {
        font-size: 0.78rem;
        color: #7b6a50;
    }

    /* Animacije */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 800px) {
        .wrapper {
            flex-direction: column;
            padding: 10px;
        }
        .top-nav {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }
        .top-nav > div:first-child,
        .top-nav-links {
            justify-content: center;
        }
    }

/* Header from muzej */
header {
    background: rgba(59, 53, 42, 0.97);
    color: #f5f2e9;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}
header .logo {font-size:20px;font-weight:bold; letter-spacing:0.5px;}
header nav a {
    color:#f5f2e9;
    margin-left:15px;
    text-decoration:none;
    position:relative;
    padding-bottom:2px;
}
header nav a::after {
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0; height:2px;
    background:#f5d189;
    transition:width 0.25s ease;
}
header nav a:hover {color:#f5d189;}
header nav a:hover::after {width:100%;}


    /* Hero sekcija */
    .hero {
        max-width: 1200px;
        margin: 12px auto 0 auto;
        padding: 14px 18px;
        display: flex;
        gap: 16px;
        align-items: center;
        box-sizing: border-box;
    }
    .hero-main {
        flex: 2;
        background: linear-gradient(135deg, #3b352a 0, #514533 45%, #3b352a 100%);
        color: #f5f2e9;
        padding: 14px 16px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    }
    .hero-title {
        margin: 0 0 6px 0;
        font-size: 1.4rem;
    }
    .hero-subtitle {
        margin: 0 0 10px 0;
        font-size: 0.9rem;
        color: #e3d7bd;
    }
    .hero-actions {
        font-size: 0.8rem;
        color: #f5e7c3;
    }
    .hero-badge {
        display: inline-block;
        padding: 2px 7px;
        border-radius: 999px;
        background: #f5d189;
        color: #3b2a1a;
        font-weight: bold;
        font-size: 0.75rem;
        margin-right: 3px;
    }
    .hero-user {
        flex: 1;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        padding: 10px 12px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        font-size: 0.85rem;
        color: #4a3822;
    }
    .hero-user-links {
        margin-top: 4px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-link {
        font-size: 0.8rem;
        color: #5c3b1c;
        cursor: pointer;
    }

    /* Dugme za dark mode */
    .theme-toggle {
        margin-left: 14px;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid rgba(245,241,230,0.6);
        background: rgba(0,0,0,0.15);
        color: #f5f2e9;
        font-size: 0.78rem;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .theme-toggle:hover {
        background: rgba(0,0,0,0.3);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    .theme-toggle:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #181310 0, #15100d 40%, #100c09 100%);
        color: #f1e7d4;
    }
    body.dark-mode .main-content,
    body.dark-mode .side-column,
    body.dark-mode .hero-user {
        background: #1f1912;
        border-color: #5c4a31;
        color: #f1e7d4;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .hero-main {
        background: linear-gradient(135deg, #181310 0, #262018 45%, #181310 100%);
        box-shadow: 0 14px 30px rgba(0,0,0,0.9);
    }
    body.dark-mode input[type="text"],
    body.dark-mode input[type="password"],
    body.dark-mode input[type="date"],
    body.dark-mode select,
    body.dark-mode textarea {
        background-color: #221b13;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode input[type="text"]:focus,
    body.dark-mode input[type="password"]:focus,
    body.dark-mode input[type="date"]:focus,
    body.dark-mode select:focus,
    body.dark-mode textarea:focus {
        border-color: #f5d189;
        box-shadow: 0 0 0 2px rgba(245,209,137,0.5);
        background: #241d14;
    }
    body.dark-mode .btn {
        background: #f5d189;
        color: #2b2115;
    }
    body.dark-mode .btn:hover {
        background: #ffe09b;
    }
    body.dark-mode .last-finds-item {
        border-bottom-color: #5c4a31;
    }
    body.dark-mode .sub-section-title {
        border-bottom-color: #5c4a31;
        color: #f5d6a0;
    }
    body.dark-mode .radio-group label {
        background: #2a2218;
        border-color: #6b5740;
        color: #f1e7d4;
    }
    body.dark-mode .radio-group label:hover {
        background: #352a1d;
    }
    body.dark-mode .last-finds-meta {
        color: #d1c0a0;
    }
    body.dark-mode header {
        background: rgba(15, 11, 8, 0.97);
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode header nav a {
        color: #f1e7d4;
    }
    body.dark-mode header nav a:hover {
        color: #f5d189;
    }
    @media (max-width: 800px) {
        .hero {
            flex-direction: column;
            padding: 10px 12px;
        }
    }


/* ---- styles from periodiprijeblack.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


    /* TIMELINE ZA PERIODE NALAZA */
    .timeline {
        position: relative;
        margin-top: 10px;
        padding-left: 20px;
        border-left: 3px solid #d1b58a;
    }
    .timeline-period {
        position: relative;
        margin-bottom: 26px;
    }
    .timeline-marker {
        position: absolute;
        left: -10px;
        top: 6px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 20%, #ffe9b5, #c99b4f);
        border: 2px solid #8b5d23;
        box-shadow: 0 0 0 3px rgba(201,155,79,0.3);
    }
    .timeline-content {
        margin-left: 18px;
        background: #fdf7ec;
        border-radius: 12px;
        border: 1px solid #ddc9a8;
        padding: 10px 12px 12px;
    }
    .timeline-title {
        margin: 0 0 4px 0;
        font-size: 18px;
        color: #543a24;
    }
    .timeline-desc {
        margin: 0 0 8px 0;
        font-size: 13px;
        color: #7b6b57;
    }
    .timeline-empty {
        font-size: 13px;
        color: #a08c6a;
        margin: 4px 0 0 0;
    }
    .timeline-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 10px;
        margin-top: 8px;
    }
    .timeline-card {
        background: #fffaf0;
        border-radius: 10px;
        border: 1px solid #e2d3bd;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .timeline-card a {
        color: inherit;
        text-decoration: none;
        display: block;
    }
    .timeline-image {
        width: 100%;
        height: 130px;
        background: #eee0c8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #7b6b57;
    }
    .timeline-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .timeline-info {
        padding: 6px 8px 8px;
    }
    .timeline-card-title {
        font-size: 13px;
        font-weight: bold;
        color: #3a2b1b;
        margin-bottom: 2px;
    }
    .timeline-card-meta {
        font-size: 11px;
        color: #7b6b57;
    }
    .timeline-legend {
        background: #fdf7ec;
        border-radius: 10px;
        border: 1px solid #ddc9a8;
        padding: 8px 10px;
        font-size: 13px;
        color: #6b5b48;
    }

    @media (max-width: 600px) {
        .timeline {
            padding-left: 16px;
        }
        .timeline-marker {
            left: -11px;
        }
    }

    
/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from periodi.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }

    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


    /* TIMELINE ZA PERIODE NALAZA */
    .timeline {
        position: relative;
        margin-top: 10px;
        padding-left: 20px;
        border-left: 3px solid #d1b58a;
    }
    .timeline-period {
        position: relative;
        margin-bottom: 26px;
    }
    .timeline-marker {
        position: absolute;
        left: -10px;
        top: 6px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 20%, #ffe9b5, #c99b4f);
        border: 2px solid #8b5d23;
        box-shadow: 0 0 0 3px rgba(201,155,79,0.3);
    }
    .timeline-content {
        margin-left: 18px;
        background: #fdf7ec;
        border-radius: 12px;
        border: 1px solid #ddc9a8;
        padding: 10px 12px 12px;
    }
    .timeline-title {
        margin: 0 0 4px 0;
        font-size: 18px;
        color: #543a24;
    }
    .timeline-desc {
        margin: 0 0 8px 0;
        font-size: 13px;
        color: #7b6b57;
    }
    .timeline-empty {
        font-size: 13px;
        color: #a08c6a;
        margin: 4px 0 0 0;
    }
    .timeline-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 10px;
        margin-top: 8px;
    }
    .timeline-card {
        background: #fffaf0;
        border-radius: 10px;
        border: 1px solid #e2d3bd;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .timeline-card a {
        color: inherit;
        text-decoration: none;
        display: block;
    }
    .timeline-image {
        width: 100%;
        height: 130px;
        background: #eee0c8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #7b6b57;
    }
    .timeline-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .timeline-info {
        padding: 6px 8px 8px;
    }
    .timeline-card-title {
        font-size: 13px;
        font-weight: bold;
        color: #3a2b1b;
        margin-bottom: 2px;
    }
    .timeline-card-meta {
        font-size: 11px;
        color: #7b6b57;
    }
    .timeline-legend {
        background: #fdf7ec;
        border-radius: 10px;
        border: 1px solid #ddc9a8;
        padding: 8px 10px;
        font-size: 13px;
        color: #6b5b48;
    }

    @media (max-width: 600px) {
        .timeline {
            padding-left: 16px;
        }
        .timeline-marker {
            left: -11px;
        }
    }

    
/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from muzej-radim-font.php ---- */
html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: radial-gradient(circle at top, #fdf7e6 0, #f5f2e9 45%, #e7ddc9 100%);
        color: #3a2b1b;
    }

    /* Header / top navigation */
    header {
        background: rgba(59, 53, 42, 0.97);
        color: #f5f2e9;
        padding: 12px 8%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        position: sticky;
        top: 0;
        z-index: 20;
        backdrop-filter: blur(8px);
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .logo span {
        color: #f5d189;
    }

    header nav a {
        color: #f5f2e9;
        text-decoration: none;
        margin-left: 15px;
        font-size: 14px;
        position: relative;
        padding-bottom: 2px;
        transition: color 0.25s ease;
    }

    header nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #f8d58b;
        transition: width 0.25s ease;
    }

    header nav a:hover {
        color: #f8d58b;
    }

    header nav a:hover::after {
        width: 100%;
    }

    /* Page header (section under nav) */
    .muzej-header {
        background: linear-gradient(135deg, #3b352a 0, #4a4031 40%, #3b352a 100%);
        color: #f5f2e9;
        padding: 16px 7%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        animation: fadeInSoft 0.5s ease-out;
    }
    .muzej-header h1 {
        margin: 0;
        font-size: 26px;
    }
    .muzej-header p {
        margin: 4px 0 0 0;
        font-size: 13px;
        color: #d9cfae;
    }

    /* Decorative line under heading text */
    .muzej-header h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        margin-top: 6px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        border-radius: 999px;
    }

    /* Main container */
    .muzej-main {
        max-width: 1200px;
        margin: 20px auto 40px auto;
        padding: 15px;
        background: rgba(252, 247, 236, 0.98);
        border-radius: 14px;
        border: 1px solid #d3c1a5;
        box-shadow: 0 16px 30px rgba(0,0,0,0.09);
        animation: fadeUp 0.6s ease-out;
    }

    /* Izdvojeni nalazi (TOP box) */
    .featured-box {
        background: linear-gradient(135deg, #fffaf0 0, #fdf4e2 40%, #f7ebd4 100%);
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 12px 14px 12px;
        margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .featured-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
    }
    .featured-header h2 {
        margin: 0;
        font-size: 18px;
    }
    .featured-header span {
        font-size: 12px;
        color: #7d6f58;
    }
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .featured-card {
        background: #fdf7eb;
        border: 1px solid #dac6aa;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 8px;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.07);
        position: relative;
        overflow: hidden;
    }
    .featured-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .featured-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.18);
        border-color: #c39b63;
    }
    .featured-card:hover::before {
        opacity: 1;
    }
    .featured-thumb-wrapper {
        flex: 0 0 70px;
    }
    .featured-thumb {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #cbb79a;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .featured-card:hover .featured-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }
    .featured-content {
        flex: 1 1 auto;
    }
    .featured-title {
        margin: 0 0 3px 0;
        font-size: 14px;
        font-weight: bold;
    }
    .featured-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .featured-title a:hover {
        text-decoration: underline;
    }
    .featured-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .badge-type {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #d1b88d;
        font-size: 10px;
        color: #3b2e1d;
        margin-right: 4px;
    }
    .badge-material {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 999px;
        background: #e5dbc5;
        font-size: 10px;
        color: #3b2e1d;
    }

    /* Filter kutija */
    .filter-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .filter-box h2 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-group {
        flex: 1 1 180px;
        min-width: 160px;
    }

    .filter-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 3px;
    }

    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid #cbb79a;
        background: #fffdf7;
        font-size: 13px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .filter-group select:focus,
    .filter-group input[type="text"]:focus,
    .filter-group input[type="number"]:focus {
        outline: none;
        border-color: #c39b63;
        box-shadow: 0 0 0 2px rgba(195,155,99,0.25);
        background: #fffaf0;
    }

    .filter-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-filter,
    .btn-reset {
        border-radius: 999px;
        padding: 7px 16px;
        border: none;
        cursor: pointer;
        font-size: 13px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .btn-filter {
        background: #3b352a;
        color: #f5f2e9;
    }

    .btn-reset {
        background: #9a7f5a;
        color: #fdf7eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter:hover,
    .btn-reset:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(0,0,0,0.25);
    }

    .btn-filter:hover {
        background: #4a4031;
    }

    .btn-reset:hover {
        background: #a98b62;
    }

    .btn-filter:active,
    .btn-reset:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.25);
    }

    .results-info {
        font-size: 13px;
        color: #6b604d;
        margin-left: auto;
    }

    /* heading za "Svi nalazi detektoriste" */
    .detektorista-heading {
        margin: 10px 0 8px 0;
        font-size: 18px;
        color: #3a2b1b;
    }

    .detektorista-heading span {
        font-weight: bold;
        color: #7b5b2f;
    }

    /* Lista nalaza */
    .finds-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .find-card {
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        gap: 10px;
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .find-card::before {
        content: "";
        position: absolute;
        top: -30%;
        right: -30%;
        width: 60%;
        height: 60%;
        background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .find-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
        transform: translateY(-2px);
        border-color: #c39b63;
        background: #fffdf5;
    }

    .find-card:hover::before {
        opacity: 1;
    }

    .find-thumb-wrapper {
        flex: 0 0 90px;
    }

    .find-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #f2e9d8;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .find-card:hover .find-thumb {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.02);
    }

    .find-content {
        flex: 1 1 auto;
    }

    .find-title {
        margin: 0 0 4px 0;
        font-size: 15px;
        font-weight: bold;
    }

    .find-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .find-title a:hover {
        text-decoration: underline;
    }

    .find-meta {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 3px;
    }

    .find-meta span {
        display: inline-block;
        margin-right: 6px;
    }


    .mini-story {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.4;
        color: #51412b;
        font-style: italic;
    }
    .find-rating {
        margin: 4px 0 6px 0;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .find-rating .stars {
        color: #d9b15c;
        letter-spacing: 1px;
    }
    .find-rating .rating-count {
        font-size: 11px;
        color: #6b5b43;
    }

    .find-footer {
        font-size: 11px;
        color: #8a7b63;
    }

    .find-footer span {
        display: inline-block;
        margin-right: 6px;
    }

    /* Paginacija */
    .pagination {
        margin-top: 18px;
        text-align: center;
        font-size: 13px;
    }
    .pagination a,
    .pagination span {
        display: inline-block;
        margin: 0 3px;
        padding: 4px 7px;
        border-radius: 999px;
        border: 1px solid #cbb79a;
        text-decoration: none;
        color: #3a2b1b;
        background: #fffaf0;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .pagination span.current {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #3b352a;
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    }
    .pagination a:hover {
        background: #3b352a;
        color: #f5f2e9;
        border-color: #8c6f4d;
        box-shadow: 0 6px 12px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    /* Simple animations */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInSoft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .filter-row {
            flex-direction: column;
        }
        .muzej-header {
            padding: 10px 5%;
        }
        header {
            padding: 10px 5%;
        }
    }


    .muzej-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .muzej-header-text h1 {
        margin: 0;
    }
    .muzej-header-text p {
        margin: 4px 0 0 0;
    }

    .dark-toggle {
        border-radius: 999px;
        border: 1px solid #f0d49a;
        background: rgba(0, 0, 0, 0.25);
        color: #f5f2e9;
        padding: 6px 12px;
        cursor: pointer;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        white-space: nowrap;
    }
    .dark-toggle:hover {
        background: rgba(0,0,0,0.45);
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.4);
        border-color: #f8d58b;
    }

    .muzej-top-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .stats-box,
    .leaderboard-box,
    .map-box {
        background-color: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 10px;
        padding: 12px 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    }

    .stats-box h2,
    .leaderboard-box h2,
    .map-box h2 {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .stats-card {
        background: #f7ecda;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #dac6aa;
    }
    .stats-label {
        font-size: 11px;
        color: #6b604d;
        margin-bottom: 4px;
    }
    .stats-value {
        font-size: 15px;
        font-weight: bold;
    }

    .timeline-box {
        margin-top: 8px;
    }
    .timeline-box h3 {
        margin: 0 0 6px 0;
        font-size: 14px;
    }
    .timeline-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .timeline-item {
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 100px;
        text-align: center;
        font-size: 11px;
        color: #6b604d;
    }
    .timeline-bar {
        width: 100%;
        height: calc(12px + (var(--count) * 0.4px));
        max-height: 40px;
        border-radius: 999px;
        background: linear-gradient(90deg, #c39b63, #f0d49a);
        margin-bottom: 2px;
    }
    .timeline-label {
        font-weight: bold;
    }
    .timeline-count {
        font-size: 10px;
    }

    .leaderboard-list {
        list-style: none;
        padding: 0;
        margin: 4px 0 0 0;
        font-size: 13px;
    }
    .leaderboard-list li {
        margin-bottom: 6px;
        border-bottom: 1px dashed #d3c1a5;
        padding-bottom: 4px;
    }
    .leaderboard-list a {
        color: #3a2b1b;
        text-decoration: none;
        font-weight: bold;
    }
    .leaderboard-list a:hover {
        text-decoration: underline;
    }
    .lb-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 11px;
        color: #7d6f58;
    }
    .lb-years {
        font-size: 11px;
        color: #8a7b63;
    }

    .map-note {
        font-size: 11px;
        color: #7d6f58;
        margin: 0 0 6px 0;
    }
    #finds-map {
        width: 100%;
        height: 320px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dac6aa;
    }

    /* Lightbox za slike */
    .lightbox-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .lightbox-overlay.active {
        display: flex;
    }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        background: #111;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0 auto;
    }
    .lightbox-caption {
        margin-top: 6px;
        font-size: 12px;
        color: #f5f2e9;
        text-align: center;
    }
    .lightbox-close {
        position: absolute;
        top: 4px;
        right: 6px;
        border: none;
        background: transparent;
        color: #f5f2e9;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode */
    body.dark-mode {
        background: radial-gradient(circle at top, #1f1b16 0, #14110e 40%, #0f0c09 100%);
        color: #f5f2e9;
    }
    body.dark-mode header {
        background: rgba(20, 17, 14, 0.95);
        color: #f5f2e9;
        box-shadow: 0 4px 14px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-header {
        background: linear-gradient(135deg, #1d1914 0, #252018 40%, #1d1914 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    }
    body.dark-mode .muzej-main {
        background: #1c1813;
        border-color: #4a3b29;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .featured-box,
    body.dark-mode .stats-box,
    body.dark-mode .leaderboard-box,
    body.dark-mode .map-box,
    body.dark-mode .filter-box,
    body.dark-mode .find-card {
        background-color: #252018;
        border-color: #4a3b29;
        box-shadow: 0 10px 22px rgba(0,0,0,0.7);
        color: #f5f2e9;
    }
    body.dark-mode .stats-card {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .find-thumb,
    body.dark-mode .featured-thumb {
        background: #31271d;
        border-color: #665136;
    }
    body.dark-mode .leaderboard-list a {
        color: #f5f2e9;
    }
    body.dark-mode .map-note {
        color: #d1c4a3;
    }
    body.dark-mode .filter-group select,
    body.dark-mode .filter-group input[type="text"],
    body.dark-mode .filter-group input[type="number"] {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }
    body.dark-mode .pagination a,
    body.dark-mode .pagination span {
        background: #2b241b;
        border-color: #665136;
        color: #f5f2e9;
    }

    @media (max-width: 900px) {
        .muzej-top-row {
            grid-template-columns: 1fr;
        }
    }


    /* 3D vitrina nalaza */
    .vitrina-section {
        max-width: 1200px;
        margin: 0 auto 18px auto;
        padding: 0 2px 2px 2px;
    }
    .vitrina-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }
    .vitrina-header h2 {
        margin: 0;
        font-size: 20px;
    }
    .vitrina-header p {
        margin: 0;
        font-size: 13px;
        color: #7d6f58;
    }
    .vitrina-3d {
        position: relative;
        perspective: 1200px;
        padding: 10px 40px 16px 40px;
    }
    .vitrina-track {
        position: relative;
        height: 220px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        transform-style: preserve-3d;
    }
    .vitrina-item {
        position: absolute;
        width: 260px;
        max-width: 70%;
        background: radial-gradient(circle at top, #fffdf5 0, #f9edd8 60%, #f3e0c5 100%);
        border: 1px solid #d3c1a5;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        opacity: 0;
        transform-origin: center center;
        transform: translateX(0) scale(0.85) rotateY(25deg);
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.3s ease;
        z-index: 1;
        display: flex;
        gap: 8px;
    }
    .vitrina-item.is-active {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 3;
    }
    .vitrina-item.is-left {
        opacity: 0.6;
        transform: translateX(-170px) scale(0.9) rotateY(18deg);
        z-index: 2;
    }
    .vitrina-item.is-right {
        opacity: 0.6;
        transform: translateX(170px) scale(0.9) rotateY(-18deg);
        z-index: 2;
    }
    .vitrina-item.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .vitrina-img-wrap {
        flex: 0 0 90px;
        height: 90px;
        border-radius: 10px;
        overflow: hidden;
        background: #e3d3b2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vitrina-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }
    .vitrina-item.is-active .vitrina-img-wrap img {
        transform: scale(1.05);
    }
    .vitrina-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .vitrina-type {
        font-size: 11px;
        color: #7d6f58;
        margin-bottom: 4px;
    }
    .vitrina-title {
        font-size: 15px;
        margin: 0 0 4px 0;
    }
    .vitrina-title a {
        color: #3a2b1b;
        text-decoration: none;
    }
    .vitrina-title a:hover {
        text-decoration: underline;
        color: #c39b63;
    }
    .vitrina-meta span {
        font-size: 11px;
        color: #6e5b43;
        margin-right: 8px;
    }
    .vitrina-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(59, 53, 42, 0.85);
        color: #f5f2e9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
        transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .vitrina-nav.prev {
        left: 4px;
    }
    .vitrina-nav.next {
        right: 4px;
    }
    .vitrina-nav:hover {
        background: #4a4031;
        transform: translateY(-50%) translateY(-1px);
        box-shadow: 0 9px 18px rgba(0,0,0,0.5);
    }
    .vitrina-nav:active {
        transform: translateY(-50%) translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    body.dark-mode .vitrina-item {
        background: #1f1912;
        border-color: #5c4a31;
        box-shadow: 0 16px 30px rgba(0,0,0,0.8);
    }
    body.dark-mode .vitrina-header p {
        color: #d1c0a0;
    }

    @media (max-width: 768px) {
        .vitrina-3d {
            padding: 8px 24px 12px 24px;
        }
        .vitrina-track {
            height: 230px;
        }
        .vitrina-item {
            width: 90%;
            max-width: 340px;
        }
        .vitrina-item.is-left,
        .vitrina-item.is-right {
            transform: translateX(0) scale(0.85) rotateY(0deg);
            opacity: 0;
        }
    }


/* Mobilni prikaz headera / menija */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 8px;
        font-size: 18px;
    }

    header nav {
        width: 100%;
        margin-top: 2px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    header nav a {
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
    }
}


/* ---- styles from login.php ---- */
.login-wrapper {
    max-width: 420px;
    margin: 70px auto;
}
.login-panel {
    background: #fcfaf4;
    border: 1px solid #d7ccb2;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.login-panel h1 {
    margin-top: 0;
    text-align: center;
    font-size: 22px;
    color: #3b352a;
}
.field {
    margin-bottom: 15px;
}
.field label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}
.field input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #c7bda4;
    background: #fdfaf3;
}
.btn-login {
    width: 100%;
    padding: 9px;
    border: none;
    background: #d9b15c;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #2f2b24;
    margin-top: 8px;
}
.btn-login:hover {
    background: #c79f49;
}
.alert-error {
    background: #fbeaea;
    border: 1px solid #d79a9a;
    padding: 10px;
    border-radius: 6px;
    color: #7a2b2b;
    margin-bottom: 10px;
    font-size: 13px;
    text-align: center;
}


/* ---- styles from user_edit.php ---- */
.edit-box {
        max-width: 650px;
        margin: 20px auto;
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 25px;
    }
    .edit-box h1 { margin-top: 0; }
    .field { margin-bottom: 14px; }
    .field label {
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }
    input[type="text"],
    input[type="password"],
    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #fffdf7;
        font-size: 14px;
        box-sizing: border-box;
    }
    .btn-save {
        padding: 10px 18px;
        background: #b49367;
        border: 1px solid #8c6f4d;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }
    .btn-save:hover { background: #9b7f56; }
    .alert-success,
    .alert-error {
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
    }


/* ---- styles from profile_edit.php ---- */
.profile-form label { display:block; margin-top:8px; font-weight:bold; }
        .profile-form textarea { width:100%; min-height:100px; }
        .profile-form input[type="text"] { width:100%; }


/* ---- styles from edit_findbackup.php ---- */
body {
            background-color: #f5f2e9;
            font-family: Arial, sans-serif;
        }
        .admin-top-menu {
            max-width: 1200px;
            margin: 10px auto;
            background-color: #e2d3b5;
            border: 1px solid #c0a983;
            padding: 8px 12px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .admin-top-menu a {
            text-decoration: none;
            color: #4b3520;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 3px;
        }
        .admin-top-menu a:hover {
            background-color: #d3c1a5;
        }
        .container {
            max-width: 1200px;
            margin: 10px auto 20px auto;
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            padding: 20px;
            display: flex;
            gap: 20px;
        }
        .left-panel, .right-panel {
            flex: 1;
        }
        h1 {
            max-width: 1200px;
            margin: 10px auto 5px auto;
        }
        .message {
            max-width: 1200px;
            margin: 0 auto 10px auto;
            padding: 10px;
            border-radius: 4px;
        }
        .message.success {
            background-color: #d9f5d3;
            border: 1px solid #8ac28a;
        }
        .message.error {
            background-color: #fddede;
            border: 1px solid #e09b9b;
        }
        label {
            display: block;
            font-weight: bold;
            margin-top: 8px;
        }
        input[type="text"],
        input[type="date"],
        textarea,
        select {
            width: 100%;
            padding: 6px;
            border: 1px solid #cbb79a;
            border-radius: 3px;
            background-color: #fffaf5;
        }
        textarea {
            min-height: 80px;
        }
        .image-block {
            margin-bottom: 15px;
            border: 1px solid #d3c1a5;
            padding: 10px;
            background-color: #fdf7ec;
        }
        .image-block img {
            max-width: 100%;
            max-height: 200px;
            display: block;
            margin-bottom: 8px;
            border: 1px solid #cbb79a;
        }
        .extra-images-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .extra-image-item {
            width: 120px;
            border: 1px solid #d3c1a5;
            padding: 5px;
            background-color: #fff;
            text-align: center;
        }
        .extra-image-item img {
            max-width: 100%;
            max-height: 90px;
            display: block;
            margin-bottom: 5px;
        }
        .buttons {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        .buttons button {
            padding: 8px 16px;
            border-radius: 3px;
            border: 1px solid #8c6f4d;
            background-color: #b49367;
            color: #fff;
            cursor: pointer;
        }
        .buttons button:hover {
            background-color: #9b7f56;
        }


/* ---- styles from edit_find.php ---- */
body {
            background-color: #f5f2e9;
            font-family: Arial, sans-serif;
        }
        .admin-top-menu {
            max-width: 1200px;
            margin: 10px auto;
            background-color: #e2d3b5;
            border: 1px solid #c0a983;
            padding: 8px 12px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .admin-top-menu a {
            text-decoration: none;
            color: #4b3520;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 3px;
        }
        .admin-top-menu a:hover {
            background-color: #d3c1a5;
        }
        .container {
            max-width: 1200px;
            margin: 10px auto 20px auto;
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            padding: 20px;
            display: flex;
            gap: 20px;
        }
        .left-panel, .right-panel {
            flex: 1;
        }
        h1 {
            max-width: 1200px;
            margin: 10px auto 5px auto;
        }
        .message {
            max-width: 1200px;
            margin: 0 auto 10px auto;
            padding: 10px;
            border-radius: 4px;
        }
        .message.success {
            background-color: #d9f5d3;
            border: 1px solid #8ac28a;
        }
        .message.error {
            background-color: #fddede;
            border: 1px solid #e09b9b;
        }
        label {
            display: block;
            font-weight: bold;
            margin-top: 8px;
        }
        input[type="text"],
        input[type="date"],
        textarea,
        select {
            width: 100%;
            padding: 6px;
            border: 1px solid #cbb79a;
            border-radius: 3px;
            background-color: #fffaf5;
        }
        textarea {
            min-height: 80px;
        }
        .image-block {
            margin-bottom: 15px;
            border: 1px solid #d3c1a5;
            padding: 10px;
            background-color: #fdf7ec;
        }
        .image-block img {
            max-width: 100%;
            max-height: 200px;
            display: block;
            margin-bottom: 8px;
            border: 1px solid #cbb79a;
        }
        .extra-images-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .extra-image-item {
            width: 120px;
            border: 1px solid #d3c1a5;
            padding: 5px;
            background-color: #fff;
            text-align: center;
        }
        .extra-image-item img {
            max-width: 100%;
            max-height: 90px;
            display: block;
            margin-bottom: 5px;
        }
        .buttons {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        .buttons button {
            padding: 8px 16px;
            border-radius: 3px;
            border: 1px solid #8c6f4d;
            background-color: #b49367;
            color: #fff;
            cursor: pointer;
        }
        .buttons button:hover {
            background-color: #9b7f56;
        }


/* ---- styles from users.php ---- */
.admin-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        margin-top: 10px;
    }
    .admin-table thead {
        background-color: #f0e2c8;
    }
    .admin-table th,
    .admin-table td {
        padding: 6px 10px;
        border-bottom: 1px solid #e0d0b5;
        text-align: left;
    }
    .admin-table tr:last-child td {
        border-bottom: none;
    }

    .role-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    .role-admin {
        background-color: #d7f5d2;
        color: #2f6b2f;
        border: 1px solid #8bc98b;
    }
    .role-user {
        background-color: #e0e5ff;
        color: #2c326b;
        border: 1px solid #9aa2d8;
    }

    .btn-edit {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background-color: #4a7bd1;
        color: #ffffff;
        font-size: 12px;
        text-decoration: none;
        margin-right: 4px;
    }
    .btn-edit:hover {
        background-color: #3c65ad;
    }

    .btn-delete {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background-color: #c94a4a;
        color: #ffffff;
        font-size: 12px;
        border: none;
        cursor: pointer;
    }
    .btn-delete:hover {
        background-color: #a83838;
    }

    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
        font-size: 14px;
    }


/* ---- styles from finds.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f5f2e9;
            color: #2f2b24;
        }
        a { color: inherit; text-decoration: none; }

        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo { font-size: 22px; font-weight: bold; }
        .logo span { color: #d9b15c; }
        nav a {
            margin-left: 18px;
            font-size: 14px;
            opacity: 0.9;
        }
        nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .main {
            max-width: 1200px;
            margin: 25px auto 30px auto;
            padding: 0 15px 20px 15px;
        }

        .panel {
            background: #fcfaf4;
            border-radius: 10px;
            border: 1px solid #ddd1b5;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            padding: 15px 16px;
            margin-bottom: 18px;
        }

        h1, h2, h3 { margin-top: 0; }

        .alert-info, .alert-error {
            padding: 8px 10px;
            border-radius: 6px;
            font-size: 13px;
            margin-bottom: 10px;
        }
        .alert-info {
            background: #e6eef7;
            border: 1px solid #9cb6d8;
            color: #2e4768;
        }
        .alert-error {
            background: #fbeaea;
            border: 1px solid #d79a9a;
            color: #7c2b2b;
        }

        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 12px;
            margin-top: 6px;
        }
        .filters select,
        .filters input[type="text"] {
            padding: 4px 6px;
            border-radius: 6px;
            border: 1px solid #c7bda4;
            background: #fdfaf3;
            font-size: 12px;
        }

        .btn {
            display: inline-block;
            border-radius: 999px;
            border: none;
            padding: 5px 10px;
            font-size: 11px;
            cursor: pointer;
            text-decoration: none;
        }
        .btn-primary {
            background: #d9b15c;
            color: #2f2b24;
        }
        .btn-secondary {
            background: #e3ddcf;
            color: #3c352b;
        }
        .btn-approve {
            background: #6fbf6f;
            color: #143414;
        }
        .btn-reject {
            background: #e47f7f;
            color: #3b1111;
        }
        .btn-pending {
            background: #f0d37a;
            color: #4a3b10;
        }
        .btn-delete {
            background: #c0b9aa;
            color: #2f2b24;
        }
        .btn + .btn {
            margin-left: 3px;
        }

        .status-badge {
            display: inline-block;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 999px;
            margin-top: 4px;
        }
        .status-approved {
            background: #c8e6c9;
            color: #1b5e20;
        }
        .status-pending {
            background: #fff3c4;
            color: #795548;
        }
        .status-rejected {
            background: #ffdde0;
            color: #b71c1c;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            margin-top: 6px;
        }
        .table thead tr {
            background: #f0ead8;
        }
        .table th,
        .table td {
            padding: 6px 5px;
            border-bottom: 1px solid #e1d7c0;
            vertical-align: top;
            text-align: left;
        }
        .table th {
            font-weight: bold;
            white-space: nowrap;
        }

        .thumb-wrap {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid #ddd1b5;
            background: #e1dccf;
        }
        .thumb-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .badge-type {
            display: inline-block;
            font-size: 10px;
            padding: 1px 5px;
            border-radius: 999px;
            background: #d9b15c;
            color: #2f2b24;
            margin-top: 2px;
        }

        .small {
            font-size: 11px;
            color: #7a7161;
        }

        .pagination {
            margin-top: 10px;
            font-size: 12px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        .pagination a,
        .pagination span {
            padding: 3px 8px;
            border-radius: 999px;
            border: 1px solid #d0c29e;
            background: #f5f2e9;
            color: #3c352b;
            text-decoration: none;
        }
        .pagination .current {
            background: #d9b15c;
            border-color: #b89345;
            font-weight: bold;
        }
        .pagination .disabled {
            opacity: 0.5;
            cursor: default;
        }

        @media (max-width: 800px) {
            .table thead {
                display: none;
            }
            .table, .table tbody, .table tr, .table td {
                display: block;
                width: 100%;
            }
            .table tr {
                margin-bottom: 10px;
                border-bottom: 1px solid #e1d7c0;
                padding-bottom: 6px;
            }
            .table td {
                border-bottom: none;
            }
        }


/* ---- styles from articles.php ---- */
body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f5f2e9;
            color: #2f2b24;
        }
        a { color: inherit; text-decoration: none; }

        header {
            background: #3b352a;
            color: #f5f2e9;
            padding: 12px 7%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .logo {
            font-size: 20px;
            font-weight: bold;
        }
        .logo span { color: #d9b15c; }

        .top-bar-right {
            font-size: 12px;
            text-align: right;
        }
        .top-bar-right a { text-decoration: underline; }

        .main {
            max-width: 1100px;
            margin: 22px auto 30px auto;
            padding: 0 15px 20px 15px;
        }

        .panel {
            background: #fcfaf4;
            border-radius: 10px;
            border: 1px solid #ddd1b5;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            padding: 14px 15px;
            margin-bottom: 18px;
        }

        h1, h2, h3 {
            margin-top: 0;
        }

        .field {
            margin-bottom: 10px;
        }
        .field label {
            display: block;
            font-weight: bold;
            font-size: 13px;
            margin-bottom: 4px;
        }
        .field input[type="text"],
        .field select,
        .field textarea {
            width: 100%;
            padding: 7px 9px;
            border-radius: 6px;
            border: 1px solid #c7bda4;
            background: #fdfaf3;
            font-size: 13px;
        }
        .field textarea {
            min-height: 120px;
            resize: vertical;
        }

        .btn {
            display: inline-block;
            border-radius: 999px;
            border: none;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            text-decoration: none;
        }
        .btn-primary {
            background: #d9b15c;
            color: #2f2b24;
        }
        .btn-primary:hover { background:#c79f49; }
        .btn-edit {
            background:#4a7bd1;
            color:#f5f5f5;
        }
        .btn-edit:hover { background:#3c65ad; }
        .btn-delete {
            background:#c94b4b;
            color:#f5f5f5;
        }
        .btn-delete:hover { background:#a63a3a; }

        .alert {
            padding: 8px 10px;
            border-radius: 6px;
            font-size: 12px;
            margin-bottom: 10px;
        }
        .alert-error {
            background: #fbeaea;
            border: 1px solid #d79a9a;
            color: #7c2b2b;
        }
        .alert-success {
            background: #e8f7ea;
            border: 1px solid #9fd0a4;
            color: #24572b;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        th, td {
            border-bottom: 1px solid #e1d7c0;
            padding: 5px 4px;
            vertical-align: top;
        }
        th {
            text-align: left;
            background: #f0ebdd;
        }

        .status-badge {
            font-size: 11px;
            padding: 1px 5px;
            border-radius: 999px;
        }
        .status-draft {
            background:#f7f2cf;
            color:#786b24;
        }
        .status-published {
            background:#e0f4dd;
            color:#265a2a;
        }

        .two-cols {
            display:grid;
            grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
            gap:10px;
        }


/* ---- styles from add_usertestemail.php ---- */
.add-user-box {
        max-width: 650px;
        margin: 20px auto;
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 25px;
    }
    .add-user-box h1 {
        margin-top: 0;
    }
    .field {
        margin-bottom: 12px;
    }
    .field label {
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }
    input[type="text"],
    input[type="password"],
    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #fffdf7;
        font-size: 14px;
        box-sizing: border-box;
    }
    .btn-save {
        padding: 10px 18px;
        background: #b49367;
        border: 1px solid #8c6f4d;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }
    .btn-save:hover {
        background: #9b7f56;
    }
    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    .back-link {
        display: inline-block;
        margin-top: 10px;
        font-size: 14px;
        text-decoration: underline;
        color: #004080;
    }


/* ---- styles from userstestemail.php ---- */
.admin-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        margin-top: 10px;
    }
    .admin-table thead {
        background-color: #f0e2c8;
    }
    .admin-table th,
    .admin-table td {
        padding: 6px 10px;
        border-bottom: 1px solid #e0d0b5;
        text-align: left;
    }
    .admin-table tr:last-child td {
        border-bottom: none;
    }

    .role-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    .role-admin {
        background-color: #d7f5d2;
        color: #2f6b2f;
        border: 1px solid #8bc98b;
    }
    .role-user {
        background-color: #e0e5ff;
        color: #2c326b;
        border: 1px solid #9aa2d8;
    }

    .btn-edit {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background-color: #4a7bd1;
        color: #ffffff;
        font-size: 12px;
        text-decoration: none;
        margin-right: 4px;
    }
    .btn-edit:hover {
        background-color: #3c65ad;
    }

    .btn-delete {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background-color: #c94a4a;
        color: #ffffff;
        font-size: 12px;
        border: none;
        cursor: pointer;
    }
    .btn-delete:hover {
        background-color: #a83838;
    }

    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
        font-size: 14px;
    }


/* ---- styles from add_user.php ---- */
.add-user-box {
        max-width: 650px;
        margin: 20px auto;
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 25px;
    }
    .add-user-box h1 {
        margin-top: 0;
    }
    .field {
        margin-bottom: 12px;
    }
    .field label {
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }
    input[type="text"],
    input[type="password"],
    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #fffdf7;
        font-size: 14px;
        box-sizing: border-box;
    }
    .btn-save {
        padding: 10px 18px;
        background: #b49367;
        border: 1px solid #8c6f4d;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }
    .btn-save:hover {
        background: #9b7f56;
    }
    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    .back-link {
        display: inline-block;
        margin-top: 10px;
        font-size: 14px;
        text-decoration: underline;
        color: #004080;
    }


/* ---- styles from user_editdodanemail.php ---- */
.edit-box {
        max-width: 650px;
        margin: 20px auto;
        background: #fffaf0;
        border: 1px solid #d3c1a5;
        border-radius: 8px;
        padding: 25px;
    }
    .edit-box h1 { margin-top: 0; }
    .field { margin-bottom: 14px; }
    .field label {
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }
    input[type="text"],
    input[type="password"],
    select {
        width: 100%;
        padding: 8px;
        border: 1px solid #cbb79a;
        border-radius: 4px;
        background: #fffdf7;
        font-size: 14px;
        box-sizing: border-box;
    }
    .btn-save {
        padding: 10px 18px;
        background: #b49367;
        border: 1px solid #8c6f4d;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }
    .btn-save:hover { background: #9b7f56; }
    .alert-success,
    .alert-error {
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    .alert-success {
        background: #d9f5d2;
        border: 1px solid #8bc98b;
    }
    .alert-error {
        background: #fddede;
        border: 1px solid #d38b8b;
    }


/* ---- styles from edit_findbb.php ---- */
body {
            background-color: #f5f2e9;
            font-family: Arial, sans-serif;
        }
        .admin-top-menu {
            max-width: 1200px;
            margin: 10px auto;
            background-color: #e2d3b5;
            border: 1px solid #c0a983;
            padding: 8px 12px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .admin-top-menu a {
            text-decoration: none;
            color: #4b3520;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 3px;
        }
        .admin-top-menu a:hover {
            background-color: #d3c1a5;
        }
        .container {
            max-width: 1200px;
            margin: 10px auto 20px auto;
            background: #fffaf0;
            border: 1px solid #d3c1a5;
            padding: 20px;
            display: flex;
            gap: 20px;
        }
        .left-panel, .right-panel {
            flex: 1;
        }
        h1 {
            max-width: 1200px;
            margin: 10px auto 5px auto;
        }
        .message {
            max-width: 1200px;
            margin: 0 auto 10px auto;
            padding: 10px;
            border-radius: 4px;
        }
        .message.success {
            background-color: #d9f5d3;
            border: 1px solid #8ac28a;
        }
        .message.error {
            background-color: #fddede;
            border: 1px solid #e09b9b;
        }
        label {
            display: block;
            font-weight: bold;
            margin-top: 8px;
        }
        input[type="text"],
        input[type="date"],
        textarea,
        select {
            width: 100%;
            padding: 6px;
            border: 1px solid #cbb79a;
            border-radius: 3px;
            background-color: #fffaf5;
        }
        textarea {
            min-height: 80px;
        }
        .image-block {
            margin-bottom: 15px;
            border: 1px solid #d3c1a5;
            padding: 10px;
            background-color: #fdf7ec;
        }
        .image-block img {
            max-width: 100%;
            max-height: 200px;
            display: block;
            margin-bottom: 8px;
            border: 1px solid #cbb79a;
        }
        .extra-images-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .extra-image-item {
            width: 120px;
            border: 1px solid #d3c1a5;
            padding: 5px;
            background-color: #fff;
            text-align: center;
        }
        .extra-image-item img {
            max-width: 100%;
            max-height: 90px;
            display: block;
            margin-bottom: 5px;
        }
        .buttons {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        .buttons button {
            padding: 8px 16px;
            border-radius: 3px;
            border: 1px solid #8c6f4d;
            background-color: #b49367;
            color: #fff;
            cursor: pointer;
        }
        .buttons button:hover {
            background-color: #9b7f56;
        }


/* Dark mode adjustments for period timeline */
body.dark-mode .timeline-legend {
    background-color: #181818 !important;
    color: #f3f3f3 !important;
    border-color: #333 !important;
}

body.dark-mode .timeline-content {
    background-color: #181818 !important;
    color: #f3f3f3 !important;
    border-color: #333 !important;
}

body.dark-mode .timeline-title,
body.dark-mode .timeline-desc,
body.dark-mode .timeline-empty {
    color: #f3f3f3 !important;
}


/* Dark mode fix for featured finds (3D Sehara vitrina) */
body.dark-mode .vitrina-title,
body.dark-mode .vitrina-title a,
body.dark-mode .vitrina-type,
body.dark-mode .vitrina-meta span {
    color: #f3f3f3 !important;
}

body.dark-mode .vitrina-title a:hover {
    color: #ffe1a3 !important;
}



/* === FINAL DARK MODE GLOBAL FIXES (featured cards + forms) === */
body.dark-mode .featured-box,
body.dark-mode .featured-grid,
body.dark-mode .featured-card {
    background-color: #181818 !important;
    border-color: #333 !important;
    color: #f3f3f3 !important;
}

body.dark-mode .featured-header h2,
body.dark-mode .featured-header span,
body.dark-mode .featured-title,
body.dark-mode .featured-title a,
body.dark-mode .featured-meta,
body.dark-mode .badge-type,
body.dark-mode .badge-material {
    color: #f3f3f3 !important;
}

body.dark-mode .badge-type,
body.dark-mode .badge-material {
    background-color: #3b2e1d !important;
}

/* forme na index.php (prijava detektoriste, unos nalaza) */
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="date"],
body.dark-mode select,
body.dark-mode textarea {
    background-color: #262626 !important;
    border-color: #666 !important;
    color: #f3f3f3 !important;
}

body.dark-mode .field label,
body.dark-mode .hint,
body.dark-mode .message-error,
body.dark-mode .message-ok {
    color: #f3f3f3 !important;
}

body.dark-mode .message-error {
    background-color: #4a2626 !important;
    border-color: #b87171 !important;
}

body.dark-mode .message-ok {
    background-color: #1d3a24 !important;
    border-color: #4f8b5d !important;
}

/* === LIGHT MODE INPUT/TEXTAREA VIDLJIVOST === */
body:not(.dark-mode) input[type="text"],
body:not(.dark-mode) input[type="password"],
body:not(.dark-mode) input[type="email"],
body:not(.dark-mode) input[type="date"],
body:not(.dark-mode) input[type="number"],
body:not(.dark-mode) select,
body:not(.dark-mode) textarea {
    background-color: #fffdf7 !important;
    border-color: #b9a788 !important;
    color: #2f2b24 !important;
}
/* === DARK MODE – STATISTIKA MUZEJA (statistika_muzej.php) === */

/* Tamne kartice za sve gornje statističke blokove */
body.dark-mode .page-wrapper .stats-grid > div,
body.dark-mode .page-wrapper .stat-card,
body.dark-mode .page-wrapper .stat-box,
body.dark-mode .page-wrapper .summary-card,
body.dark-mode .page-wrapper .summary-grid > div {
    background: #26211a !important;
    border: 1px solid #8e7a54 !important;
    color: #f9ecd0 !important;
}

/* Naslovi sekcija (NAJAKTIVNIJE LOKACIJE, NAJAKTIVNIJI DETEKTORISTI...) */
body.dark-mode .page-wrapper h2,
body.dark-mode .page-wrapper .section-title {
    color: #f5e3bf !important;
}

/* Velike brojke (12, 1, 3...) */
body.dark-mode .page-wrapper .stat-value,
body.dark-mode .page-wrapper .big-number,
body.dark-mode .page-wrapper .stat-number {
    color: #fdf1c2 !important;
}

/* Bedževi "12 nalaza", "4 nalaza" itd. */
body.dark-mode .page-wrapper .badge,
body.dark-mode .page-wrapper .stat-badge {
    background: rgba(244, 209, 145, 0.2) !important;
    border: 1px solid #c9973b !important;
    color: #f9e8c8 !important;
}

/* Linije unutar kartica da ne budu presvijetle */
body.dark-mode .page-wrapper hr {
    border-color: rgba(201, 151, 59, 0.4) !important;
}
/* === DARK MODE – PROFIL / INFO BOX === */

/* Plavi info box na profilu (i ostalim stranicama) u dark modu */
body.dark-mode .alert,
body.dark-mode .alert-info,
body.dark-mode .profile-info-box {
    background: #26211a !important;      /* tamni panel */
    border: 1px solid #8e7a54 !important;/* zlatni okvir */
    color: #f9ecd0 !important;           /* svijetli tekst */
}

/* Podebljani dijelovi teksta da budu još jasniji */
body.dark-mode .alert strong,
body.dark-mode .alert-info strong,
body.dark-mode .profile-info-box strong {
    color: #ffffff !important;
}

/* === DARK MODE – BADGE-OVI NALAZA (Status: approved, kovanica, drugi nalaz) === */

body.dark-mode .badge,
body.dark-mode .status-badge,
body.dark-mode .badge-status,
body.dark-mode .find-tag,
body.dark-mode .find-badge {
    background: rgba(241, 203, 142, 0.15) !important;  /* blago zlatna providna */
    border: 1px solid #c8a768 !important;             /* zlatni okvir */
    color: #fceec7 !important;                        /* svijetlija zlatno-bijela */
}

/* Tekst “Status:” prije badge-a */
body.dark-mode .status-label,
body.dark-mode .status-text {
    color: #f5e7c5 !important;
}
