/* Public funeral schedule ("Raspored sahrana") — layout mirrors overview.css so both
   public landing pages read as one design. */

.funerals-page {
    min-height: 100vh;
    background: #f4f6f8;
}

/* Hero — flows seamlessly from the fixed navbar, same gradient as the overview page. */
.funerals-hero {
    background: linear-gradient(to bottom, #2D3436 0%, #3a4e5a 70%, #435f6e 100%);
    color: #fff;
    padding: calc(56px + 25px) 24px 25px;
    margin-top: -1px;
    text-align: center;
}

.funerals-hero .funerals-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b2bec3;
    margin-bottom: 14px;
}

.funerals-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 auto 14px;
    max-width: 780px;
    line-height: 1.25;
}

.funerals-hero .funerals-sub {
    font-size: 0.98rem;
    color: #b2bec3;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.funerals-hero .funerals-back {
    display: inline-block;
    margin-top: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: #fff;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.funerals-hero .funerals-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.funerals-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.funerals-empty {
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
    padding: 32px 20px;
    text-align: center;
    color: #7a8a94;
}

/* One block per day */
.funerals-group {
    margin-bottom: 28px;
}

.funerals-group-date {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #dfe6ea;
}

.funerals-group-weekday {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8fa0aa;
}

.funerals-group-day {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2D3436;
}

.funeral-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 10px;
}

.funeral-time {
    flex: 0 0 68px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #435f6e;
    text-align: center;
}

.funeral-body {
    flex: 1 1 auto;
    min-width: 0;
}

.funeral-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2D3436;
}

.funeral-maiden {
    display: block;
    font-size: 0.85rem;
    color: #7a8a94;
}

.funeral-lifespan {
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: #5c6b73;
}

.funeral-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #7a8a94;
}

.funeral-details i {
    margin-right: 5px;
    opacity: 0.7;
}

.funeral-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.funeral-obituary-btn {
    background: transparent;
    border: 1px solid #435f6e;
    border-radius: 4px;
    color: #435f6e;
    font-size: 0.85rem;
    padding: 6px 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.funeral-obituary-btn:hover {
    background: #435f6e;
    color: #fff;
}

.funeral-obituary-btn i {
    margin-right: 6px;
}

/* Share icon on a schedule row — the discreet entry point next to "Osmrtnica". */
.funeral-share-icon {
    background: transparent;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1;
    padding: 7px 10px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.funeral-share-icon:hover {
    background: #435f6e;
    border-color: #435f6e;
    color: #fff;
}

/* Share block inside the obituary modal. The modal is themed (themes.css), so this block reads the
   shared --gd-* tokens and matches the share panel of the grave details modal. */
#obituary-modal .funeral-share {
    border-top: 1px solid var(--gd-border, #eceff1);
    margin-top: 22px;
    padding-top: 18px;
}

#obituary-modal .funeral-share-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gd-gold, #5f6f7a);
}

#obituary-modal .funeral-share-label > i {
    font-size: 12px;
    opacity: 0.85;
}

#obituary-modal .funeral-share-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--gd-border, #e2e6ea) 0%, transparent 100%);
}

#obituary-modal .funeral-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

#obituary-modal .funeral-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--gd-border, #e2e6ea);
    border-radius: 5px;
    background: transparent;
    color: var(--gd-text, #2D3436);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

#obituary-modal .funeral-share-btn:hover,
#obituary-modal .funeral-share-btn:focus {
    border-color: var(--gd-border-strong, #c3cbd1);
    color: var(--gd-gold-soft, #46555f);
    background: var(--gd-surface-hover, #eef1f3);
    outline: none;
}

/* "Sahrana je održana / otkazana" on a link opened after the fact. */
#obituary-modal .obituary-notice {
    background: var(--gd-surface-hover, #f4f6f8);
    border-left: 3px solid var(--gd-border-strong, #435f6e);
    border-radius: 3px;
    color: var(--gd-text-muted, #57606f);
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 10px 14px;
}

/* Fallback content for a shared funeral without an obituary. */
#obituary-modal .funeral-summary {
    padding: 10px 0 4px;
    text-align: center;
}

#obituary-modal .funeral-summary-name {
    color: var(--gd-text, #2D3436);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#obituary-modal .funeral-summary-line {
    color: var(--gd-text-muted, #57606f);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

@media (max-width: 575.98px) {
    .funeral-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .funeral-time {
        flex: 0 0 auto;
        text-align: left;
    }

    .funeral-actions {
        flex: 1 1 100%;
    }

    .funeral-obituary-btn {
        flex: 1 1 auto;
    }
}
