/* BloomBridge Memory — Living Profile CSS v3.0 */

/* ── BASE ────────────────────────────────────────────────────────────────── */
.bbm-memorial *, .bbm-memorial *::before, .bbm-memorial *::after { box-sizing: border-box; }
.bbm-memorial {
    width: 100%; padding-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a; line-height: 1.6;
    background: #fff;
    overflow: visible;
}

/* ── BANNER ──────────────────────────────────────────────────────────────── */
.bbm-banner {
    position: relative;
    width: 100vw; max-width: 100vw;
    min-height: 360px; overflow: hidden;
    display: flex; flex-direction: column; align-items: stretch;
}
.bbm-tabnav {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid #e8e8e8;
    display: flex; overflow-x: auto; scrollbar-width: none;
    width: 100vw; max-width: 100vw;
    margin-bottom: 24px;
    transition: top 0.28s cubic-bezier(0.4,0,0.2,1);
    padding-left: calc((100vw - 1220px) / 2);
    padding-right: calc((100vw - 1220px) / 2);
}
.bbm-banner__bg {
    position: absolute; inset: 0;
    background-color: #0d2416;
    background-size: cover; background-position: center 30%;
    filter: blur(3px) brightness(0.38); transform: scale(1.04);
    transition: transform 8s ease;
}
.bbm-banner:hover .bbm-banner__bg { transform: scale(1.06); }
.bbm-banner__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(13,36,22,.88) 0%, rgba(0,76,114,.70) 60%, rgba(109,171,60,.28) 100%);
    z-index: 1;
}
.bbm-banner__watermark {
    position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
    width: 170px; height: 170px; opacity: .07; z-index: 1; pointer-events: none;
}
.bbm-banner__watermark svg { width: 100%; height: 100%; }
.bbm-banner__content {
    position: relative; z-index: 3;
    text-align: center; padding: 44px 24px 28px;
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.bbm-banner__avatar {
    width: 94px; height: 94px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 24px rgba(0,0,0,.4);
    overflow: hidden; margin-bottom: 4px; flex-shrink: 0;
}
.bbm-banner__avatar-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.bbm-privacy-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 12px; border-radius: 20px; }
.bbm-banner .bbm-privacy-badge--public  { background: rgba(109,171,60,.25); color: #a8e06b; border: 1px solid rgba(109,171,60,.4); }
.bbm-banner .bbm-privacy-badge--private { background: rgba(255,200,50,.2);  color: #fcd34d; border: 1px solid rgba(255,200,50,.4); }
.bbm-banner__name { font-size: 34px; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,0,0,.5); line-height: 1.2; }
.bbm-banner__dates { font-size: 15px; color: rgba(255,255,255,.82); margin: 0; }
.bbm-banner__cemetery { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,.62); margin: 0; font-style: italic; }
.bbm-banner__cemetery svg { width: 12px; height: 12px; flex-shrink: 0; opacity: .7; }
.bbm-bio-para { font-size: 13px; color: rgba(255,255,255,.68); max-width: 540px; margin: 4px auto 0; line-height: 1.8; text-align: center; }
.bbm-banner__findagrave a { font-size: 12px; color: rgba(255,255,255,.55); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.bbm-banner__findagrave a:hover { color: #a8e06b; }
.bbm-banner__footer { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.1); padding: 9px 24px; display: flex; justify-content: center; background: rgba(0,0,0,.18); }
.bbm-banner__brand { font-size: 10px; color: rgba(255,255,255,.38); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }

/* ── STICKY BAR ──────────────────────────────────────────────────────────── */
.bbm-stickybar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: linear-gradient(135deg, #0d2416 0%, #0c3d5e 60%, #1a5c2a 100%);
    box-shadow: 0 2px 16px rgba(0,0,0,0.28);
    transform: translateY(-100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
    opacity: 0; pointer-events: none;
}
.bbm-stickybar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.bbm-stickybar__inner { max-width: 1220px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; }
.bbm-stickybar__avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.5); }
.bbm-stickybar__info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bbm-stickybar__name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.bbm-stickybar__dates { font-size: 12px; color: rgba(255,255,255,0.65); white-space: nowrap; }
.bbm-stickybar__cemetery { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255,255,255,0.55); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbm-stickybar__cemetery svg { width: 10px; height: 10px; fill: rgba(255,255,255,0.5); flex-shrink: 0; }
.bbm-stickybar__badge { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.bbm-stickybar__badge--public  { background: rgba(109,171,60,0.25); color: #a8e06b; border: 1px solid rgba(109,171,60,0.4); }
.bbm-stickybar__badge--private { background: rgba(255,200,50,0.2);  color: #fcd34d; border: 1px solid rgba(255,200,50,0.4); }

/* ── TAB NAV ─────────────────────────────────────────────────────────────── */

.bbm-tabnav::-webkit-scrollbar { display: none; }
.bbm-tab {
    flex-shrink: 0; display: flex; align-items: center; gap: 6px;
    padding: 13px 20px; font-size: 13px; font-weight: 500;
    color: #999; cursor: pointer; white-space: nowrap;
    border: none; border-bottom: 2px solid transparent;
    background: none; font-family: inherit;
    transition: color .15s, border-color .15s;
}
.bbm-tab svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.bbm-tab:hover { color: #444; }
.bbm-tab--active { color: #1b4332; border-bottom-color: #2d6a4f; }
.bbm-tab--external { text-decoration: none; border-bottom-color: transparent; color: #999; }
.bbm-tab--external:hover { color: #444; border-bottom-color: transparent; }
.bbm-tab--external svg { opacity: 0.7; }

/* ── UNIVERSAL SECTION CARD ──────────────────────────────────────────────── */
/* Every section on the page gets identical card treatment */
#bbm-sec-photos,
#bbm-sec-location,
#bbm-sec-headstone,
#bbm-sec-memories,
#bbm-sec-activity,
#bbm-sec-tribute,
#bbm-sec-share {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    max-width: 1220px;
    margin: 0 auto 20px;
    padding: 0;
    overflow: hidden;
    width: calc(100% - 40px);
}

/* ── SECTION HEADER (shared across all cards) ────────────────────────────── */
.bbm-sec-header,
.bbm-tribute-panel__header,
.bbm-wall__header,
.bbm-feed__header,
.bbm-af-header,
.bbm-location-card__header {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 16px 16px 0 0;
}
.bbm-sec-header { justify-content: space-between; }
.bbm-sec-header__left { display: flex; align-items: center; gap: 11px; }
.bbm-sec-header-simple { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bbm-sec-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.bbm-sec-icon svg { width: 17px; height: 17px; fill: #fff; }
.bbm-sec-icon--wall      { background: #2d6a4f; }
.bbm-sec-icon--photos    { background: #0f6e56; }
.bbm-sec-icon--memories  { background: #534ab7; }
.bbm-sec-icon--cemetery  { background: #185fa5; }
.bbm-sec-icon--headstone { background: #0f6e56; }
.bbm-sec-icon--activity  { background: #888; }
.bbm-sec-icon--tribute   { background: #2d6a4f; }
.bbm-sec-icon--share     { background: #0f6e56; }
.bbm-sec-title { font-size: 15px; font-weight: 600; color: #111; }
.bbm-sec-sub   { font-size: 11px; color: #aaa; margin-top: 1px; }
.bbm-sec-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; background: #2d6a4f; color: #fff;
    border: none; border-radius: 8px; padding: 8px 14px;
    cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0;
    transition: background .15s;
}
.bbm-sec-action-btn:hover { background: #1b4332; }

/* ── SECTION BODY PADDING ────────────────────────────────────────────────── */
/* Inner content padding — applied to direct children after the header */
#bbm-sec-memories > *:not(.bbm-sec-header):not(.bbm-feed):not(.bbm-wall),
#bbm-sec-tribute > *:not(.bbm-tribute-panel) {
    padding-left: 20px;
    padding-right: 20px;
}

/* ── LOCATION CARD (inside #bbm-sec-location) ────────────────────────────── */
/* The location-card is the full content of its section — no double borders */
.bbm-location-card { overflow: hidden; background: #fff; }
.bbm-location-card__header { border-radius: 16px 16px 0 0; }
.bbm-location-card__link { font-size: 11px; color: #2d6a4f; margin-left: auto; text-decoration: none; white-space: nowrap; }
.bbm-map-embed { height: 240px; width: 100%; background: #e8efe8; overflow: hidden; }
.bbm-location-card__footer { padding: 11px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bbm-location-card__name { font-size: 12px; font-weight: 500; color: #111; }
.bbm-location-card__addr { font-size: 10px; color: #888; }
.bbm-location-card__coords { font-size: 10px; color: #666; font-family: monospace; }
.bbm-location-card__gps-note { font-size: 10px; color: #2d6a4f; display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.bbm-location-card__dir-btn {
    font-size: 11px; color: #2d6a4f; border: 0.5px solid #c8e6d2;
    background: #f6fbf8; border-radius: 6px; padding: 5px 10px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
    transition: background .15s;
}
.bbm-location-card__dir-btn:hover { background: #e9f5ee; }
.bbm-location-card__dir-btn--nav { background: #2d6a4f; color: #fff; border-color: #2d6a4f; }
.bbm-location-card__dir-btn--nav:hover { background: #1b4332; color: #fff; }
.bbm-location-card__btn-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bbm-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── PHOTOS ──────────────────────────────────────────────────────────────── */
.bbm-photos__grid--new {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
    width: 100%;
}
.bbm-photos__thumb {
    display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px;
    border: none; background: #e8efe8; cursor: pointer; padding: 0;
    transition: transform .15s;
}
.bbm-photos__thumb:hover { transform: scale(1.02); }
.bbm-photos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bbm-photos__placeholder img { width: 100%; border-radius: 10px; display: block; }

/* ── DELIVERY TIMELINE ───────────────────────────────────────────────────── */
.bbm-dtl { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 20px 56px; }
.bbm-dtl__line { position: absolute; left: 11px; top: 22px; bottom: 22px; width: 2px; background: #d8d4ce; border-radius: 2px; }
.bbm-dtl__item { position: relative; }
.bbm-dtl__dot { position: absolute; left: -29px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #d0cdc8; border: 2.5px solid #fafaf9; z-index: 1; }
.bbm-dtl__dot--latest { background: #2d6a4f; border-color: #fafaf9; width: 13px; height: 13px; left: -30px; top: 15px; box-shadow: 0 0 0 3px rgba(45,106,79,0.18); }
.bbm-dtl__card { border: 1px solid #e4e1db; border-radius: 14px; overflow: hidden; background: #fff; transition: border-color 0.2s; }
.bbm-dtl__item--latest .bbm-dtl__card { border-color: rgba(45,106,79,0.35); }
.bbm-dtl__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; user-select: none; transition: background 0.15s; }
.bbm-dtl__head:hover { background: #f8f6f2; }
.bbm-dtl__latest-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #e6f4ee; color: #1b5e20; flex-shrink: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.bbm-dtl__date { font-size: 14px; font-weight: 500; color: #2a2a2a; flex: 1; }
.bbm-dtl__count { font-size: 12px; color: #555; flex-shrink: 0; margin-right: 4px; }
.bbm-dtl__count--empty { color: #aaa; font-style: italic; }
.bbm-dtl__chev { width: 15px; height: 15px; color: #999; flex-shrink: 0; transition: transform 0.22s ease; }
.bbm-dtl__chev--open { transform: rotate(180deg); }
.bbm-dtl__body { border-top: 1px solid #f0ede8; overflow: hidden; max-height: 1000px; transition: max-height 0.35s ease, opacity 0.25s ease; opacity: 1; }
.bbm-dtl__body--closed { max-height: 0; opacity: 0; border-top: none; }
.bbm-dtl__body .bbm-photos__grid--new { padding: 14px; gap: 8px; }
.bbm-dtl__body .bbm-photos__thumb { border-radius: 10px; overflow: hidden; }
.bbm-dtl__no-photos { padding: 16px 18px; font-size: 13px; color: #999; font-style: italic; }

/* ── MEMORY FEED (inside #bbm-sec-memories) ──────────────────────────────── */
.bbm-feed { overflow: hidden; background: #fff; }
.bbm-feed__header-left { display: flex; align-items: center; gap: 11px; }
.bbm-feed__compose { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.bbm-feed__compose-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.bbm-feed__input, .bbm-feed__textarea {
    width: 100%; padding: 9px 12px; border: 0.5px solid #e0e0e0; border-radius: 8px;
    font-size: 13px; font-family: inherit; background: #f8f8f8; outline: none;
    color: #1a1a1a; transition: border-color .15s, background .15s;
}
.bbm-feed__input:focus, .bbm-feed__textarea:focus { border-color: #2d6a4f; background: #fff; }
.bbm-feed__textarea { resize: vertical; min-height: 80px; margin-bottom: 8px; }
.bbm-feed__attach-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bbm-feed__attach-btn {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #555;
    background: #f0f0f0; border: 0.5px solid #ddd; border-radius: 7px; padding: 7px 12px;
    cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
.bbm-feed__attach-btn:hover { background: #e8f5ee; border-color: #2d6a4f; color: #2d6a4f; }
.bbm-feed__attach-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.bbm-feed__file-preview { display: flex; align-items: center; gap: 6px; background: #f0faf5; border: 0.5px solid #c8e6d2; border-radius: 7px; padding: 5px 10px; font-size: 12px; }
.bbm-feed__file-name { color: #2d6a4f; font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbm-feed__file-remove { background: none; border: none; color: #aaa; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.bbm-feed__file-remove:hover { color: #c0392b; }
.bbm-feed__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bbm-feed__submit { background: #2d6a4f; color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.bbm-feed__submit:hover { background: #1b4332; }
.bbm-feed__submit:disabled { opacity: .6; cursor: default; }
.bbm-feed__feedback { font-size: 12px; flex: 1; }
.bbm-feed__feedback--success { color: #2d6a4f; }
.bbm-feed__feedback--error   { color: #c0392b; }
.bbm-feed__posts { }
.bbm-feed__empty { text-align: center; padding: 28px; color: #aaa; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bbm-feed__empty svg { width: 28px; height: 28px; fill: #e0e0e0; }
.bbm-feed__empty p { font-size: 13px; margin: 0; }
.bbm-feed__post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; animation: bbm-feed-in .25s ease; }
.bbm-feed__post--hidden { display: none; }
@keyframes bbm-feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bbm-feed__post:last-child { border-bottom: none; }
.bbm-feed__post-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #2d6a4f, #0c3d5e); color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.bbm-feed__post-body { flex: 1; min-width: 0; }
.bbm-feed__post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.bbm-feed__post-meta strong { font-size: 13px; color: #111; }
.bbm-feed__rel { font-size: 11px; background: #e9f5ee; color: #2d6a4f; padding: 2px 7px; border-radius: 10px; }
.bbm-feed__post-date { font-size: 11px; color: #bbb; margin-left: auto; }
.bbm-feed__post-text { font-size: 13px; color: #444; line-height: 1.65; margin: 0 0 8px; }
.bbm-feed__post-text:last-child { margin-bottom: 0; }
.bbm-feed__post-media { margin-top: 10px; }
.bbm-feed__media-thumb {
    width: 120px; height: 120px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    cursor: zoom-in; flex-shrink: 0;
    transition: opacity .15s;
}
.bbm-feed__media-thumb:hover { opacity: .88; }
.bbm-feed__media-img { max-width: 100%; max-height: 340px; border-radius: 10px; display: block; object-fit: cover; cursor: zoom-in; transition: opacity .15s; }
.bbm-feed__media-img:hover { opacity: .92; }
.bbm-feed__media-video { max-width: 100%; max-height: 340px; border-radius: 10px; display: block; background: #000; }

/* Legacy wall (if used) */
.bbm-wall { overflow: hidden; background: #fff; }
.bbm-wall__header-left { display: flex; align-items: center; gap: 11px; }
.bbm-wall__compose { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.bbm-wall__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.bbm-wall__input, .bbm-wall__textarea { width: 100%; padding: 9px 12px; border: 0.5px solid #e0e0e0; border-radius: 8px; font-size: 13px; font-family: inherit; background: #f8f8f8; outline: none; transition: border-color .15s, background .15s; color: #1a1a1a; }
.bbm-wall__input:focus, .bbm-wall__textarea:focus { border-color: #2d6a4f; background: #fff; }
.bbm-wall__textarea { resize: vertical; min-height: 80px; }
.bbm-wall__actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.bbm-wall__submit { background: #2d6a4f; color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.bbm-wall__submit:hover { background: #1b4332; }
.bbm-wall__feedback { font-size: 12px; flex: 1; }
.bbm-wall__feedback--success { color: #2d6a4f; }
.bbm-wall__feedback--error   { color: #c0392b; }
.bbm-wall__posts { max-height: 480px; overflow-y: auto; }
.bbm-wall__empty { text-align: center; padding: 24px; color: #aaa; font-size: 13px; }
.bbm-wall__post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; }
.bbm-wall__post:last-child { border-bottom: none; }
.bbm-wall__post-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #2d6a4f, #0c3d5e); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.bbm-wall__post-body { flex: 1; }
.bbm-wall__post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.bbm-wall__post-meta strong { font-size: 13px; color: #111; }
.bbm-wall__post-rel { font-size: 11px; background: #e9f5ee; color: #2d6a4f; padding: 2px 7px; border-radius: 10px; }
.bbm-wall__post-date { font-size: 11px; color: #bbb; margin-left: auto; }
.bbm-wall__post-text { font-size: 13px; color: #555; line-height: 1.65; margin: 0; }

/* ── MEMORIES (legacy form) ──────────────────────────────────────────────── */
.bbm-memories__form-wrap { margin-bottom: 18px; }
.bbm-memories__form { background: #f8faf8; border: 1px solid #ddeedd; border-radius: 12px; padding: 16px; }
.bbm-memories__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bbm-memories__input { width: 100%; padding: 9px 12px; border: 0.5px solid #d0d0d0; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff; outline: none; transition: border-color .15s; color: #1a1a1a; }
.bbm-memories__input:focus { border-color: #2d6a4f; }
.bbm-memories__dropzone { border: 2px dashed #c8e6d2; border-radius: 10px; background: #fff; cursor: pointer; min-height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; transition: border-color .15s, background .15s; }
.bbm-memories__dropzone.drag-over { border-color: #2d6a4f; background: #f0faf5; }
.bbm-memories__drop-inner { text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bbm-memories__drop-text { font-size: 13px; color: #666; }
.bbm-memories__browse { color: #2d6a4f; font-weight: 600; cursor: pointer; text-decoration: underline; }
.bbm-memories__drop-hint { font-size: 11px; color: #aaa; }
.bbm-memories__preview { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; position: relative; background: #f0faf5; }
.bbm-memories__preview img, .bbm-memories__preview video { max-height: 120px; max-width: 180px; border-radius: 6px; object-fit: cover; }
.bbm-memories__preview-name { font-size: 11px; color: #888; word-break: break-all; max-width: 120px; }
.bbm-memories__preview-remove { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.bbm-memories__form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bbm-memories__submit { background: #2d6a4f; color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.bbm-memories__submit:disabled { opacity: .6; cursor: default; }
.bbm-memories__submit:hover:not(:disabled) { background: #1b4332; }
.bbm-memories__cancel { background: none; color: #888; border: none; font-size: 13px; cursor: pointer; font-family: inherit; padding: 9px 6px; }
.bbm-memories__feedback { font-size: 12px; flex: 1; }
.bbm-memories__feedback--success { color: #2d6a4f; }
.bbm-memories__feedback--error   { color: #c0392b; }
.bbm-memories__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.bbm-memories__item { display: flex; flex-direction: column; gap: 6px; }
.bbm-memories__thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: none; cursor: pointer; padding: 0; background: #e8efe8; position: relative; transition: transform .15s; }
.bbm-memories__thumb:hover { transform: scale(1.02); }
.bbm-memories__thumb img, .bbm-memories__video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbm-memories__play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); }
.bbm-memories__play-icon svg { width: 30px; height: 30px; fill: #fff; opacity: .9; }
.bbm-memories__meta { display: flex; flex-direction: column; gap: 1px; }
.bbm-memories__author { font-size: 12px; font-weight: 600; color: #333; }
.bbm-memories__caption { font-size: 11px; color: #666; line-height: 1.4; }
.bbm-memories__date { font-size: 10px; color: #bbb; }
.bbm-memories__empty { text-align: center; padding: 28px; color: #aaa; }
.bbm-memories__empty svg { width: 28px; height: 28px; fill: #ddd; margin-bottom: 8px; }
.bbm-memories__empty p { font-size: 13px; }

/* ── ACTIVITY TIMELINE (inside #bbm-sec-activity) ────────────────────────── */
.bbm-activity { background: transparent; }
.bbm-af-header { justify-content: space-between; }
.bbm-af-title  { display: flex; align-items: center; gap: 10px; }
.bbm-af-icon   { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,#2d6a4f,#0c3d5e); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bbm-af-icon svg { width: 16px; height: 16px; fill: #fff; }
.bbm-af-title h3 { font-size: 15px; font-weight: 600; color: #111; margin: 0; }
.bbm-af-title span { font-size: 12px; color: #bbb; }
.bbm-af-live { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #2d6a4f; font-weight: 600; }
.bbm-af-dot  { width: 7px; height: 7px; border-radius: 50%; background: #2d6a4f; animation: afpulse 2s infinite; }
@keyframes afpulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(1.4);} }

/* Timeline spine */
.bbm-tl { position: relative; padding: 20px 20px 20px 70px; }
.bbm-tl::before { content: ''; position: absolute; left: 37px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg,#2d6a4f33,#2d6a4f66,#2d6a4f22); border-radius: 1px; }
.bbm-ev { position: relative; margin-bottom: 14px; }
.bbm-ev-bub { position: absolute; left: -50px; top: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.06); z-index: 1; }
.bbm-ev-bub--wall { background: linear-gradient(135deg,#e0e7ff,#c7d2fe); }
.bbm-ev-bub--mem  { background: linear-gradient(135deg,#ede9fe,#ddd6fe); }
.bbm-ev-bub--trib { background: linear-gradient(135deg,#fef9c3,#fef08a); }
.bbm-ev-bub--song { background: linear-gradient(135deg,#ffedd5,#fed7aa); }
.bbm-ev-bub--del  { background: linear-gradient(135deg,#d1fae5,#a7f3d0); }
.bbm-ev-card { background: #fff; border: .5px solid #e8e8e8; border-radius: 14px; padding: 12px 16px; transition: border-color .15s; }
.bbm-ev-card:hover { border-color: #ccc; }
.bbm-ev-top    { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.bbm-ev-author { font-size: 13px; font-weight: 600; color: #111; }
.bbm-ev-action { font-size: 13px; color: #777; }
.bbm-ev-time   { font-size: 11px; color: #bbb; white-space: nowrap; flex-shrink: 0; }
.bbm-ev-body   { font-size: 13px; color: #666; line-height: 1.6; margin-top: 4px; }
.bbm-ev-thumb  { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; margin-top: 4px; }
.bbm-ev-mem-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.bbm-ev-card--wall { border-left: 3px solid #818cf8; border-radius: 0 14px 14px 0; }
.bbm-ev-card--wall .bbm-ev-author { color: #4338ca; }
.bbm-ev-card--song { border-left: 3px solid #fb923c; border-radius: 0 14px 14px 0; }
.bbm-ev-card--del  { background: #f0fdf4; border-color: #bbf7d0; }
.bbm-ev-card--del  .bbm-ev-author { color: #15803d; }
.bbm-ev-card--trib { background: #fffbeb; border-color: #fde68a; }
.bbm-ev--link { cursor: pointer; }
.bbm-ev--link:hover .bbm-ev-card { border-color: #2d6a4f; }
.bbm-ev--link:hover .bbm-ev-card--wall { border-left-color: #4338ca; }
.bbm-ev--link:hover .bbm-ev-card--del  { border-color: #6ee7b7; }
.bbm-ev--link:hover .bbm-ev-card--trib { border-color: #fcd34d; }
.bbm-ev--hidden { display: none; }
.bbm-trib-burst { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bbm-trib-chip  { font-size: 13px; background: #fff; border: 1px solid #e8e8e8; border-radius: 20px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px; }
.bbm-trib-chip strong { font-size: 12px; font-weight: 700; color: #333; }
.bbm-song-blk { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: #fff7ed; border-radius: 8px; padding: 8px 12px; }
.bbm-song-blk-icon  { font-size: 22px; flex-shrink: 0; }
.bbm-song-blk-title { font-size: 13px; font-weight: 600; color: #111; }
.bbm-song-blk-sub   { font-size: 11px; color: #aaa; }
.bbm-origin { text-align: center; margin: 8px 0 4px; position: relative; }
.bbm-origin::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #f0f0f0; }
.bbm-origin-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #e8e8e8; border-radius: 20px; padding: 5px 14px; font-size: 11px; color: #aaa; }
.bbm-tl-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 20px 20px; }
.bbm-tl-load-more { flex: 1; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid #e0e0e0; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 500; color: #2d6a4f; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.bbm-tl-load-more:hover { background: #f0faf5; border-color: #2d6a4f; }
.bbm-tl-load-more__count { font-size: 12px; color: #aaa; margin-left: 5px; }
.bbm-tl-collapse { display: flex; align-items: center; justify-content: center; background: none; border: 1px solid #e0e0e0; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 500; color: #999; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.bbm-tl-collapse:hover { background: #fafafa; border-color: #bbb; color: #555; }

/* ── TRIBUTE PANEL (inside #bbm-sec-tribute) ─────────────────────────────── */
.bbm-tribute-panel { background: #fff; }
.bbm-tribute-panel__header { border-radius: 16px 16px 0 0; }
.bbm-tribute-panel__header .bbm-sec-title { font-size: 15px; }
.bbm-tribute-panel__grid { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 20px 0; }
.bbm-trib-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: #fff; border: 1.5px solid #e8e8e8; border-radius: 14px; padding: 14px 16px;
    cursor: pointer; font-family: inherit; transition: all 0.18s ease; min-width: 92px; position: relative;
}
.bbm-trib-btn:hover { border-color: #ccc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.bbm-trib-btn__icon { font-size: 28px; line-height: 1; display: block; }
.bbm-trib-btn__label { font-size: 11px; font-weight: 500; color: #888; transition: color 0.15s; white-space: nowrap; }
.bbm-trib-btn__count { position: absolute; top: -8px; right: -8px; background: #2d6a4f; color: #fff; font-size: 10px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.bbm-trib-btn--has-count .bbm-trib-btn__count { opacity: 1; transform: scale(1); }
.bbm-trib-btn--flower.bbm-trib-btn--active { background: #fdf2f8; border-color: #f0abcf; box-shadow: 0 0 0 3px rgba(219,39,119,0.10); }
.bbm-trib-btn--flower.bbm-trib-btn--active .bbm-trib-btn__label { color: #db2777; }
.bbm-trib-btn--heart.bbm-trib-btn--active  { background: #fef2f2; border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(220,38,38,0.10); }
.bbm-trib-btn--heart.bbm-trib-btn--active  .bbm-trib-btn__label { color: #dc2626; }
.bbm-trib-btn--dove.bbm-trib-btn--active   { background: #f0f9ff; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }
.bbm-trib-btn--dove.bbm-trib-btn--active   .bbm-trib-btn__label { color: #2563eb; }
.bbm-trib-btn--hug.bbm-trib-btn--active    { background: #fdf4ff; border-color: #d8b4fe; box-shadow: 0 0 0 3px rgba(124,58,237,0.10); }
.bbm-trib-btn--hug.bbm-trib-btn--active    .bbm-trib-btn__label { color: #7c3aed; }
.bbm-trib-btn--prayer.bbm-trib-btn--active { background: #f0fdf4; border-color: #86efac; box-shadow: 0 0 0 3px rgba(22,163,74,0.10); }
.bbm-trib-btn--prayer.bbm-trib-btn--active .bbm-trib-btn__label { color: #16a34a; }
.bbm-trib-btn--song.bbm-trib-btn--active   { background: #fff7ed; border-color: #fdba74; box-shadow: 0 0 0 3px rgba(234,88,12,0.10); }
.bbm-trib-btn--song.bbm-trib-btn--active   .bbm-trib-btn__label { color: #ea580c; }
.bbm-tribute-panel__totals { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 0.5px solid #f0f0f0; min-height: 32px; }
.bbm-tribute-total { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: #f5f5f5; border-radius: 20px; padding: 4px 10px; }
.bbm-tribute-total span { font-size: 14px; line-height: 1; }
.bbm-tribute-total strong { font-weight: 700; color: #333; }
.bbm-tribute-panel__totals-empty { font-size: 12px; color: #ccc; }
.bbm-tribute-toast { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #2d6a4f; background: #f0faf5; border: 0.5px solid #c8e6d2; border-radius: 8px; padding: 7px 13px; margin: 0 20px 12px; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.bbm-tribute-toast svg { width: 13px; height: 13px; fill: #2d6a4f; flex-shrink: 0; }
.bbm-tribute-toast--show { opacity: 1; transform: translateY(0); }

/* ── ORDER STRIP ─────────────────────────────────────────────────────────── */
.bbm-order-strip { background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px auto 20px; max-width: 1220px; width: calc(100% - 40px); border-radius: 12px; }
.bbm-order-strip__text strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.bbm-order-strip__text span { font-size: 12px; color: rgba(255,255,255,.68); }
.bbm-order-strip__btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.bbm-order-strip__btn { border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, transform .1s; }
.bbm-order-strip__btn:hover { transform: translateY(-1px); }
.bbm-order-strip__btn--primary  { background: #fff; color: #1b4332; border: none; }
.bbm-order-strip__btn--primary:hover { background: #e9f5ee; color: #1b4332; }
.bbm-order-strip__btn--secondary { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.4); font-weight: 500; font-size: 12px; }
.bbm-order-strip__btn--secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── CTA BLOCKS ──────────────────────────────────────────────────────────── */
.bbm-cta { display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: linear-gradient(135deg, #0a4f78 0%, #0c689c 60%, #0e7ab5 100%); flex-wrap: wrap; }
.bbm-cta__icon { font-size: 28px; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.bbm-cta__body { flex: 1; min-width: 220px; }
.bbm-cta__headline { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; line-height: 1.3; }
.bbm-cta__sub { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.bbm-cta__btn { flex-shrink: 0; display: inline-block; background: #fff; color: #0c689c; font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background 0.15s, transform 0.1s; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.bbm-cta__btn:hover { background: #e6f3fb; transform: translateY(-1px); color: #0a4f78; }
.bbm-cta--delivery, .bbm-cta--memories, .bbm-cta--bottom { margin-top: 0; }
.bbm-cta--bottom { border-top: 1px solid rgba(255,255,255,0.08); }

/* ── SHARE (inside #bbm-sec-share) ──────────────────────────────────────── */
.bbm-share { display: flex; flex-direction: column; gap: 0; }
.bbm-share__label {
    background: #fafafa; border-bottom: 1px solid #f0f0f0;
    border-radius: 16px 16px 0 0;
    padding: 14px 20px; display: flex; align-items: center; gap: 11px;
}
.bbm-share__icons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 20px 20px 16px; }
.bbm-share__url { font-size: 11px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; padding: 0 20px 16px; }
.bbm-share__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; border: none; text-decoration: none; transition: filter .18s, transform .12s, box-shadow .18s; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.bbm-share__icon:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.bbm-share__icon svg { width: 20px; height: 20px; fill: #fff; }
.bbm-share__icon--fb { background: #1877f2; }
.bbm-share__icon--x  { background: #000; }
.bbm-share__icon--wa { background: #25d366; }
.bbm-share__icon--ig { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.bbm-share__icon--tt { background: #000; }
.bbm-share__icon--li { background: #0a66c2; }
.bbm-share__icon--pt { background: #e60023; }
.bbm-share__icon--em { background: #555; }
.bbm-share__icon--cp { background: #f0f0f0; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.bbm-share__icon--cp svg { fill: #555; }
.bbm-share__icon--cp.copied { background: #e9f5ee; }
.bbm-share__icon--cp.copied svg { fill: #2d6a4f; }
.bbm-share__divider { width: 1px; height: 28px; background: #e8e8e8; margin: 0 4px; }
.bbm-share__url { font-size: 11px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

/* ── NO COORDS STATE ─────────────────────────────────────────────────────── */
.bbm-nocoords__map { height: 120px; background: linear-gradient(180deg,#3a5c42,#2d4a34); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.bbm-nocoords__grid { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 18px,rgba(255,255,255,.04) 18px,rgba(255,255,255,.04) 19px),repeating-linear-gradient(90deg,transparent,transparent 18px,rgba(255,255,255,.03) 18px,rgba(255,255,255,.03) 19px); }
.bbm-nocoords__pin { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1.5px dashed rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.bbm-nocoords__pin svg { width: 14px; height: 14px; fill: rgba(255,255,255,.55); }
.bbm-nocoords__map-label { font-size: 9px; color: rgba(255,255,255,.35); letter-spacing: .06em; position: relative; z-index: 1; }
.bbm-nocoords__body { padding: 14px; }
.bbm-nocoords__title { font-size: 12px; font-weight: 600; color: #111; margin-bottom: 6px; }
.bbm-nocoords__text { font-size: 11px; color: #666; line-height: 1.6; margin-bottom: 10px; }
.bbm-nocoords__text strong { color: #2d6a4f; }
.bbm-nocoords__btn { display: inline-flex; align-items: center; background: #2d6a4f; color: #fff; border: none; border-radius: 7px; padding: 7px 12px; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; transition: background .15s; }
.bbm-nocoords__btn:hover { background: #1b4332; color: #fff; }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.bbm-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.bbm-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.93); }
.bbm-lightbox__inner { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bbm-lightbox__stage { max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; position: relative; }
.bbm-lightbox__img, .bbm-lightbox__video { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.bbm-lightbox__loader { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.15); border-top-color: #fff; border-radius: 50%; animation: bbm-spin .7s linear infinite; }
@keyframes bbm-spin { to { transform: rotate(360deg); } }
.bbm-lightbox__close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 26px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.bbm-lightbox__close:hover { background: rgba(255,255,255,.22); }
.bbm-lightbox__prev, .bbm-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.bbm-lightbox__prev { left: 16px; }
.bbm-lightbox__next { right: 16px; }
.bbm-lightbox__prev:hover, .bbm-lightbox__next:hover { background: rgba(255,255,255,.25); }
.bbm-lightbox__prev svg, .bbm-lightbox__next svg { width: 22px; height: 22px; fill: #fff; }
.bbm-lightbox__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.bbm-lb-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; transition: background .15s, transform .15s; }
.bbm-lb-dot.active { background: #fff; transform: scale(1.25); }

/* ── PAGE BACKGROUND ─────────────────────────────────────────────────────── */
body.single-memorial,
body.single-memorial #Wrapper,
body.single-memorial #Content,
body.single-memorial .container { background: #fff !important; }


/* ── HIDE HEADSTONE COORDINATES (frontend) ───────────────────────────────── */
#bbm-sec-headstone,
.bbm-tab[data-target="bbm-sec-headstone"] { display: none !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bbm-location-grid { grid-template-columns: 1fr; }
    .bbm-memories__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bbm-photos__grid--new { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
    .bbm-banner { min-height: 300px; }
    .bbm-banner__name { font-size: 26px; }
    .bbm-banner__avatar { width: 76px; height: 76px; }
    #bbm-sec-photos, #bbm-sec-location, #bbm-sec-headstone, #bbm-sec-memories, #bbm-sec-activity, #bbm-sec-tribute, #bbm-sec-share { margin: 0 12px 16px; }
    .bbm-cta { margin: 0 12px 16px; padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .bbm-cta__btn { width: 100%; text-align: center; }
    .bbm-order-strip { margin: 12px 12px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .bbm-order-strip__btns { width: 100%; }
    .bbm-order-strip__btn { flex: 1; justify-content: center; }
    .bbm-memories__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bbm-photos__grid--new { grid-template-columns: repeat(2,1fr); }
    .bbm-wall__fields { grid-template-columns: 1fr; }
    .bbm-feed__compose-fields { grid-template-columns: 1fr; }
    .bbm-memories__form-row { grid-template-columns: 1fr; }
    .bbm-lightbox__prev { left: 6px; }
    .bbm-lightbox__next { right: 6px; }
    .bbm-share__url { display: none; }
    .bbm-stickybar__inner { padding: 8px 16px; gap: 10px; }
    .bbm-stickybar__dates { display: none; }
    .bbm-stickybar__cemetery { display: none; }
    .bbm-stickybar__badge { display: none; }
    .bbm-feed__media-img, .bbm-feed__media-video { max-height: 240px; }
}
@media (max-width: 380px) {
    .bbm-memories__grid { grid-template-columns: 1fr; }
    .bbm-photos__grid--new { grid-template-columns: repeat(2,1fr); }
}

/* ── AUTH MODAL ──────────────────────────────────────────────────────────── */
.bbm-auth-modal { display: none; position: fixed; inset: 0; z-index: 99990; align-items: center; justify-content: center; }
.bbm-auth-modal--open { display: flex; }
.bbm-auth-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.bbm-auth-modal__box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 420px;
    margin: 20px; padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.bbm-auth-modal__close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 22px;
    color: #aaa; cursor: pointer; line-height: 1; z-index: 2;
}
.bbm-auth-modal__close:hover { color: #555; }
.bbm-auth-modal__tabs {
    display: flex; border-bottom: 1px solid #f0f0f0;
    background: #fafafa; border-radius: 16px 16px 0 0;
}
.bbm-auth-modal__tab {
    flex: 1; padding: 16px; font-size: 14px; font-weight: 600;
    color: #aaa; background: none; border: none;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.bbm-auth-modal__tab--active { color: #1b4332; border-bottom-color: #2d6a4f; }
.bbm-auth-modal__panel { padding: 24px; }
.bbm-auth-modal__panel--hidden { display: none; }
.bbm-auth-modal__intro { font-size: 13px; color: #666; margin: 0 0 20px; }
.bbm-auth-modal__field { margin-bottom: 14px; }
.bbm-auth-modal__field label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 5px; }
.bbm-auth-modal__field label span { font-weight: 400; color: #aaa; }
.bbm-auth-modal__field input {
    width: 100%; padding: 10px 12px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .15s;
}
.bbm-auth-modal__field input:focus { border-color: #2d6a4f; }
.bbm-auth-modal__check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin-bottom: 16px; cursor: pointer; }
.bbm-auth-modal__check input { width: auto; margin: 0; }
.bbm-auth-modal__error { font-size: 12px; color: #c0392b; margin-bottom: 12px; min-height: 16px; }
.bbm-auth-modal__btn {
    width: 100%; padding: 12px;
    background: #2d6a4f; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: background .15s;
}
.bbm-auth-modal__btn:hover { background: #1b4332; }
.bbm-auth-modal__btn:disabled { opacity: .6; cursor: default; }
