/* Box Sizing
--------------------------------------------- */

html,
input[type="search"]{
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}
html, body {
	overscroll-behavior: none;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden; /* Voorkomt scrollen op de achtergrond */
}
body {
	background: #fff;
	color: #010101;
	font-family: 'Raleway', Arial, Helvetica, sans-serif !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	margin: 0;
}

body.infosection-active .mobile-search,
body.infosection-active .mobile-filters,
body.listlocations-active .mobile-search,
body.listlocations-active .mobile-filters {
	xdisplay: none;
	xvisibility: hidden;
	transform: translateY(-100vh);
	transition: .3s ease-in-out;
}

#map { 
	height: calc(100vh - 100.8px); 
}

.sticky-navigation {
	z-index: 9999;
	border-top: 2px solid #C30;
	background-color: #fff;
	flex-flow: column wrap;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	position: sticky;
	bottom: 0;
}		
.navigation-buttons-container {
	grid-column-gap: 15px;
	justify-content: center;
	align-items: center;
	display: flex;
}
.navigation-button {
	flex-direction: column;
	align-items: center;
	width: 70px;
	color: #4F4F4F;
	text-decoration: none;
	display: flex;
	padding-top: 20px;
	padding-bottom: 20px;
}
.navigation-button.w--current,
.navigation-button:hover {
	outline-offset: 0px;
	background-color: #E9EEEA;
	border-width: 0;
	border-color: #000;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-style: solid;
	outline: 3px #00e;
}
.navigation-button i {
	font-size: 30px;
}

.filter-buttons {
	padding: 10px;
	background-color: #F5F5F5;
}
.filter-buttons img {
	width: 150px;
	vertical-align: middle;
}
button {
	padding: 10px;
	cursor: pointer;
	display: inline-flex;
	justify-content: center; /* center the content horizontally */
	align-items: center;
}
button#info-route {
	background-color: #1967D2;
	color: #fff;
	border: 0;
	border-radius: 20px;
	padding: 10px 16px;
}
button#info-route:hover {
	background-color: #165DBD;
}
button#info-route i.bx {
	font-size: 20px;
	margin-right: 5px;
}


#clear {
  position: absolute;
  float: right;
  height: 20px;
  width: 20px;
  top: 15px;
  right: 25px;
  border-radius: 20px;
  background: #f1f1f1;
  color: #000;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}
#clear:hover {
  background: #ccc;
}

#info-notice:not(.inactive) {
	display: none;
	visibility: hidden;
}
#info-notice.inactive {
	display: block;
	visibility: visible;
	color: #58151c;
	background-color: #f8d7da;
	border: 1px solid #f1aeb5;
	padding: 16px;
	border-radius: 8px;
	margin-top: 20px;
	margin-bottom: 0px;
}
#info-notice.inactive h3 {
	margin: 0;
}	

.filter-buttons button,
.mobile-filters  button {
	position: relative;
	padding-left: 30px;
	xbackground-color: #fff;
	border: 1px solid;
	border-radius: 15px;
}
.filter-buttons button:before,
.mobile-filters button:before {
	position: absolute;
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	left: 5px;
	top: 8px;
	clear: both;
}
.filter-buttons button.alles:before,
.mobile-filters button.alles:before {
	background-image: url(https://www.parijsalacarte.nl/documents/parijs-interactieve-map/icons/map-icon-alles.png);
}
.filter-buttons button.musea,
.mobile-filters button.musea {
	border-color: #BE0000;
	color: #BE0000;
}
.filter-buttons button.musea.active-filter,
.mobile-filters button.musea.active-filter {
	background-color: #BE0000;
	color: #fff;
}
.filter-buttons button.musea:before,
.mobile-filters button.musea:before {
	background-image: url(https://www.parijsalacarte.nl/documents/parijs-interactieve-map/icons/map-icon-museum.png);
}
.filter-buttons button.kerken,
.mobile-filters button.kerken {
	border-color: #03C1D7;
	color: #03C1D7;
}
.filter-buttons button.kerken.active-filter,
.mobile-filters button.kerken.active-filter {
	background-color: #03C1D7;
	color: #fff;
}
.filter-buttons button.kerken:before,
.mobile-filters button.kerken:before {
	background-image: url(https://www.parijsalacarte.nl/documents/parijs-interactieve-map/icons/map-icon-church.png);
}
.filter-buttons button.parken,
.mobile-filters button.parken {
	border-color: #24572C;
	color: #24572C;
}
.filter-buttons button.parken.active-filter,
.mobile-filters button.parken.active-filter {
	background-color: #24572C;
	color: #fff;
}
.filter-buttons button.parken:before,
.mobile-filters button.parken:before {
	background-image: url(https://www.parijsalacarte.nl/documents/parijs-interactieve-map/icons/map-icon-park.png);
}
.filter-buttons button.bezienswaardigheden,
.mobile-filters button.bezienswaardigheden {
	border-color: #8c7394;
	color: #8c7394;
}
.filter-buttons button.bezienswaardigheden.active-filter,
.mobile-filters button.bezienswaardigheden.active-filter {
	background-color: #8c7394;
	color: #fff;
}
.filter-buttons button.bezienswaardigheden:before,
.mobile-filters button.bezienswaardigheden:before {
	background-image: url(https://www.parijsalacarte.nl/documents/parijs-interactieve-map/icons/map-icon-bezienswaardigheid.png);
}

.active-filter {
	background-color: #005EB8;
	color: white;
}
.sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 33%;
	height: calc(100vh - 97px);
	background: white;
	box-shadow: -2px 0 5px rgba(0,0,0,0.2);
	xpadding: 20px;
	z-index: 1000;
	overflow-y: auto;
	max-height: 100vh;
	transform: translateY(0px);
	opacity: 1;
	visibility: visible;
	transition: height 0.3s ease-in-out;
}
.sidebar-container {
	display: flex;
	-webkit-box-align: stretch;
	align-items: stretch;
	flex-direction: column;
	-webkit-box-pack: start;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	overscroll-behavior: none;
}
.sidebar .sidebar-buttons-bar {
	background-color: #F5F5F5;
	padding: 10px 20px;
	width: 100%;
	scrollbar-width: none;
}
.sidebar .sidebar-buttons-bar input {
	border: 0px;
	font-size: 14px;
	outline: none;
	padding: 12px 5px;
	border-radius: 2px;
	background: #fff !important;
	width: 100% !important;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px 0px;
}
.sidebar .sidebar-list-locations {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	-webkit-box-flex: 1;
	flex-grow: 1;
	flex-shrink: 1;
	background: rgb(255, 255, 255);
}
.sidebar .sidebar-list-locations h2 {
	padding: 0 20px;
}
.sidebar .count-results {
	padding: 20px;
	font-weight: 700;
	display: block;
	border-bottom: 1px solid #eee;
}
ul#sidebar-list {
	padding-left: 0;
	margin-top: 0;
	display: flex;
	flex-direction: column;
	max-height: 100%;
	overflow: hidden auto;
	height: 100%;
}
.sidebar .info-section {
	display: none;
	padding: 0 20px 20px;
	position: fixed;
	top: 0;
	bottom: 0;
	background: #fff;
	z-index: 1;
}
#sidebar #info-content-container {
	margin-top: 40px;
	padding: 0 0 40px 0;
}
#sidebar h2#info-title {
	margin-top: 20px;
}
#sidebar #info-image img {
	width: 100%;
}
.info-section.active {
	display: block;
}
.close-button {
	position: absolute;
	top: 0px;
	right: 0px;
	background: none !important;
	border: none;
	font-weight: bold;
	cursor: pointer;
	color: #333 !important;
	font-size: 24px !important;
	width: auto !important;
	line-height: 24px;
}

.close-button:hover {
	color: #000;
}
.sidebar .info-section #info-latlng {
	display: none;
}
.location-item {
	cursor: pointer;
	padding: 10px 20px;
	border-bottom: 1px solid #ddd;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	flex-direction: row;
}
.location-item .cell-title {
	font-weight: 700;
}
.location-item .cell-info {
	font-size: 12px;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
	margin-top: 10px;
}
.location-item .cell-address {
	display: block;
	color: #969696;
	font-size: 12px;
	width: 100%;
}
.location-item img {
	width: 35px;
	height: 35px;
	margin-right: 10px;
	margin-top: 5px;
}
.location-item:hover {
	background-color: #F9F9F9;
}
.location-item small {
	flex-basis: 100%;
	margin-top: 14px;
}
.back-button {
	display: none;
	margin-bottom: 10px;
	padding: 10px;
	background-color: #007bff;
	color: white;
	border: none;
	cursor: pointer;
}
.info-section.active ~ h2, .info-section.active ~ ul {
	display: none;
}

.leaflet-marker-icon:after {
	position: absolute;
	z-index: 10;
	content: " ";
	height: 0;
	width: 0;
	top: 98%;
	left: 50%;
	margin-left: -12px;
	border: solid rgba(0, 0, 0, 0);
	border-color: rgba(0, 0, 0, 0);
	border-top-color: #fafafa;
	border-width: 12px;
	pointer-events: none;
	transition: border-top-color .2s ease-out;
}

.mobile-search,
.mobile-filters {
	display: none;
}

.leaflet-control-custom.fontawesome i {
	font-size: 18px;
	vertical-align: middle;
}
.mylocation.active {
	color: #4285f3;
}
.leaflet-routing-collapse-btn {
	display: none !important;
	visibility: hidden !important;
}
.leaflet-routing-alt {
	max-height: none !important;
}
.leaflet-routing-alt-minimized {
	display: none !important;
	visibility: hidden !important;
}
.leaflet-routing-container {
	width: 100% !important;
	box-shadow: none !important;
	border-top: 1px solid #DFDFDF;
	margin-top: 20px;
}
.leaflet-routing-alt table tr {
	border-bottom: 1px solid #DFDFDF;
}
.leaflet-routing-alt table tr:last-of-type {
	border: 0;
}

@media only screen and (min-width: 601px) {
	.close-button {
		right: 10px;
	}
	.info-section.active {
		transform: none !important;
	}
	#sidebar #info-content-container {
		border-top: 1px solid #DFDFDF;
	}
}

@media only screen and (max-width: 600px) {
	/* Kaart */
	#map {
		height: calc(100vh - 100.8px);
		top: 0;
		width: 100vw;
	}
	
	.sidebar .count-results {
		font-size: 14px;
		padding: 10px 20px;
		cursor: grab;
	}
	.sidebar .count-results:before {
		content: "\eb44";
		font-family: boxicons !important;
		margin-right: 5px;
	}

	/* Zijbalk */
	#sidebar {
		display: block;
		position: absolute;
		transform: translateY(100%) translateY(-47px);
		height: 100%;
		bottom: 100.8px;
		left: 0;
		right: 0;
		width: 100%;
		overflow-x: hidden;
		z-index: 9999;
		transition: transform 0.3s ease-out, opacity 0.3s ease-out;
		overscroll-behavior: none;
	}
	#sidebar:not(.listlocations-active) {
		top: auto;
	}
	#sidebar.listlocations-active {
		height: 66vh;
		bottom: 100.8px;
		overflow-y: auto;
		top: auto;
	}
	#sidebar.infosection-active {
		transform: translateY(0%);
	}
	#sidebar.hidden {
		visibility: hidden;
	}
	#sidebar .sidebar-buttons-bar {
		display: none;
	}
	#sidebar::before {
		background-color: rgb(150, 150, 150);
		width: 7%;
		height: 0.1em;
		border-radius: 1em;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.sidebar .iinfo-section:before {
		content: "";
		background-color: rgb(150, 150, 150);
		width: 7%;
		height: 0.1em;
		border-radius: 1em;
		position: absolute;
		top: 20px;
		left: 50%;
		transform: translate(-50%, -50%);
		cursor: grab;
	}
	#drag-handle {
		width: 7%;
		height: 0.1em;
		background-color: #969696;
		border-radius: 3px;
		position: absolute;
		top: 20px;
		left: 50%;
		transform: translateX(-50%);
		cursor: grab;
		overscroll-behavior: none;
	}

	#sidebar.expanded {
		height: 66vh;
		bottom: 100.8px;
		overflow-y: auto;
	}
	
	.count-results.swiped-up {
		xtransform: translateY(-100%);
		xopacity: 0;
		transition: transform 0.3s ease-out, opacity 0.3s ease-out;
	}
	.sidebar.swiped-up {
		transform: translateY(0%) ;
		transition: transform 0.3s ease-out;
		height: 62vh !important;
	}
	
	.leaflet-control-zoom {
		display: none;
		visibility: hidden;
	}
	.leaflet-top.leaflet-left {
		top: 110px;
	}

	/* Zoekbalk */
	.mobile-search {
		display: block;
		position: absolute;
		top: 10px;
		left: 10px;
		right: 10px;
		padding: 10px;
		background-color: #fff;
		border: 1px solid #ddd;
		border-radius: 5px;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		z-index: 999;
		transform: translateY(0);
		transition: .4s ease-in-out;
	}

	.mobile-search input {
		width: 100%;
		padding: 10px;
		font-size: 16px;
		border: none;
		border-radius: 5px;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	}
	
	.mobile-filters {
		display: flex;
		position: absolute;
		top: 78px;
		left: 10px;
		right: 10px;
		overflow-x: auto;
		z-index: 999;
		scrollbar-width: none;
		transform: translateY(0);
		transition: .4s ease-in-out;
	}
	.mobile-filters button {
		margin-right: 5px;
	}

	/* Filterknoppen */
	.filter-buttons {
		position: absolute;
		bottom: 10px;
		left: 10px;
		right: 10px;
		padding: 10px;
		background-color: #fff;
		border: 1px solid #ddd;
		border-radius: 5px;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		display: none;
	}

	.filter-buttons button {
		width: 100%;
		padding: 10px;
		font-size: 16px;
		border: none;
		border-radius: 5px;
		background-color: #f0f0f0;
		cursor: pointer;
	}

	.filter-buttons button.active {
		background-color: #007bff;
		color: #fff;
	}

	/* Info-section */
	.info-section {
		position: absolute !important;
		bottom: 0;
		top: 0;
		left: 0;
		right: 0;
		height: 100%;
		background-color: #fff;
		border-top: 1px solid #ddd;
		z-index: 99999;
		transform: translateY(100%); /* Startpositie: verborgen */
		transition: transform 0.3s ease-out; /* Soepele animatie */
		display: flex;
		flex-direction: column;
		overscroll-behavior: none;
	}
	.info-section.active {
		visibility: visible;
	}

	/* Vastzetten van de header (drag-handle + sluitknop) */
	#info-header {
		position: sticky;
		top: 0;
		background: white;
		z-index: 2;
		padding: 20px;
		text-align: center;
		border-bottom: 1px solid #ddd;
		overscroll-behavior: none;
	}

	/* Scrollbare content */
	#info-content-container {
		flex-grow: 1;
		overflow-y: auto;
		max-height: calc(100% - 50px); /* Zorgt dat de scroll niet over de drag-handle komt */
		overscroll-behavior: none;
		margin-top: 0 !important;
	}

	.info-section.expanded {
		height: calc(100vh - 60px);
		bottom: 49px !important;
		top: 70px !important;
		overflow-y: auto;
	}

	.info-section.expanded .info-content {
		display: block;
	}

	.info-content {
		display: none;
		padding: 20px;
	}

	.info-section h2 {
		font-size: 18px;
		margin-bottom: 10px;
		margin-top: 20px !important;
	}

	.info-section p {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.info-section button {
		width: 100%;
		padding: 10px;
		font-size: 16px;
		border: none;
		border-radius: 5px;
		background-color: #007bff;
		color: #fff;
		cursor: pointer;
	}
	
	.navigation-buttons-container {
		justify-content: space-around;
	}
}