.leaflet-overlay-pane .leaflet-interactive:hover {
  opacity: 0.8;
  stroke: white;
  stroke-width: 10px;
}

.result-marker:hover {
  /*stroke: navy !important;*/
  stroke-width: 6px !important;
}

.mobility-app-tract-boundary:hover {
  stroke: navy !important;
  stroke-width: 2px !important;
}


/* Shadow pain contains geojson dots */
.leaflet-shadow-pane {
  pointer-events: none;
}

hr {
  display: block;
  position: relative;
  padding: 0;
  margin: 8px auto;
  height: 0;
  width: 100%;
  max-height: 0;
  font-size: 1px;
  line-height: 0;
  clear: both;
  border: none;
  border-top: 1px solid #aaaaaa;
  border-bottom: 1px solid #ffffff;
 }

 .town-label {
   background: rgba(0,0,0,0);
   border: 0;
   box-shadow: none;
   color: #333;
   font-size: 12px;
 }

 .town-label-bg {
  background: rgba(255,255,255,0.65);
  padding: 2px;
}

.zip-label {
  background: rgba(0,0,0,0);
  border: 0;
  box-shadow: none;
  color: #666;
  font-size: 10px;
  font-weight: 600;
}

.search-input,
.leaflet-control-search {
	max-width:400px;
}

.material-icons {
  vertical-align: bottom;
}

.greyed-out {
  pointer-events: none;
  color: #ccc;
}

.leaflet-popup-content {
  width: 250px !important;
}

@media only screen and (max-width: 600px) {
  #oca-logo {
    display: none;
  }

  .leaflet-control-attribution {
    display: none;
  }

}

.f7 {
  font-size: 0.85rem !important;
}

.health-map-title-control {
  width: 370px !important;
}

/* ============ Mobility App glass panels ============ */

:root {
  --mobility-panel-width: 320px;
}

.mobility-app-panel {
  background: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  color: #111 !important;
}

.mobility-app-panel a {
  color: #375bab;
}

.mobility-app-panel hr {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.mobility-app-title-control {
  width: var(--mobility-panel-width);
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  padding: 16px !important;
}

.mobility-app-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0 0 2px;
}

.mobility-app-subtitle {
  font-size: 0.8rem;
  color: #111;
  margin: 0 0 10px;
}

.mobility-app-body {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #111;
  margin: 0;
}

.mobility-app-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #111;
  margin: 0 0 10px;
}

/* Layers (Neighborhood assets) control */
.leaflet-control-layers-expanded {
  width: var(--mobility-panel-width);
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  background: transparent !important;
  color: #111 !important;
  padding: 16px !important;
}

.leaflet-control-layers label,
.leaflet-control-layers-expanded span {
  color: #111 !important;
}

.leaflet-control-layers-separator {
  border-top-color: rgba(0, 0, 0, 0.12);
  margin: 10px 0 !important;
}

/* Geocoder (search) control */
.leaflet-control-geocoder-expanded {
  width: var(--mobility-panel-width);
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  padding: 10px 14px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.leaflet-control-geocoder-icon {
  flex: 0 0 auto;
}

.leaflet-control-geocoder-form {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.leaflet-control-geocoder-alternatives,
.leaflet-control-geocoder-form-no-error {
  flex: 1 1 100%;
  width: 100%;
  box-sizing: border-box;
}

.leaflet-control-geocoder-form input {
  width: 100% !important;
  box-sizing: border-box;
  background: transparent !important;
  color: #111;
  font-size: 0.95rem;
}

.leaflet-control-geocoder-icon {
  background-color: transparent !important;
}

.viewHistoricRates {
  display: inline-block;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: #333 !important;
  text-decoration: none !important;
  cursor: pointer;
  margin-top: 5px;
}

.viewHistoricRates:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* ============ Historic rates modal ============ */

.historic-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.historic-modal-overlay.visible {
  display: flex;
}

.historic-modal {
  position: relative;
  width: 480px;
  max-width: 100%;
  max-height: 85vh;
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.historic-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 100%;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.historic-modal-close:hover {
  background: rgba(0, 0, 0, 0.18);
}

.historic-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 12px;
  flex: 0 0 auto;
}

.historic-modal-tab {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.historic-modal-tab.active {
  background: #375bab;
  color: #fff;
}

.historic-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  height: 340px;
}

.historic-modal-year-panel {
  display: none;
}

.historic-modal-year-panel.active {
  display: block;
}

.historic-modal-zip-header {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.historic-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.historic-modal-table th,
.historic-modal-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.historic-modal-table th {
  font-weight: 600;
  color: #333;
}

.historic-modal-empty {
  font-size: 0.8125rem;
  color: #666;
}
