@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],
#filter-root:empty {
  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;
}

.map-shell .rg-map-fit-all-control--with-accessory {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

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

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

.map-shell .rg-map-fit-all-btn,
.map-shell .rg-poi-toggle__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 30px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.map-shell .rg-map-fit-all-btn {
  width: 30px;
  border-bottom: none;
  border-radius: 0;
}

.map-shell .rg-map-fit-all-control--with-accessory .rg-map-fit-all-btn {
  border-left: 1px solid #ccc;
}

.map-shell .rg-poi-toggle__label {
  gap: 0.35rem;
  margin: 0;
  padding: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0;
}

.map-shell .rg-map-fit-all-control--with-accessory .rg-poi-toggle__label:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.map-shell .rg-map-fit-all-control--with-accessory .rg-map-fit-all-btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.map-shell .rg-map-fit-all-control--with-accessory .rg-poi-toggle__label:only-child {
  border-radius: 4px;
}

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

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

.map-shell .rg-poi-toggle__input {
  width: 0.8125rem;
  height: 0.8125rem;
  margin: 0;
  accent-color: #333;
}

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

.rg-poi-marker__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 0;
  box-sizing: border-box;
  background: transparent;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.35));
}

.rg-poi-marker__icon--plated {
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.4));
}

.rg-poi-marker__icon img,
.rg-poi-marker__icon svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
}

.rg-poi-popup__title {
  font-weight: 650;
  font-size: 0.875rem;
  color: #18181b;
}

.rg-poi-popup__desc {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #52525b;
}

.rg-poi-popup__meta {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  color: #a1a1aa;
}

/* Crawlable section/map summary — kept out of the interactive layout */
.rg-seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@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);
  }
}
