	/**
 * Camino Ignaciano Interactive Map Styles
 *
 * Uses Elementor global CSS variables when available.
 *
 * @package SanIgnacioMap
 * @since   1.0.0
 */

/* ── Wrapper: filters left, map right ── */
.sim-map-wrapper {
	display: flex;
	gap: 0;
	width: 100%;
	min-height: 760px;
	border-radius: 0;
	overflow: hidden;
	font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
	font-weight: var(--e-global-typography-text-font-weight, 400);
	font-size: 14px;
}

/* ── Results counter ── */
.sim-results-count {
	color: #000;
	font-family: "Inter 18pt", var(--e-global-typography-text-font-family, "Inter"), sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: 0;
	text-align: right;
	padding: 0 0 15px 0;
}

/* ── Filters sidebar ── */
.sim-filters {
	width: 30%;
	min-width: 280px;
	/*max-height: 760px;*/
	max-height: 100%;
	overflow-y: auto;
	background: var(--e-global-color-primary, #F27D00);
	box-sizing: border-box;
	padding: 40px 32px 60px 32px;
}

/* Webkit (Chrome, Safari, Edge) */
.sim-filters::-webkit-scrollbar {
	height: 6px;
	width: 6px;
}

.sim-filters::-webkit-scrollbar-track {
	background: var(--e-global-color-primary, #F27D00);
	border-radius: 9px;
}

.sim-filters::-webkit-scrollbar-thumb {
	background: #FBD9B6;
	border-radius: 9px;
}

.sim-filters::-webkit-scrollbar-thumb:hover {
	background: #FBD9B6;
}


@media only screen and (min-width:1300px) {
	.sim-filters {
		min-width: 372px;
	}
}

/* ── Filter group (each collapsible section) ── */
.sim-filter-group {
	margin-bottom: 20px;
}

.sim-filter-group:last-child {
	margin-bottom: 0;
}

/* ── Toggle button (the heading) ── */
.sim-filter-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	margin: 0;
	border: none;
	background: #ffffff;
	color: var(--e-global-color-text, #000000);
	font-family: "Inter 18pt", var(--e-global-typography-text-font-family, "Inter"), sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.2s ease;
	border-radius: 4px;
	min-height: 56px;
}

.sim-filter-toggle:hover,
.sim-filter-toggle:focus {
	background: #FBD9B6;
	color: var(--e-global-color-text, #000000);
}

.sim-filter-toggle[aria-expanded="true"] {
	background: #FBD9B6;
}


/* Badge counter */
.sim-filter-badge {
	display: none;
	min-width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 50%;
	background: #000000;
	color: #F9F9F9;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	flex-shrink: 0;
}

.sim-filter-badge-text {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
}

.sim-filter-badge.sim-badge-active {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Arrow icon */
.sim-filter-arrow {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	color: var(--e-global-color-text, #000000);
}

.sim-filter-toggle[aria-expanded="true"] .sim-filter-arrow {
	transform: rotate(180deg);
}

/* ── Collapsible content ── */
.sim-filter-content {
	display: none;
	padding: 8px 16px 12px;
	background: #fff;
}

.sim-filter-group.sim-open .sim-filter-content {
	display: block;
	max-height: 360px;
	overflow-y: auto;
}

/* ── Disabled state (depends on destination) ── */
.sim-filter-group.sim-disabled .sim-filter-toggle {
	opacity: 1;
	cursor: not-allowed;
	background: #fff;
}

.sim-filter-group.sim-disabled .sim-filter-toggle:hover {
	background: #FBD9B6;
}

/* ── Filter option (radio / checkbox labels) ── */
.sim-filter-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: var(--e-global-color-text, #000000);
	font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 34px;
	letter-spacing: 0;
	padding-block: 5px;
}

.sim-filter-option:hover {
	opacity: 0.8;
}

.sim-filter-option input[type="radio"],
.sim-filter-option input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--e-global-color-primary, #F27D00);
}

.sim-filter-option span {
	font-size: 16px;
	line-height: 1;
}

/* Filter option icon (marker icons for resource_type / interest) */
.sim-filter-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.sim-filter-count {
	color: var(--e-global-color-secondary, #54595F);
	font-size: 14px !important;
}

/* Child terms indented */
.sim-filter-child {
	padding-left: 20px;
}

/* ── Map container ── */
.sim-map {
	flex: 1;
	min-height: 760px;
}

/* ── Notice for missing API key ── */
.sim-map-notice {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	font-size: 14px;
}

/* ── InfoWindow styles ── */
.sim-info-card {
	width: 280px;
	max-width: 100%;
	font-family: var(--e-global-typography-text-font-family, "Inter"), sans-serif;
}

.sim-info-card .sim-grid-card-image {
	height: 150px;
}

.sim-info-card .sim-grid-card-body {
	padding: 16px;
}

.sim-info-card .sim-grid-card-title {
	margin: 0 0 12px;
	font-size: 18px;
}

/* Remove default Google Maps InfoWindow padding so the card spans full width */
.gm-style .gm-style-iw-c {
	padding: 0 !important;
}

.gm-style .gm-style-iw-c .gm-style-iw-d {
	overflow: hidden !important;
	padding: 0 !important;
	max-height: none !important;
}

.gm-style .gm-style-iw-c .gm-style-iw-chr {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
}

/* ── Responsive: stack on mobile ── */
@media (max-width: 768px) {
	.sim-map-wrapper {
		flex-direction: column-reverse;
		min-height: auto;
	}

	.sim-filters {
		width: 100%;
		min-width: 100%;
		max-height: none;
	}

	.sim-map {
		min-height: 480px;
		max-height: 70vh;
	}

	.gm-style .gm-style-iw-c {
		min-width: 280px !important;
		max-width: 280px !important;
		max-height: 345px !important;
	}
}

/* Mobile filter toggle*/

.sim-filters-open,
.sim-filters-close {
	display: none;
}

.sim-filters-bottom {
	margin-top: 20px;
	padding-top: 20px;
}

.sim-tags-clear-all {
	display: inline-block;
	margin-bottom: 8px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
	line-height: 18px;
	text-decoration: underline;
	color: #fff;
}

.sim-tags-clear-all:hover {
	opacity: 0.7;
	background-color: transparent;
}

.sim-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 15px;
}

.sim-tag {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 4px 10px;
	border: 1px solid #FBD9B6;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1;
	background-color: #FBD9B6;
	color: #181818;
	font-weight: 500;
	min-height: 34px;
}

.sim-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	margin-left: 2px;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	color: inherit;
	border-radius: 50%;
	background-color: transparent !important;
}

.sim-tag-remove:hover {
	opacity: 0.6;
}

.sim-filters-close-heading {
	display: none !important;
}

#sim-map-view-btn {
	display: none;
}

.sim-filters-apply-bar {
	display: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {

	.sim-map-wrapper.sim-filters-active #sim-filters-open {
		display: none;
	}

	#sim-results-count {
		display: none;
	}

	#sim-map-view-btn {
		justify-content: center;
		align-items: center;
		border: 1px solid #F27D00 !important;
		max-width: calc(100% - 32px);
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		margin-top: 16px;
		margin-bottom: 16px;
		text-align: center;
		color: #000;
		padding: 16px;
		font-weight: 600;
		font-size: 14px;
		line-height: 18px;
		letter-spacing: 0;
		min-height: 56px;
	}

	.sim-map-wrapper.sim-filters-active {
		position: unset;
	}

	.sim-map-wrapper.sim-filters-active #sim-map-view-btn {
		display: flex;
	}

	.sim-filters-close-heading {
		margin: 0;
		color: #fff;
		display: block !important;
		font-family: "Poppins", sans-serif;
		font-weight: 600;
		font-size: 30px;
		line-height: 38px;
		letter-spacing: 0;
	}

	.sim-filters-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		cursor: pointer;
		background-color: #F27D00 !important;
		border: none;
		max-width: calc(100% - 32px);
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		margin-top: 16px;
		margin-bottom: 16px;
		text-align: center;
		color: #fff;
		padding: 16px;
		font-weight: 600;
		font-size: 16px;
		line-height: 24px;
		letter-spacing: 0;
		min-height: 56px;
	}

	.sim-filters-open:hover {
		opacity: 0.8;
	}

	/*.sim-filters-open svg {
		display: none !important;
	}*/

	#sim-filters-panel {
		display: none;
	}

	#sim-filters-panel.sim-filters-open {
		display: block;
	}

	.sim-filters-close {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-left: auto;
		cursor: pointer;
		background: transparent !important;
		border: none;
		padding: 4px;
		width: 100%;
		margin-bottom: 20px;
	}

	.sim-filters-close:hover {
		opacity: 0.7;
	}

	.sim-filters.sim-filters-open {
		top: 20px;
		margin: 0;
		opacity: 1 !important;
		position: fixed;
		z-index: 99;
		left: 0;
		min-height: 100vh;
		padding-bottom: 100px;
	}

	.sim-filters-apply-bar {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		margin: 0;
		padding: 16px;
		background: #fff;
		z-index: 100;
	}

	.sim-filters-apply-btn {
		display: block;
		width: 100%;
		background: #fff;
		color: #000;
		border: 1px solid #F27D00;
		padding: 14px 16px;
		font-family: "Poppins", sans-serif;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0;
		cursor: pointer;
		border-radius: 4px;
		min-height: 52px;
	}

	.sim-filters-apply-btn:hover {
		opacity: 0.85;
	}

	.sim-active-tags {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

}

@media (max-width: 768px) {
	.section-cards-destinos .e-con.e-flex>.e-con-inner {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}