@import url("./fonts.css");
@import url("./icons.css");
@import url("./hover-popup.css");
@import url("./navbar.css");
@import url("./filter-bar.css");
@import url("./section-panel.css");
@import url("./section-list-panel.css");
@import url("./section-sidebar.css");
@import url("./section-top-info.css");
@import url("./section-mobile-tabs.css");
@import url("./mobile-bottom-nav.css");
@import url("./mobile-tab-icons.css");

:root {
  --rg-bg: #fafafa;
  --rg-surface: #ffffff;
  --rg-border: rgba(24, 24, 27, 0.12);
  --rg-text: #18181b;
  --rg-text-muted: #71717a;
  --rg-accent: #047857;
  --rg-accent-soft: rgba(4, 120, 87, 0.12);
  --rg-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --rg-navbar-h: 3.5rem;
  --rg-filter-min-h: 3.25rem;
  --rg-font: var(--rg-font-system);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--rg-font);
  color: var(--rg-text);
  background: var(--rg-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.map-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.map-shell > .rg-map-workspace {
  flex: 1 1 auto;
  min-height: 0;
}

#filter-root[hidden] {
  display: none !important;
}

.map-shell .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e4e4e7;
}

.leaflet-div-icon.rg-route-arrow {
  border: none;
  background: transparent;
}

.leaflet-div-icon.rg-map-youtube-marker {
  border: none;
  background: transparent;
}

.map-shell .leaflet-top.leaflet-left {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.5rem;
  left: auto;
  right: 1rem;
}

.map-shell .rg-map-fit-all-control {
  clear: none;
}

.map-shell .rg-map-fit-all-control[hidden] {
  display: none !important;
}

.rg-map-shell--section-open .rg-map-fit-all-control {
  display: none !important;
}

.map-shell .rg-map-fit-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 30px;
  color: #333;
  background-color: #fff;
}

.map-shell .rg-map-fit-all-btn:hover,
.map-shell .rg-map-fit-all-btn:focus-visible {
  color: #111;
  background-color: #f4f4f5;
  outline: none;
}

.map-shell .rg-map-fit-all-btn .rg-icon {
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  .map-shell .leaflet-top.leaflet-left {
    top: auto !important;
    bottom: 0.5rem;
    right: 0.75rem;
    left: auto !important;
    flex-direction: row-reverse;
  }

  .rg-map-shell--section-open .leaflet-top.leaflet-left {
    bottom: calc(var(--rg-mobile-tabs-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  }
}
