body, html {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  height: 100%;
}

*:focus {
outline: 0;
outline: none;
}

.navbar {
  /* border-bottom: 1px solid #D1D5DB; */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.container-flex {
    display: flex;
    height: calc(100vh - 56px); 
}


.main-map {
  flex: 1;
  height: 100%;
  border-top: 1px solid #ddd;
}

.tabbox {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

/* Hover state */
.tab:hover {
  background-color: #e0e0e0;
}

/* Selected / active tab */
.tab.active {
  background-color: #7a7a7a;
  color: #ffffff;
  font-weight: 600;
}

/* Optional: keep active color on hover */
.tab.active:hover {
  background-color: #7a7a7a;
}


#benefit-info {
  flex: 1;
  font-family: 'Raleway', sans-serif;
  min-width: 312px;
}


#benefit-info h3,
#benefit-info h4 {
  text-align: center;
}


#benefit-info h3 {
  margin: 0;
  padding: 20px;
  padding-bottom: 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 25px;
  text-align: left;
}


#benefit-info p {
  padding-left: 10px;
  padding-right: 10px;
}


#infoContainer {
  display: flex;
}

#benefit-info,
#infoContainer {
  overflow-y: auto;
}


.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.tab {
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.tab.active {
  border-bottom: 2px solid #000;
  font-weight: 600;
}

.panel {
  display: none;
  padding: 12px 0;
}

.panel.active {
  display: block;
}



.search_label {
  font-weight: bold;
  margin-bottom: 3px;
}


#mapContainer {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .container-flex {
    flex-direction: column;
  }

  .main-map {
    height: 50vh;
  }
}

.info-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #1D4ED8;
  color: white;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.popup {
  position: absolute;
  bottom: 110%;
  left: -260px;
  width: 260px;
  padding: 10px;
  background: #0F172A;
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 999;
}

.popup.flip-right {
  left: 0;
}

.popup.open {
  display: block;
}

