:root {
  color-scheme: light;
  --bg: #edf1ee;
  --panel: rgba(250, 252, 250, 0.96);
  --text: #17211b;
  --muted: #657268;
  --accent: #2f6f5e;
  --accent-soft: #dce9e2;
  --border: rgba(23, 33, 27, 0.14);
  --shadow: 0 12px 30px rgba(23, 33, 27, 0.11);
  --shadow-soft: 0 7px 18px rgba(23, 33, 27, 0.08);
  --panel-alt: rgba(255, 255, 255, 0.92);
  --accent-ink: #214e43;
  --action-soft: #e5ece8;
  --action-ink: #2d4a3e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  background: linear-gradient(135deg, #edf1ee 0%, #f6f7f3 52%, #e5ece8 100%);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  height: 100vh;
}

.sidebar-backdrop,
.details-backdrop,
.lightbox,
.sidebar-close,
.map-toolbar {
  display: none;
}

.sidebar-backdrop[hidden],
.details-backdrop[hidden],
.lightbox[hidden] {
  display: none !important;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100vh;
  min-height: 0;
  gap: 16px;
  padding: 16px;
}

.sidebar,
.map-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar {
  height: calc(100vh - 32px);
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 111, 94, 0.72) rgba(23, 33, 27, 0.08);
}

.sidebar::-webkit-scrollbar {
  width: 12px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(47, 111, 94, 0.76);
  border: 2px solid rgba(250, 252, 250, 0.92);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 111, 94, 0.9);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.filters-section {
  margin-top: 0px;
  display: grid;
  gap: 13px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filters-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.language-switcher-button {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.language-switcher-button.is-active {
  background: rgba(47, 111, 94, 0.13);
  color: var(--accent-ink);
  border-color: rgba(47, 111, 94, 0.28);
}

.filters-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filters-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.filters-results,
.filters-status,
.filter-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.search-field {
  display: grid;
  gap: 8px;
}

.site-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-logo-wrap[hidden] {
  display: none !important;
}

.site-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.search-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.search-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
}

.search-input:focus {
  outline: 2px solid rgba(47, 111, 94, 0.18);
  outline-offset: 1px;
  border-color: rgba(47, 111, 94, 0.42);
}

.filters-form {
  display: grid;
  gap: 14px;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.filters-form.is-loading {
  filter: saturate(0.8);
  opacity: 0.58;
  cursor: progress;
}

.filter-group {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
}

.filter-group.is-disabled {
  opacity: 0.6;
}

.filter-group legend {
  padding: 0 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.filter-option {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 10px;
  padding-left: calc(var(--option-level, 0) * 14px);
  color: var(--text);
}

.filter-option.is-disabled {
  color: var(--muted);
}

.filter-option input {
  margin-top: 3px;
}

.filter-option-text {
  line-height: 1.4;
}

.filter-children {
  display: grid;
}

.filter-select {
  display: grid;
  gap: 8px;
}

.filter-select-multiple {
  align-items: start;
}

.filter-select-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.filter-select select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
}

.filter-select select:focus {
  outline: 2px solid rgba(47, 111, 94, 0.18);
  outline-offset: 1px;
  border-color: rgba(47, 111, 94, 0.42);
}

.filter-select-multiple select {
  min-height: 168px;
}

.reset-button,
.map-toolbar-button,
.sidebar-close {
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.reset-button {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1;
}

.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.map-toolbar-button-location {
  display: none;
}

.map-toolbar-status {
  display: none;
}

.map-shell {
  min-height: calc(100vh - 32px);
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 32px);
}

.leaflet-top.leaflet-right {
  top: 16px;
  right: 16px;
}

.leaflet-right .leaflet-control {
  margin-right: 0;
}

.leaflet-control-zoom,
.leaflet-control-layers {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft) !important;
}

.leaflet-control-zoom a,
.leaflet-control-layers-toggle,
.leaflet-control-layers-expanded {
  background: rgba(250, 252, 250, 0.97) !important;
  color: var(--text) !important;
}

.leaflet-control-layers-toggle {
  display: block;
  width: 42px !important;
  height: 42px !important;
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5 9 4l6 2.5L21 4v13.5L15 20l-6-2.5L3 20V6.5Z'/%3E%3Cpath d='M9 4v13.5'/%3E%3Cpath d='M15 6.5V20'/%3E%3C/svg%3E") !important;
  text-indent: -9999px;
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background: var(--action-soft) !important;
}

.leaflet-control-layers-expanded {
  padding: 12px 14px !important;
  min-width: 180px;
}

.leaflet-control-layers label {
  color: var(--text);
}

.leaflet-control-layers {
  display: none;
}

.custom-map-marker-wrapper {
  background: transparent;
  border: 0;
}

.custom-map-marker {
  width: 15px;
  height: 15px;

  background: #2f6f5e;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(23, 33, 27, 0.35),
    0 4px 10px rgba(23, 33, 27, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
}

.custom-map-marker.is-gallery-hovered {
  background: #d7a928;
  border: 2px solid rgba(255, 250, 231, 0.98);
  box-shadow:
    0 0 0 4px rgba(215, 169, 40, 0.24),
    0 10px 22px rgba(126, 94, 20, 0.22);
  transform: scale(1.08);
}

.custom-map-marker-high {
  background: #d97706;
}

.custom-map-marker-medium {
  background: #2563eb;
}

.custom-map-marker-low {
  background: #111827;
}

.custom-map-marker-minimal {
  background: #6b7280;
}

.custom-map-marker-gold {
  background: #d97706;
}

.custom-map-marker-blue {
  background: #2563eb;
}

.custom-map-marker-green {
  background: #16a34a;
}

.custom-map-marker-silver {
  background: #64748b;
}

.custom-map-marker-orange {
  background: #ea580c;
}

.custom-map-marker-violet {
  background: #7c3aed;
}

.custom-map-marker-black {
  background: #111827;
}

.custom-map-marker-gray {
  background: #6b7280;
}

.custom-map-marker-rospis {
  background: #0f766e;
}

.custom-map-cluster-wrapper {
  background: transparent;
  border: 0;
}

.custom-map-cluster {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #2f6f5e;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.welcome-gallery {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: min(440px, calc(100% - 48px));
  height: min(74vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  background: rgba(250, 252, 250, 0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.welcome-gallery.is-expanded {
  width: min(720px, calc(100% - 48px));
}

.welcome-gallery[hidden],
.welcome-gallery-peek[hidden] {
  display: none !important;
}

.welcome-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.welcome-gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-gallery-copy {
  display: grid;
  gap: 4px;
}

.welcome-gallery-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.welcome-gallery-copy h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.welcome-gallery-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.welcome-gallery-toggle,
.welcome-gallery-expand,
.welcome-gallery-peek {
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.welcome-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  padding: 0;
  font-size: 18px;
}

.welcome-gallery-expand {
  flex: 0 0 auto;
  padding: 10px 14px;
}

.welcome-gallery-peek {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.welcome-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  opacity: 1;
  transition: opacity 0.14s ease;
}

.welcome-gallery.is-expanded .welcome-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-gallery-grid.is-fading {
  opacity: 0.08;
}

.welcome-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcome-gallery-page-button {
  flex: 1 1 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--action-soft);
  color: var(--action-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.welcome-gallery-page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.welcome-gallery-card {
  padding: 0;
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-gallery-card:hover,
.welcome-gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 33, 27, 0.13);
}

.welcome-gallery-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--accent-soft);
}

.welcome-gallery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-gallery-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 94, 0.2), transparent 46%),
    linear-gradient(135deg, #dce9e2 0%, #f0f3ec 100%);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.welcome-gallery-card-body {
  display: grid;
  gap: 4px;
  padding: 10px 11px 12px;
}

.welcome-gallery-card-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40ch;
}

.welcome-gallery-card-meta {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-panel,
.author-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(540px, calc(100vw - 32px));
  z-index: 1300;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(250, 252, 250, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.28s ease;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.details-open .details-panel {
  transform: translateX(0);
  pointer-events: auto;
}

.author-panel {
  z-index: 1350;
  width: min(500px, calc(100vw - 32px));
}

body.author-open .author-panel {
  transform: translateX(0);
  pointer-events: auto;
}

body.details-open.author-open .author-panel {
  right: min(580px, calc(100vw - 500px));
}

.details-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.details-panel-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.details-kicker {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.details-head-address {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.details-close {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.details-copy-status {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.details-content {
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.details-expand-bar {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(250, 252, 250, 0.97);
}

.details-expand-button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.details-state {
  display: grid;
  gap: 12px;
  padding: 28px 0;
  color: var(--muted);
}

.details-state-message,
.details-retry-timer {
  margin: 0;
}

.details-retry-button {
  width: fit-content;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.details-card,
.visit-list {
  display: grid;
  gap: 22px;
}

.details-hero,
.details-summary,
.details-section {
  display: grid;
  gap: 10px;
}

.details-summary h2,
.details-section h3,
.visit-card h4 {
  margin: 0;
}

.details-address,
.details-coords,
.details-meta,
.details-muted {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.details-coords-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.details-coords-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.details-copy-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--action-soft);
  color: var(--action-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.details-map-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.details-link-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.details-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.details-description,
.visit-card-text {
  line-height: 1.65;
  color: var(--text);
}

.details-description p,
.visit-card-text p {
  margin: 0 0 12px;
}

.details-facts {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
}

.details-summary .details-facts {
  font-size: 13px;
}

.details-fact {
  display: grid;
  grid-template-columns: minmax(96px, 0.44fr) 1fr;
  gap: 12px;
  padding: 3px 0;
  border-top: 1px solid var(--border);
}

.details-fact dt,
.details-fact dd {
  margin: 0;
  line-height: 1.45;
}

.details-fact dt {
  color: var(--muted);
}

.details-fact dd {
  color: var(--text);
}

.author-link-list,
.author-solution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-solution-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--action-soft);
  color: var(--action-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.details-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.details-video-list {
  display: grid;
  gap: 12px;
}

.visit-card .details-video-list {
  margin-bottom: 12px;
}

.details-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #0b132b;
  aspect-ratio: 16 / 9;
}

.details-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.details-gallery-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.details-gallery-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--accent-soft);
}

.visit-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.visit-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.visit-card-head span {
  color: var(--muted);
  font-size: 14px;
}

.details-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(23, 33, 27, 0.34);
}

body.details-open .details-backdrop {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

body.lightbox-open .lightbox {
  display: block;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 20, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 32px;
}

.lightbox-image {
  max-width: min(1400px, 100%);
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease;
  touch-action: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(250, 252, 250, 0.18);
  color: white;
  cursor: pointer;
  font-size: 22px;
  backdrop-filter: blur(10px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: rgba(250, 252, 250, 0.18);
  color: white;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.sidebar-open,
  body.details-open,
  body.lightbox-open {
    overflow: hidden;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(23, 33, 27, 0.45);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    height: 100dvh;
    min-height: 100dvh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 12px 12px 0;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    flex: 0 0 auto;
  }

  .map-toolbar {
    display: block;
    position: absolute;
    top: 16px;
    left: 16px;
    right: 90px;
    z-index: 1000;
    pointer-events: none;
  }

  .map-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .map-toolbar-button {
    pointer-events: auto;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }

  .map-toolbar-button-secondary {
    background: var(--action-soft);
    color: var(--action-ink);
  }

  .map-toolbar-button-gallery {

    max-width: 220px;
  }

  .map-toolbar-button-location {
    display: inline-flex;
  }

  .map-toolbar-status {
    display: block;
    flex: 1 1 100%;
    min-height: 18px;
    padding: 2px 2px 0;
    color: rgba(11, 19, 43, 0.72);
    font-size: 12px;
    line-height: 1.4;
  }

  .leaflet-top.leaflet-right {

    right: 16px;
  }

  .map-shell,
  #map {
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .welcome-gallery {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    height: 54vh;
    padding: 14px;
    gap: 12px;
    border-radius: 12px;
    overscroll-behavior: contain;
  }

  .welcome-gallery.is-expanded {
    width: auto;
    height: 90vh;
    height: 90dvh;
  }

  .welcome-gallery-head {
    gap: 12px;
  }

  .welcome-gallery-copy h2 {
    font-size: 22px;
  }

  .welcome-gallery-note {
    font-size: 12px;
  }

  .welcome-gallery-toggle {
    width: 31px;
    height: 31px;
    padding: 0;
  }

  .welcome-gallery-expand {
    padding: 9px 12px;
  }

  .welcome-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .welcome-gallery.is-expanded .welcome-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-gallery-peek {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    justify-content: center;
  }

  .filters-head {
    align-items: start;
  }

  .filters-head-actions {
    align-items: start;
  }

  .filters-head h2 {
    font-size: 20px;
  }

  .details-panel,
  .author-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 82vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(102%);
  }

  body.details-open .details-panel {
    transform: translateY(0);
  }

  body.author-open .author-panel,
  body.details-open.author-open .author-panel {
    right: 0;
    transform: translateY(0);
  }

  .details-panel.is-compact {
    max-height: 48vh;
  }

  .details-panel-head,
  .details-content,
  .details-expand-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .details-panel.is-compact .details-content {
    position: relative;
    overflow: hidden;
    padding-bottom: 12px;
  }

  .details-panel.is-compact .details-description,
  .details-panel.is-compact .details-coords-row {
    display: none;
  }

  .details-panel.is-compact .details-content::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(250, 252, 250, 0), rgba(250, 252, 250, 0.97));
    pointer-events: none;
  }

  .details-gallery-image {
    max-height: 600px;
  }

  .visit-card-head {
  /*  align-items: start;
  flex-direction: column; */
  }

  .lightbox-figure {
    padding: 16px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .lightbox-image {
    max-height: calc(100vh - 32px);
    border-radius: 10px;
  }
}

.leaflet-control-attribution{
  display:none;
}
