.servicemap-body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: #f5f6f8;
  color: #1f2937;
}

.filters-panel {
  background-color: #ffffff;
  min-height: calc(100vh - 64px);
  border-right: 1px solid #e5e7eb;
}

.services-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

.map-panel {
  position: relative;
}

.map-canvas {
  width: 100%;
  height: calc(100vh - 64px);
}

.map-canvas-mobile {
  height: 100vh;
  padding-top: 60px;
}

.mapboxgl-popup-content {
  border-radius: 12px;
  padding: 16px;
  min-width: 220px;
}

.popup-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.popup-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #2563eb;
  border: 2px solid #dbeafe;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #123568;
  z-index: 15;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-logo {
  height: 32px;
  width: auto;
}

.servicemap-mobile .mobile-topbar {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-search-input {
  flex: 1;
  border: none !important;
  border-radius: 24px !important;
  background: rgba(40, 40, 40, 0.9) !important;
  color: #fff !important;
  padding: 12px 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mobile-search-input:focus {
  background: rgba(50, 50, 50, 0.95) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  outline: none;
}

.mobile-filter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(40, 40, 40, 0.9) !important;
  color: #fff !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.mobile-filter-btn:hover,
.mobile-filter-btn:focus,
.mobile-filter-btn:active {
  background: rgba(50, 50, 50, 0.95) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.mobile-count-badge {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.filter-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.filter-sheet {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(92vw, 360px);
  background: #ffffff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.2);
}

.mobile-footer {
  margin: 20px -20px -20px -20px;
  padding: 40px 20px;
  background-color: #2a2a2a !important;
}

.service-pill {
  display: inline-block;
  background-color: #eef2ff;
  color: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Mapbox controls styling - move to bottom-left with rounded design */
.mapboxgl-ctrl-bottom-right {
  display: none !important;
}

.mapboxgl-ctrl-top-right {
  display: none;
}

/* Hide Mapbox logo */
.mapboxgl-ctrl-logo {
  display: none !important;
}

.servicemap-mobile .mapboxgl-ctrl-bottom-left {
  bottom: 20px;
  left: 2px;
}

.mapboxgl-ctrl-group {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  background: rgba(40, 40, 40, 0.9) !important;
  border: none !important;
}

.mapboxgl-ctrl-group button {
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  width: 40px;
  height: 40px;
}

.mapboxgl-ctrl-group button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mapboxgl-ctrl-icon {
  filter: invert(1);
}

.mapboxgl-ctrl-group button:hover {
  background: rgba(60, 60, 60, 0.9) !important;
}
