@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --font-body: "Source Sans 3", Arial, Helvetica, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ink: #ffffff;
  --muted: #d8e3ef;
  --paper: #081018;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(9, 16, 26, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --green: #6070d8;
  --green-dark: #c0d6ff;
  --gold: #f3c76d;
  --blue: #6070d8;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.66)),
    url("PXL_20260413_203007208.jpg") center/cover fixed no-repeat;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 32, 51, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  /* The page-level cemetery photo already provides the background. Keeping
     this layer transparent prevents a second, mismatched photo behind the
     home-page heading. */
  background: transparent;
  color: #fff;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 86px 22px 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c0d6ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

/* The dashboard is intentionally a straightforward working interface. */
.admin-shell h1,
.admin-shell h2,
.admin-shell h3 {
  font-family: var(--font-body);
}

/* The admin is a data-entry workspace. Avoiding backdrop blurs here keeps
   scrolling responsive even when it contains many saved records. */
.admin-shell .card,
.admin-shell .panel,
.admin-shell .table-wrap {
  backdrop-filter: none;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: #ffffff;
}

h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

p {
  line-height: 1.68;
}

.hero p {
  max-width: 660px;
  color: #eef5ec;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--green);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.button.light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--line);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card {
  padding: 22px;
}

.card p,
.panel p {
  color: var(--muted);
}

.stat-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stat strong {
  color: #ffffff;
}

.page-title {
  background: transparent;
  color: #fff;
}

.page-title .section {
  padding-top: 84px;
  padding-bottom: 34px;
}

.page-title h1 {
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
}

.page-title p {
  color: #eef5ec;
  max-width: 720px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 410px) 1fr;
  gap: 20px;
}

.locator-panel {
  padding: 18px;
  position: sticky;
  top: 86px;
}

.controls {
  display: grid;
  gap: 12px;
}

.locator-filter-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.locator-filter-group legend {
  padding: 0 5px;
  color: #c0d6ff;
  font-weight: 800;
}

.locator-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  cursor: pointer;
}

.locator-checkbox input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.locator-filter-group .small-note {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: #c0d6ff;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  padding: 12px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(82, 192, 149, 0.35);
  outline-offset: 2px;
  border-color: var(--green);
}

.form-note {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form .button {
  justify-self: start;
  margin-top: 2px;
}

select option {
  color: #111827;
}

.results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.result {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 15px;
  cursor: pointer;
}

.result:hover,
.result.active {
  border-color: rgba(192, 214, 255, 0.72);
  background: rgba(96, 112, 216, 0.2);
}

.result strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.28;
  margin-bottom: 8px;
}

.result span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 0.92rem;
}

.result-location {
  font-weight: 700;
}

.result-dates {
  color: #c0d6ff;
}

.map-panel {
  overflow: hidden;
}

.map-layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 18px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.map-layer-toggle legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-layer-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  cursor: pointer;
}

.map-layer-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.locator-map-wrap {
  position: relative;
  margin-top: 14px;
}

.locator-map {
  width: 100%;
  height: 390px;
  background: #17212c;
}

.locator-map-fallback {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.locator-map-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #17212c;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.map-info {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
}

.map-info h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.map-image-wrap {
  position: relative;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.map-image-wrap img {
  display: block;
  min-width: 760px;
  width: 100%;
}

.small-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.record-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.record-location {
  color: #d8e3ef;
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.record-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.record-detail span {
  display: block;
  color: #c0d6ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.record-detail strong {
  color: #ffffff;
}

.full-record {
  color: var(--muted);
  margin: 16px 0 0;
}

.full-record span {
  display: block;
  color: #c0d6ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recent-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.recent-item:hover {
  border-color: rgba(192, 214, 255, 0.72);
  background: rgba(96, 112, 216, 0.2);
}

.recent-item strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.recent-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.document-card {
  align-self: stretch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.price-row span {
  color: var(--muted);
  line-height: 1.45;
}

.price-row strong {
  color: #ffffff;
  white-space: nowrap;
}

.rate-notes {
  margin-top: 18px;
}

.rate-contact-cta {
  margin-top: 18px;
  max-width: 760px;
}

.rate-contact-cta h3 {
  margin-bottom: 8px;
}

.document-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-year h2 {
  margin-bottom: 12px;
}

.document-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.document-link:hover span {
  color: #c0d6ff;
}

.document-link strong {
  color: #c0d6ff;
  font-size: 0.85rem;
  max-width: min(42vw, 360px);
  overflow-wrap: anywhere;
  text-align: right;
}

.admin-shell {
  max-width: 1260px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-login-grid,
.admin-form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 14px;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card textarea {
  min-height: 112px;
  font-family: inherit;
}

.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-card .button {
  min-height: 44px;
}

.admin-card .rate-category-editor textarea {
  min-height: 92px;
  font-family: inherit;
}

.admin-setup-note {
  padding: 14px;
  border: 1px solid rgba(255, 214, 120, 0.45);
  border-radius: 12px;
  background: rgba(100, 67, 0, 0.25);
}

.admin-static-notice {
  max-width: 720px;
  margin: 8vh auto;
  padding: 34px;
}

.admin-steps {
  padding: 14px 16px;
  border-left: 3px solid #c0d6ff;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.06);
}

.rate-category-editors,
.rate-item-editors,
.rate-note-editors,
.admin-file-list {
  display: grid;
  gap: 12px;
}

.rate-category-editors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.rate-category-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.rate-category-editor > h3 {
  margin: 0;
}

.rate-category-note {
  display: grid;
  gap: 7px;
}

.admin-row-heading,
.rate-item-editor,
.rate-note-editor,
.admin-file-row {
  display: grid;
  gap: 10px;
  align-items: end;
}

/* Keep individual dashboard entries legible against the cemetery photo.
   This intentionally uses the same light translucent panel treatment as the
   rest of the site, but no backdrop blur so long record lists still scroll
   smoothly. */
.rate-item-editor,
.rate-note-editor,
.admin-file-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.admin-row-heading {
  grid-template-columns: 1fr auto;
}

.admin-row-heading h3,
.admin-card-heading h2,
.admin-subsection h3,
.admin-pane h3,
.admin-inline-form h3 {
  margin: 0;
}

.admin-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-card-heading > .small-note {
  max-width: 420px;
  margin: 0;
}

.admin-short-field {
  max-width: 320px;
}

.admin-donation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-subsection {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.admin-fixed-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-fixed-details span {
  color: #c0d6ff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-fixed-details strong {
  color: #ffffff;
}

.admin-section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-deed-controls {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

[data-deed-panel][hidden] {
  display: none !important;
}

.admin-subtabs .is-active {
  color: #081018;
  background: #c0d6ff;
  border-color: #c0d6ff;
}

.admin-pane {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-photo-upload-pane {
  grid-column: 1 / -1;
}

.admin-inline-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 150, 150, 0.55);
  border-radius: 10px;
  background: rgba(120, 20, 20, 0.32);
  color: #ffe1e1;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-revert-pane {
  background: rgba(96, 112, 216, 0.1);
}

.rate-item-editor {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.28fr) 112px;
}

.rate-category-editor [data-add-rate] {
  width: 100%;
  min-height: 44px;
  height: 44px;
  margin-top: auto;
}

.rate-item-editor .button,
.rate-note-editor .button,
.admin-file-row .button,
.account-row .button {
  min-width: 112px;
}

.rate-note-editor {
  grid-template-columns: 1fr auto;
}

.admin-file-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-file-row a {
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-file-row small {
  color: var(--muted);
}

.button.compact {
  padding: 9px 12px;
  font-size: 0.85rem;
}

.admin-flash {
  margin-bottom: 14px;
  padding: 14px 16px;
}

.admin-flash.error {
  border-color: rgba(255, 150, 150, 0.5);
  background: rgba(120, 20, 20, 0.35);
}

.account-list,
.admin-inline-form {
  display: grid;
  gap: 12px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.account-identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-identity span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-identity small {
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-card {
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.photo-card p {
  margin: 0;
  padding: 14px 16px 18px;
}

.photo-lightbox {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 16px;
  color: #ffffff;
  background: #081018;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.photo-lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.photo-lightbox-bar h2 {
  margin: 0;
}

.photo-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 10px;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.image-pair img,
.full-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 3px;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  font-size: 1.05rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .grid,
  .two-column,
  .map-layout,
  .photo-grid,
  .image-pair,
  .recent-list,
  .pricing-grid,
  .document-year-grid,
  .admin-grid,
  .admin-login-grid,
  .admin-form-columns,
  .rate-category-editors,
  .admin-section-split,
  .admin-donation-fields {
    grid-template-columns: 1fr;
  }

  .admin-card-wide {
    grid-column: auto;
  }

  .rate-item-editor,
  .admin-file-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-card-heading {
    display: grid;
  }

  .admin-fixed-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .locator-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 58px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(16, 32, 51, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-inner {
    padding-top: 78px;
  }

  .section {
    padding: 42px 18px;
  }

  .page-title .section {
    padding-top: 56px;
  }

  .osm-frame {
    height: 330px;
  }

  .record-details {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}
