/******************************
		FISH FINDER
******************************/	

.page-template-template-map .site-main {
	padding-top: 0;
	background: #fff;
	min-height:unset;
	}

.page-template-template-map .site-footer {
	display:none;
	}
	
.map .wp-block-column {
	position:relative;
	}
	
#map {
	width: 100%;
	height: calc(100vh - 9.6rem);
	margin: 0;
	padding-left: 0;
	right: 0;
	}
	
.admin-bar #map {
	height:calc(100vh - 12.6rem);
	}

.map .wp-block-columns .wp-block-column:not(:last-child) {
	margin-bottom:0;
	}	
	
	
/** FILTERS **/
	
.map-filters {
	color: #fff;
	font-size: 1.6rem;
	text-align: center;
	padding:1.5rem 2rem;
	margin-top: 0.2rem;
	background: #003546;
	border-top: 1px solid #fff;
	}
	
.map-filters h2 {
	color: #fff;
	font-size: 2.1rem;
	margin:1rem 0 2rem 0;
	}

.radio-filters {
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-around;
	column-gap:1.5rem;
	row-gap:0.75rem;
	}
	
.radio-filters .filter {
	width:auto;
	}
	
#main .radio-filters input[type="radio"] {
	border-color:#fff;
	width:1.3rem;
	height:1.3rem;
	}
	
#main .radio-filters input[type="radio"]:focus {
	outline-offset:0.25rem;
	outline:2px solid #ee7851;
	}
	
#main .radio-filters input[type="radio"]:after {
    width: 1rem;
    height: 1rem;
    top: 0.15rem;
	left: 0.15rem;
	}
	
#main .radio-filters input[type="radio"] + label {
	font-size:1.4rem;
	padding-left:0;
	margin-bottom:0;
	}
	
.map-filters #reset-button {
	border-width:0;
	display: flex;
	margin: 1.5rem auto 0.5rem auto;
	font-family: 'Averia Serif Libre';
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.2em;
	text-transform: uppercase;
	color: #003546;
	background-color: #EE7851;
	border-radius: 3rem;
	padding: 0.8rem 2rem;
	max-width:20rem;
	text-decoration:none;
	}
	
#reset-button:hover,
#reset-button:focus {
	background: #fff;
	color: #003546;
	}
	
#reset-button:focus {
    color: #ee7851;
    outline: 2px dotted #eee;
    outline-offset: 5px;
	}
	
#page .mapboxgl-popup-close-button:focus {
	background:#ee7851;
	color:#003546;
	outline:2px dotted #003546;
	}

/** SIDEBAR	LISTINGS **/

.sidebar { 
	min-height: 65vh;
	border-top:4px solid #fff;
	margin-bottom:0; 
	}
	
.sidebar ::-webkit-scrollbar {
	width: 3px;
	height: 3px;
	border-left: 0;
	background: rgba(0, 0, 0, 0.1);
	}
	
::-webkit-scrollbar-track { 
	background: none; 
	}

::-webkit-scrollbar-thumb {
	background: #ee7851;
	border-radius: 0;
	}

.listings {
	max-height: calc(100vh - 39rem);
	overflow-y: scroll;
	margin-top:2rem;
	}
	
.admin-bar .listings {
	max-height: calc(100vh - 43rem);
	}

.sidebar h2:not(.trigger) {
	text-align: center;
	margin-top: 3rem;
	text-transform: uppercase;
	font-size: 2rem;
	padding-left:2rem;
	padding-right:2rem;
	}

.listings .item {
	border-bottom: 1px solid #eee;
	padding: 10px;
	text-decoration: none;
	display: flex;
	flex-direction: row;
	column-gap: 2rem;
	align-items: center;
	}
	
.logo-container {
	width: calc(40% - 1rem);
	text-align: center;
	}
	
#main .sidebar img.location-logo {
    margin-bottom: 0;
    max-width: 80%;
    width: auto;
    border-radius: unset;
    max-height: 10rem;
	}
	
.details-container {
	width: calc(60% - 1rem);
	padding-left: 0.5rem;
	font-size: 1.5rem;
	line-height: 1.7em;
	}
	
.item .title {
	color: #003546;
	font-weight: 700;
	font-size:1.8rem;
	}

#main .details-container:focus-within > a {
	border:1px solid #003546;
	}
	
.listings .item:last-child { 
	border-bottom: none; 
	}
	
	
/** MAP GUIDE **/
	
.map-guide {
	max-width: 80%;
	width: 60rem;
	position: absolute;
	top: 15%;
	left: calc(50% - 30rem);
	right: calc(50% - 30rem);
	z-index: 9;
	background: #e7e7e7;
	padding: 2.5rem;
	}
	
.map-guide .guide-inner {
	width:calc(100% - 2rem);
	margin: auto;
	padding: 3rem;
	text-align: center;
	background: #fff;
	border-radius: 1.5rem;
	}

#main .map-guide .guide-inner h1 {
	font-family: 'Averia Serif Libre';
	color:#003546;
	text-transform: uppercase;
	font-size: 3rem;
	line-height:1.1em;
	margin-bottom: 3rem;
	margin-top: 2rem;
	}
	
#main .guide-inner h2 {
	font-size: 2.4rem;
	margin-bottom: 3rem;
	}

#main .guide-inner h2 {
	font-family: 'Libre Baskerville';
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 2rem;
	}

#main .guide-inner p { 
	margin-bottom: 1rem; 
	}

#main .guide-inner .usage { 
	margin-bottom: 3rem; 
	}
	
#main .guide-inner ol.usage {
	list-style-position: inside;
    text-align: center;
    margin: 0 auto;
    padding-left:0;
	}
	
.guide-inner img.icon {
	height:8rem;
	width:auto;
	}

.guide-inner img {
	border-radius: 0;
	height: 3rem;
	width: auto;
	}

#main .guide-inner .map-small {
	font-size: 1.2rem;
	line-height: 1.5em;
	font-style: italic;
	margin-bottom: 0;
	margin-top: 3rem;
	}
	
.sidebar + .wp-block-button {
	display: flex;
	width: 100%;
	justify-content: center;
	text-align: center;
	margin-bottom: 0;
	position: absolute;
	bottom: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid #646464;
	margin-top:0;
	height:4.9rem;
	background-color:#fff;
	}
	
a#map-guide-close,
a#map-guide-close:hover,
.sidebar + .wp-block-button a,
.sidebar + .wp-block-button a:hover {
	border:none !important;
	}
	
#main .sidebar + .wp-block-button a#display-guide:focus,
#main a#map-guide-close:focus {
	outline:2px solid #003546;
	outline-offset:0.25rem;
	background:#003546;
	color:#fff;
	}


/** LOCATION POPUPS **/

#map .mapboxgl-popup {
	padding-bottom: 3rem;
	max-width: unset !important;
	z-index:99;
	}

#map .mapboxgl-popup.mapboxgl-popup-anchor-top {
	padding-top:3rem;
	padding-bottom:0;
	}
	
.mapboxgl-popup-close-button {
	font-size: 3rem;
	padding: 0 0.5rem;
	line-height: 1em;
	}

#main .mapboxgl-popup-content img.location-logo {
	border-radius: unset;
	width: calc(100% - 4rem);
	margin: 0 auto 1.5rem auto;
	}

.mapboxgl-popup-content {
	font-family: 'Libre Baskerville';
	font-weight: 400;
	font-size: 1.5rem;
	padding: 0;
	width: 260px;
	text-align: center;
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	margin-top:0;
	}

.mapboxgl-popup-content h3 {
	font-family: 'Libre Baskerville';
	font-weight: 700;
	font-size: 1.8rem;
	justify-content: center;
	width: calc(100% - 4.5rem);
	margin: 0 auto;
	}

#main .mapboxgl-popup-content p {
	font-family: 'Libre Baskerville';
	font-weight: 400;
	font-size: 1.4rem;
	margin-bottom: 0;
	width: 100%;
	}

.mapboxgl-popup-content div {
	padding: 10px;
	left: -1.8rem;
	}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content { 
	margin-top: 15px; 
	}
	
.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip { 
	border-bottom-color: #91c949; 
	}


/** ZIP CODE SEARCH **/
	
#main #map-search {
	position: absolute;
	left: 2rem;
	top: 2rem;
	z-index: 99;
	display: flex;
	flex-direction: row;
	column-gap: 0;
	align-items: stretch;
}

#main #map-search input[type="text"] {
	border: 1px solid #003546;
	padding: 0.5rem;
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	font-size: 1.6rem;
	background-color: #f3f3f3;
	margin-right: 0;
	border-radius: 3rem 0 0 3rem;
	padding-left: 1.5rem;
	width: 14rem;
	border-right: none;
	}
	
#main #map-search input::placeholder {
	font-size:1.3rem;
	}

#main #map-search button[type="submit"] {
	font-family: 'Averia Serif Libre';
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.25rem 1.5rem 0.25rem 1.5rem;
	border-radius: 0 3rem 3rem 0;
	border: 1px solid #003546;
	border-left: none;
	background-color: #f3f3f3;
	background-image: url(../images/lfi-search.png);
	background-size: 1.8rem 1.8rem;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	}
	
#main #map-search button[type="submit"]:focus {
	background-image: url(../images/lfi-search-white.png);
	background-color:#003546;
	outline:none;
	}


#main #map-search input[type="text"]:focus { 
	outline: none; 
	}

.mapboxgl-ctrl-group:focus-within,
#main #map-guide:focus-within,
#main #map-search:focus-within {
	outline: 2px solid #ee7851;;
	border-radius: 3rem;
	outline-offset: 0.2rem;
	}
	
/** ZOOM BUTTONS **/

#main .mapboxgl-ctrl-top-right {
	top:1rem;
	right:1rem;
	}
	
#main .mapboxgl-ctrl-top-right .mapboxgl-ctrl button {
	background:#f3f3f3;
	}
	
#main .mapboxgl-ctrl-top-right .mapboxgl-ctrl button:hover {
	background:#ccc;
	}
	
#main .mapboxgl-ctrl-top-right .mapboxgl-ctrl button:focus-visible {
	outline:2px solid #aaa;
	box-shadow:0 0 2px 2px #aaa;
	}
	
#main .mapboxgl-ctrl-compass {
	display:none;
	}
	
	
/** SCROLL BUTTONS **/

#scroll-buttons {
	position: fixed;
	right: 2rem;
	bottom: 1rem;
	z-index:99;
	display:none;
	}

#scroll-up, 
#scroll-down {
	display: block;
	font-size: 2rem;
	margin-bottom: 1rem;
	padding: 0.5rem;
	background-color: #003546;
	border-radius:1.5rem;
	color: #fff;
	border: none;
	cursor: pointer;
	}

#scroll-up:hover, 
#scroll-down:hover {
	background-color: #555;
	}
	
#main .mapboxgl-ctrl-bottom-right {
	right:2rem;
	}

#main .mapboxgl-ctrl-attrib-button {
	background-color:transparent;
	}
