.events-filters-wrapper {
	display: flex;
	flex-direction: column;
	gap: 70px;
}

.events-filters-top {
	display: block;
	gap: 16px;
}

.events-filters-bottom {
	display: flex;
	gap: 16px;
}

.events-filters-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 32%;
	padding-left: 50px;
}

.events-filters-left {
	width: 68%;
}

/* קטגוריות עליונות */
.top-categories-row {
	display: -webkit-box;
	gap: 40px;
	place-self: center;
}

.top-category {
	display: flex;
	flex-direction: column;
	gap: 30px;
	place-self: center;
	width: 33%;
}

.top-category-item {
	text-align: center;
	cursor: pointer;
}

.top-category-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	overflow: hidden;
}

.top-category-item .top-category-icon-wrap img {
	transition: transform 0.25s ease;
}

.top-category-item:hover .top-category-icon-wrap img {
	transform: scale(1.15);
}

.top-category-item .icon_on {
	display: none;
}

.top-category-item.active .icon_on {
	display: block;
}

.top-category-item.active .icon_off {
	display: none;
}

.top-category-item.active .top-category-icon-wrap {
	border-color: #E8FE0C;
}

.top-category-icon-wrap img {
	.top-category-icon-wrap img
	object-fit: contain;
}

.top-category-title {
	font-weight: 700;
	margin-bottom: 4px;
	color: #FAFBF6;
	font-size: 28px;
}

.top-category-underline {
	height: 2px;
	background: #E8FE0C;
	margin: 0 auto;
}

/* תתי קטגוריות */
.subcategories-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	place-content: center;
}

.subcategory-pill {
	padding: 0px 10px 0px 10px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	color: #D9F4F4;
	border: 1px solid #D9F4F4;
}

.subcategory-pill.active {
	background: #D9F4F4;
	color: #0C4546;
} 

/* סוגי אירועים */
.event-types-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.event-type-box {
	padding: 0px 10px 0px 10px;
	color: #D9F4F4;
	background: #FAFBF6;
	font-weight: 400;
	cursor: pointer;
	border: 2px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.event-type-box.active {
	background: transparent !important;
	color: #D9F4F4 !important;
}

.area-checkbox {
	width: 20px;
	height: 20px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-color: #0C4546;
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
	margin-left: 8px;
}

.area-checkbox-item {
	display: flex;
	cursor: pointer;
	padding-bottom: 10px;
}

.area-checkbox:checked {
	background-image: url("https://www.merkazim.org/wp-content/uploads/2026/06/v-צ׳ק-בוקס.svg");
}

.organizations-wrap {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.organization-item {
	position: relative;
}

.organization-logo {
	position: relative;
	border-radius: 8px;
	width: 55px;
	height: 55px;
	border: 1px solid #24c6c8;
	background-color: transparent;
	padding: 4px;
}

.organization-item .logo_on {
	display: none;
}

.organization-item.active .logo_on {
	display: block;
}

.organization-item.active .logo_off {
	display: none;
}

.organization-item.active .organization-logo {
	background-color: #D9F4F4;
	border: none;
}

.organization-item .organization-name {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: #0C4546;
	color: #fff;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 13px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: 0.2s;
	z-index: 100;
}

.organization-item:hover .organization-name {
	opacity: 1;
}

#events-map {
	width: 100%;
	height: 500px;
}

.events-filters-title {
	font-weight: 700;
	font-size: 24px;
	margin-bottom: 4px;
	color: #D9F4F4;
}

.open_iframe {
	cursor: pointer;
}

.gm-style-iw-chr {
	display: none;
}

.gm-style-iw.gm-style-iw-c {
	border-radius: 0px;
	box-shadow: none;
	padding-top: 30px !important;
	padding-bottom: 15px !important;
}

@media (max-width: 1024px) {
			
	/* עטיפה כללית */
	.mobile-top-bar {
		margin-bottom: 25px;
	}

	/* אייקונים עליונים */
	.mobile-top-icons {
		display: flex;
		justify-content: space-between;
		margin-bottom: 20px;
		gap: 15px;

	}
	
	.icon-box .icon_on, .top-category-item .icon_on {
		display: none;
	}

	.icon-box.active .icon_on, .top-category-item.active .icon_on {
		display: block;
	}

	.icon-box.active .icon_off, .top-category-item.active .icon_off {
		display: none;
	}

	.mobile-top-icons .icon-box {
		flex: 1;
		text-align: center;
		border-radius: 10px;
		padding: 14px 6px;
		border: 1px solid #E8FE0C;
	}
	
	.mobile-top-icons .icon-box.active {
		border: none;
		background-color: #D9F4F4;
	}

	.mobile-top-icons .icon-box img {
	}

	.mobile-top-icons .icon-box span {
		display: block;
		font-size: 19px;
		font-weight: bold;
	}

	/* כפתורי דרופדאון */
	.mobile-dropdowns {
		display: flex;
		justify-content: space-between;
	}

	.mobile-dropdowns .dropdown-btn {
		color: #D9F4F4;
		padding: 7px;
		border: 1px solid #D9F4F4;
		border-radius: 100px;
		font-size: 16px;
		display: flex;        
		gap: 6px;
		align-items: center;
	}
	
	.mobile-dropdowns .right {       
		display: flex;
		gap: 8px;			
	}

	.mobile-dropdowns .dropdown-btn img {
		width: 14px;
		height: 14px;
		opacity: 0.7;
	}
	
	.popup-options.categories-grid {
		display: grid;
		gap: 80px;
	}

	.top-category {
		display: flex;
		gap: 40px;
		flex-direction: row;
		width: auto;
		place-self: unset;
	}
	
	.top-category-item {
		width: 58px;
		flex: none;
	}
	
	.category-title {
		text-align: center;
		font-size: 14px;
		color: #0C4546;
	}

	.subcategory-pill {
		color: #129092;
		border: 1px solid #129092;
	}
	
	.subcategory-pill.active {
		background: #129092;
		color: #FAFBF6;
	}
	
	.subcategories-wrap {
		place-content: flex-start;
	}
	
	.event-type-box.active {
		background: transparent !important;
		color: #0C4546 !important;
	}

	.organization-logo {
		border: 1px solid #24c6c8;
	}

	/* הפופאפים עצמם – מוסתרים כברירת מחדל */
	.mobile-popup {
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.5);
		display: none;          /* חשוב! */
		z-index: 9999;
		justify-content: center;
		align-items: center;
	}

	.mobile-popup.open {
		display: flex;          /* נפתח רק כשהמחלקה open קיימת */
	}

	.popup-title {
		font-size: 24px;
		font-weight: bold;
		margin-bottom: 20px;
	}
	
	.popup-section-title {
		font-size: 14px;
		font-weight: bold;
		margin-bottom: 10px;
	}
	
	.popup-section {
		margin-bottom: 20px;
	}
	
	.popup-options.org-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}
	
	.popup-inner {
		background: #FAFBF6;
		width: 90%;
		max-width: 420px;
		padding: 20px;
		border-radius: 16px;
		max-height: 90vh;
		overflow-y: auto;
		display: flex;
		flex-direction: column;
	}

	/* כפתורי המובייל שלך */
	.mobile-filters-buttons {
		display: flex;
		gap: 10px;
		margin-bottom: 15px;
	}

	.mobile-filter-btn {
		flex: 1;
		background: #E8FE0C;
		padding: 12px;
		border-radius: 10px;
		border: none;
		font-weight: bold;
	}

	.popup-apply {
		margin-top: 20px;
		background: #E8FE0C;
		padding: 12px;
		place-self: end;
		border-radius: 100px;
		font-weight: bold;
		color: #0C4546;
		width: fit-content;
		align-self: flex-end !important;
	}
}
