/* ###################### Icey.se - SunOnTap */
/* ###################### Base */
:root {
	--icey_site_c_red: #ed4d15;
	--icey_site_c_blue: #4a8fdd;
	--icey_site_c_sun: #FFCC33;
	--icey_site_c_bluegrey: #95a5b7;
	--icey_site_c_black: #111111;
	--icey_control_panel_height: 7rem;
	--icey_site_border_margin: 1rem;
}
*{
	box-sizing: border-box;
}
html{
	font-size: 100%;
}
body, html, #sot_map{
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	font-family: sans-serif;
}
body{
	line-height: 1.4;
}
a{
	text-decoration: none;
}
button{
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border: none;
	background: var(--icey_site_c_blue);
	color: white;
	padding: 0 var(--icey_site_border_margin);
	cursor: pointer;
	border-radius: 3px;
    transition: 0.3s all ease;
}
button:hover{
	background-color:var(--icey_site_c_red);
}

/* ###################### UI */
/* ##### Control panel */
.sot_control_panel {
    position: fixed;
    top: var(--icey_site_border_margin);
    right: var(--icey_site_border_margin);
    z-index: 1000;
    background: white;
    padding: 0.9375rem;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    width: auto;
    height: var(--icey_control_panel_height);
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#sot_loader{
	position: absolute;
	top: 0.9375rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1100;
	background: #2c3e50;
	color: white;
	padding: 0.5rem 0.9375rem;
	border-radius: 20px;
	font-size: 0.875rem;
	display: none;
}
.sot_time_container{
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
.sot_time_label{
	flex-shrink: 1;
}
#sot_time_input {
    flex-shrink: 1;
    margin-right: 0.5rem;
    border: none;
    padding-left: 0.5rem;
	font-family: sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	background-color: #fff;
}
#sot_time_slider{
	flex-grow: 1;
}
.sot_search_container{
	display: flex;
	margin-top: 0.9375rem;
}
#sot_search_input{
	flex-grow: 1;
	border: 2px solid var(--icey_site_c_blue);
	border-right: none;
	padding: 0.5rem 1rem;
	border-radius: 3px 0 0 3px;
	outline: none;
    transition: 0.3s all ease;
}
#sot_search_input:focus{
	border-color: var(--icey_site_c_red);
}
#sot_search_button{
	background: var(--icey_site_c_blue);
	border-radius: 0;
}
#sot_search_button:hover{
	background: var(--icey_site_c_red);
}
#sot_my_location{
	border-radius: 0 3px 3px 0;
}
#sot_my_location::before {
    content: "";
    height: calc(100% - 12px);
    width: 1.5px;
    background-color: white;
    position: absolute;
    left: 0;
}
#sot_my_location::after {
    content: "";
    height: 1.5rem;
    width: 1.5rem;
    display: inline-block;
    background-image: url(/img/sot-my-location-c-white.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ##### Prompts*/
#sot_zoom_prompt{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 1.25rem;
	border-radius: 10px;
	font-size: 1.125rem;
	text-align: center;
	display: none;
	pointer-events: none;
}

/* ##### Main panel */
.sot_main_panel_overlay{
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	opacity: 0;
	z-index: 10010;
	transition: 0.5s opacity ease;
}
.icey_main_menu_active .sot_main_panel_overlay{
	opacity: 1;
	pointer-events: all;
	cursor: pointer;
}
#sot_main_panel {
    display: flex;
	flex-direction: column;
    height: 100svh;
    position: fixed;
    right: 0;
    background-color: #fff;
	right: -50%;
    width: 50%;
    z-index: 10011;
    top: 0;
	transition: 0.5s all ease-in-out;
}
.icey_main_menu_active #sot_main_panel{
	right: 0;
}
#sot_main_panel h2{
	font-weight: 500;
	font-size: 1.3rem;
	margin:0 0 0.8em 0;
}

#sot_main_panel_filter {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: calc(var(--icey_site_border_margin) * 2) var(--icey_site_border_margin);
    background-color: var(--icey_site_c_sun);
    color: var(--icey_site_c_black);
}
.sot_main_panel_filter > .sot_row{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.8rem;
}
button.sot_filter {
	background-color: #fff;
	color: var(--icey_site_c_black);
	font-size: 1rem;
	font-weight: 500;
    padding: 0.5rem 1rem;
	flex-grow: 1;
	border: 2px solid #fff;
}
button.sot_filter.sot_active{
	background-color: var(--icey_site_c_bluegrey);
	color: #fff;
}
button.sot_filter.sot_disabled{
	background-color: transparent;
	border: 2px solid #fff;
}
button.sot_filter .sot_icon{
	display: inline-block;
    width: 2rem;
    height: 2rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	margin-right: 1rem;
	border-radius: 50%;
}
button.sot_filter.sot_filter_bar .sot_icon {
	background-image: url(/img/sot-icon-bar.svg);
}
button.sot_filter.sot_filter_cafe .sot_icon{
	background-image: url(/img/sot-icon-cafe.svg);
}
button.sot_filter.sot_filter_restaurant .sot_icon{
	background-image: url(/img/sot-icon-restaurant.svg);
}

.sot_main_panel_locations_wrapper{
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	padding: calc(var(--icey_site_border_margin) * 2) var(--icey_site_border_margin);
	background-color: #efefef;
}
#sot_main_panel_locations{
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.sot_location_item{
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	padding: var(--icey_site_border_margin);
	background-color: #fff;
	border-radius: 3px;
}
.sot_venue_header{
	margin-bottom: 1rem;
	width: 100%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5rem;
}
.sot_location_item .sot_venue_header h3{
	font-size: 1rem;
	margin:0;
}
.sot_venue_header .sot_icon,
.sot_venue_header .sot_validated{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.sot_venue_header .sot_icon{
	width: 2rem;
	height: 2rem;
	background-color: #ccc;
	padding: 0.4rem;
	border-radius: 50%;
}
.sot_venue_header .sot_icon.sot_state_sunny{
	background-color: var(--icey_site_c_sun);
}
.sot_venue_header .sot_icon.sot_state_shadow{
	background-color: var(--icey_site_c_bluegrey);
}
.sot_venue_header .sot_validated{
	width: 1rem;
	height: 1rem;
	color: #727272;
}
.sot_location_item:last-child{
	border-bottom: none;
	margin-bottom: 0;
}
.sot_location_item strong{
	display: block;
	margin-bottom: 0.25rem;
}
.sot_location_item_meta{
	color: #555;
}
.sot_location_item_meta span{
	font-size: 1rem;
}
.sot_location_item_meta a{
	color: #4a8fdd;
    text-decoration: underline;
    text-decoration-color: #fff0;
    text-underline-offset: -.5em;
	text-decoration-thickness: 1.5px;
    transition: 0.5s all ease;
	font-weight: bold;
	font-size: 0.8rem;
}
.sot_location_item_meta a:hover{
	color: var(--icey_site_c_red);
    text-decoration-color: currentColor;
    text-underline-offset: .3em;
}


.sot_main_panel_opener_wrapper {
    display: flex;
    position: fixed;
    right: var(--icey_site_border_margin);
    padding: 0;
    top: calc(var(--icey_control_panel_height) + 2rem);
    border-radius: 0;
    background-color: var(--icey_site_c_blue);
    height: 3rem;
    width: 3rem;
    z-index: 10012;
    border-radius: 50%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: 0.5s all ease-in-out;
    outline: 5px solid #fff;
    box-shadow: 0px 1px 10px 6px rgba(0, 0, 0, 0.2);
}
.sot_main_panel_opener_wrapper:hover{
	background-color: var(--icey_site_c_red);
}
.icey_main_menu_active .sot_main_panel_opener_wrapper{
	top: var(--icey_site_border_margin);
	height: 2.5rem;
    width: 2.5rem;
	box-shadow: 0 0 0px 0px rgba(0, 0, 0, 0);
}
#sot_main_panel_opener, #sot_main_panel_opener:hover {
    display: block;
    position: relative;
    padding: 0;
    border-radius: 0;
    height: 2rem;
    width: 2rem;
    background-color: transparent;
    margin-left: 0.25rem;
    margin-top: 0.25rem;
}
#sot_main_panel_opener span {
    font-size: 0.8rem;
    position: absolute;
    top: 3.5rem;
    text-shadow: 0px 0px 2px black;
    height: auto;
    text-align: center;
    writing-mode: vertical-rl;
    rotate: -180deg;
    white-space: nowrap;
    right: 0.7rem;
	transition: 0.5s opacity ease-in-out;
}
.icey_main_menu_active #sot_main_panel_opener span{
	opacity: 0;
}
#sot_main_panel_opener svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-53%, -53%);
	cursor: pointer;
	pointer-events: none;
	height: 200%;
	width: 200%;
	-webkit-tap-highlight-color: #fff0;
	transition: transform 400ms;
	-webkit-user-select: none;
	user-select: none
}
#sot_main_panel_opener svg path {
	fill: none;
	transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
	stroke: #fff;
	stroke-width: 4;
	stroke-linecap: unset
}
#sot_main_panel_opener svg .top {
	stroke-dasharray: 40 172
}

#sot_main_panel_opener svg .middle {
	stroke-dasharray: 40 111
}
#sot_main_panel_opener svg .bottom {
	stroke-dasharray: 40 172
}
.icey_main_menu_active #sot_main_panel_opener svg .top {
	stroke-dashoffset: -132px
}
.icey_main_menu_active #sot_main_panel_opener svg .middle {
	stroke-dashoffset: -71px
}
.icey_main_menu_active #sot_main_panel_opener svg .bottom {
	stroke-dashoffset: -132px
}

/* ##### Leaflet popup */
.leaflet-container a{
	color: var(--icey_site_c_blue);
    text-decoration: underline;
    text-decoration-color: #fff0;
    text-underline-offset: -.5em;
    text-decoration-thickness: 1.5px;
    transition: 0.5s all ease;
    font-weight: bold;
    font-size: 0.8rem;
}
.leaflet-container a:hover {
    color: var(--icey_site_c_red);
    text-decoration-color: currentColor;
    text-underline-offset: .3em;
}
.leaflet-container a.leaflet-popup-close-button {
	border-radius: 0 3px 0 0;
    background-color: var(--icey_site_c_red);
    color: #fff;
}
.leaflet-container a.leaflet-popup-close-button:hover{
	background-color: var(--icey_site_c_blue);
	color: #fff;
}
.sot_popup_content{
	text-align: center;
}
.sot_popup_content h2{
	font-size: 1rem;
	font-weight: bold;
	margin:0 0 0.8em 0;
}
.leaflet-marker-icon > div{
	transition: 0.3s scale ease;
}
.leaflet-marker-icon:hover > div{
	scale: 1.2;
}

/* ##### Leaflet attribution */
.leaflet-control-attribution.leaflet-control{
	writing-mode: vertical-rl;
    position: absolute;
    top: -50svh;
    right: -1.25rem;
	height: 1.25rem;
    z-index: 1000;
    translate: -50% -50%;
    white-space: nowrap;
    background-color: transparent;
	rotate: -180deg;
}

/* ############################ Media Queries/Responsive */
/* ###################### Above Tablet */
@media only screen and (min-width: 1026px){

}

/* ###################### Laptop */
@media only screen and (max-width: 1440px){
	:root {
	}
}

/* ###################### Small laptop */
@media only screen and (max-width: 1200px){

}

/* ###################### Tablet */
@media only screen and (max-width: 1025px){
	:root {
	}
	.sot_control_panel {
		top: auto;
		bottom: var(--icey_site_border_margin);
		width: calc(100% - var(--icey_site_border_margin) * 2);
	}
	#sot_main_panel{
		width: 100%;
		right: -100%;
	}
	.sot_main_panel_opener_wrapper{
		top: calc(100svh - var(--icey_control_panel_height) - 5rem);
	}
	.icey_main_menu_active .sot_main_panel_opener_wrapper{
		top: var(--icey_site_border_margin);
	}
	#sot_main_panel_opener span {
		rotate: 0deg;
		writing-mode: initial;
		top: 2rem;
		right: 3rem;
	}
}

/* ###################### Phone */
@media only screen and (max-width: 768px){
	:root {
	}
	html{
		font-size: 100%;
	}
	#sot_time_input{
		width: 6rem;
	}
	button.sot_filter{
		font-size: 0.8rem;
	}
	button.sot_filter .sot_icon{
		width: 1.5rem;
		height: 1.5rem;
		margin-right: 0.5rem;
		padding: 0.5rem;
	}
}

/* ###################### Super small Phone */
@media only screen and (max-width: 250px){
	html{
		font-size: 50%;
	}
}

/* ###################### Accessibility & Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}