
#chapter-map-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5;
    overflow: visible;
}



#chapter-map-canvas #chapter-map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: visible;
}

#chapter-map-canvas h1,
#chapter-map-canvas p {
    color: #fff
}

#chapter-map-canvas p {
    font-size: 0.825em;
    line-height: 1.5em
}

#chapter-map-search {
    background-color: #F4F4F4;
    padding: 40px 30px;
    border-radius: 16px;
}

#chapter-map-search button#user-location {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    gap: 12px;
}

#chapter-map-search button#user-location svg {
    position: relative;
    bottom: 2px;
}

#chapter-map-search fieldset {
    position: relative;
    margin-bottom: 30px;
}

#chapter-map-search label {
    color: #001033;
	font-weight: 600;
}

#chapter-map-search input[type='text'] {
    border: 1px solid #fff
}

#chapter-map-search input[type='submit'] {
    -webkit-transition: all 600ms ease-in-out;
    transition: all 600ms ease-in-out
}

#chapter-map-search input[type='submit']:hover {
    background: #30398d;
    border-color: #30398d
}

#chapter-map-search input::-webkit-input-placeholder {
    color: #999
}

#chapter-map-search input::-moz-placeholder {
    color: #999
}

#chapter-map-canvas input::-ms-input-placeholder {
    color: #999
}

#chapter-map-canvas input::placeholder {
    color: #999;
}

#chapter-map-search .fa-search {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 50px;
    width: 50px;
    color: #263692;
}

#chapter-map-results {
    position: relative;
    overflow: scroll
}

#chapter-map-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#chapter-map-results li {
    position: relative;
    top: 40px;
    padding: 30px;
    background: #F4F4F4;
    opacity: 0;
    -webkit-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    border-radius: 16px;
    border: 1p solid #E3E5E8;
}

#chapter-map-results li:nth-child(n+3) {
    margin-top:20px;
}

/* #chapter-map-results li:hover {
    background-color: #4E61D0;
	color: white;
}

#chapter-map-results li:hover .title,
#chapter-map-results li:hover a,
#chapter-map-results li:hover p {
	color: white;
} */

@media only screen and (min-width: 768px) {
    #chapter-map-results ul {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    #chapter-map-results li {
        width: calc((100% - 60px)/3);
    }

    #chapter-map-results li:nth-child(n+3) {
        margin-top:0px;
    }
}

#chapter-map-results li:last-of-type {
    padding-bottom: 60px
}

/* #chapter-map-results li:hover .title {
    font-weight: bold;
} */

#chapter-map-results li.reveal {
    top: 0;
    opacity: 1
}

#chapter-map-results li.template {
    display: none !important
}

/* Marker Window Animation */
@keyframes marker-window {
	0% {
		transform: translateX(20px);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

#chapter-map-canvas .marker-window {
	animation: marker-window 300ms ease-in-out;
	font-family: "Montserrat",sans-serif;
}

#chapter-map-canvas .marker-window .title,
#chapter-map-results .title {
    -webkit-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    font-size: 24px;
    font-weight: 600;
    color: #001033;
}

#chapter-map-canvas .marker-window .description,
#chapter-map-results .description {
	color: #404654;
	font-weight: normal;
}

#chapter-map-canvas .marker-window p:empty,
#chapter-map-results p:empty {
	display: none;
}


#chapter-map-canvas .marker-window p,
#chapter-map-results p {
    font-weight: bold;
    line-height: 1.5em;
    color: #263692;
    margin-bottom: 0;
    font-size: 100%;
}

#chapter-map-results li hr,
#chapter-map-canvas .marker-window hr {
    border-color: #E0E2ED;
	margin: 16px 0;
}

#chapter-map-canvas .marker-window p {
	font-size: 130%;
}

#chapter-map-canvas .marker-window p.description {
	/* font-size: 140%; */
}

#chapter-map-results p {
    font-size: 80%;
}

#chapter-map-results p.description {
	/* font-size: 100%; */
}

#chapter-map-canvas .marker-window p span,
#chapter-map-canvas .marker-window p a,
#chapter-map-results p span,
#chapter-map-results p a  {
    font-weight: normal;
}


#chapter-map-results .last-update {
    font-size: 0.75em
}

#chapter-map-canvas i.fa-map-marker,
#chapter-map-canvas svg.fa {
    -webkit-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    color: #001033;
    font-size: 36px;
    cursor: pointer;
    transform: scale(.9);
    transform-origin: bottom center;
	z-index: 0;
	position: relative;
}

@keyframes map-marker-active {
	0% {
	    transform: scale(1);
	}
	50% {
	    transform: scale(1.75);
	}
	100% {
	    transform: scale(1.25);
	}
}

#chapter-map-canvas i.fa-map-marker.active,
#chapter-map-canvas svg.fa.active {
    color: #263692;
    transform: scale(1.25);
	animation: map-marker-active 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
	z-index: 1000;
}

#chapter-map-canvas .marker-window {
    display: none;
    top: -23px;
    position: absolute;
    z-index: 10;
    width: 300px;
    left: 60px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #E3E5E8;
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 16px;
}

#chapter-map-canvas .marker-window::before {
    content: '';
    position: absolute;
    transform: scaleY(.7) rotate(45deg) translateY(0px);
    background-color: white;
    width: 30px;
    height: 30px;
    border-color: #E3E5E8;
    border-width: 0px;
    border-left-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
    left: -15px;
    top: 17px;
}

#chapter-map-canvas .marker-window.active {
    display: block
}

@media only screen and (max-width: 768px) {
    #chapter-map-canvas {
        margin-top: 120px
    }

    #chapter-map-search {
        padding: 30px 20px;
    }
}

@media only screen and (max-width: 680px) {
    #chapter-map-canvas {
		display: none;
    }
}