/* WRAPPER + LAYOUT */
.ih-explore-wrapper {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	min-height: 500px;
	position: relative;
	font-family: "Georgia", serif;
	/* overflow-x: visible; */
	border: none;
	box-shadow: none;
	background: white;
}

.ih-explore-map-container {
	flex: 1;
	position: relative;
	overflow: hidden;
	margin:  40px 0;
	border: none;
	box-shadow: none;
	background: white;
	/* padding-left: 40px; */
	width: calc(100% - 40px);
	display: block;
	margin-left: 40px;
	z-index: 1;
}

#ih-explore-map {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 550px;
	/* margin-left: 40px; */
	box-shadow: none;
	border: none;
	background: white;
	z-index: 1;
}

#ih-explore-map .mapboxgl-canvas {
	outline: none;
}

/* SIDEBAR */
.ih-explore-sidebar {
	width: 280px;
	background: #ffffff;
	box-shadow: box-shadow: 5px 8.66px 14px rgba(0, 0, 0, 0.42);
	padding: 32px 32px 28px;
	z-index: 2;
	position: absolute;
	margin: 20px 0;
	box-shadow: 5px 8.66px 14px rgba(0, 0, 0, 0.42);
	left: 0;
	background: white;
	opacity: 1;
	background-image:url('../images/panel-bg.png');
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 50% auto;
}

/* GLOBAL TYPOGRAPHY FOR WRAPPER + SIDEBAR */
.ih-explore-wrapper,
.ih-explore-sidebar,
.ih-explore-sidebar * {
	font-family: "Baskerville", "Libre Baskerville", "Times New Roman", serif;
	color: #00373f;
}

/* SIDEBAR TITLE + DIVIDER */
.ih-explore-title {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 400;
	color: #00373f;
	margin: 0 0 10px;
	font-weight: bold;
	font-size: 16px;
}

.ih-explore-divider {
	height: 2px;
	width: 100%;
	background: #d3a351;
	margin: 0 0 24px;
}

/* CATEGORY LIST + FILTER BUTTONS */
.ih-explore-category-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.ih-explore-category-list li {
	margin-bottom: 6px;
}

.ih-explore-category-list li .ih-filter-button {
	border: none;
	background: none;
	color: #00373f;
	font-weight: bold;
	font-size: 12px;
	display: flex;
	padding-left: 0;
}

.ih-explore-category-list li .ih-filter-button img
{
	width: 16px;
	height: auto;
	margin-right: 8px;
	max-height: 16px;
}

.ih-explore-category-list li .ih-filter-button:hover {
	background: none;
	padding-left: 5px;
}

.ih-explore-category-list li .ih-filter-button:focus {
	background: none;
}

.ih-filter-button {
	background: none;
	border: none;
	padding: 6px 0;
	display: block;
	width: 100%;
	text-align: left;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #00373f;
	cursor: pointer;
	position: relative;
	transition:
		color 0.2s ease,
		padding-left 0.2s ease;
}

.ih-filter-button::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	/* background-color: #d3a351; */
	transition: width 0.2s ease;
}

.ih-filter-button:hover {
	color: #d3a351;
	padding-left: 4px;
}

.ih-filter-button:hover::after {
	width: 28px;
}

.ih-filter-button.is-active {
	color: #d3a351;
	font-weight: 600;
	/* padding-left: 4px; */
}

.ih-filter-button.is-active::after {
	width: 36px;
}

/* DISTANCE FILTERS */
.ih-explore-distances {
	/* border-top: 1px solid #b5d5da; */
	/* padding-top: 18px; */
}

.ih-explore-distances h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 0.12em;
	/* text-transform: uppercase; */
	color: #00373f;
	letter-spacing: 1px;
}

.ih-distance-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	grid-row-gap: 10px;
}

.ih-distance-options label {
	display: flex;
	align-items: center;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: none;
	color: #00373f;
	cursor: pointer;
	position: relative;
	font-weight: 500;
}

/* Hide native radios, custom bullet */
.ih-distance-options input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ih-distance-options label::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid #00373f;
	margin-right: 8px;
	box-sizing: border-box;
	background-color: #ffffff;
}

@supports selector(label:has(input[type="radio"]:checked)) {
	.ih-distance-options label:has(input[type="radio"]:checked)::before {
		background-color: #d3a351; 
		border-color: #d3a351;
	}

	.ih-distance-options label:has(input[type="radio"]:checked) {
		color: #00373f;
		font-weight: 600;
	}
}

/* Fallback: bump weight for checked radios */
.ih-distance-options input[type="radio"]:checked + label,
.ih-distance-options input[type="radio"]:checked ~ label {
	font-weight: 600;
}

/* SLIDE-IN DETAIL PANEL */
.ih-map-panel {
	position: absolute;
	left: 240px;
	z-index: 1; /* Ensure it is above other elements */
	width: 320px;
	max-width: 80%;
	height: 100%;
	background: #ffffff;
	box-shadow: -6px 0 20px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%); /* Start hidden off-screen */
	transition: all 0.3s ease; /* Smooth sliding effect */
	opacity: 0;
	height: auto;
	padding-bottom: 40px;
	top: 20px;
}

.ih-map-panel.is-open {
	transform: translateX(0); /* Slide into view */
	opacity: 1;
}

.ih-map-panel-inner {
	padding: 24px 20px;
	font-family: "Georgia", serif;
	height: 100%;
	overflow-y: auto;
	padding-left: 40px;
	z-index: -1;
	position: relative;
}

.pin-image {
	margin: 10px 0;
	padding: 15px;
	border: 1px solid #cfa051;
	border-radius: 100%;
	align-self: flex-start;
	justify-self: flex-start;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pin-image img {
	width: 20px;
	height: 20px;
}

.pin-address {
	margin-bottom: 30px;
	font-size: 14px;
}

.ih-map-panel-inner h2 {
	margin-bottom: 10px;
	font-size: 26px;
	font-weight: bold;
	margin-top: 20px;
}

.ih-panel-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	position: absolute;
	top: 8px;
	right: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.ih-explore-wrapper {
		flex-direction: column;
	}

	.ih-explore-sidebar {
		width: 100%;
		max-width: 360px;
		margin: 0 auto 16px;
		position: static;
	}
	
	.ih-explore-map-container {
		margin-left: auto;
		margin-right: auto;
	}
	
	.ih-map-panel {
		left: 0;
	}
}

.ih-explore-wrapper button.ih-panel-close {
	background: none;
	border: none;
	padding: 0;
	font-size: 25px;
	border: 1px solid #00373f;
	border-radius: 100%;
	width: 30px;
	height: 30px;
	display: flex;
	line-height: 25px;
	padding-left: 5.5px;
	color: #00373f;
}

.ih-explore-distances {
	 border-top: 1px solid #b5d5da; 
	 padding-top: 18px; 
}

.ih-explore-distances {
	border-top: 1px solid #b5d5da;
	padding-top: 18px;
}

.ih-explore-distances h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 0.12em;
	color: #00373f;
	letter-spacing: 1px;
}

.ih-distance-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}

.ih-distance-toggle {
	display: flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: #00373f;
	font-weight: 500;
	text-transform: none;
}

.ih-distance-toggle:focus {
	outline: none;
}

.ih-toggle-track {
	position: relative;
	width: 32px;
	height: 18px;
	border-radius: 999px;
	background: #b5d5da; /* light blue */
	margin-right: 8px;
	flex-shrink: 0;
	display: flex;
}

.ih-toggle-knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform 0.2s ease;
}

.ih-distance-toggle.is-active .ih-toggle-track {
	background: #7fb3c3; /* slightly darker when active, tweak as needed */
}

.ih-distance-toggle.is-active .ih-toggle-knob {
	transform: translateX(14px);
}

.ih-toggle-text {
	white-space: nowrap;
	font-size: 14px;
	letter-spacing: .5px;
}

.ih-explore-wrapper button.ih-distance-toggle {
	background: none;
	border: none;
	padding: 0;
	display: flex;
}

.ih-explore-wrapper .pin-learn-more {
	margin-top: 40px;
}

.ih-explore-wrapper .pin-learn-more a{
	    font-family: "baskerville-urw", Serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    font-style: normal;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 2px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
	    background-color: var(--e-global-color-accent);
	color: color: var(--e-global-color-primary);
	padding: 12px 20px;
	text-transform: uppercase;
	border-radius: 3px;
}

.ih-explore-wrapper .pin-learn-more a:hover {
opacity: .8;}