/* ======================================================
   Wiki Greblje
   Unified stylesheet
   Canonical location: graves/static/graves/css/style.css
   Generated by consolidating the former style.css files.
   ====================================================== */

:root {
/* Typography */

    --font-small: 0.95rem;
    --font-normal: 1.05rem;
    --font-large: 1.3rem;
    --font-title: 2.4rem;

/* Spacing */

    --space-xs: .35rem;
    --space-sm: .75rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

/* Animation */

    --transition: .25s ease;

    --primary: #2c3e50;
    --secondary: #6c757d;
    --success: #198754;
    --background: #f8f9fa;
    --card-radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* =====================================================
   Wiki Greblje - Brand palette
===================================================== */

:root {
    --wg-green-950: #163c2f;
    --wg-green-900: #1d4d3a;
    --wg-green-800: #285f48;
    --wg-green-700: #3b7258;

    --wg-green-100: #e7f0eb;
    --wg-green-50: #f3f7f4;

    --wg-surface: #ffffff;
    --wg-background: #f5f7f5;

    --wg-text: #26312c;
    --wg-muted: #6d7972;
    --wg-border: #d9e1dc;

    --wg-warning: #9a6b19;
}

/* =====================================================
   BASE
===================================================== */

/* =====================================================
   LAYOUT
===================================================== */

/* =====================================================
   NAVIGATION
===================================================== */

.wg-site-body {
    background: var(--wg-background);
    color: var(--wg-text);
}


/* =====================================================
   Main navigation
===================================================== */

.wg-navbar {
    min-height: 82px;
    padding: 10px 0;

    background: var(--wg-green-950);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 4px 18px rgba(22, 60, 47, 0.12);
}


.wg-navbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-right: 24px;
    padding: 0;

    color: #fff !important;
}


.wg-navbar-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    flex-shrink: 0;
}


.wg-navbar-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.wg-navbar-title {
    color: #fff;

    font-size: 1.15rem;
    font-weight: 700;

    letter-spacing: 0.01em;
}


.wg-navbar-subtitle {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.72rem;
    font-weight: 400;

    white-space: nowrap;
}


.wg-navbar .nav-link {
    position: relative;

    margin: 0 1px;
    padding: 9px 9px !important;

    border-radius: 7px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.92rem;
    font-weight: 500;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}


.wg-navbar .nav-link:hover,
.wg-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}


.wg-navbar-add {
    margin-left: 7px !important;

    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;

    font-weight: 600 !important;
}


.wg-navbar-add:hover {
    background: rgba(255, 255, 255, 0.20) !important;
}


.wg-navbar-pending {
    color: #f2d28c !important;
}


.wg-navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}


.wg-navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.15);
}


/* Bootstrap toggler icon on our dark-green background */

.wg-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


@media (max-width: 1199.98px) {

    .wg-navbar {
        min-height: auto;
    }

    .wg-navbar .navbar-collapse {
        margin-top: 12px;
        padding-top: 12px;

        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .wg-navbar .nav-link {
        margin: 2px 0;
        padding: 9px 11px !important;
    }

    .wg-navbar-add {
        margin-left: 0 !important;
    }
}


@media (max-width: 576px) {

    .wg-navbar-logo {
        width: 50px;
        height: 50px;
    }

    .wg-navbar-title {
        font-size: 1.05rem;
    }

    .wg-navbar-subtitle {
        display: none;
    }
}



/* =====================================================
   HERO
===================================================== */


.hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 7rem 2rem;

    background:
    linear-gradient(
        90deg,
        rgba(18,18,18,.60) 0%,
        rgba(18,18,18,.42) 45%,
        rgba(18,18,18,.22) 100%
    ),
        url("../images/hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.hero-content {
    max-width: 760px;
    text-align: left;
}

.hero h1{

    font-size:3rem;

    font-weight:700;

}

.hero p{

    font-size:1.2rem;

    max-width:700px;

    margin-left: 0;

    margin-right: 0;

}

.hero .btn{

    min-width:180px;

}

.hero-search {
    max-width: 760px;
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-search {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
}

.hero {
    border: 1px solid rgba(59, 114, 88, 0.75);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(22, 60, 47, 0.06);
}

.hero h1 {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.30);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.wg-hero-primary {
    background: #fff;
    border: 1px solid #fff;
    color: var(--wg-green-950);
    font-weight: 600;
}

.wg-hero-primary:hover {
    background: var(--wg-green-100);
    border-color: var(--wg-green-100);
    color: var(--wg-green-950);
}

.wg-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #fff;
    font-weight: 600;
}

.wg-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    color: #fff;
}

.hero-search .input-group-text {
    background: #fff;
    border-color: #fff;
    color: var(--wg-green-800);
}

.hero-search .form-control {
    border-color: #fff;
}

.hero-search .form-control:focus {
    border-color: var(--wg-green-100);
    box-shadow: none;
}

.wg-search-button {
    min-width: 120px !important;
    background: var(--wg-green-900);
    border-color: var(--wg-green-900);
    color: #fff;
    font-weight: 600;
}

.wg-search-button:hover {
    background: var(--wg-green-800);
    border-color: var(--wg-green-800);
    color: #fff;
}

/* Home actions */

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-actions .btn {
    padding: .85rem 1.4rem;
    font-weight: 600;
}



/* =====================================================
   BUTTONS
===================================================== */



/* Better mobile buttons */

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 1.2rem;
    }
    
    .hero h1{
        font-size:2.4rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center
    }

    .hero-actions .btn {
        width: 100%;
    }

    .input-group.hero-search {
        flex-direction: column;
        gap: .5rem;
    }

    .hero-search .form-control,
    .hero-search .btn {
        width: 100%;
        border-radius: .5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* =====================================================
   FORMS
===================================================== */

/* =====================================================
   STATISTICS
===================================================== */

.stat-section {
    margin-top: 2rem;
}

.stat-card {
    position: relative;
    overflow: hidden;

    border: 1px solid var(--wg-border);
    border-radius: 14px;

    background: var(--wg-surface);

    box-shadow: 0 3px 12px rgba(22, 60, 47, 0.06);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--wg-green-700);
}

.stat-card:hover {
    transform: translateY(-3px);

    border-color: rgba(22, 60, 47, 0.22);

    box-shadow: 0 8px 22px rgba(22, 60, 47, 0.10);
}

.stat-card .card-body {
    padding: 1.6rem 1rem;
}

.stat-icon {
    display: block;

    margin-bottom: 0.65rem;

    color: var(--wg-green-700);

    font-size: 1.4rem;
}

.stat-card h2 {
    margin-bottom: 0.25rem;

    color: var(--wg-green-950);

    font-size: 2rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--wg-muted);
    font-weight: 500;
}



/* =====================================================
   SHARED COMPONENTS
===================================================== */

/* =====================================================
   GRAVE CARD
===================================================== */

/* Grave card */

.grave-card {
    overflow: hidden;
}

.grave-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #e9ecef;
}

.grave-card .card-body {
    padding: 1.25rem;
}

.grave-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.grave-card-meta {
    color: #6c757d;
    font-size: .98rem;
    margin-bottom: .75rem;
}

.grave-card-text {
    font-size: 1.02rem;
    line-height: 1.55;
}

.grave-card .btn {
    font-weight: 600;
}

@media (max-width: 576px) {
    .grave-card-image {
        height: 260px;
    }

    .grave-card-title {
        font-size: 1.35rem;
    }
}


/* =====================================================
   Home section headings
===================================================== */

.wg-home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1.25rem;
}

.wg-home-section-heading-spaced {
    margin-top: 3.5rem;
}

.wg-home-section-kicker {
    display: block;
    margin-bottom: .25rem;

    color: var(--wg-green-700);

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wg-home-section-heading h2 {
    margin: 0;

    color: var(--wg-green-950);

    font-size: 1.75rem;
    font-weight: 700;
}


/* =====================================================
   Home grave cards
===================================================== */

.grave-card {
    border: 1px solid var(--wg-border);
    border-radius: 14px;

    background: var(--wg-surface);

    box-shadow: 0 3px 12px rgba(22, 60, 47, 0.06);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.grave-card:hover {
    transform: translateY(-3px);

    border-color: rgba(22, 60, 47, 0.20);

    box-shadow: 0 10px 24px rgba(22, 60, 47, 0.10);
}

.grave-card-title {
    color: var(--wg-green-950);
}

.grave-card-meta {
    color: var(--wg-green-700);
    font-weight: 600;
}

.grave-card-text {
    color: var(--wg-text);
}

.wg-card-action {
    border: 1px solid var(--wg-green-700);

    background: transparent;
    color: var(--wg-green-800);

    font-weight: 600;
}

.wg-card-action:hover {
    background: var(--wg-green-800);
    border-color: var(--wg-green-800);

    color: #fff;
}


/* =====================================================
   Home photo cards
===================================================== */

.photo-card {
    overflow: hidden;

    border: 1px solid var(--wg-border);
    border-radius: 14px;

    background: var(--wg-surface);

    box-shadow: 0 3px 12px rgba(22, 60, 47, 0.05);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.photo-card:hover {
    transform: translateY(-3px);

    border-color: rgba(22, 60, 47, 0.20);

    box-shadow: 0 9px 22px rgba(22, 60, 47, 0.09);
}

.wg-photo-card-image-link {
    display: block;
    overflow: hidden;
}

.photo-card-image {
    display: block;
    width: 100%;

    transition: transform .25s ease;
}

.photo-card:hover .photo-card-image {
    transform: scale(1.035);
}

.photo-title a {
    color: var(--wg-green-950);

    text-decoration: none;
    font-weight: 700;
}

.photo-title a:hover {
    color: var(--wg-green-700);
}

.photo-meta {
    color: var(--wg-muted);
}


/* =====================================================
   PHOTO CARD
===================================================== */


.photo-card{
    overflow:hidden;
}

.photo-card-image{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:var(--transition);

}

.photo-card:hover .photo-card-image{

    transform:scale(1.03);

}

.photo-card .card-body{

    padding:1rem;

}

.photo-title{

    font-weight:600;

    font-size:1rem;

    margin-bottom:.4rem;

}

.photo-meta{

    color:#6c757d;

    font-size:.92rem;

}



/* =====================================================
   CEMETERY CARD
===================================================== */
/* =====================================================
   Cemetery Card v1
   Sprint 2 - Discovery
===================================================== */

.cemetery-card {
    border: 1px solid rgba(44, 62, 80, 0.14);
    border-left: 5px solid var(--primary);
    border-radius: var(--card-radius);
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.cemetery-card .card-body {
    padding: 1.4rem 1.5rem;
}

.cemetery-card:hover {
    transform: translateY(-3px);
    border-left-color: var(--success);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.cemetery-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.cemetery-title i {
    font-size: 1.15rem;
}

.cemetery-description {
    color: #5f6871;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: .8rem 0 0;
}

.cemetery-card .btn {
    min-width: 145px;
    font-weight: 600;
}


/* =====================================================
   CONTENT CARD
===================================================== */

/* =====================================================
   Content Card
   Shared Component
===================================================== */

.content-card {
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--card-radius);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-card .card-body {
    padding: 1.75rem;
}


/* =====================================================
   CEMETERY DETAIL
===================================================== */


/* =====================================================
   Cemetery Detail v1
   Sprint 2 - Discovery
===================================================== */

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

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

.cemetery-detail-header,
.cemetery-gallery,
.cemetery-graves-section + .content-card{
    border-left: 5px solid var(--primary);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
    font-size: 1.5rem;
}

.cemetery-detail-title {
    color: var(--primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cemetery-detail-location {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.cemetery-detail-description {
    max-width: 900px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

#map {
    width: 100%;
    height: 520px;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.grave-count-badge {
    min-width: 48px;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
}

.grave-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 230px;
    background: #e9ecef;
    color: #6c757d;
}

.grave-card-placeholder i {
    font-size: 2rem;
}

.grave-card-image-link {
    display: block;
    overflow: hidden;
}

.grave-card-image-link .grave-card-image {
    transition: transform var(--transition);
}

.grave-card:hover .grave-card-image {
    transform: scale(1.03);
}

.grave-card-persons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.empty-state {
    padding: 3rem 1.25rem;
    border: 1px dashed rgba(44, 62, 80, 0.25);
    border-radius: var(--card-radius);
    background: #fff;
    text-align: center;
}

.empty-state i {
    display: block;
    color: var(--primary);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.empty-state h3 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.empty-state p {
    color: #6c757d;
}

.map-popup {
    width: 190px;
}

.map-popup-image {
    width: 100%;
    max-height: 125px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.map-popup-title {
    display: block;
    margin-bottom: 0.25rem;
}

.map-popup-persons {
    margin-bottom: 0.35rem;
}

.map-popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}


/* =====================================================
   Grave Detail Hero
===================================================== */

.grave-header{

    border-left:5px solid var(--primary);

}

.grave-header .card-body{
    padding:2rem;
}

.grave-title{

    font-size:clamp(2rem,4vw,2.7rem);

    color:var(--primary);

    font-weight:700;

    margin-bottom:.4rem;

}

.grave-location{

    color:#6c757d;

    font-size:1.05rem;

    margin-bottom:1rem;

}

.grave-intro{

    font-size:1.05rem;

    line-height:1.7;

    margin-bottom:0;

    max-width:900px;

}

.grave-meta{

    display:flex;

    flex-wrap:wrap;

    gap:.8rem;

}

.grave-chip{

    display:flex;

    align-items:center;

    gap:.45rem;

    background:#f8f9fa;

    border:1px solid rgba(44,62,80,.12);

    border-radius:999px;

    padding:.65rem 1rem;

    font-size:.95rem;

    color:#495057;

}

.grave-chip i{

    color:var(--primary);

}



/* =====================================================
   Person Card v1
   Sprint 2 - Discovery
===================================================== */

.person-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #fff;
    transition: var(--transition);
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.person-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
    font-size: 1.3rem;
}

.person-card-content {
    min-width: 0;
    flex-grow: 1;
}

.person-card-name {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.person-card-dates {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.person-card-date-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.person-card-notes {
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   Memorial Record v1
   Sprint 2 - Discovery
===================================================== */

.memorial-section .section-title {
    margin-bottom: 1.75rem;
}

.record-block {
    padding: 1.4rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-left: 5px solid var(--primary);
    border-radius: var(--card-radius);
    background: #fafafa;
    transition: var(--transition);
}

.record-block:last-child {
    margin-bottom: 0;
}

.record-block:hover {
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.record-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.record-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
    font-size: 1.15rem;
}

.record-title {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.record-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.record-content {
    color: #343a40;
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.inscription-content {
    font-size: 1.12rem;
    letter-spacing: 0.01em;
}

.record-empty {
    color: #6c757d;
    font-style: italic;
}

/* =====================================================
   Grave Location v1
   Sprint 2 - Discovery
===================================================== */

#graveMap {
    width: 100%;
    height: 440px;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.grave-location-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.grave-location-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.grave-location-meta i {
    color: var(--primary);
}

/* =====================================================
   Nearby Graves Card v1
   Sprint 2 - Discovery
===================================================== */

.nearby-grave-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #fff;
    transition: var(--transition);
}

.nearby-grave-card:hover {
    transform: translateY(-2px);
    border-color: rgba(44, 62, 80, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.nearby-grave-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
    font-size: 1.2rem;
}

.nearby-grave-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.nearby-grave-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.nearby-grave-distance {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.nearby-grave-cemetery {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.nearby-grave-card .btn {
    font-weight: 600;
}

.nearby-graves-note {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 1.25rem 0 0;
    text-align: center;
}

/* =====================================================
   Related Person Card v1
   Sprint 2 - Discovery
===================================================== */

.related-person-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #fff;
    transition: var(--transition);
}

.related-person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.related-person-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
    font-size: 1.2rem;
}

.related-person-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.related-person-name {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.related-person-dates {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.related-person-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =====================================================
   Comments v1
   Sprint 2 - Discovery
===================================================== */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    padding: 1.35rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #fafafa;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
}

.comment-author {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.88rem;
    margin: 0;
}

.comment-text {
    color: #343a40;
    line-height: 1.7;
}

.comment-photo-link {
    display: inline-block;
    margin-top: 1rem;
}

.comment-photo {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--card-radius);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.add-comment-card {
    padding: 1.4rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #f8f9fa;
}

.add-comment-title {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem;
    margin-top: 1.5rem;
    border-radius: var(--card-radius);
    background: #f8f9fa;
    color: #6c757d;
}

.login-message i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* =====================================================
   Edit History v1
   Sprint 2 - Discovery
===================================================== */

.edit-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-history-card {
    padding: 1.35rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--card-radius);
    background: #fff;
}

.edit-history-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.edit-history-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--primary);
}

.edit-history-field {
    color: var(--primary);
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.edit-history-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.history-value {
    height: 100%;
    padding: 1rem;
    border-radius: 10px;
}

.history-value-old {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.16);
}

.history-value-new {
    background: rgba(25, 135, 84, 0.06);
    border: 1px solid rgba(25, 135, 84, 0.16);
}

.history-value-label {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.history-value-content {
    color: #343a40;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

  /* ==========================================
       Sprint 3 — Digitalizacija groba
       Korak 1: gornja navigacija i Hero Card
    ========================================== */

    .grave-entry-back {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        margin-bottom: 1rem;
        color: #52625a;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .grave-entry-back:hover {
        color: #234a37;
        transform: translateX(-2px);
    }

    .grave-entry-hero {
        overflow: hidden;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(36, 74, 55, 0.12);
        border-radius: 22px;
        background:
            linear-gradient(
                135deg,
                rgba(36, 74, 55, 0.98),
                rgba(50, 94, 70, 0.92)
            );
        color: #fff;
        box-shadow: 0 18px 45px rgba(25, 50, 37, 0.14);
    }

    .grave-entry-hero__body {
        padding: clamp(1.35rem, 3vw, 2.4rem);
    }

    .grave-entry-hero__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        margin-bottom: 0.8rem;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.76);
    }

    .grave-entry-hero h1 {
        margin-bottom: 0.75rem;
        font-size: clamp(1.8rem, 4vw, 2.75rem);
        font-weight: 750;
        line-height: 1.12;
    }

    .grave-entry-hero__intro {
        max-width: 760px;
        margin-bottom: 1.6rem;
        color: rgba(255, 255, 255, 0.84);
        font-size: 1rem;
        line-height: 1.7;
    }

    .grave-entry-hero__panel {
        padding: 1.1rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.09);
        backdrop-filter: blur(6px);
    }

    .grave-entry-hero__label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .grave-entry-hero select {
        width: 100%;
        min-height: 48px;
        padding: 0.65rem 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.38);
        border-radius: 12px;
        background-color: #fff;
        color: #26362e;
    }

    .grave-entry-hero select:focus {
        border-color: #d6eadf;
        outline: 0;
        box-shadow: 0 0 0 0.22rem rgba(214, 234, 223, 0.24);
    }

    .grave-entry-hero__summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        height: 100%;
    }

    .grave-entry-summary-item {
        padding: 0.9rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 14px;
        background: rgba(18, 45, 31, 0.2);
    }

    .grave-entry-summary-item__label {
        display: block;
        margin-bottom: 0.25rem;
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .grave-entry-summary-item__value {
        display: block;
        font-weight: 700;
        color: #fff;
    }

    .grave-entry-hero__actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 1rem;
    }

    .grave-entry-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0.6rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        color: #fff;
        font-weight: 650;
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .grave-entry-cancel:hover {
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    #map {
        height: 450px;
        border-radius: 12px;
        margin-bottom: 20px;
    }


/* =====================================================
   FOOTER
===================================================== */

.footer {

    margin-top: 5rem;

    padding: 3rem 0;

    background: #212529;

    color: rgba(255,255,255,.85);

}

.footer h5 {

    font-weight:700;

    margin-bottom:1rem;

}

.footer p {

    color:rgba(255,255,255,.75);

    margin-bottom:.5rem;

}

.footer small{

    color:rgba(255,255,255,.55);

}


/* =====================================================
   HOME
===================================================== */


/* =====================================================
   Section Heading
   Shared Component
===================================================== */

.section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.section-title i {
    font-size: 1.25rem;
}

.section-intro {
    color: #6c757d;
    line-height: 1.6;
    margin-top: -0.65rem;
    margin-bottom: 1.25rem;
}


/* ==========================================
   Location Card
========================================== */

.location-card {
    margin-top: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(31, 75, 57, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 75, 57, 0.08);
}

/* Header */

.location-card .content-card__header {
    padding: 1.5rem 1.5rem 1.25rem;
}

.location-card .content-card__header h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: #234f3b;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

.location-card .content-card__header h2 i {
    color: #39785a;
    font-size: 1.35rem;
}

.location-card .content-card__header p {
    max-width: 760px;
    margin: 0.65rem 0 0;
    color: #66736c;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Glavni raspored */

.location-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    padding: 0 1.5rem 1.5rem;
}

/* Mapa */

.location-card__map {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 75, 57, 0.12);
    border-radius: 14px;
    background: #eef4f0;
}

.location-card__map #map {
    width: 100%;
    height: 430px;
    min-height: 430px;
}

/* Desni informacijski panel */

.location-card__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status lokacije */

.status-box {
    padding: 1rem;
    background: #f3f7f4;
    border: 1px solid rgba(31, 75, 57, 0.1);
    border-radius: 12px;
}

.status-box__label {
    display: block;
    margin-bottom: 0.45rem;
    color: #738078;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-box .status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #59655f;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.status-box .status.completed {
    color: #2f7553;
}

/* Koordinate */

.coordinate-box {
    padding: 0.9rem 1rem;
    background: #fafcfb;
    border: 1px solid rgba(31, 75, 57, 0.11);
    border-radius: 12px;
}

.coordinate-box label {
    display: block;
    margin-bottom: 0.35rem;
    color: #738078;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coordinate-box input {
    width: 100%;
    padding: 0;
    color: #264f3d;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.coordinate-box input::placeholder {
    color: #9ba69f;
}

/* GPS dugme */

.location-card__info .btn {
    min-height: 48px;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border: 1px solid #39785a;
    border-radius: 12px;
    color: #2f6c50;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: normal;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.location-card__info .btn:hover {
    color: #ffffff;
    background: #39785a;
    border-color: #39785a;
    box-shadow: 0 8px 18px rgba(57, 120, 90, 0.18);
    transform: translateY(-1px);
}

.location-card__info .btn:focus-visible {
    outline: 3px solid rgba(57, 120, 90, 0.22);
    outline-offset: 2px;
}

/* ==========================================
   Gallery Card
========================================== */

.gallery-card {
    margin-top: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(31, 75, 57, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 75, 57, 0.08);
}

.gallery-card .content-card__header {
    padding: 1.5rem 1.5rem 1.1rem;
}

.gallery-card .content-card__header h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: #234f3b;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

.gallery-card .content-card__header h2 i {
    color: #39785a;
    font-size: 1.3rem;
}

.gallery-card .content-card__header p {
    max-width: 780px;
    margin: 0.65rem 0 0;
    color: #66736c;
    font-size: 0.95rem;
    line-height: 1.65;
}

.gallery-card__body {
    padding: 0 1.5rem 1.5rem;
}

/* Upload zona */

.gallery-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 110px;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    background: #f7faf8;
    border: 1.5px dashed rgba(57, 120, 90, 0.42);
    border-radius: 14px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.gallery-upload:hover {
    background: #f1f7f3;
    border-color: #39785a;
    box-shadow: 0 8px 20px rgba(57, 120, 90, 0.08);
    transform: translateY(-1px);
}

.gallery-upload:focus-within {
    border-color: #39785a;
    box-shadow: 0 0 0 3px rgba(57, 120, 90, 0.14);
}

.gallery-upload__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    color: #39785a;
    background: #eaf3ed;
    border-radius: 50%;
    font-size: 1.35rem;
}

.gallery-upload__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery-upload__content strong {
    color: #264f3d;
    font-size: 1rem;
    font-weight: 700;
}

.gallery-upload__content span {
    color: #748078;
    font-size: 0.88rem;
    line-height: 1.45;
}

.gallery-upload__action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    color: #2f6c50;
    background: #ffffff;
    border: 1px solid #39785a;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Input ostaje dostupan, ali vizuelno skriven */

.gallery-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Preview */

.gallery-preview {
    margin-top: 1.25rem;
}

.gallery-empty-state {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 82px;
    padding: 1rem;
    color: #748078;
    background: #fafcfb;
    border: 1px solid rgba(31, 75, 57, 0.1);
    border-radius: 12px;
}

.gallery-empty-state > i {
    color: #7c9a89;
    font-size: 1.4rem;
}

.gallery-empty-state div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gallery-empty-state strong {
    color: #4f5f56;
    font-size: 0.9rem;
}

.gallery-empty-state span {
    font-size: 0.84rem;
    line-height: 1.45;
}

.gallery-preview__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-preview__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #edf3ef;
    border: 1px solid rgba(31, 75, 57, 0.12);
    border-radius: 12px;
}

.gallery-preview__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-preview__number {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 0.45rem;
    color: #ffffff;
    background: rgba(28, 65, 48, 0.82);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gallery-preview__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 1.4rem 0.65rem 0.55rem;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(17, 35, 27, 0.82),
        transparent
    );
    font-size: 0.74rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Broj odabranih fotografija */

.gallery-selection-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    color: #647169;
    font-size: 0.85rem;
}

.gallery-selection-status strong {
    color: #2f6c50;
}

/* Helper i greške */

.gallery-card__helper {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: #66736c;
    background: #f6f9f7;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.gallery-card__helper i {
    margin-top: 0.15rem;
    color: #39785a;
}

.gallery-card__errors {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    color: #8a302f;
    background: #fff4f3;
    border: 1px solid #efcfcc;
    border-radius: 10px;
    font-size: 0.85rem;
}

.gallery-card__errors ul {
    margin: 0;
    padding-left: 1.2rem;
}


/* ==========================================
   Person Card
========================================== */

.person-card {
    margin-top: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(31, 75, 57, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 75, 57, 0.08);
}

.person-card .content-card__header {
    padding: 1.5rem 1.5rem 1.1rem;
}

.person-card .content-card__header h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: #234f3b;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

.person-card .content-card__header h2 i {
    color: #39785a;
    font-size: 1.3rem;
}

.person-card .content-card__header p {
    max-width: 780px;
    margin: 0.65rem 0 0;
    color: #66736c;
    font-size: 0.95rem;
    line-height: 1.65;
}

.person-card__body {
    padding: 0 1.5rem 1.5rem;
}

/* Pregled osobe */

.person-card__identity-text > span:last-child {
    color: #6e7a73;
    font-size: 0.87rem;
}

/* Forma */

.person-field__helper {
    display: block;
    margin-top: 0.45rem;
    color: #7a857e;
    font-size: 0.78rem;
    line-height: 1.45;
}


.person-field__errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Donji helper */

.person-card__helper {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: #66736c;
    background: #f6f9f7;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.person-card__helper i {
    margin-top: 0.15rem;
    color: #39785a;
}

/* ==========================================
   Person Layout
========================================== */

.person-card__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ==========================================
   Left column
========================================== */

.person-card__visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.person-photo-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;

    background: #f5f8f6;

    border: 1px solid rgba(31,75,57,.10);
    border-radius: 16px;
}

.person-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.person-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #7c9587;

    background:
        linear-gradient(
            180deg,
            #f7faf8,
            #eef4f0
        );
}

.person-photo-fallback i {
    font-size: 5rem;
}

/* Upload */

.person-photo-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;

    min-height: 48px;

    cursor: pointer;

    color: #2f6c50;

    background: #ffffff;

    border: 1px dashed #39785a;
    border-radius: 12px;

    transition: .2s;
}

.person-photo-upload:hover {
    background: #f2f8f4;
}

.person-photo-input {

    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);

}

/* ==========================================
   Right column
========================================== */

.person-card__details {
    min-width: 0;
}

/* ==========================================
   Person Card – final two-column layout
========================================== */

/* Sprečava da globalni Content Card stil
   postavi naslov kao posebnu kolonu */
.person-card {
    display: block;
}

.person-card > .content-card__header {
    width: 100%;
}

/* Naslov ostaje iznad obje kolone */
.person-card__body {
    width: 100%;
}

/* Ispod naslova: fotografija + podaci */
.person-card__layout {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Lijeva kolona */

.person-card__visual {
    width: 100%;
    max-width: 240px;
}

/* Fotografija malo kompaktnija */

.person-photo-preview {
    width: 100%;
    aspect-ratio: 3 / 4;
}

/* Desna kolona zauzima ostatak prostora */

.person-card__details {
    width: 100%;
    min-width: 0;
}


.person-photo-preview[data-gender="male"]
.person-photo-fallback {
    background: linear-gradient(
        180deg,
        #f4f8f6,
        #e9f1ed
    );
}

.person-photo-preview[data-gender="female"]
.person-photo-fallback {
    background: linear-gradient(
        180deg,
        #f8f7f4,
        #f0eee8
    );
}

.person-photo-preview[data-gender="unknown"]
.person-photo-fallback {
    background: linear-gradient(
        180deg,
        #f7faf8,
        #eef4f0
    );
}

/* ==================================================
   EVIDENCIJA GROBA
================================================== */

.record-card {
    overflow: hidden;
}

.record-card__body {
    display: grid;
    gap: 24px;
    padding: 24px;
}

.record-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 18px 20px;

    background: #f5f8f5;
    border: 1px solid #dfe8df;
    border-radius: 14px;
}

.record-summary > i {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    font-size: 1.15rem;
    color: #42684c;

    background: #e7efe8;
    border-radius: 50%;
}

.record-summary strong {
    display: block;
    margin-bottom: 4px;

    color: #26382c;
    font-size: 0.98rem;
    font-weight: 700;
}

.record-summary span {
    display: block;

    color: #6b756e;
    font-size: 0.88rem;
    line-height: 1.5;
}


/* Polja unutar Evidencije */

.record-card .person-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-card .person-field label {
    color: #2d3831;
    font-size: 0.9rem;
    font-weight: 650;
}

.record-card select,
.record-card textarea {
    width: 100%;

    color: #2c352f;
    background: #ffffff;

    border: 1px solid #d9dfda;
    border-radius: 11px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.record-card select {
    min-height: 46px;
    padding: 0 14px;
}

.record-card textarea {
    min-height: 180px;
    padding: 14px 16px;

    line-height: 1.65;
    resize: vertical;
}

.record-card select:hover,
.record-card textarea:hover {
    border-color: #bdc9bf;
}

.record-card select:focus,
.record-card textarea:focus {
    border-color: #64846d;
    box-shadow: 0 0 0 4px rgba(80, 117, 91, 0.12);
}

.record-card textarea::placeholder {
    color: #a1aaa4;
}


/* Helper ispod bilješki */

.record-card__helper {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px 16px;

    color: #68726b;
    background: #fafbf9;
    border: 1px dashed #d6ddd7;
    border-radius: 11px;

    font-size: 0.84rem;
    line-height: 1.55;
}

.record-card__helper i {
    flex-shrink: 0;
    margin-top: 2px;

    color: #66806d;
}

.person-field__helper {
    color: #7b847e;
    font-size: 0.8rem;
    line-height: 1.5;
}

.person-field__errors {
    color: #b44242;
    font-size: 0.82rem;
}


/* ==================================================
   ZAVRŠETAK DIGITALIZACIJE
================================================== */

.submit-card {
    padding: 0;
    overflow: hidden;

    border: 1px solid #d8e3da;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdfb 100%
        );
}

.submit-card__header {
    padding: 30px 28px 24px;

    text-align: center;

    border-bottom: 1px solid #e4e9e5;
}

.submit-card__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: #4f7459;

    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(55, 91, 66, 0.18);
}

.submit-card__icon i {
    font-size: 1.55rem;
}

.submit-card__header h2 {
    margin: 0 0 9px;

    color: #25342a;
    font-size: 1.28rem;
    font-weight: 750;
}

.submit-card__header p {
    max-width: 570px;
    margin: 0 auto;

    color: #6c756f;
    font-size: 0.9rem;
    line-height: 1.65;
}


/* Checklist */

.submit-card__checklist {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;

    padding: 24px 28px;
}

.check-item {
    min-height: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 14px 10px;

    color: #59645c;
    background: #f7faf7;

    border: 1px solid #e0e8e1;
    border-radius: 12px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.check-item:hover {
    transform: translateY(-2px);

    border-color: #c8d6cb;
    box-shadow: 0 8px 18px rgba(49, 74, 56, 0.07);
}

.check-item > i:first-child {
    color: #587461;
    font-size: 1.15rem;
}

.check-item span {
    color: #334139;
    font-size: 0.82rem;
    font-weight: 650;
}

.check-item > i:last-child {
    color: #4f8a5d;
    font-size: 0.88rem;
}


/* Dugme */

.submit-card > button,
.submit-card .submit-button {
    width: calc(100% - 56px);
    min-height: 50px;
    margin: 0 28px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #ffffff;
    background: #416e4d;

    border: 0;
    border-radius: 11px;

    font-size: 0.94rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(54, 100, 66, 0.18);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.submit-card > button:hover,
.submit-card .submit-button:hover {
    transform: translateY(-1px);

    background: #355d40;
    box-shadow: 0 10px 22px rgba(54, 100, 66, 0.24);
}

.submit-card > button:active,
.submit-card .submit-button:active {
    transform: translateY(0);
}


/* Završna poruka */

.submit-card::after {
    content:
        "Hvala vam što doprinosite očuvanju kulturne i historijske baštine Bosne i Hercegovine.";

    display: block;

    padding: 0 28px 24px;

    color: #7a847d;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}


/* =====================================================
   Section Heading
===================================================== */

.section-title{

    display:flex;

    align-items:center;

    gap:.6rem;

    font-size:1.45rem;

    font-weight:700;

    margin-bottom:1.25rem;

    color:var(--primary);

}

/* Navbar */

.navbar-brand {
    letter-spacing: 0.3px;
}

.navbar .nav-link {
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.08);
}

.navbar .btn.nav-link {
    color: rgba(255,255,255,.75);
    text-align: left;
    padding-left: 12px;
}

.navbar .btn.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}


.stat-section{
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}


.stat-card{

    text-align:center;

    padding:2rem 1rem;

}

.stat-card h2{

    font-size:2.6rem;

    font-weight:700;

    color:var(--primary);

}

.stat-card p{

    margin:0;

    color:#666;

    font-size:1rem;

}


.stat-icon{

    font-size:2rem;

    color:var(--primary);

    display:block;

    margin-bottom:.5rem;

}



/* =====================================================
   RESPONSIVE
===================================================== */

/* Mobile navbar */

@media (max-width: 991.98px) {
    .navbar {
        margin-bottom: 1rem !important;
    }

    .navbar .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .navbar-nav {
        gap: 4px;
    }

    .navbar .nav-link,
    .navbar .btn.nav-link {
        width: 100%;
        display: block;
        text-align: left;
        padding: 10px 12px;
    }
}

body{
    background: var(--background);
}

.card{
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

img{
    max-width:100%;
    height:auto;
}

@media (max-width: 768px) {
    .content-card .card-body {
        padding: 1.25rem;
    }

    .detail-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    #map {
        height: 390px;
    }
}

@media (max-width: 576px) {
    .cemetery-detail-header .d-flex {
        flex-direction: column;
    }

    .cemetery-detail-title {
        font-size: 1.85rem;
    }

    #map {
        height: 340px;
    }

    #clearGraveSearch {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

@media (max-width: 768px) {
    .grave-gallery-image {
        height: 320px;
    }

    .grave-gallery-zoom {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 576px) {
    .grave-gallery-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .person-card {
        padding: 1.15rem;
    }

    .person-card-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .person-card-name {
        font-size: 1.2rem;
    }
}

@media(max-width:768px){

.record-block{

padding:1.1rem;

}

.record-title{

font-size:1rem;

}

}

@media (max-width: 576px) {
    .record-block {
        padding: 1.15rem;
    }

    .record-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .record-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    #graveMap {
        height: 360px;
    }
}

@media (max-width: 576px) {
    #graveMap {
        height: 310px;
    }

    .grave-location-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .grave-location-meta .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nearby-grave-card {
        padding: 1.1rem;
    }

    .nearby-grave-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .nearby-grave-title {
        font-size: 1.12rem;
    }
}

@media (max-width: 576px) {
    .related-person-card,
    .comment-card,
    .edit-history-card,
    .add-comment-card {
        padding: 1.1rem;
    }

    .related-person-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .comment-actions {
        justify-content: stretch;
    }

    .comment-actions .btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .location-card__body {
        grid-template-columns: 1fr;
    }

    .location-card__map #map {
        height: 390px;
        min-height: 390px;
    }

    .location-card__info .btn {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .location-card {
        margin-top: 1rem;
        border-radius: 15px;
    }

    .location-card .content-card__header {
        padding: 1.2rem 1rem 1rem;
    }

    .location-card .content-card__header h2 {
        gap: 0.5rem;
        font-size: 1.25rem;
    }

    .location-card .content-card__header p {
        margin-top: 0.55rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .location-card__body {
        gap: 1rem;
        padding: 0 1rem 1rem;
    }

    .location-card__map #map {
        height: 360px;
        min-height: 360px;
    }

    .status-box,
    .coordinate-box {
        border-radius: 10px;
    }
}


    @media (max-width: 767.98px) {
        .grave-entry-hero {
            border-radius: 17px;
        }

        .grave-entry-hero__summary {
            grid-template-columns: 1fr;
            margin-top: 1rem;
        }

        .grave-entry-hero__actions {
            justify-content: stretch;
        }

        .grave-entry-cancel {
            width: 100%;
        }
    }
@media (max-width: 900px) {
    .gallery-preview__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gallery-upload {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gallery-upload__action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .gallery-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-card {
        margin-top: 1rem;
        border-radius: 15px;
    }

    .gallery-card .content-card__header {
        padding: 1.2rem 1rem 1rem;
    }

    .gallery-card .content-card__header h2 {
        gap: 0.5rem;
        font-size: 1.25rem;
    }

    .gallery-card .content-card__header p {
        margin-top: 0.55rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .gallery-card__body {
        padding: 0 1rem 1rem;
    }

    .gallery-upload {
        min-height: 0;
        padding: 1rem;
        border-radius: 12px;
    }

    .gallery-upload__icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .gallery-selection-status {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .person-form-grid {
        grid-template-columns: 1fr;
    }

    .person-field--full {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .person-card {
        margin-top: 1rem;
        border-radius: 15px;
    }

    .person-card .content-card__header {
        padding: 1.2rem 1rem 1rem;
    }

    .person-card .content-card__header h2 {
        gap: 0.5rem;
        font-size: 1.25rem;
    }

    .person-card .content-card__header p {
        margin-top: 0.55rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .person-card__body {
        padding: 0 1rem 1rem;
    }

    .person-card__identity {
        align-items: flex-start;
        padding: 0.95rem;
    }

    .person-card__avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width:900px){

    .person-card__layout{

        grid-template-columns:1fr;

    }

    .person-card__visual{

        max-width:320px;

        margin:0 auto;

        width:100%;

    }

}

@media (max-width: 780px) {
    .person-card__layout {
        grid-template-columns: 1fr;
    }

    .person-card__visual {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .person-card__details {
        width: 100%;
    }
}

@media (max-width: 800px) {

    .submit-card__checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .check-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {

    .record-card__body {
        gap: 20px;
        padding: 18px;
    }

    .record-summary {
        padding: 15px;
    }

    .submit-card__header {
        padding: 26px 20px 21px;
    }

    .submit-card__checklist {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .check-item,
    .check-item:last-child {
        grid-column: auto;

        min-height: auto;

        flex-direction: row;
        justify-content: flex-start;

        padding: 14px 16px;
        text-align: left;
    }

    .check-item span {
        flex: 1;
    }

    .submit-card > button,
    .submit-card .submit-button {
        width: calc(100% - 40px);
        margin-right: 20px;
        margin-left: 20px;
    }

    .submit-card::after {
        padding-right: 20px;
        padding-left: 20px;
    }
}



/* =====================================================
   DESIGN SYSTEM — WG CARD
   Shared foundation for all cards
===================================================== */

.wg-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(31, 75, 57, 0.10);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 75, 57, 0.08);
}

.wg-card--spaced {
    margin-top: 1.5rem;
}

.wg-card--interactive {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.wg-card--interactive:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 75, 57, 0.20);
    box-shadow: 0 14px 34px rgba(31, 75, 57, 0.12);
}

.wg-card__header {
    padding: 1.5rem 1.5rem 1.1rem;
}

.wg-card__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: #234f3b;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

.wg-card__title i {
    color: #39785a;
    font-size: 1.3rem;
}

.wg-card__description {
    max-width: 780px;
    margin: 0.65rem 0 0;
    color: #66736c;
    font-size: 0.95rem;
    line-height: 1.65;
}

.wg-card__body {
    padding: 0 1.5rem 1.5rem;
}

.wg-card__body--padded {
    padding: 1.5rem;
}

.wg-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(31, 75, 57, 0.10);
    background: #fafcfb;
}

/* =====================================================
   PERSON ENTRY
   Form section used while adding a grave
===================================================== */

.person-entry__body {
    min-width: 0;
}

.person-entry__layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.person-entry__visual {
    min-width: 0;
}

.person-entry__details {
    min-width: 0;
}

.person-entry__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: #f4f8f5;
    border: 1px solid rgba(31, 75, 57, 0.10);
    border-radius: 14px;
}

.person-entry__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    color: #39785a;
    background: #e4efe8;
    border-radius: 50%;
    font-size: 1.45rem;
}

.person-entry__identity-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.person-entry__eyebrow {
    color: #78847d;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.person-entry__identity-text strong {
    overflow-wrap: anywhere;
    color: #244e3b;
    font-size: 1.05rem;
    font-weight: 700;
}

.person-entry__identity-text > span:last-child {
    color: #6e7a73;
    font-size: 0.87rem;
}

.person-entry__helper {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: #66736c;
    background: #f6f9f7;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.person-entry__helper i {
    margin-top: 0.15rem;
    color: #39785a;
}

/* Temporary compatibility while templates are being renamed. */
.person-entry .person-card__layout { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.person-entry .person-card__visual,
.person-entry .person-card__details { min-width: 0; }



/* =====================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
===================================================== */

@media (max-width: 900px) {
    .person-entry__layout,
    .person-entry .person-card__layout {
        grid-template-columns: 1fr;
    }

    .person-entry__visual,
    .person-entry .person-card__visual {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .wg-card {
        border-radius: 14px;
    }

    .wg-card__header {
        padding: 1.25rem 1.15rem 1rem;
    }

    .wg-card__body {
        padding: 0 1.15rem 1.25rem;
    }

    .wg-card__body--padded {
        padding: 1.25rem 1.15rem;
    }

    .wg-card__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 1rem 1.15rem;
    }

    .wg-card__footer .btn {
        width: 100%;
    }

    .wg-card__title {
        font-size: 1.25rem;
    }

    .person-summary-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.9rem;
    }

    .person-summary-card__visual {
        width: 96px;
        min-height: 128px;
        aspect-ratio: 3 / 4;
    }

    .person-summary-card__name {
        font-size: 1.05rem;
    }

    .person-summary-card__date-text,
    .person-summary-card__notes {
        font-size: 0.88rem;
    }
}



/* =====================================================
   Footer
===================================================== */

.wg-footer {
    margin-top: 4rem;

    background: var(--wg-green-950);
    color: rgba(255, 255, 255, 0.82);

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wg-footer .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.wg-footer h5 {
    margin-bottom: .25rem;

    color: #fff;

    font-weight: 700;
}

.wg-footer p {
    margin-bottom: .25rem;

    color: rgba(255, 255, 255, 0.72);
}

.wg-footer small {
    color: rgba(255, 255, 255, 0.52);
}


/* =====================================================
   Page header
===================================================== */

.wg-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 2rem;
}

.wg-page-heading {
    max-width: 650px;
}

.wg-page-kicker {
    display: block;
    margin-bottom: .3rem;

    color: var(--wg-green-700);

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wg-page-heading h1 {
    margin: 0;

    color: var(--wg-green-950);

    font-weight: 700;
}

.wg-page-heading p {
    margin: .45rem 0 0;

    color: var(--wg-muted);
}

.wg-page-search {
    width: 100%;
    max-width: 430px;
}

.wg-page-search .input-group-text {
    background: var(--wg-surface);
    border-color: var(--wg-border);

    color: var(--wg-green-700);
}

.wg-page-search .form-control {
    border-color: var(--wg-border);
}

.wg-page-search .form-control:focus {
    border-color: var(--wg-green-700);

    box-shadow: 0 0 0 .15rem rgba(59, 114, 88, .10);
}

@media (max-width: 767.98px) {

    .wg-page-header {
        display: block;
    }

    .wg-page-search {
        max-width: none;
        margin-top: 1.25rem;
    }
}

/* =========================================================
   Admin navbar indicator
   ========================================================= */

.wg-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.wg-admin-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-radius: 50%;
    background: #d6a84b;
    box-shadow: 0 0 0 3px rgba(214, 168, 75, 0.16);
    flex-shrink: 0;
}