.lmb-map-shell {
  --lmb-navy: #082934;
  --lmb-deep-teal: #003b45;
  --lmb-teal: #006272;
  --lmb-green: #008675;
  --lmb-orange: #ea8651;
  --lmb-paper: #fffaf4;
  --lmb-mist: #eef6f4;
  --lmb-line: #cddbd9;
  --lmb-shadow: 0 18px 48px rgba(0, 59, 69, 0.18);
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 392px);
  color: var(--lmb-deep-teal);
  background: linear-gradient(180deg, #f8fbfa 0%, var(--lmb-mist) 100%);
  font-family: Inter, Lato, Avenir, Helvetica, Arial, sans-serif;
}

.lmb-map-shell * {
  box-sizing: border-box;
}

.lmb-map-panel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.lmb-map-canvas {
  width: 100%;
  min-height: 100vh;
  background: #dcebe8;
}

.lmb-map-shell .leaflet-tile-pane {
  filter: saturate(0.72) sepia(0.06) hue-rotate(120deg) brightness(1.03) contrast(0.96);
}

.lmb-map-shell .leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--lmb-shadow);
}

.lmb-map-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100vh;
  padding: 32px 24px 24px;
  background: var(--lmb-paper);
  background: color-mix(in srgb, var(--lmb-paper) 96%, transparent);
  border-left: 1px solid var(--lmb-line);
  box-shadow: var(--lmb-shadow);
  backdrop-filter: blur(12px);
}

.lmb-sidebar-header {
  min-width: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lmb-line);
}

.lmb-eyebrow {
  margin: 0 0 8px;
  color: var(--lmb-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lmb-map-sidebar h2 {
  margin: 0;
  color: var(--lmb-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
}

.lmb-intro {
  margin: 14px 0 0;
  color: var(--lmb-deep-teal);
  color: color-mix(in srgb, var(--lmb-deep-teal) 82%, transparent);
  font-size: 15px;
  line-height: 1.55;
}

.lmb-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 24px 0 16px;
}

.lmb-filter-button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--lmb-deep-teal);
  background: #ffffff;
  border: 1px solid var(--lmb-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  transition: border-color 160ms ease;
}

.lmb-filter-button:first-child {
  grid-column: 1 / -1;
}

.lmb-filter-button:hover,
.lmb-filter-button:focus-visible {
  border-color: var(--lmb-green);
}

.lmb-filter-button.is-active {
  color: #ffffff;
  background: var(--lmb-green);
  border-color: var(--lmb-green);
}

.lmb-location-summary {
  min-width: 0;
  margin-bottom: 10px;
  color: var(--lmb-deep-teal);
  color: color-mix(in srgb, var(--lmb-deep-teal) 74%, transparent);
  font-size: 13px;
  font-weight: 700;
}

.lmb-location-list {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.lmb-empty {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--lmb-line);
  border-radius: 8px;
}

.lmb-location-card button {
  display: grid;
  width: 100%;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  color: var(--lmb-deep-teal);
  background: #ffffff;
  border: 1px solid var(--lmb-line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 59, 69, 0.06);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lmb-location-card button:hover,
.lmb-location-card button:focus-visible,
.lmb-location-card.is-selected button {
  border-color: var(--lmb-category-color, var(--lmb-green));
  box-shadow: 0 10px 24px rgba(0, 59, 69, 0.12);
  transform: translateY(-1px);
}

.lmb-category-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  background: var(--lmb-category-color, var(--lmb-green));
  border-radius: 999px;
}

.lmb-location-name {
  display: block;
  color: var(--lmb-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.lmb-location-meta {
  display: block;
  margin-top: 5px;
  color: var(--lmb-deep-teal);
  color: color-mix(in srgb, var(--lmb-deep-teal) 72%, transparent);
  font-size: 13px;
  line-height: 1.35;
}

.lmb-location-category {
  display: inline-block;
  margin-top: 9px;
  color: var(--lmb-category-color, var(--lmb-green));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lmb-sidebar-footer {
  min-width: 0;
  padding-top: 18px;
}

.lmb-map-shell .lmb-directions-link,
.lmb-map-shell .lmb-popup-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #ffffff !important;
  background: var(--lmb-orange);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.lmb-map-shell .lmb-directions-link:hover,
.lmb-map-shell .lmb-directions-link:focus-visible,
.lmb-map-shell .lmb-popup-actions a:hover,
.lmb-map-shell .lmb-popup-actions a:focus-visible {
  color: #ffffff !important;
  background: color-mix(in srgb, var(--lmb-orange) 88%, var(--lmb-deep-teal));
}

.lmb-map-marker-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 10px rgba(8, 41, 52, 0.34));
}

.lmb-map-shell .leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--lmb-shadow);
}

.lmb-map-shell .leaflet-popup-content {
  width: 250px !important;
  margin: 0;
}

.lmb-popup-card {
  padding: 18px;
  color: var(--lmb-deep-teal);
}

.lmb-popup-card strong {
  display: block;
  color: var(--lmb-navy);
  font-size: 16px;
  line-height: 1.25;
}

.lmb-popup-card p {
  margin: 8px 0 0;
  color: var(--lmb-deep-teal);
  color: color-mix(in srgb, var(--lmb-deep-teal) 78%, transparent);
  font-size: 13px;
  line-height: 1.5;
}

.lmb-popup-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 12px;
  padding: 4px 8px;
  color: #ffffff;
  background: var(--lmb-popup-color, var(--lmb-green));
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lmb-popup-actions {
  margin-top: 14px;
}

.lmb-map-shell .lmb-popup-actions a {
  color: #ffffff !important;
  background: var(--lmb-popup-color, var(--lmb-green));
}

.lmb-map-shell .lmb-popup-actions a:hover,
.lmb-map-shell .lmb-popup-actions a:focus-visible {
  color: #ffffff;
  background: color-mix(in srgb, var(--lmb-popup-color, var(--lmb-green)) 88%, var(--lmb-deep-teal));
}

.lmb-map-shell .leaflet-control-attribution {
  font-size: 11px;
}

@media (max-width: 920px) {
  .lmb-map-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .lmb-map-panel,
  .lmb-map-canvas {
    height: 55vh;
    height: 55svh;
    min-height: 320px;
    max-height: 520px;
  }

  .lmb-map-sidebar {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 24px;
    border-top: 1px solid var(--lmb-line);
    border-left: 0;
  }

  .lmb-filter-bar {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-right: -24px;
    margin-left: -24px;
    padding: 20px 24px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .lmb-filter-button {
    flex: 0 0 auto;
    max-width: min(72vw, 260px);
    white-space: nowrap;
  }

  .lmb-filter-button:first-child {
    grid-column: auto;
  }

  .lmb-location-list {
    flex: none;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .lmb-map-panel,
  .lmb-map-canvas {
    height: 48vh;
    height: 48svh;
    min-height: 280px;
  }

  .lmb-map-sidebar {
    padding: 24px 16px 16px;
  }

  .lmb-map-sidebar h2 {
    font-size: 28px;
  }

  .lmb-filter-bar {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .lmb-filter-button {
    max-width: min(78vw, 240px);
  }
}
