.lead-map-toggle {
	margin-bottom: 60px;
}

.lead-map-toggle__inner {
	display: flex;
	border: 1px solid #ececec;
}

.lead-map-toggle__item {
	padding: 10px 20px;
	cursor: pointer;
	flex: 1;
	text-align: center;
	transition: background-color 0.35s ease-in-out;
}

.lead-map-toggle__item:not(:last-child) {
	border-right: 1px solid #ececec;
}

.lead-map-toggle__item:hover, 
.lead-map-toggle__item.active {
	background-color: #5b2e85;
	font-weight: bold;
	color: #fff
}

.nearest-schools ul {
	padding-left: 1rem
}
.nearest-schools li {
	padding: 2px 0px;
	font-size: 14px;
}

.nearest-schools {
	position: absolute;
	background: white;
	z-index: 99;
	right: 10px;
	top: 60px;
	padding: 30px;
	background-color: white;
	border-radius: 8px;
	padding: 15px;
	-webkit-box-shadow: 0 2px 7px 1px rgba(0, 0, 0, .3);
	box-shadow: 0 2px 7px 1px rgba(0, 0, 0, .3);
	max-height: 355px;
	overflow: auto;
	scrollbar-color: #662d91 transparent;
	max-width: 400px;
}

.nearest-schools__heading {
	text-align: right;
	line-height: 1;
}

.nearest-schools__item {
	margin-bottom: 5px;
}

.nearest-schools__item .school {
	font-weight: bold;
	display: flex;
    gap: 15px;
    align-items: center;
}

.nearest-schools__item span {
	display: block;
	line-height: 1.3;
}

.nearest-schools .close__icon {
	position: relative;
	width: 18px;
	height: 18px;
	cursor: pointer;
	background: transparent;
	border: 0px;
	opacity: .6;
}

.nearest-schools__item .toggle-grades {
	margin-top: 5px; display: inline-block;
}

.nearest-schools__item .grades-details {
	display: none; margin-top: 10px;
}

.nearest-schools__item .grades-details > span {
	display: flex; gap: 10px;
}

.nearest-schools__item .grades-details .letter-grade {
	font-size: 14px;
}

.nearest-schools__item .grades-details .grades {
	display: flex;
    align-items: center;
	gap: 5px;
}

.nearest-schools .close__icon:before,
.nearest-schools .close__icon:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background-color: black;
	transform-origin: center;
}

.nearest-schools .close__icon:before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.nearest-schools .close__icon:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.grade_info_wrapper strong {
	font-weight: 700 !important;
}

.grade_info_wrapper div:not(.button-wrapper) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}

.grade_info_wrapper .grade_info_item:nth-child(even) {
	background: #ececec;
}

.letter-grade {
	font-weight: 700;
    font-size: 24px;
}
.grade_info_wrapper h3 {
	font-size: 22px;
	margin-bottom: 10px;
}
.grade_info_wrapper h4 {
	font-size: 20px;
}

.grade_info_wrapper .grade_info_item > *:first-child {
	flex-basis: 70%;
}
.state_info_wrapper {
	min-width: 500px;
}
.state_info_wrapper h3 {
	text-align: center;
}

.state_info_wrapper-inner {
	padding: 5px 0px;
}

.state_info_wrapper-inner .grade_info_item {
	flex: 1;
}

.letter-grade[data-grade*="B"] {
	color: #6dcb99;
}

.letter-grade[data-grade*="A"] {
	color: #006938;
}

.letter-grade[data-grade*="C"] {
	color: #ffc827;
}

.letter-grade[data-grade*="D"] {
	color: #ff4539;
}

.letter-grade[data-grade*="F"] {
	color: #cf102d;
}
.letter-grade[data-grade*="N/A"] {
	color: gray;
}
