/* The deceased result tiles of 002 Deceased Search, shared with 290 Headstone Scan
   (moved here from DeceasedSearch.cshtml 2026-11-16 so both pages draw the same tile).
   Same shape as the buy-a-plot search: a photo on top, four to a row on a wide screen,
   and the button pinned to the bottom so tiles in a row line up. */
:root {
    --grav-dark: #1a1d21;
    --grav-gray: #64748b;
    --grav-light: #f8fafc;
    --grav-border: #e2e8f0;
}

.plot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 576px) { .plot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .plot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .plot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gravr-card {
    border: 1px solid var(--grav-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .25s ease, box-shadow .25s ease;
    min-width: 0;
}
.gravr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,23,42,.10); }

.gravr-card .image-container {
    height: 170px;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gravr-card .image-container img { width: 100%; height: 100%; object-fit: cover; }
/* The "no photo yet" drawing: shown whole and small, never cropped to fill. */
.gravr-card .image-container img.tile-placeholder { width: 84px; height: 84px; object-fit: contain; opacity: .55; }

/* "Added by a community member / volunteer", over the photo. */
.community-badge {
    position: absolute; top: 10px; left: 10px;
    background: #eef2ff; color: #3730a3;
    border-radius: 100px; padding: 4px 10px;
    font-size: .72rem; font-weight: 700; line-height: 1.2;
}

.card-meta { padding: 1.1rem; display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.card-meta h4 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-meta .meta-line { font-size: .82rem; color: var(--grav-gray); margin-bottom: .25rem; overflow-wrap: anywhere; }
.card-foot { margin-top: auto; padding-top: .9rem; }
.extra-small { font-size: .75rem; }

.view-link {
    display: block; width: 100%; text-align: center; padding: 9px;
    border: 1.5px solid var(--grav-border); border-radius: 12px;
    color: var(--grav-dark); text-decoration: none; font-weight: 600; font-size: .875rem;
    transition: 0.2s;
}
.view-link:hover { background: var(--grav-dark); border-color: var(--grav-dark); color: #fff; }
/* The whole tile opens the record, not only the button. */
.view-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.view-link:focus-visible { outline: 3px solid #2d9d7a; outline-offset: 2px; }
