.athcons-map-wrapper {
	display: flex;
	align-items: stretch;
}

.athcons-map-container {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
}

.athcons-map-sidebar {
	width: fit-content;
	flex-shrink: 0;
	overflow: hidden;
	background: #f7f5f2;
	border-left: 1px solid #e0dbd4;
	display: flex;
	flex-direction: column;
	transition: width 0.25s ease;
}

.athcons-map-sidebar.is-collapsed {
	width: 0;
	border-left-width: 0;
}

.athcons-map-sidebar__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: auto;
	padding: 10px 12px;
	background: none;
	border: none;
	border-bottom: 1px solid #e0dbd4;
	cursor: pointer;
	color: #1E300D;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	flex-shrink: 0;
	box-sizing: border-box;
}

.athcons-map-sidebar__toggle:hover {
	background: #ede9e3;
}

/* Expand button rendered as a Leaflet control on the map */
.athcons-sidebar-expand-btn {
	display: block;
	padding: 6px 10px;
	background: #f7f5f2;
	border: 1px solid #e0dbd4;
	border-radius: 4px;
	cursor: pointer;
	color: #1E300D;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.athcons-sidebar-expand-btn:hover {
	background: #ede9e3;
}

.athcons-map-sidebar__list {
	overflow-y: auto;
	flex: 1;
}

.athcons-map-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.athcons-map-sidebar .athcons-sidebar-item {
	display: block;
	padding: 8px 16px;
	color: #1E300D;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.athcons-map-sidebar .athcons-sidebar-item:hover,
.athcons-map-sidebar .athcons-sidebar-item.is-active {
	background: #507F24;
	color: #fff;
}

/* Permission-required preserves: no page link, marked with a lock */
.athcons-map-sidebar .athcons-sidebar-item.is-permission-required::after {
	content: " \1F512";
	font-size: 11px;
	opacity: 0.6;
}

.athcons-popup-note {
	display: inline-block;
	padding-inline: 1em;
	font-size: 13px;
	font-style: italic;
	color: #5c5750;
}

.athcons-sidebar-number {
	display: inline-block;
	min-width: 1.8em;
	font-variant-numeric: tabular-nums;
}

/* Prevent Leaflet's default tile-layer cursor on image overlay */
.athcons-map-container .leaflet-container {
	cursor: grab;
}

.athcons-map-container .leaflet-container:active {
	cursor: grabbing;
}

/* Marker styles */
.athcons-map-pin {
	background: none;
	border: none;
	cursor: pointer;
}

.athcons-map-pin svg {
	transition: transform 0.15s ease;
	transform-origin: bottom center;
	display: block;
}

.athcons-map-pin:hover svg,
.athcons-map-pin.is-active svg,
.athcons-map-pin.is-highlighted svg {
	transform: scale(1.5);
}

.athcons-pin-shape {
	fill:           #507F24;
	stroke:         #ffffff;
	stroke-width:   1;
	stroke-linejoin: round;
	transition: fill 0.15s ease;
}

.athcons-map-pin:hover .athcons-pin-shape {
	fill: #3d6119;
}

.athcons-pin-number {
	fill: #fff;
	font-size: 6px;
	font-weight: 700;
	font-family: sans-serif;
	pointer-events: none;
}

/* Easement circle markers */
.athcons-easement-pin {
	background: none;
	border: none;
	cursor: pointer;
}

.athcons-easement-pin svg {
	transition: transform 0.15s ease;
	transform-origin: center center;
	display: block;
}

.athcons-easement-pin:hover svg {
	transform: scale(1.5);
}

.athcons-pin-circle {
	fill:        #7B4D1E;
	stroke:      #ffffff;
	stroke-width: 1.5;
	transition: fill 0.15s ease;
}

.athcons-easement-pin:hover .athcons-pin-circle {
	fill: #5c3915;
}

/* Preserve name labels (permanent tooltips) */
.athcons-map-label {
	background: transparent;
	border: none;
	box-shadow: none;
	color: #1E300D;
	font-size: 14px;
	font-weight: 600;
	padding: 0;
	white-space: nowrap;
	opacity: 0.5;
	transition: opacity 0.15s ease;
	text-shadow:
		0 1px 3px #fff,
		0 -1px 3px #fff,
		1px 0 3px #fff,
		-1px 0 3px #fff;
}

.athcons-map-label::before {
	display: none;
}

.athcons-map-label:hover {
	opacity: 1;
}

/* Popup styles */
.athcons-map-container .leaflet-popup-content-wrapper {
	border-radius: 4px;
	/* padding: 16px 20px 20px; */
	box-shadow: 0px 3px 6px 0px rgba(20, 17, 31, 0.12);
}

.athcons-map-container .leaflet-popup-content {
	margin: 0 auto;
	min-width: 180px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	padding-bottom: 12px;
}

.athcons-popup-image {
	display: block;
	width: 100%;
	min-width: 250px;
	height: 200px;
	margin-bottom: 12px;
	object-fit: cover;

}

.athcons-map-container a.leaflet-popup-close-button {
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 22px;
	height: 22px;
	line-height: 22px;
	font-size: 16px;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 50%;
	text-align: center;
}

.athcons-map-container .leaflet-popup-close-button:hover {
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
}

.athcons-map-container .leaflet-popup-content strong {
	display: block;
	font-size: 1rem;
	padding-inline: 1em;
}

.athcons-map-container .leaflet-popup-content a {
	display: inline-block;
	padding: 6px 14px;
	background: #507F24;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
}

.athcons-map-container .leaflet-popup-content a:hover {
	background: #3d6119;
}

.athcons-map-container .leaflet-popup-tip-container {
	margin-top: -1px;
}
