/* ==========================================================================
   Grandview Cemetery theme
   ========================================================================== */

:root {
  --forest: #40594b;
  --forest-dark: #2f4237;
  --forest-deep: #22322a;
  --sage: #7f9a88;
  --slate: #8ba7b3;
  --sand: #e4cdaf;
  --sand-dark: #cfb08a;
  --cream: #f6f2ea;
  --paper: #fdfcf9;
  --ink: #1f2a24;
  --muted: #56645b;
  --line: #dcd5c7;
  --highlight: #c8772e;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(31, 42, 36, 0.12);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }

h1, h2, h3, h4, .h4 { font-family: var(--font-display); line-height: 1.2; color: var(--forest-deep); margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.h4, h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--sand); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--cream { background: var(--cream); }

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 700; color: var(--sand); margin-bottom: 0.7em; }
.eyebrow--dark { color: var(--forest); }

.icon { flex: none; vertical-align: -0.2em; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-dark); color: #fff; }
.btn--sand { background: var(--sand); color: var(--forest-deep); }
.btn--sand:hover { background: #f0dcc0; color: var(--forest-deep); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--light { background: #fff; color: var(--forest-deep); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Top bar & header ---------------------------------------------------------- */
.topbar { background: var(--forest-deep); color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--forest); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-logo { display: block; flex: none; padding: 8px 0; }
.site-logo__img { height: 136px; width: auto; transition: height var(--transition); }
.site-header.is-scrolled .site-logo__img { height: 76px; }

.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: block; padding: 10px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: var(--radius); }
.nav-list a:hover { background: rgba(255,255,255,0.1); }
.nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sand); border-radius: 0; }
.site-nav__mobile-extra { display: none; }
.header-cta { padding: 10px 18px; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
}

@media (max-width: 960px) {
  .topbar__inner { justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
  .site-logo__img { height: 100px; }
  .site-header.is-scrolled .site-logo__img { height: 64px; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; z-index: 201;
    width: 46px; height: 46px; border: 0; border-radius: 8px; cursor: pointer;
    background: rgba(0,0,0,0.25); color: #fff;
  }
  .nav-toggle__bars { display: grid; gap: 5px; }
  .nav-toggle__bars span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
  .nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 200; margin: 0; padding: 110px 28px 40px;
    background: var(--forest-deep); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-family: var(--font-display); font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); border-radius: 0; }
  .nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { box-shadow: none; color: var(--sand); }
  .site-nav__mobile-extra { display: block; margin-top: 28px; color: rgba(255,255,255,0.85); }
  .site-nav__mobile-extra p { margin-top: 18px; }
  .site-nav__mobile-extra a:not(.btn) { color: #fff; }
}

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 760px); min-height: min(88svh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,25,0.35) 0%, rgba(20,30,25,0.55) 55%, rgba(20,30,25,0.8) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero__title { color: #fff; font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 600; margin-bottom: 0.3em; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero__lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 640px; color: rgba(255,255,255,0.92); }

.hero-search { margin-top: 28px; max-width: 640px; background: rgba(253,252,249,0.12); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px; border-radius: 12px; }
.hero-search__label { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; }
.hero-search__row { display: flex; gap: 10px; }
.hero-search input { flex: 1; min-width: 0; padding: 14px 16px; font: 1.05rem var(--font-body); border-radius: 999px; border: 0; color: var(--ink); }
.hero-search__hint { margin: 10px 0 0; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
@media (max-width: 560px) {
  .hero-search__row { flex-direction: column; }
  .hero-search { padding: 16px; }
}

/* Page hero ----------------------------------------------------------------- */
.page-hero { position: relative; background: var(--forest-dark); color: #fff; padding: 72px 0 56px; overflow: hidden; }
.page-hero--photo { padding: 120px 0 64px; }
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,25,0.35), rgba(20,30,25,0.82)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: #fff; margin-bottom: 0.2em; }
.page-hero__lede { max-width: 680px; font-size: 1.2rem; color: rgba(255,255,255,0.9); margin: 0; }

/* Intro --------------------------------------------------------------------- */
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.intro__photo { margin: 0; }
.intro__photo img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Section heads ------------------------------------------------------------- */
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

/* Cards --------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { font-size: 1.02rem; color: var(--muted); }
.card__link { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; text-decoration: none; }
.credit { font-size: 0.85rem !important; font-style: italic; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Feature band -------------------------------------------------------------- */
.feature-band { background: var(--forest-dark); color: rgba(255,255,255,0.9); }
.feature-band h2 { color: #fff; }
.feature-band__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.feature-band__map { display: block; background: #e9efe9; padding: 12px; border-radius: 10px; transform: rotate(1.5deg); box-shadow: 0 20px 50px rgba(0,0,0,0.35); transition: transform var(--transition); }
.feature-band__map:hover { transform: rotate(0); }
.feature-band__map img { max-height: 460px; margin: 0 auto; width: auto; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--sand); border-bottom: 3px solid var(--sand); transform: rotate(-45deg); }
.visit-info .checks li::before { border-color: var(--forest); }
@media (max-width: 860px) { .feature-band__grid { grid-template-columns: 1fr; } .feature-band__map { transform: none; } }

/* Video --------------------------------------------------------------------- */
.video-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite__play { position: absolute; inset: 0; margin: auto; width: 88px; height: 62px; border: 0; background: none; cursor: pointer; transition: transform var(--transition); }
.video-lite__play svg { width: 100%; height: 100%; }
.video-lite__play:hover { transform: scale(1.08); }

/* Mosaic -------------------------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }
.mosaic__item { overflow: hidden; border-radius: 8px; }
.mosaic__item:nth-child(1) { grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic__item:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .mosaic__item:nth-child(7) { display: none; } }

/* Visit strip --------------------------------------------------------------- */
.visit-strip { padding: 48px 0; border-top: 1px solid var(--line); }
.visit-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.visit-strip__item { display: flex; gap: 14px; }
.visit-strip__item .icon { width: 28px; height: 28px; color: var(--forest); margin-top: 4px; }
.visit-strip__item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.visit-strip__item p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .visit-strip__grid { grid-template-columns: 1fr; } }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.8); padding: 64px 0 0; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer__title { color: var(--sand); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }
.site-logo--footer img { height: 168px; width: auto; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.social { display: flex; gap: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Notices & forms ----------------------------------------------------------- */
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e3efe6; color: #234a31; border-left: 4px solid #3c7a50; }
.notice--err { background: #f8e6e1; color: #7a2c1b; border-left: 4px solid #b6452c; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea, .search-bar input, .search-bar select {
  width: 100%; padding: 12px 14px; font: 1.05rem var(--font-body); color: var(--ink);
  border: 1px solid #b9b2a3; border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; }
.field-hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Search page --------------------------------------------------------------- */
.search-bar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); margin-top: -90px; position: relative; z-index: 2; }
.search-bar__label { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; color: var(--forest-deep); }
.search-bar__row { display: flex; gap: 10px; }
.search-bar__row input { flex: 1; font-size: 1.15rem; border-radius: 999px; padding: 14px 20px; }
.search-bar__filters { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 14px; font-size: 0.98rem; }
.search-bar__filters label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.search-bar__filters select { width: auto; padding: 8px 10px; }
.search-bar__filters input { width: 96px; padding: 8px 10px; }
.search-bar__help { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 560px) { .search-bar__row { flex-direction: column; } .search-bar { margin-top: -60px; padding: 16px; } }

.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; margin-top: 28px; align-items: start; }
.search-status { font-weight: 600; color: var(--muted); }
.result-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.result {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; color: inherit; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition);
}
.result:hover { border-color: var(--sage); box-shadow: 0 4px 14px rgba(31,42,36,0.08); }
.result[aria-current="true"] { border-color: var(--forest); box-shadow: inset 4px 0 0 var(--forest); }
.result__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--forest-deep); }
.result__year { font-weight: 600; color: var(--muted); }
.result__where { grid-column: 1 / -1; font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.result__where .tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--cream); color: var(--forest); border-radius: 999px; padding: 2px 8px; }
mark { background: #f3e1c4; color: inherit; padding: 0 1px; border-radius: 2px; }

.search-detail { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.search-detail:focus { outline: none; }
.detail-empty { padding: 48px 28px; text-align: center; color: var(--muted); }
.detail-empty .icon { width: 44px; height: 44px; color: var(--sage); margin: 0 auto 10px; }
.detail__head { padding: 22px 24px 10px; }
.detail__name { margin: 0 0 4px; font-size: 1.7rem; }
.detail__dates { margin: 0; color: var(--muted); font-weight: 600; }
.detail__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 8px 24px 18px; margin: 0; }
.detail__facts div { background: var(--cream); border-radius: 8px; padding: 10px 12px; }
.detail__facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--forest); }
.detail__facts dd { margin: 2px 0 0; font-weight: 600; }
.detail__note { padding: 0 24px; color: var(--muted); font-size: 0.98rem; }
.detail__maptabs { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail__maptabs button { flex: 1; padding: 12px; background: var(--cream); border: 0; font: 600 0.98rem var(--font-body); cursor: pointer; color: var(--muted); }
.detail__maptabs button[aria-selected="true"] { background: #fff; color: var(--forest-deep); box-shadow: inset 0 -3px 0 var(--forest); }
.detail__map { height: 380px; background: #e9efe9; }
.detail__gps { padding: 18px 24px 22px; }
.detail__gps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.coords { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.05rem; background: var(--cream); padding: 6px 10px; border-radius: 6px; display: inline-block; margin-right: 6px; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer; font: 600 0.9rem var(--font-body); }
.detail__gps .btn-row { margin-top: 12px; }
.detail__gps small { display: block; color: var(--muted); margin-top: 10px; font-size: 0.9rem; }
.detail__others { padding: 0 24px 22px; }
.detail__others h3 { font-size: 1.05rem; }
.detail__others ul { margin: 0; padding-left: 20px; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-detail { position: static; }
  .detail__map { height: 320px; }
}

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.help-grid p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } }

/* Plot maps ----------------------------------------------------------------- */
.map-tabs { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.map-tab { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font: 600 1rem var(--font-body); cursor: pointer; color: var(--muted); }
.map-tab.is-active { background: var(--forest); color: #fff; }
.plotmap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.plotmap { height: min(72vh, 680px); border-radius: 12px; border: 1px solid var(--line); background: #eaf0ea; }
.plotmap-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-height: min(72vh, 680px); overflow: auto; }
.plotmap-panel ul { padding-left: 18px; }
.plotmap-panel li { margin-bottom: 6px; }
.map-legend { margin: 20px 0; color: var(--muted); max-width: 900px; }
@media (max-width: 900px) { .plotmap-wrap { grid-template-columns: 1fr; } .plotmap { height: 62vh; } }

.leaflet-container { font-family: var(--font-body); }
.lot-hit { cursor: pointer; }
.gv-admin-coords { font: 600 14px var(--font-body); }

/* History ------------------------------------------------------------------- */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose .lead { font-size: 1.3rem; color: var(--forest-deep); font-family: var(--font-display); line-height: 1.55; }
.prose-aside figure { margin: 0 0 24px; }
.prose-aside img { border-radius: 8px; width: 100%; }
.prose-aside figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; font-style: italic; }
.fact-box { background: var(--forest-dark); color: #fff; border-radius: 10px; padding: 22px; }
.fact-box dl { margin: 0; display: grid; gap: 12px; }
.fact-box dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sand); font-weight: 700; }
.fact-box dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }

/* Gallery ------------------------------------------------------------------- */
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 14px; }
.gallery__item { break-inside: avoid; margin-bottom: 14px; }
.gallery__item a { display: block; border-radius: 8px; overflow: hidden; }
.gallery__item img { width: 100%; transition: transform 0.6s ease; }
.gallery__item a:hover img { transform: scale(1.04); }
.gallery-note { text-align: center; margin-top: 24px; color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,15,12,0.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 4px; }
.lightbox figcaption { color: #fff; margin-top: 14px; text-align: center; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; }
.lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; }
.lightbox__close .icon { width: 26px; height: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
@media (max-width: 600px) { .lightbox figure { padding: 60px 8px; } .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* Visit --------------------------------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.info-block h2 { display: flex; align-items: center; gap: 8px; }
.info-block h2 .icon { color: var(--forest); }
.big-phone { font-family: var(--font-display); font-size: 1.8rem; }
.big-phone a { text-decoration: none; }
.visit-form { background: var(--cream); border-radius: 12px; padding: 32px; align-self: start; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } .visit-form { padding: 22px; } }

/* Misc ---------------------------------------------------------------------- */
.post-summary { margin-bottom: 36px; }
.meta { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .section--tight { padding: 34px 0; }
  body { font-size: 1.06rem; }
}

/* Map extras */
.gv-pulse { animation: gvpulse 1.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes gvpulse { 0% { opacity: 1; } 100% { opacity: 0.15; } }
.leaflet-tooltip.gv-lot-tip { background: var(--forest-deep); color: #fff; border: 0; font: 700 14px var(--font-body); padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.leaflet-tooltip.gv-lot-tip::before { border-top-color: var(--forest-deep); }
.detail__fag { border-top: 1px solid var(--line); }
.detail__fag p { color: var(--muted); font-size: 0.98rem; margin-bottom: 10px; }
[hidden] { display: none !important; }
.plotmap.leaflet-container, .detail__map.leaflet-container { background: #f0f4f0; }

/* Burial Records Manager page */
.pm { background: var(--cream); padding: 48px 0 72px; min-height: 60vh; }
.pm__inner { max-width: 980px; }
.pm h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.pm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.pm-card--center { max-width: 520px; margin: 24px auto; }
.pm-card--edit { border: 2px solid var(--forest); }
.pm-login label, .pm-search label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.pm input, .pm select { width: 100%; padding: 14px 16px; font: 1.2rem var(--font-body); border: 2px solid #b9b2a3; border-radius: 8px; background: #fff; color: var(--ink); }
.pm input:focus, .pm select:focus { border-color: var(--forest); outline: 3px solid rgba(64, 89, 75, 0.25); }
.pm-login input { margin-bottom: 18px; }
.pm-big { font-size: 1.15rem; padding: 16px 28px; }
.pm-hint { font-size: 0.95rem; color: var(--muted); margin: 6px 0 0; }
.req { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 6px; }
.pm-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.pm-top h1 { margin: 0; }
.pm-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pm-logout { margin-left: 8px; font-weight: 600; }
.pm-alert { padding: 16px 20px; border-radius: 10px; font-weight: 600; font-size: 1.1rem; }
.pm-alert--ok { background: #e3efe6; color: #234a31; border-left: 6px solid #3c7a50; }
.pm-alert--err { background: #f8e6e1; color: #7a2c1b; border-left: 6px solid #b6452c; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 18px 0 24px; }
.pm-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; }
.pm-field--wide { grid-column: 1 / -1; }
.pm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pm-search__row { display: flex; gap: 12px; }
.pm-count { font-weight: 600; color: var(--muted); }
.pm-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
.pm-row__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--forest-deep); }
.pm-row__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); }
.pm-row__meta b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.pm-row__edit { grid-column: 2; grid-row: 1 / span 2; }
.pm-home { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pm-tile { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 32px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color var(--transition), transform var(--transition); }
.pm-tile:hover { border-color: var(--forest); transform: translateY(-2px); color: var(--ink); }
.pm-tile__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.pm-tile__icon .icon { width: 26px; height: 26px; }
.pm-tile__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--forest-deep); }
.pm-tile__text { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) {
  .pm-grid, .pm-home { grid-template-columns: 1fr; }
  .pm-search__row { flex-direction: column; }
  .pm-row { grid-template-columns: 1fr; }
  .pm-row__edit { grid-column: 1; grid-row: auto; }
  .pm-card { padding: 20px; }
}

/* Plot map: mobile bottom sheet */
.map-hint { display: none; }
.plotmap-panel__close { display: none; }
@media (max-width: 900px) {
  .map-hint { display: block; margin: 0 0 10px; font-weight: 600; color: var(--forest); }
  .plotmap-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; max-height: 55vh;
    border-radius: 18px 18px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(0,0,0,0.25); transform: translateY(110%); transition: transform var(--transition);
  }
  .plotmap-panel::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line); }
  .plotmap-panel.is-open { transform: none; }
  .plotmap-panel__close { display: grid; place-items: center; position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
}

/* Records Manager: pre-purchased plots */
.pm__inner--wide { max-width: 1280px; }
@media (min-width: 701px) { .pm-home { grid-template-columns: repeat(3, 1fr); } }
.pn-head h2 { margin-bottom: 4px; }
.pn-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pm .pn-filters input { flex: 1 1 320px; width: auto; }
.pm .pn-filters select { flex: 0 1 280px; width: auto; }
.pn-head .pm-count { margin: 12px 0 0; }
.pn-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.pn-list { list-style: none; margin: 0; padding: 0 6px 0 0; display: grid; gap: 8px; max-height: 1180px; overflow-y: auto; align-content: start; }
.pn-list .result { background: #fff; }
.pn-nomap { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #7a2c1b; background: #f8e6e1; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pn-side { display: grid; gap: 20px; }
.pn-side .pm-card { margin-bottom: 0; }
.pn-mapcard { padding: 16px; }
.pn-tabs { margin-bottom: 12px; }
.pn-map { height: 480px; border-radius: 10px; border: 1px solid var(--line); background: #f0f4f0; }
.pn-mapcard .pm-hint { margin-top: 10px; }
.pn-detail { padding: 0; overflow: hidden; }
.pn-detail:focus { outline: none; }
.pn-empty { padding: 28px 24px; margin: 0; color: var(--muted); }
.pn-detail .detail__facts .pn-wide { grid-column: 1 / -1; }
.pn-blank { color: var(--muted); font-weight: 400; }
.pn-detail .detail__others small { color: var(--muted); }
.pn-detail .detail__others li { margin-bottom: 4px; }
.pn-aerial { height: 320px; margin-top: 14px; border-radius: 10px; overflow: hidden; }
.pn-actions { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.pn-actions .pm-hint { margin-top: 10px; }
@media (max-width: 960px) {
.pn-layout { grid-template-columns: 1fr; }
.pn-side { order: -1; }
.pn-list { max-height: 60vh; }
.pn-map { height: 360px; }
}
