#dashboard-schools-map {
    height: 100%;
}

.tall-headed.schools-tab {
    cursor: initial;
    padding: 4px 2px;
    position: relative;
}

.map-marker-information-box .tall-headed.schools-tab dl {
    width: 100%;
    border-radius: 6px;
    /* padding-top: 10px; */
    box-shadow: 1px 1px 5px 0px #d6d6d6;
}

.tall-headed.schools-tab.active dl {
    border: 1px solid #df8d38;
    box-shadow: inset 0 0 10px #df8d38;
}

.tall-headed.schools-tab.active:hover dl {
    border: 1px solid #df8d38;
    box-shadow: inset 0 0 10px #df8d38;
}

.tall-headed.schools-tab:hover dl {
    border: 1px solid #d6d6d6;
    box-shadow: inset 0 0 10px #d6d6d6;
    cursor: pointer;
}


.lettings-dashboard .tall-headed.schools-tab.active dl {
    border: 1px solid #67dc49;
    box-shadow: inset 0 0 10px #67dc49;
}

.lettings-dashboard .tall-headed.schools-tab.active:hover dl {
    border: 1px solid #67dc49;
    box-shadow: inset 0 0 10px #67dc49;
}

.divider-filters-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 1px;
    height: auto;
}

.divider-filters-line:after {
    content: '';
    display: block;
    width: 100%;
    height: calc(100% - 15px);
    background: #d6d6d6;
}

.school-map-details-modal {
    width: 563px;
}

.school-map-details-modal .school-details-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #df8d1f;
    padding-bottom: 5px;
}

body.lettings-dashboard .school-map-details-modal .school-details-header {
    border-bottom: 2px solid #38DB47;
}

.school-map-details-modal .school-details-header-title {
    font-size: 16px;
    line-height: 16px;
}

.school-map-details-modal .school-details-label-rating {
    margin-left: 2rem;
    padding: 4px 16px;
    border-radius: 4px;
    color: #fff;
}

.school-details-label-rating.yellow {
    background: #FCE210;
}

.school-details-label-rating.green {
    background: #008D36;
}

.school-details-label-rating.orange {
    background: #f2933d;
}

.school-details-label-rating.red {
    background: #bf2b27;
}

.school-details-label-rating.gray {
    background: #bababa;
}

.school-details-label-rating.blue {
    background: #297cbf;
}

.school-map-details-modal .school-details-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    font-family: 'Avenir Medium', sans-serif;
}

.school-map-details-modal .school-details-body .data-prelaader {
    display: block;
    max-width: 165px;
    margin: 0 auto;
    height: auto;
}

.school-map-details-modal .school-details-body .controls {
    display: none;
    align-items: center;
    padding: 15px 0 0 0;
    margin-bottom: 1rem;
}

.school-map-details-modal .school-details-body .controls .button-control {
    width: 110px;
    height: 30px;
    border-radius: 8px;
    color: #000;
    margin: 0 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: "Avenir Light", sans-serif;
}

.school-map-details-modal .school-details-body .controls .button-control.reviews {
    display: none;
}

.school-map-details-modal .school-details-body .controls .button-control.active {
    color: #000;
    font-family: "Avenir Medium", sans-serif;
    border-bottom: 2px solid #df8d1f;
    border-radius: 0;
}

body.lettings-dashboard .school-map-details-modal .school-details-body .controls .button-control.active {
    border-bottom: 2px solid #38DB47;
}

.school-map-details-modal .school-details-body .group-title {
    font-size: 14px;
    border-bottom: 1px solid #bababa;
    margin: 10px 0 10px 0;
}

.school-map-details-modal .school-details-body .contact-info {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.school-map-details-modal .school-details-body .contact-info .contact-title {
    width: 115px;
}

.school-map-details-modal .school-details-body .contact-info .contact-data {
    font-family: 'Avenir Light', sans-serif;
}

.school-map-details-modal .school-details-body .contact-info .contact-data a {
    margin: 0 30px 0 0;
}

.school-map-details-modal .school-details-body .split-data {
    display: flex;
}

.school-map-details-modal .school-details-body .data-statistics {
    width: 50%;
}

.school-map-details-modal .school-details-body .data-statistics .statistic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0;
    border-bottom: 1px solid #bababa;
    padding: 2px 8px;
}

.school-map-details-modal .school-details-body .data-statistics .statistic-item:nth-child(2n) {
    background: #bababa70;
}

.school-map-details-modal .school-details-body .statistic-item .title {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Avenir Medium', sans-serif;
}

.school-map-details-modal .school-details-body .statistic-item .title img {
    max-width: 24px;
    margin: 0 10px 0 0;
}

.school-map-details-modal .school-details-body .statistic-item .value {
    min-width: 135px;
    font-family: 'Avenir Light', sans-serif;
}

.school-map-details-modal .school-details-body .data-inspection {
    width: 50%;
    padding: 0 0 0 25px;
}

.school-map-details-modal .school-details-body .inspection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.school-map-details-modal .school-details-body .inspection-item:first-child {
    border-bottom: 1px solid #bababa;
}

.school-map-details-modal .school-details-body .inspection-item .caption {
    font-family: 'Avenir Medium', sans-serif;
}

.school-map-details-modal .school-details-body .inspection-item .date {
    font-family: 'Avenir Light', sans-serif;
}

.school-map-details-modal .school-details-body .inspection-item .icon {
    width: 50px;
}

.school-map-details-modal .school-details-body .inspection-item .icon img {
    max-width: 100%;
}

.map-marker-information-box .colour-keys-group {
    display: flex;
    width: 400%;
    position: relative;
}

.map-marker-information-box .rated-keys-group {
    display: flex;
    padding-top: 5px;
}

.map-marker-information-box .rated-keys-group .schools-tab {
    width: 64px;
}

.map-marker-information-box .colour-keys-group .hint-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    width: auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 10px;
}

.map-marker-information-box .colour-keys-group .hint-box i {
    margin: 0 0 0 5px;
    font-size: 14px;
    top: 3px;
}

.leaflet-tooltip.school-distance-tooltip {
    width: 230px;
    min-height: 105px;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgb(0 0 0 / 40%);
}

.leaflet-tooltip.school-distance-tooltip:before {
    width: 17px;
    height: 17px;
    padding: 1px;
    margin: auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    background: white;
    position: absolute;
    bottom: -9px;
    border: none;
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    left: calc(50% - 9px);
}

.leaflet-tooltip .school-distance-tooltip-inner {
    padding: 0 5px;
    text-align: center;
    font-family: 'Avenir Light', sans-serif;
}

.leaflet-tooltip .school-distance-tooltip-inner .title {
    word-break: break-word;
    display: inline-block;
    font-size: 14px;
    border-bottom: 1px solid #df8d38;
    padding: 0 5px;
    text-align: center;
    margin: 0 0 5px 0;
    font-family: 'Avenir Medium', sans-serif;
}

body.lettings-dashboard .leaflet-tooltip .school-distance-tooltip-inner .title {
    border-bottom: 1px solid #38DB47;
}

.leaflet-tooltip .school-distance-tooltip-inner .level {
    padding: 0 0 5px 0;
    text-transform: capitalize;
    font-family: 'Avenir Medium', sans-serif;
}

.leaflet-tooltip .school-distance-tooltip-inner .divider-line {
    width: 30px;
    height: 1px;
    background: #d6d6d6;
    margin: 0 auto 8px auto;
}

.leaflet-tooltip .school-distance-tooltip-inner .school-details-label-rating {
    width: 160px;
    margin: 0 auto;
    border-radius: 6px;
    padding: 2px 0;
    color: #fff;
}

.leaflet-tooltip .school-distance-tooltip-inner .miles {
    padding: 8px 0 4px 0;
}

.leaflet-tooltip .school-distance-tooltip-inner .link-box {
    margin: 5px 0 5px 0;
}

.leaflet-tooltip .school-distance-tooltip-inner a {
    border-bottom: 1px solid #0078A8;
    padding: 0 10px;
    font-size: 14px;
    font-family: 'Avenir Medium', sans-serif;
}

.hint-box-title i {
    position: absolute;
    bottom: -34px;
    left: 0;
    writing-mode: tb-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1366px) {
    .map-marker-information-box .colour-keys-group .hint-box {
        font-size: 10px;
    }
}

@media (max-width: 1199px) {
    .map-marker-information-box .colour-keys-group {
        width: 100%;
    }

    .tall-headed.schools-tab {
        width: calc(100% / 4);
    }
	
	.school-map-details-modal {
        max-height: 300px;
        overflow: auto;
		-ms-overflow-style: none;
	    scrollbar-width: none;
    }
	div.school-map-details-modal::-webkit-scrollbar {
		display: none;
	}
	.school-map-details-modal .school-details-body .contact-info .contact-title {
		width: 20%;
		flex: 0 0 20%;
	}
}

@media (max-width: 992px) {
    .tall-headed.schools-tab .map-marker-information {
        min-width: unset;
    }

    .map-marker-information-box .colour-keys-group .hint-box {
        left: 10%;
        right: unset;
    }
}

@media (max-width: 768px) {
    .map-marker-information-box .colour-keys-group .hint-box {
        left: 15%;
    }
}

@media (max-width: 767px) {
    .school-map-details-modal {
        width: 285px;
        max-height: 300px;
        overflow: auto;
		-ms-overflow-style: none;
	    scrollbar-width: none;
    }
	div.school-map-details-modal::-webkit-scrollbar {
		display: none;
	}
	.school-map-details-modal .school-details-body .contact-info .contact-title {
		width: 25%;
		flex: 0 0 25%;
	}
	.school-map-details-modal .school-details-body .contact-info .contact-data a :last-child{
		margin-top:5px;
	}
	.school-map-details-modal .school-details-body .contact-info .contact-data a :first-child{
		margin-top:0px;
	}
	.school-map-details-modal .school-details-body .contact-info .contact-data a {
		display:block;	
		margin-right:0;
		word-wrap: break-word;
	}
    .school-map-details-modal .school-details-body .split-data {
        flex-wrap: wrap;
    }
    .school-map-details-modal .school-details-body .data-statistics {
        width: 100%;
    }
    .school-map-details-modal .school-details-body .data-inspection {
        width: 100%;
        padding: 0;
    }
    .school-map-details-modal .school-details-header {
        padding-right: 15px;
    }
    #dashboard-schools-map a.leaflet-popup-close-button {
        top: 57px;
    }
    #schools-map iframe {
        height: 950px !important;
    }
    .container.dashboard {
        overflow: visible;
    }
    #school.active {
        min-height: 487px !important;
    }
    #school.active > div, #map > div {
        min-height: 487px !important;
    }
    .active #dashboard-schools-map {
        min-height: 487px !important;
    }
}

@media (max-width: 480px) {
    #school .school-map {
        min-height: calc(100vh - 18rem);
    }

    .map-marker-information-box .colour-keys-group .hint-box {
        left: 15%;
    }

    .map-marker-information-box {
        border-right: unset;
    }

    .divider-filters-line {
        display: none;
    }

    .map-marker-information-box .colour-keys-group .hint-box {
        left: -0.9rem;
        font-size: 0.8rem;
        width: 15rem;
    }

    .map-marker-information-box .colour-keys-group .hint-box i {
        font-size: 10px;
    }
}

#dashboard-schools-map .leaflet-popup-content-wrapper {
    margin-top: 60px;
}

#dashboard-schools-map a.leaflet-popup-close-button {
    top: 65px;
}