html[data-archive-language] body::after {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(0, 0, 0, .12);
  bottom: 10px;
  color: #555;
  content: "ARCHIVE · 15 SEPTEMBER 2026";
  font: 9px/1.2 Arial, sans-serif;
  left: 10px;
  letter-spacing: .12em;
  padding: 6px 8px;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}

.archive-toast {
  background: #fff;
  border-left: 4px solid #9b875d;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  color: #333;
  font: 14px/1.5 Arial, sans-serif;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px 22px;
  position: fixed;
  top: 24px;
  transform: translateX(-50%);
  z-index: 10001;
}

.archive-map {
  background-color: #e9e4d8;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.55) 2px, transparent 2px),
    linear-gradient(35deg, transparent 47%, rgba(177,156,112,.42) 48%, rgba(177,156,112,.42) 52%, transparent 53%);
  background-size: 72px 72px, 72px 72px, 190px 190px;
  cursor: grab;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.archive-map:active { cursor: grabbing; }
.archive-map__pin {
  background: #872f2a;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  height: 30px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -100%) rotate(-45deg);
  width: 30px;
}
.archive-map__label {
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  left: 50%;
  padding: 10px 14px;
  position: absolute;
  text-align: center;
  top: calc(50% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
}
.archive-map__controls { position: absolute; right: 12px; top: 12px; }
.archive-map__controls button { display: block; font: bold 20px Arial; height: 36px; margin-bottom: 4px; width: 36px; }
.archive-map__link { bottom: 12px; position: absolute; right: 12px; }
.archive-form-note { color: #777; font-size: 12px; }

.sbi_item,
.sbi_photo img {
  opacity: 1 !important;
}

.sbi_photo {
  aspect-ratio: 1 / 1;
  display: block !important;
  height: auto !important;
  overflow: hidden;
}

.sbi_photo img {
  display: block !important;
  height: 100% !important;
  object-fit: cover;
  width: 100% !important;
}

@media (max-width: 767px) {
  html[data-archive-language] body::after { bottom: 6px; left: 6px; }
  .archive-map { min-height: 360px; }
}

/* Leaflet map replacing the retired Google map */
.archive-leaflet { position: relative; z-index: 0; min-height: 350px; background: #dfe5e8; font: inherit; }
/* The original Google style desaturated the map by 63%. */
.archive-leaflet .leaflet-tile-pane { filter: saturate(.37) contrast(1.03); }
.archive-leaflet .leaflet-popup-content-wrapper { border-radius: 2px; }
.archive-leaflet .leaflet-popup-content { margin: 14px 18px; }
.archive-leaflet .leaflet-popup-content .poi-title { color: #002e4d; display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; text-align: center; }
.archive-leaflet .leaflet-popup-content .poi-address { font-weight: 300; margin: 0 auto; max-width: 100% !important; text-align: center; }
.archive-leaflet .leaflet-bar a { color: #002e4d; }
