:root {
  --nav-h: 64px;
  --footer-h: 34px;
  --panel-w: 310px;
  --detail-w: 360px;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --panel-bg: rgba(255, 255, 255, 0.97);
  --line: rgba(0, 0, 0, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --map-control-height: 38px;
  --map-control-padding-x: 12px;
  --map-control-padding-y: 8px;
  --map-control-font-size: 12px;
  --map-control-line-height: 20px;
}

.map-font-outfit { --map-font-family: 'Outfit', system-ui, sans-serif; }
.map-font-manrope { --map-font-family: 'Manrope', system-ui, sans-serif; }
.map-font-roboto { --map-font-family: 'Roboto', system-ui, sans-serif; }
.map-font-open-sans { --map-font-family: 'Open Sans', system-ui, sans-serif; }
.map-font-noto-sans { --map-font-family: 'Noto Sans', system-ui, sans-serif; }
.map-font-noto-serif { --map-font-family: 'Noto Serif', Georgia, serif; }
.map-font-lato { --map-font-family: 'Lato', system-ui, sans-serif; }
.map-font-montserrat { --map-font-family: 'Montserrat', system-ui, sans-serif; }

* {
  box-sizing: border-box;
}

html,
body.main-map-template {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--map-font-family, 'Outfit', system-ui, sans-serif);
  background: radial-gradient(circle at 20% 10%, #f8fafc, #e2e8f0 58%, #dbeafe);
  color: var(--text);
}

.main-map-template :is(button, input, select, textarea),
.main-map-template .leaflet-container {
  font-family: var(--map-font-family, 'Outfit', system-ui, sans-serif);
}

.main-map-template.is-embedded {
  --nav-h: 0px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.is-embedded .topbar,
.is-embedded #mapBadge,
.is-embedded .burger-btn,
.is-embedded .offcanvas {
  display: none;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.logo-wrap.has-logo .logo-icon {
  width: auto;
  height: 42px;
  max-width: 240px;
}

.logo-icon-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32);
}

.logo-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-wrap.has-logo .logo-icon-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.long-description-modal__body {
  line-height: 1.65;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.burger-btn,
.tool-btn,
.panel-toggle,
.detail-close {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #334155;
  transition: 0.2s ease;
}

.burger-btn:hover,
.tool-btn:hover,
.panel-toggle:hover,
.detail-close:hover {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent);
}

.burger-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

#map {
  position: fixed;
  inset: var(--nav-h) 0 var(--footer-h) 0;
  z-index: 1;
}

.preview-draw-notice {
  position: fixed;
  left: 50%;
  top: calc(var(--nav-h) + 12px);
  z-index: 1200;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.map-title-banner {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: min(95vw, 760px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.map-title-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.left-panel .map-title-banner.in-panel {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  width: auto;
  max-width: calc(100% - 20px);
  display: flex;
  margin: 10px 10px 0;
  border-radius: 14px;
  z-index: auto;
}

.map-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-title-desc-inline {
  display: none;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.map-info-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.map-info-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: normal;
}

.map-info-tooltip p:last-child {
  margin-bottom: 0;
}

.map-info-icon:hover .map-info-tooltip {
  opacity: 1;
}

.main-map-template.is-embedded .map-title-banner {
  align-items: flex-start;
}

.main-map-template.is-embedded .map-title-desc-inline,
.left-panel .map-title-banner.in-panel .map-title-desc-inline {
  display: block;
}

.main-map-template.is-embedded .map-info-icon,
.left-panel .map-title-banner.in-panel .map-info-icon {
  display: none;
}

.left-panel .map-title-banner.in-panel .map-info-tooltip {
  left: 0;
  right: auto;
  transform: none;
  width: min(250px, calc(100vw - 48px));
}

.left-panel,
.detail-panel {
  position: fixed;
  top: var(--nav-h);
  bottom: var(--footer-h);
  z-index: 450;
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
}

.left-panel {
  left: 0;
  width: var(--panel-w);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.left-panel.collapsed {
  transform: translateX(calc(-1 * (var(--panel-w) - 40px)));
}

.left-panel.collapsed > :not(.panel-header) {
  visibility: hidden;
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.left-panel.collapsed .panel-header {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-bg);
}

.left-panel.collapsed .panel-title,
.left-panel.collapsed .panel-count {
  display: none;
}

.panel-title {
  flex: 1 1 auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.panel-count {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.cat-section {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.cat-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  font-weight: 600;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--cat-color, var(--line));
  padding: 4px 9px;
  background: var(--cat-bg, #f8fafc);
  color: var(--cat-color, #475569);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.cat-chip.active {
  background: var(--cat-bg-active, var(--cat-bg, #eff6ff));
  border-color: var(--cat-color, #bfdbfe);
  color: var(--cat-color, #1d4ed8);
}

.cat-chip:not(.active) {
  background: var(--cat-bg, #f8fafc);
  border-color: var(--cat-color, var(--line));
  color: var(--cat-color, #475569);
  opacity: 0.55;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.points-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 12px;
}

@media (max-height: 760px) {
  .panel-header {
    padding: 9px 12px;
  }

  .cat-section {
    max-height: 48vh;
    padding: 8px 10px;
  }

  .points-section {
    padding: 6px 10px;
  }
}

.points-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 0 4px;
  font-weight: 600;
}

.points-group-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 12px;
}

.points-group-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.point-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 0;
  padding: 4px;
  cursor: pointer;
  background-color: unset;
  text-align: left;
}

.point-item:hover {
  background: #f8fafc;
}

.point-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.point-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.point-cat-icon-wrap {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
}

.point-cat-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 13px;
}

.point-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.point-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-meta {
  display: block;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-arrow {
  margin-left: auto;
  color: #94a3b8;
  flex-shrink: 0;
}

.panel-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  z-index: 1;
}

.chip-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.chip-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  object-fit: contain;
  font-size: 12px;
  line-height: 1;
}

.panel-toggle.collapsed {
  border-color: #bfdbfe;
  background: var(--accent-soft);
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.map-view-switch {
  position: fixed;
  top: calc((var(--nav-h) - 42px) / 2);
  left: 50%;
  z-index: 1100;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
}

.map-view-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.map-view-switch__button.active {
  background: #1f5eff;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(31, 94, 255, 0.28);
}

.map-view-switch__button:focus-visible,
.panel-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.map-view-switch.map-view-switch--in-panel {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  align-self: flex-start;
  margin: 10px 12px 0;
  transform: none;
}

.map-table-view__header .map-view-switch.map-view-switch--in-panel {
  margin: 0 0 0 auto;
}

.map-table-view {
  position: fixed;
  inset: var(--nav-h) 0 var(--footer-h) 0;
  z-index: 470;
  display: none;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  background: #f8fafc;
}

.main-view-list .map-table-view {
  display: flex;
}

.main-view-list :is(#map, .left-panel, .panel-toggle, .map-toolbar, .map-badge, .map-title-banner) {
  visibility: hidden;
  pointer-events: none;
}

.main-view-list .detail-panel {
  left: 0;
  z-index: 600;
}

.map-table-view__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.map-table-view__header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-table-view__header h2 {
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-table-view__count {
  min-width: 30px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.map-table-view__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-table-view__actions input {
  width: min(280px, 42vw);
}

.map-table-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.map-table-filters.d-none {
  display: none !important;
}

.map-table-filter-group {
  display: grid;
  gap: 6px;
}

.map-table-multiselect {
  position: relative;
  min-width: 200px;
}

.map-table-multiselect summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #ced4da;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.map-table-multiselect summary::-webkit-details-marker {
  display: none;
}

.map-table-multiselect summary span {
  color: #64748b;
  font-size: 11px;
}

.map-table-multiselect-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 100%;
  max-height: 260px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.map-table-multiselect-menu label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 180px;
  margin: 0;
  padding: 5px 6px;
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

.map-table-multiselect-menu label:hover {
  background: #f1f5f9;
}

.map-table-multiselect-menu .map-table-show-all {
  margin-bottom: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

#mapTableFilterToggle[aria-expanded="true"] {
  background: #1f5eff;
  border-color: #1f5eff;
  color: #ffffff;
}

.map-table-filter-title,
.map-table-extra-filter > span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-table-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-table-category-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--filter-color, #1f5eff) 60%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--filter-color, #1f5eff) 10%, #ffffff);
  color: var(--filter-color, #1f5eff);
  font-size: 11px;
  opacity: 0.5;
}

.map-table-category-filter.active {
  background: color-mix(in srgb, var(--filter-color, #1f5eff) 18%, #ffffff);
  opacity: 1;
}

.map-table-filter-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.map-table-filter-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.map-table-extra-filter {
  display: grid;
  gap: 5px;
  min-width: 170px;
}

.map-table-extra-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-table-extra-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  font-size: 11px;
}

.map-table-filter-clear {
  margin-left: auto;
}

.map-table-view__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.map-points-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.map-points-table th,
.map-points-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #334155;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.map-points-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-points-table tbody tr:hover {
  background: #f8fbff;
}

.map-table-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e3a5f;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.map-table-title-button:hover,
.map-table-title-button:focus-visible {
  color: #1f5eff;
}

.map-table-title-button:hover .map-table-title-copy > span:first-child,
.map-table-title-button:focus-visible .map-table-title-copy > span:first-child {
  text-decoration: underline;
}

.map-table-title-button .map-table-marker {
  display: none;
}

.map-table-title-copy {
  display: block;
}

.map-table-title-address {
  display: none;
}

.map-points-table th:first-child,
.map-points-table td:first-child {
  width: 52px;
  text-align: center;
}

.map-points-table th:last-child,
.map-points-table td:last-child {
  width: 120px;
  text-align: right;
}

.map-table-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22);
}

.map-table-marker-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.map-table-view__empty {
  padding: 32px 16px;
  color: #64748b;
  text-align: center;
}

.detail-panel {
  left: var(--panel-w);
  width: var(--detail-w);
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 15px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(-1 * (var(--panel-w) + var(--detail-w))));
  transition: transform 0.35s ease, left 0.3s ease;
}

#detailImgWrap {
  flex: 0 0 auto;
}

.detail-panel.open {
  transform: translateX(0);
}

.detail-panel.panel-collapsed {
  left: 0;
}

#detailPanel .detail-close {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.detail-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.detail-media-carousel {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}

.detail-media-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.detail-media-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.detail-media-slide iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-media-image-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-media-nav,
.detail-media-expand {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  backdrop-filter: blur(5px);
}

.detail-media-nav {
  top: 50%;
  transform: translateY(-50%);
}

.detail-media-nav--prev {
  left: 8px;
}

.detail-media-nav--next {
  right: 8px;
}

.detail-media-expand {
  left: 8px;
  bottom: 8px;
}

.detail-media-nav:hover,
.detail-media-expand:hover {
  background: rgba(15, 23, 42, 0.9);
}

.detail-media-counter {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.3;
  backdrop-filter: blur(5px);
}

.detail-img-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  color: #94a3b8;
}

.detail-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 16px 18px;
}

.detail-empty {
  color: var(--muted);
  font-size: 13px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 3px 10px;
}

.detail-badge-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 12px;
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.detail-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-share-btn {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.detail-share-btn:hover,
.detail-share-btn:focus {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.detail-share-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.detail-share-btn .bi {
  font-size: 13px;
}

.detail-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: justify;
}

.detail-desc .btn-xs {
  --bs-btn-padding-y: 0.12rem;
  --bs-btn-padding-x: 0.38rem;
  --bs-btn-font-size: 0.72rem;
  --bs-btn-border-radius: 0.25rem;
}

.extra-filter-header {
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 2px 0;
}

.extra-filter-toggle {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.panel-title,
.cat-label,
.points-group-label,
.extra-filter-toggle,
.detail-section-label {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.extra-filter-clear {
  align-items: center;
  background: #dc2626;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.extra-filter-clear:hover,
.extra-filter-clear:focus {
  background: #b91c1c;
  color: #ffffff;
}

.extra-filter-clear .bi {
  font-size: 15px;
  line-height: 1;
}

.extra-filter-toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.extra-filter-toggle .bi {
  transition: transform 160ms ease;
}

.extra-filter-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.extra-filter-group {
  display: grid;
  gap: 6px;
}

.extra-filter-label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.map-title-subtitle {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-filter-select {
  border-color: #dbeafe;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  min-height: 28px;
  padding-bottom: 3px;
  padding-top: 3px;
}

.extra-filter-multiselect {
  display: grid;
  gap: 5px;
}

.extra-filter-multiselect-search {
  border-color: #dbeafe;
  color: #334155;
  font-size: 12px;
  min-height: 28px;
  padding-bottom: 3px;
  padding-top: 3px;
}

.extra-filter-multiselect-options {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 1px;
  max-height: 122px;
  overflow-y: auto;
  padding: 3px;
}

.extra-filter-multiselect-option {
  align-items: center;
  border-radius: 6px;
  color: #334155;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  margin: 0;
  padding: 3px 5px;
}

.extra-filter-multiselect-option:hover {
  background: #eff6ff;
}

.extra-filter-multiselect-option.is-hidden {
  display: none;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  width: 100%;
  color: #2563eb;
  font-size: 12px;
  text-decoration: none;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.detail-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.detail-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.detail-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
}

.detail-route-chip i {
  font-size: 11px;
  color: #3b82f6;
}

.detail-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #d3dbe8;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
}

.detail-contact-item i {
  color: #94a3b8;
  font-size: 10px;
  flex-shrink: 0;
}

.detail-contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-contact-item--link {
  text-decoration: none;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.detail-contact-item--link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.detail-contact-item--link > i:first-child {
  color: #2563eb;
}

.detail-contact-external {
  margin-left: auto;
  font-size: 14px;
  color: #7aa2f7;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.detail-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.detail-extra-fields-list {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
}

.detail-extra-fields-list li {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-media-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.detail-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-video {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.detail-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.map-toolbar {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 14px;
  z-index: 420;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 6px;
}

.tool-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.tool-btn.active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.tool-sep {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

.tool-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
}

.tool-btn:hover::after {
  opacity: 1;
}

.map-badge {
  position: fixed;
  z-index: 420;
  bottom: calc(var(--footer-h) + 10px);
  left: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.offcanvas {
  width: 260px !important;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #475569;
  border-radius: 9px;
  padding: 10px 12px;
}

.nav-menu a:hover {
  background: #eff6ff;
  color: var(--accent);
}

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  z-index: 1000;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 11px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  z-index: 2000;
}

.gallery-lightbox.open {
  display: flex;
}

.media-lightbox-open {
  overflow: hidden;
}

.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1280px);
  height: 86vh;
}

.lb-stage img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  object-fit: contain;
}

.lb-stage iframe {
  display: block;
  width: min(92vw, 1280px);
  max-height: 86vh;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000000;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-size: 20px;
}

.lb-nav--prev {
  left: 18px;
}

.lb-nav--next {
  right: 18px;
}

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  font-size: 12px;
}

.detail-category-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.detail-point-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  align-self: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
}

.detail-point-marker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  object-fit: contain;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 640px) {
  .lb-nav {
    width: 36px;
    height: 36px;
  }

  .lb-nav--prev {
    left: 8px;
  }

  .lb-nav--next {
    right: 8px;
  }
}

.leaflet-popup.map-hover-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  background: #0f172a;
}

.leaflet-popup.map-hover-popup .leaflet-popup-content {
  margin: 0;
  width: 232px !important;
}

.leaflet-popup.map-hover-popup .leaflet-popup-tip {
  background: #0f172a;
}

.leaflet-popup.map-hover-popup .leaflet-popup-close-button {
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  font-size: 16px;
  line-height: 22px;
  padding: 0;
}

.leaflet-popup.map-hover-popup .leaflet-popup-close-button:hover {
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
}

.map-hover-card {
  position: relative;
  width: 232px;
  min-height: 132px;
  background: #0f172a;
}

.map-hover-card__img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.map-hover-card__title {
  margin: 0;
  padding: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.map-hover-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 11px 9px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.08));
}

.map-hover-card__meta--solid {
  position: static;
  background: transparent;
  width: 100%;
}

.map-hover-card__desc {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(248, 250, 252, 0.9);
  max-height: 3.9em;
  overflow: hidden;
}

.map-hover-card__desc :is(p, h2, h3, h4, blockquote, pre, ul, ol) {
  margin: 0;
  color: inherit;
  font: inherit;
}

.map-hover-card__desc :is(ul, ol) {
  padding-left: 16px;
}

.map-hover-card__desc a {
  color: inherit;
  text-decoration: underline;
}

.map-hover-card--no-image {
  display: flex;
  align-items: center;
  min-height: 88px;
}

.map-hover-card__title--solid {
  color: inherit;
}

.map-hover-card--no-image .map-hover-card__desc {
  color: inherit;
  opacity: 0.95;
}

.poi-marker.poi-marker--selected {
  z-index: 2;
  transform: scale(1.12);
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.42));
}

.poi-marker.poi-marker--selected::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  height: calc(100% + 14px);
  aspect-ratio: 1;
  border: 3px solid rgba(245, 158, 11, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 12px rgba(245, 158, 11, 0.48);
  pointer-events: none;
  animation: selected-poi-pulse 1.4s ease-out infinite;
}

@keyframes selected-poi-pulse {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@media (max-width: 992px) {
  :root {
    --nav-h: 56px;
    --footer-h: 28px;
    --panel-w: 274px;
    --detail-w: min(92vw, 340px);
  }

  .topbar {
    padding: 0 10px;
  }

  .logo-sub {
    display: none;
  }

  .map-title-banner {
    top: calc(var(--nav-h) + 7px);
    max-width: calc(100vw - 24px);
    padding: 7px 11px;
  }

  .left-panel .map-title-banner.in-panel {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: auto;
    max-width: 100%;
    display: flex;
    margin: 8px 10px 0;
    border-radius: 12px;
    z-index: auto;
  }

  .map-toolbar {
    right: 10px;
    top: auto;
    bottom: calc(var(--footer-h) + 10px);
    flex-direction: row;
    border-radius: 999px;
    padding: 5px 7px;
    gap: 5px;
  }

  .tool-sep {
    width: 1px;
    height: 24px;
    margin: 0 2px;
  }

  .tool-btn::after {
    display: none;
  }

  .map-view-switch {
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(var(--footer-h) + 10px);
    left: 10px;
    z-index: 1100;
    transform: none;
  }

  .map-view-switch__button {
    min-width: 70px;
    min-height: 38px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .map-table-view {
    padding: 12px;
  }

  .map-table-view__header {
    align-items: stretch;
    flex-direction: column;
  }

  .map-table-view__header .map-view-switch.map-view-switch--in-panel {
    align-self: flex-start;
    margin: 0;
  }

  .map-table-view__actions {
    width: 100%;
  }

  .map-table-view__actions input {
    flex: 1 1 auto;
    width: auto;
  }

  .map-table-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }

  .map-table-filter-clear {
    margin-left: 0;
  }

  .map-table-multiselect-menu {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 4px;
    box-shadow: none;
  }

  .topbar .lang-name {
    display: none;
  }

  .topbar .dropdown-menu {
    min-width: 54px;
  }

  .topbar .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    padding-left: 10px;
  }

  .topbar .dropdown-item .lang-flag-icon {
    margin-right: 0 !important;
  }

  .map-table-filters > *,
  .map-table-filter-group,
  .map-table-extra-filter,
  .map-table-multiselect {
    width: 100%;
    min-width: 0;
  }

  .map-table-filters > * {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --footer-h: 0px;
    --panel-w: min(88vw, 340px);
    --detail-w: 100vw;
  }

  .map-title-banner {
    top: calc(var(--nav-h) + 6px);
    max-width: calc(100vw - 12px);
    border-radius: 14px;
  }

  .left-panel .map-title-banner.in-panel {
    margin: 8px 8px 0;
    border-radius: 10px;
  }

  .map-title-text {
    font-size: 12px;
  }

  .map-toolbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 64px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }

  .map-badge {
    display: none;
  }

  .left-panel {
    width: var(--panel-w);
    max-width: none;
  }

  .map-view-switch {
    right: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .map-points-table {
    min-width: 0;
  }

  .map-points-table thead {
    display: none;
  }

  .map-points-table tbody,
  .map-points-table tr,
  .map-points-table td {
    display: block;
    width: 100%;
  }

  .map-points-table td {
    display: none;
  }

  .map-points-table td.map-table-cell--title {
    display: block;
    padding: 0;
  }

  .map-table-title-button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 13px 14px;
  }

  .map-table-title-button .map-table-marker {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .map-table-title-button .map-table-marker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 12px;
    line-height: 1;
    object-fit: contain;
  }

  .map-table-title-copy {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .map-table-title-address {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }

  .detail-panel {
    left: 0;
    width: 100vw;
    max-width: 100vw;
    border-right: none;
    box-shadow: none;
    transform: translateX(-100vw);
  }

  .detail-panel.panel-collapsed {
    left: 0;
  }

  .detail-body {
    padding-bottom: 26px;
  }

  .footer-bar {
    display: none;
  }

  .footer-right {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .left-panel,
  .detail-panel,
  .panel-toggle,
  .detail-media-track {
    transition: none !important;
  }
}

/* Match fields, dropdowns, multiselect triggers, and buttons across map views. */
.main-map-template :is(.btn, input.form-control, select.form-select, .input-group-text) {
  min-height: var(--map-control-height);
  padding: var(--map-control-padding-y) var(--map-control-padding-x);
  font-size: var(--map-control-font-size);
  line-height: var(--map-control-line-height);
}

.main-map-template :is(input.form-control, select.form-select:not([multiple]), .input-group-text) {
  height: var(--map-control-height);
}

.main-map-template select.form-select {
  padding-right: 32px;
}

.main-map-template :is(.btn-sm, .btn-lg, .form-control-sm, .form-control-lg, .form-select-sm, .form-select-lg) {
  font-size: var(--map-control-font-size);
  line-height: var(--map-control-line-height);
}

.main-map-template .dropdown-toggle {
  align-items: center;
}

body.main-map-template .dropdown .btn {
  height: var(--map-control-height);
  min-height: var(--map-control-height);
  padding: var(--map-control-padding-y) var(--map-control-padding-x);
  font-size: var(--map-control-font-size);
  font-weight: 700;
  line-height: var(--map-control-line-height);
}

.main-map-template :is(.extra-filter-select, .extra-filter-multiselect-search) {
  height: var(--map-control-height);
  min-height: var(--map-control-height);
  padding-top: var(--map-control-padding-y);
  padding-bottom: var(--map-control-padding-y);
}

.main-map-template .map-table-multiselect summary {
  height: var(--map-control-height);
  min-height: var(--map-control-height);
  padding: var(--map-control-padding-y) var(--map-control-padding-x);
  font-size: var(--map-control-font-size);
  line-height: var(--map-control-line-height);
}

.main-map-template .map-table-category-filter {
  height: var(--map-control-height);
  min-height: var(--map-control-height);
  padding: var(--map-control-padding-y) var(--map-control-padding-x);
  line-height: var(--map-control-line-height);
}

.main-map-template .map-view-switch__button {
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 3px 7px;
  line-height: 1;
}

.main-map-template :is(.burger-btn, .tool-btn) {
  width: var(--map-control-height);
  height: var(--map-control-height);
  min-height: var(--map-control-height);
  padding: 0;
}

.main-map-template .map-view-switch {
  top: calc((var(--nav-h) - 34px) / 2);
}

.main-map-template .map-view-switch.map-view-switch--in-panel {
  top: auto;
}

@media (max-width: 992px) {
  .main-map-template .map-view-switch {
    top: auto;
  }
}
