/* Interactive Map styles. Section 1 uses 2.5 ft graves on a 96 ft fence; Section 4 keeps 9 ft lots. */

.interactive-map-page,
.interactive-map-root,
.interactive-map-page .tables-page {
  width: 100%;
}

.interactive-map-visual-root {
  display: grid;
  gap: 1rem;
}

.interactive-map-detail-panel-host {
  min-height: 0;
}

.interactive-map-detail-panel-host.is-holding {
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.map-shell {
  min-width: 0;
}

.interactive-map-detail-panel {
  margin-top: 0;
}

.interactive-map-page .interactive-map-tabs {
  justify-content: center;
  margin: 0 0 1rem;
}

.interactive-map-tab-pane {
  min-width: 0;
}

.interactive-map-select-row {
  margin-bottom: 1.5rem;
}

.satellite-map-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.leaflet-satellite-lots-pane {
  transition: opacity 0.25s ease;
}

.satellite-map-toolbar .input-form-select-grid {
  flex: 1 1 36rem;
  min-width: 0;
  width: 100%;
}

.satellite-map-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.satellite-map-legend-row .interactive-map-legend {
  margin: 0;
}

.satellite-map-back {
  flex: 0 0 auto;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  padding: 8px 16px;
}

.satellite-map-back:hover:not(:disabled) {
  background: #262626 !important;
  border-color: #262626 !important;
  color: #fff !important;
}

.satellite-map-back:active:not(:disabled) {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.satellite-map-back:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

[data-theme="dark"] .satellite-map-back {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.interactive-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.interactive-map-legend-item {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.satellite-map-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86)),
    rgba(255, 255, 255, 0.035);
}

.satellite-map,
.satellite-map .leaflet-container {
  isolation: isolate;
  width: 100%;
  height: min(68vh, 42rem);
  min-height: 18rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86)),
    rgba(255, 255, 255, 0.035);
}

.satellite-map-section-label {
  background: none;
  border: 0;
  overflow: visible;
}

.satellite-map-section-label-text {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 1.9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.satellite-map-lot-label {
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  color: #111827;
  font-size: var(--satellite-lot-label-size, 8px);
  font-weight: 700;
  padding: 0 0.15rem;
  box-shadow: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  line-height: 1.1;
  box-sizing: border-box;
}

.satellite-map-lot-label::before {
  display: none;
}

.satellite-map-lot-labels-hidden .satellite-map-lot-label-permanent {
  display: none;
}

.interactive-map-select-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interactive-map-person-search-field {
  position: relative;
  overflow: visible;
}

.interactive-map-person-search-root {
  position: relative;
}

.interactive-map-person-search-input {
  width: 100%;
}

.interactive-map-person-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.interactive-map-person-search-option {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.interactive-map-person-search-option:hover:not(:disabled) {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
}

.interactive-map-person-search-option:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.interactive-map-person-search-option-name {
  font-weight: 700;
}

.interactive-map-person-search-option-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.interactive-map-person-search-empty {
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
}

.interactive-map-person-search-error {
  color: #fca5a5;
}

.interactive-map-page .input-form-light-select option:disabled {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
}

[data-theme="dark"] .interactive-map-page .input-form-light-select option:disabled {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
}

.interactive-map-status {
  min-height: 0;
}

.interactive-map-loading,
.interactive-map-error {
  margin: 0 0 1rem;
}

.map-placeholder {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

.map-error {
  color: #fca5a5;
}

.map-scroll {
  isolation: isolate;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  height: min(68vh, 42rem);
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86)),
    rgba(255, 255, 255, 0.035);
  cursor: default;
  touch-action: none;
  scrollbar-width: none;
  box-sizing: border-box;
}

.map-scroll.map-scroll-hold-ready {
  cursor: grab;
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.38);
}

.map-scroll.map-scroll-dragging {
  cursor: grabbing;
  user-select: none;
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.55);
}

.map-scroll.map-scroll-pinching {
  cursor: zoom-in;
}

.map-scroll::-webkit-scrollbar {
  display: none;
}

.section-map-content {
  display: block;
  width: fit-content;
  min-width: min-content;
  margin-inline: auto;
}

.section-visual-frame {
  position: relative;
  display: inline-block;
  padding: 2.75rem 3.25rem;
}

.section-boundary-label,
.section-boundary {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text-muted);
  font-size: calc(0.95rem + 4pt);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-boundary-top {
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.section-boundary-bottom {
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
}

.section-boundary-left {
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.section-boundary-right {
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

.section-visual-frame-has-left-road,
.section-visual-frame-has-left-fence {
  padding-left: 0.75rem;
}

.section-visual-frame-has-right-road,
.section-visual-frame-has-right-fence {
  padding-right: 0.75rem;
}

.section-visual-frame-has-bottom-road {
  padding-bottom: 0.75rem;
}

.section-layout-surface {
  position: relative;
  display: inline-block;
}

.section-layout-surface-has-left-road,
.section-layout-surface-has-left-fence,
.section-layout-surface-has-right-road,
.section-layout-surface-has-right-fence,
.section-layout-surface-has-bottom-road {
  --edge-strip-size: 2.85rem;
  --edge-strip-gap: 1rem;
}

.section-layout-surface-has-left-road .section-bands,
.section-layout-surface-has-left-fence .section-bands {
  margin-left: calc(var(--edge-strip-size) + var(--edge-strip-gap));
}

.section-layout-surface-has-right-road .section-bands,
.section-layout-surface-has-right-fence .section-bands {
  margin-right: calc(var(--edge-strip-size) + var(--edge-strip-gap));
}

.section-layout-surface-has-right-fence .section-bands {
  min-width: calc(var(--map-content-width) + 2rem);
  padding-right: 1rem;
}

.section-layout-surface-has-right-fence .section-bands::after {
  display: none;
}

.section-layout-surface-has-bottom-road .section-bands {
  margin-bottom: calc(var(--edge-strip-size) + var(--edge-strip-gap));
}

.section-edge-road {
  --road-surface: #4a5568;
  --road-curb: rgba(226, 232, 240, 0.42);
  --road-marking: rgba(250, 204, 21, 0.92);
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 2px solid var(--road-curb);
  background-color: var(--road-surface);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.08) 0,
      rgba(0, 0, 0, 0.08) 3px,
      transparent 3px,
      transparent 7px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

.section-edge-fence {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(226, 232, 240, 0.22) 0,
      rgba(226, 232, 240, 0.22) 0.45rem,
      rgba(15, 23, 42, 0.55) 0.45rem,
      rgba(15, 23, 42, 0.55) 0.9rem
    );
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

.section-edge-road-left,
.section-edge-fence-left {
  top: 0;
  left: 0;
  bottom: var(--edge-strip-size);
  width: var(--edge-strip-size);
  border-radius: 0.45rem 0 0 0;
}

.section-edge-fence-right {
  top: 0;
  right: 0;
  bottom: var(--edge-strip-size);
  width: var(--edge-strip-size);
  border-radius: 0 0.45rem 0 0;
}

.section-edge-road-left::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    var(--road-marking) 0,
    var(--road-marking) 0.85rem,
    transparent 0.85rem,
    transparent 1.7rem
  );
}

.section-edge-road-right {
  top: 0;
  right: 0;
  bottom: var(--edge-strip-size);
  width: var(--edge-strip-size);
  border-radius: 0 0.45rem 0 0;
}

.section-edge-road-right::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    var(--road-marking) 0,
    var(--road-marking) 0.85rem,
    transparent 0.85rem,
    transparent 1.7rem
  );
}

.section-edge-road-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--edge-strip-size);
  border-radius: 0 0 0.45rem 0;
}

.section-edge-road-bottom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.65rem;
  right: 0.65rem;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(
    to right,
    var(--road-marking) 0,
    var(--road-marking) 0.85rem,
    transparent 0.85rem,
    transparent 1.7rem
  );
}

.section-edge-road-labels,
.section-edge-fence-labels {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-evenly;
  font-size: calc(0.82rem + 4pt);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.section-edge-road-labels {
  color: rgba(248, 250, 252, 0.94);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.65);
}

.section-edge-fence-labels {
  color: rgba(226, 232, 240, 0.92);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.75);
}

.section-edge-road-labels-left,
.section-edge-road-labels-right,
.section-edge-fence-labels-left,
.section-edge-fence-labels-right {
  flex-direction: column;
}

.section-edge-road-labels-bottom {
  flex-direction: row;
}

.section-edge-road-labels-left .section-edge-strip-label,
.section-edge-fence-labels-left .section-edge-strip-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-edge-road-labels-right .section-edge-strip-label,
.section-edge-fence-labels-right .section-edge-strip-label {
  writing-mode: vertical-rl;
}

.section-edge-strip-label {
  white-space: nowrap;
}

.band-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.band-lots {
  display: grid;
  gap: 0;
}

.section-bands {
  --feet-scale: 0.48rem;
  --grave-width: calc(3 * var(--feet-scale));
  --lot-width: calc(9 * var(--feet-scale));
  --lot-depth: calc(16 * var(--feet-scale));
  --walkway-panel-width: calc(8 * var(--feet-scale));
  --walkway-panel-depth: calc(3 * var(--feet-scale));
  --extension-width: var(--grave-width);
  --fence-width: 1.5rem;
  --lot-gap: 0;
  --map-columns: 12;
  --map-row-width: calc(var(--lot-width) * var(--map-columns));
  --fence-line-width: calc(var(--lot-width) * 11);
  --map-content-width: var(--fence-line-width);
  position: relative;
  min-width: calc(var(--map-content-width) + var(--fence-width) + 2rem);
  padding: 1rem calc(1rem + var(--fence-width)) 1rem 1rem;
}

.section-bands::after {
  content: "Fence";
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: var(--fence-width);
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  background: repeating-linear-gradient(
    180deg,
    rgba(226, 232, 240, 0.22) 0,
    rgba(226, 232, 240, 0.22) 0.45rem,
    rgba(15, 23, 42, 0.55) 0.45rem,
    rgba(15, 23, 42, 0.55) 0.9rem
  );
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.band-lots,
.cemetery-lot-row {
  width: var(--map-content-width);
}

.cemetery-lot-row {
  display: flex;
  gap: var(--lot-gap);
}

.lot-cell,
.flexible-lot-cell,
.walkway-panels button {
  touch-action: manipulation;
}

.lot-cell:hover,
.flexible-lot-cell:hover,
.grave-cell:hover,
.walkway-panels button:hover,
.walkway-grave-panel:hover {
  filter: brightness(0.92);
}

.lot-cell {
  flex: 0 0 var(--lot-width);
  min-height: var(--lot-depth);
  display: grid;
  place-items: center;
  padding: 0.35rem;
  border: 1px solid rgba(161, 139, 45, 0.55);
  border-radius: 0.7rem;
  background: #c9b458;
  color: #111827;
  cursor: pointer;
}

.lot-cell span {
  color: rgba(17, 24, 39, 0.78);
  font-size: 0.785rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lot-cell strong {
  font-size: 1.065rem;
}

.flexible-lot-cell,
.lot-cell.lot-cell-extended {
  flex: 1 1 auto;
  min-height: var(--lot-depth);
  display: grid;
  place-items: center;
  padding: 0.35rem;
  border: 1px solid rgba(161, 139, 45, 0.55);
  border-radius: 0.7rem;
  background: #c9b458;
  color: #111827;
  cursor: pointer;
  text-align: center;
}

.section-one-bands {
  --grave-width: calc(2.5 * var(--feet-scale));
  --fence-line-width: calc(96 * var(--feet-scale));
  --map-content-width: var(--fence-line-width);
  --extension-min-width: calc(5 * var(--feet-scale));
}

.section-one-bands .band-lot-width-10 {
  --lot-width: calc(10 * var(--feet-scale));
}

.section-one-bands .band-lot-width-7-5 {
  --lot-width: calc(7.5 * var(--feet-scale));
}

.section-one-bands .lot-cell:not(.lot-cell-extended) {
  flex: 0 0 var(--lot-width);
  width: var(--lot-width);
  max-width: var(--lot-width);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section-one-bands .band-lot-width-7-5 .lot-cell strong {
  font-size: 0.82rem;
}

.section-one-bands .lot-cell-extended,
.section-one-bands .section-four-lot-row .lot-cell.lot-cell-extended {
  flex: 1 0 var(--extension-min-width);
  min-width: var(--extension-min-width);
  box-sizing: border-box;
}

.lot-cell.lot-cell-label-stacked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lot-cell.lot-cell-label-stacked span {
  white-space: pre-line;
  line-height: 1.05;
  text-align: center;
}

.section-one-bands .lot-cell.lot-cell-label-stacked {
  padding-inline: 0.12rem;
}

.section-one-bands .lot-cell.lot-cell-label-stacked span {
  font-size: 0.62rem;
}

.section-one-bands .lot-cell.lot-cell-label-stacked strong {
  font-size: 0.85rem;
}

.section-four-bands {
  --lot-width: calc(8 * var(--feet-scale));
  --grave-width: calc((8 / 3) * var(--feet-scale));
  --map-columns: 19;
  --map-content-width: var(--map-row-width);
  --section-four-label-width: 8.5rem;
  min-width: calc(var(--section-four-label-width) + var(--map-content-width) + 2rem);
  padding-right: 1rem;
}

.section-four-bands.section-four-bands-no-row-labels {
  --section-four-label-width: 0px;
}

.section-four-bands.section-four-bands-no-row-labels .section-four-row-label {
  display: none;
}

.section-four-bands::after {
  display: none;
}

.section-four-band-row {
  display: flex;
  align-items: stretch;
}

.section-four-row-label {
  flex: 0 0 var(--section-four-label-width);
  display: grid;
  place-items: center start;
  padding-right: 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-four-bands .cemetery-lot-row {
  width: max-content;
  min-width: var(--map-content-width);
}

.section-four-lot-row .flexible-lot-cell,
.section-four-lot-row .lot-cell.lot-cell-extended,
.section-four-bands .lot-cell.lot-cell-extended {
  flex: 0 0 var(--lot-width);
}

.walkway-panels {
  display: grid;
  gap: 0;
  margin: 0.55rem 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.8rem;
}

.walkway-panels-trailing-gap {
  display: flex;
}

.walkway-panels-aligned {
  gap: 0;
}

.walkway-panels-flush {
  display: flex;
  gap: 0;
  width: var(--map-content-width);
  /* Each tile carries its own border; an outer border would shift the pack off the lot grid. */
  border: 0;
  margin: 0 0 calc(3 * var(--feet-scale));
}

.walkway-panels-flush button {
  flex: 0 0 var(--walkway-panel-width);
  width: var(--walkway-panel-width);
  box-sizing: border-box;
}

.walkway-panel-cell {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.walkway-panel-cell-gap {
  min-height: var(--walkway-panel-depth);
}

.walkway-panels button {
  display: grid;
  width: var(--walkway-panel-width);
  min-height: var(--walkway-panel-depth);
  place-items: center;
  border: 1px solid rgba(161, 139, 45, 0.55);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 800;
  background: #c9b458;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.15rem 0.25rem;
}

.grave-cell-unknown,
.lot-cell.grave-cell-unknown,
.flexible-lot-cell.grave-cell-unknown,
.lot-cell.lot-cell-extended.grave-cell-unknown,
.walkway-panels button.grave-cell-unknown,
.grave-cell.grave-cell-unknown,
.walkway-grave-panel.grave-cell-unknown {
  border-color: rgba(161, 139, 45, 0.55) !important;
  background: #c9b458 !important;
  color: #111827 !important;
}

.grave-cell-available,
.lot-cell.grave-cell-available,
.flexible-lot-cell.grave-cell-available,
.lot-cell.lot-cell-extended.grave-cell-available,
.walkway-panels button.grave-cell-available,
.grave-cell.grave-cell-available,
.walkway-grave-panel.grave-cell-available {
  border-color: rgba(74, 107, 78, 0.65) !important;
  background: #8faa91 !important;
  color: #111827 !important;
}

.grave-cell-pending,
.lot-cell.grave-cell-pending,
.flexible-lot-cell.grave-cell-pending,
.lot-cell.lot-cell-extended.grave-cell-pending,
.walkway-panels button.grave-cell-pending,
.grave-cell.grave-cell-pending,
.walkway-grave-panel.grave-cell-pending {
  border-color: rgba(8, 145, 178, 0.7) !important;
  background: #22d3ee !important;
  color: #0f172a !important;
}

.grave-cell-occupied,
.lot-cell.grave-cell-occupied,
.flexible-lot-cell.grave-cell-occupied,
.lot-cell.lot-cell-extended.grave-cell-occupied,
.walkway-panels button.grave-cell-occupied,
.grave-cell.grave-cell-occupied,
.walkway-grave-panel.grave-cell-occupied {
  border-color: rgba(75, 85, 99, 0.75) !important;
  background: #6b7280 !important;
  color: #fff !important;
}

.lot-cell.grave-cell-occupied span,
.flexible-lot-cell.grave-cell-occupied span,
.lot-cell.lot-cell-extended.grave-cell-occupied span {
  color: rgba(255, 255, 255, 0.88) !important;
}

.lot-cell.selected,
.flexible-lot-cell.selected,
.lot-cell.lot-cell-extended.selected,
.walkway-panels button.selected {
  background: #00ffff !important;
  border: 3px solid #000 !important;
  outline: none;
  color: #111827 !important;
  z-index: 2;
}

.lot-cell.selected span,
.lot-cell.selected strong,
.flexible-lot-cell.selected span,
.flexible-lot-cell.selected strong,
.lot-cell.lot-cell-extended.selected span,
.lot-cell.lot-cell-extended.selected strong,
.walkway-panels button.selected {
  color: #111827 !important;
}

.grave-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.03);
}

.grave-detail-info {
  min-width: 0;
}

.grave-detail-heading h2,
.grave-detail-card h2 {
  margin: 0;
  text-align: center;
}

.grave-visual-panel {
  --grave-layout-span: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.lot-grave-grid,
.lot-grave-grid-six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  overflow: hidden;
  width: var(--grave-layout-span);
}

.lot-grave-grid-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grave-cell {
  min-height: 3.5rem;
  padding: 0.5rem;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #c9b458;
  color: #111827;
  cursor: pointer;
}

.grave-cell.grave-cell-selected,
.walkway-grave-panel.grave-cell-selected {
  background: #00ffff !important;
  border: 3px solid #000 !important;
  outline: none;
  color: #111827 !important;
  z-index: 1;
}

.grave-cell.grave-cell-selected strong,
.walkway-grave-panel.grave-cell-selected strong {
  color: #111827 !important;
}

.grave-admin-edit-trigger {
  width: 50%;
  justify-self: center;
}

.grave-occupant-panel,
.grave-occupant-summary,
.grave-occupant-summary-editable {
  display: grid;
  gap: 0.65rem;
}

.grave-occupant-summary {
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.18);
}

.grave-occupant-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.grave-occupant-muted {
  color: var(--text-muted);
}

.grave-lot-breakdown {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.grave-lot-depth-empty {
  margin: 0;
  font-size: 0.82rem;
}

.grave-lot-depth-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.grave-lot-depth-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.grave-lot-depth-table th,
.grave-lot-depth-table td {
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.28em 0.35em;
  text-align: center;
  vertical-align: middle;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.grave-lot-depth-table thead th,
.grave-lot-depth-table tbody th {
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.35);
  font-weight: 800;
}

.grave-lot-depth-available {
  background: #8faa91;
  color: #111827;
}

.grave-lot-depth-pending {
  background: #22d3ee;
  color: #0f172a;
}

.grave-lot-depth-sold {
  background: #4f7cac;
  color: #fff;
}

.grave-lot-depth-occupied {
  background: #6b7280;
  color: #fff;
}

.grave-lot-depth-unknown {
  background: #c9b458;
  color: #111827;
}

.grave-lot-depth-unavailable {
  background: #374151;
  color: #fff;
}

.grave-lot-depth-missing {
  color: var(--text-muted);
  background: transparent;
  font-weight: 600;
}

.grave-lot-depth-table th.grave-lot-depth-pending-add,
.grave-lot-depth-table td.grave-lot-depth-pending-add {
  box-shadow: inset 0 0 0 2px rgba(253, 230, 138, 0.95);
}

.grave-occupant-edit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.grave-admin-depth-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.grave-occupant-edit-row {
  display: grid;
  gap: 0.5rem;
}

.grave-occupant-edit-row-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  width: 100%;
}

.grave-occupant-depth-row {
  font-weight: 700;
}

.grave-occupant-depth-name-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.grave-occupant-depth-name-link:hover,
.grave-occupant-depth-name-link:focus-visible {
  color: #1d4ed8;
  outline: none;
}

.grave-depth-status-available .grave-occupant-depth-name-link:hover,
.grave-depth-status-available .grave-occupant-depth-name-link:focus-visible {
  color: #166534;
}

.grave-depth-status-pending .grave-occupant-depth-name-link:hover,
.grave-depth-status-pending .grave-occupant-depth-name-link:focus-visible {
  color: #0e7490;
}

.grave-depth-status-available .grave-occupant-depth-status-part {
  color: #8faa91;
}

.grave-depth-status-pending .grave-occupant-depth-status-part {
  color: #0891b2;
}

.grave-occupant-depth-text {
  min-width: 0;
}

.grave-occupant-edit-depth-select {
  justify-self: center;
  width: min(100%, 7rem);
  min-width: 0;
  box-sizing: border-box;
}

.grave-occupant-edit-occupant {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.grave-occupant-intent {
  display: grid;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.grave-occupant-intent-legend {
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0 0.25rem;
}

.grave-occupant-intent label {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.85rem;
}

.grave-occupant-edit-occupant-label {
  flex: 0 0 auto;
  font-weight: 600;
}

.grave-admin-person-search-root {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.grave-occupant-edit-occupant .interactive-map-person-search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
}

.grave-occupant-edit-occupant input,
.grave-occupant-edit-occupant .interactive-map-person-search-input {
  flex: 1 1 auto;
  min-width: 0;
}

.grave-occupant-edit-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.grave-occupant-edit-save-btn,
.grave-occupant-edit-cancel-btn {
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 12px 18px;
  text-transform: uppercase;
}

.grave-occupant-edit-save-btn.grave-occupant-edit-save-idle,
.grave-occupant-edit-save-btn:disabled {
  background: #9ca3af !important;
  border: 1px solid #9ca3af !important;
  color: #f3f4f6 !important;
  cursor: not-allowed;
  opacity: 1;
}

.grave-occupant-edit-save-btn.grave-occupant-edit-save-ready:not(:disabled) {
  background: #8faa91 !important;
  border: 1px solid rgba(74, 107, 78, 0.65) !important;
  color: #111827 !important;
  cursor: pointer;
}

.grave-occupant-edit-save-btn.grave-occupant-edit-save-ready:not(:disabled):hover {
  background: #7f9d82 !important;
  border-color: rgba(74, 107, 78, 0.85) !important;
}

.grave-occupant-edit-cancel-btn {
  background: color-mix(in srgb, #b85c5c 38%, #a08080) !important;
  border: 1px solid color-mix(in srgb, #b85c5c 55%, #8a6060) !important;
  color: #fff !important;
  cursor: pointer;
}

.grave-occupant-edit-cancel-btn:hover:not(:disabled) {
  background: color-mix(in srgb, #b85c5c 48%, #a08080) !important;
}

.extension-grave-admin-controls-host {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
}

.extension-grave-admin-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.extension-grave-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.grave-location-info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.08);
}

.grave-sell-actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
}

.grave-sell-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.grave-sell-btn:not(:disabled) {
  background: #8faa91 !important;
  border-color: rgba(74, 107, 78, 0.65) !important;
  color: #111827 !important;
}

.grave-sell-btn:not(:disabled):hover {
  background: #7f9d82 !important;
  border-color: rgba(74, 107, 78, 0.85) !important;
}

.grave-sell-placeholder-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.grave-open-maps-btn {
  justify-self: end;
}

.lot-navigation-arrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-column: 2;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.gps-arrow {
  display: grid;
  place-items: center;
  grid-column: 2;
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(17, 24, 39, 0.35);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  transform-origin: center;
  transition: transform 220ms ease;
}

.gps-chevron {
  width: 1.45rem;
  height: 1.45rem;
  border-top: 0.42rem solid currentColor;
  border-right: 0.42rem solid currentColor;
  transform: translateY(0.35rem) rotate(-45deg);
}

.gps-arrow-muted {
  color: rgba(148, 163, 184, 0.76);
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.08);
}

.lot-navigation-text {
  display: grid;
  gap: 0.25rem;
  grid-column: 3;
  justify-self: start;
}

.lot-navigation-arrow small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lot-navigation-distance {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.extension-layout-preview {
  --extension-fence-width: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--extension-fence-width);
  gap: 0.75rem;
  align-items: stretch;
  width: var(--grave-layout-span, 75%);
  box-sizing: border-box;
}

.extension-layout-mirrored {
  grid-template-columns: var(--extension-fence-width) minmax(0, 1fr);
}

.extension-column {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  border: 1px solid rgba(253, 230, 138, 0.42);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.extension-fence {
  box-sizing: border-box;
  width: var(--extension-fence-width);
  min-width: var(--extension-fence-width);
  max-width: var(--extension-fence-width);
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
}

.walkway-grave-preview {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: var(--grave-layout-span, 75%);
  box-sizing: border-box;
}

.walkway-grave-panels {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.walkway-grave-panel {
  min-height: 8rem;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(161, 139, 45, 0.55);
  border-radius: var(--radius);
  background: #c9b458;
  color: #111827;
  cursor: pointer;
}

.orientation-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .interactive-map-select-row .input-form-select-grid-two,
  .interactive-map-select-row .interactive-map-select-grid,
  .satellite-map-toolbar .input-form-select-grid,
  .grave-detail-card {
    grid-template-columns: 1fr;
  }

  .section-bands {
    --feet-scale: 0.4rem;
  }
}

@media (max-width: 640px) {
  .grave-location-info {
    grid-template-columns: 1fr;
  }

  .lot-navigation-arrow {
    grid-column: auto;
    justify-self: start;
    width: 100%;
  }

  .grave-sell-actions {
    justify-self: stretch;
    flex-flow: row nowrap;
  }

  .grave-sell-actions .grave-sell-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .grave-open-maps-btn {
    justify-self: stretch;
  }
}
