/*
Theme Name: Metropole Orkest Elementor
Description: Elementor theme for MO
Author: Internetbureau Websight
Author URI: https://websight.nl
Template: hello-elementor
Version: 1.0.12
Text Domain: mo-elementor
*/

#search-bar-agenda {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin: 20px auto;
	flex-wrap: wrap;
	transition: max-height 0.3s ease;
}

#search-bar-agenda .search-input {
	position: relative;
	flex: 2;
}

#search-bar-agenda .search-input input {
	width: 100%;
	padding: 10px 40px 10px 40px;
	border: none;
	border-bottom: 2px solid black;
	font-size: 16px;
	outline: none;
	border-radius: 0;
	background: none;
	color: var(--e-global-color-text);
}

#search-bar-agenda .search-input svg {
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	fill: black;
}

#search-bar-agenda .select-field {
	position: relative;
	flex: 1;
}

#search-bar-agenda .select-field .select2-selection {
	width: 100%;
	height: 45px;
	padding: 10px 35px 10px 15px;
	border: none;
	border-bottom: 2px solid black;
	font-size: 16px;
	outline: none;
	appearance: none;
	background: none;
	border-radius: 0;
}

#search-bar-agenda .select-field .select2-selection .select2-selection__arrow {
	display: none;
}
.select2-dropdown {
	background-color: var(--e-global-color-text) !important;
	/**position: static !important;**/
}
.select2-container {
	/**position: static !important;**/
	z-index: 10000;
}

#search-bar-agenda .select-field svg {
	position: absolute;
	top: 20px;
	right: 10px;
	width: 21px;
	height: 12px;
	fill: var(--e-global-color-text);
	pointer-events: none;
}

#search-bar-agenda .select-field .select2-container--open {
	background-color: var(--e-global-color-text) !important;
}

#search-bar-agenda .select-field .select2-container--open span {
	color: var(--e-global-color-primary);
}

#search-bar-agenda .select-field .select2-container--open + svg {
		transform: rotate(180deg);
	fill: var(--e-global-color-primary);
}
.select2-search__field {
	padding: 10px !important;
	border: none !important;
    outline: none !important;
}

#search-bar-agenda .search-button {
	background-color: var(--e-global-color-text) !important;
	color: white;
	padding: 10px 20px;
	border: none;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	height: 50px;
}

#search-bar-agenda .search-button svg {
	width: 20px;
	height: 20px;
	fill: white;
}
#search-bar-agenda .filter-container {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
#search-bar-agenda .filter-button {
	display: none; /* Verborgen standaard */
	position: relative;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 100%;
	text-align: center;

	height: 78px;
	
	background: var(--e-global-color-text);
	clip-path: polygon(0 30%, 100% 0%, 100% 70%, 0% 100%);
}
#search-bar-agenda .filter-button svg {
	display: none;
	position: absolute;
	right: 20px;
    top: 20px;
}
#search-bar-agenda .filter-button span {
	display: block;
	
	font-family: 'Safiro';
	font-style: normal;
	font-weight: 600;
	font-size: 16px;
	line-height: 19px;

	color: var(--e-global-color-primary);
	
	padding: 30px 120px 30px 120px;
	height: 74px;
	width: CALC( 100% - 4px );
	clip-path: polygon(0 31%, 100% 0%, 100% 69%, 0% 100%);
    margin: 2px;
}
#search-bar-agenda .filter-button.opened span {
	background: var(--e-global-color-primary);
	color: var(--e-global-color-text);
}
#search-bar-agenda .search-button span {
	display: none;
}

#search-bar-agenda .select2 {
	width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: none !important;
    color: var(--e-global-color-text) !important;
    border: none !important;
    margin-top: 0 !important;
    padding-left: 13px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	border-right: none !important;;
    color: var(--e-global-color-text) !important;;
    top: 3.5px !important;
}

 /* Responsive Design */
@media (max-width: 768px) {
	#search-bar-agenda form {
		flex-direction: column;
		align-items: flex-start;
	}
	#search-bar-agenda .filter-container {
		display: none;
	}

	#search-bar-agenda .filter-button {
		display: block; /* Alleen zichtbaar op mobiele schermen */
	}

	#search-bar-agenda .filter-container {
		width: 100%;
		flex-direction: column;
	}

	#search-bar-agenda .select-field {
		width: 100%;
	}

	#search-bar-agenda .search-input {
		width: 100%;
	}
	
	#search-bar-agenda .search-button {
		width: 100%;
		margin-top: 10px;
	}
	
	#search-bar-agenda .search-button span {
		display: block;
	}
	
	#search-bar-agenda .search-button svg {
		display: none;
	}
	
	#search-bar-agenda .filter-button svg {
		display: block;
	}
}

.agenda-overview div[data-elementor-type="loop-item"].type-agenda, .news-overview div[data-elementor-type="loop-item"].type-post, .search-overview div[data-elementor-type="loop-item"] {
    margin-right: 35px;
    transition: all 0.3s ease;
    will-change: margin-right;
}
.agenda-overview div[data-elementor-type="loop-item"].type-agenda .agenda-loop-arrow, .news-overview div[data-elementor-type="loop-item"].type-post .news-loop-arrow .search-overview div[data-elementor-type="loop-item"] .search-loop-arrow {
    margin-left: 0;
    transition: all 0.3s ease;
    will-change: margin-left;
}
.agenda-overview div[data-elementor-type="loop-item"].type-agenda:hover, .news-overview div[data-elementor-type="loop-item"].type-post:hover, .search-overview div[data-elementor-type="loop-item"]:hover {
    margin-right: 0px;
}
.agenda-overview div[data-elementor-type="loop-item"].type-agenda:hover .agenda-loop-arrow, .news-overview div[data-elementor-type="loop-item"].type-post:hover .news-loop-arrow, .search-overview div[data-elementor-type="loop-item"]:hover .search-loop-arrow {
    margin-left: 35px;
} 

@media (max-width:1024px) {
    .agenda-loop {
        margin-right: 0px;
    }
}

.agenda-overview .agenda-loop-arrow, .news-overview .news-loop-arrow, .search-overview .search-loop-arrow {
    clip-path: polygon(0 -1px, 100.5% 100%, 100.5% -1px);
}


/*
.elementor-element-192aa225 {
    margin-right: 25px;
    transition: all 0.3s ease;
}
.elementor-element-192aa225:hover {
    margin-right: 0px;
}

.agenda-overview .agenda-loop-arrow, .news-overview .news-loop-arrow {
    clip-path: polygon(0 -1px, 100.5% 100%, 100.5% -1px);
}

.agenda-loop, .news-loop { height: 168px; }
@media (max-width: 1024px) {
  .agenda-loop, .news-loop { width: 100%; height: auto; }
  .agenda-loop:hover, .news-loop:hover { width: 100%; }
}
@media (max-width: 767px) { .agenda-loop, .news-loop { clip-path: polygon(0 0, 100% 0, 100% 97%, 0% 100%); height: auto; } }
*/
