/* ==========================================================================
   Service Area Map — Paws & Scoops Interactive Bento Redesign (v2.0)
   ========================================================================== */

.sam-bento-frame {
	position: relative;
	width: 100%;
	padding: 10px;
	border-radius: 30px;
	background: linear-gradient(150deg, #8DB6FF 0%, #C9DBF5 42%, #FFE27A 100%);
	box-shadow: 0 2px 4px rgba(11, 31, 75, 0.05), 0 28px 56px -22px rgba(20, 86, 200, 0.42);
	box-sizing: border-box;
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.paws-sam-container.sam-bento-layout {
	position: relative;
	display: grid;
	grid-template-columns: 330px minmax(0, 1fr);
	gap: 8px;
	width: 100%;
	height: var(--sam-map-height, 540px);
	min-height: 480px;
	background: transparent;
	border-radius: 22px;
	overflow: hidden;
	box-sizing: border-box;
}

/* Fullscreen toggle state */
.paws-sam-container.sam-bento-layout.is-fullscreen {
	position: fixed !important;
	inset: 16px !important;
	width: auto !important;
	height: auto !important;
	z-index: 99999 !important;
	background: linear-gradient(150deg, #8DB6FF 0%, #C9DBF5 42%, #FFE27A 100%) !important;
	padding: 10px !important;
	border-radius: 28px !important;
	box-shadow: 0 30px 90px rgba(7, 19, 54, 0.65) !important;
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR PANEL (39 active ZIP codes + Scrollable City Pills)
   -------------------------------------------------------------------------- */
.sam-sidebar {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 26px 20px 20px 24px;
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
	box-shadow: 0 4px 16px rgba(11, 31, 75, 0.04);
}

.sam-sidebar-head {
	flex: none;
}

.sam-eyebrow {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #5A6C8F;
	margin-bottom: 6px;
}

.sam-stat-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.sam-stat-number {
	font-size: 46px;
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: #1456C8;
	font-variant-numeric: tabular-nums;
}

.sam-stat-label {
	font-size: 14px;
	font-weight: 700;
	color: #0B1F4B;
}

.sam-sidebar-divider {
	flex: none;
	height: 1px;
	background: #E8F0FC;
	margin: 18px 4px 16px 0;
}

/* Scrollable Pills Area */
.sam-pills-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 8px;
}

.sam-pills-scroll::-webkit-scrollbar {
	width: 5px;
}

.sam-pills-scroll::-webkit-scrollbar-track {
	background: #F0F5FD;
	border-radius: 99px;
}

.sam-pills-scroll::-webkit-scrollbar-thumb {
	background: #C4D7F5;
	border-radius: 99px;
}

.sam-pills-scroll::-webkit-scrollbar-thumb:hover {
	background: #9BB8EB;
}

.sam-pills-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-content: flex-start;
	padding-bottom: 6px;
}

/* Individual City Pill Button */
.sam-area-pill {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #EFF5FF;
	border: 1px solid #DCE8FA;
	color: #1B3568;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
	user-select: none;
	text-align: left;
}

.sam-area-pill .sam-pill-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7FA3E0;
	flex: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sam-area-pill:hover {
	background: #E2EDFF;
	border-color: #B9D1F7;
	transform: translateY(-1px);
	color: #0B1F4B;
}

/* Active / Selected Pill (Yellow with Gold Shadow — exact mockup match) */
.sam-area-pill.is-active {
	background: #FFD23F !important;
	border-color: #F2C12E !important;
	color: #0B1F4B !important;
	box-shadow: 0 8px 18px -6px rgba(217, 169, 0, 0.78) !important;
	transform: translateY(-1px);
}

.sam-area-pill.is-active .sam-pill-dot {
	background: #0B1F4B !important;
	transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   RIGHT MAP STAGE & CONTROLS
   -------------------------------------------------------------------------- */
.sam-map-stage {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #F4F6F9;
}

.paws-sam-container .sam-map {
	width: 100%;
	height: 100%;
}

.paws-sam-container .leaflet-container {
	font-family: 'Outfit', system-ui, -apple-system, sans-serif;
	background: #F4F6F9;
}

/* Pill-shaped Zoom Controls (+ / -) */
.paws-sam-container .leaflet-top.leaflet-left {
	top: 16px;
	left: 16px;
}

.paws-sam-container .leaflet-control-zoom {
	border: 1px solid #E2EAF6 !important;
	border-radius: 999px !important;
	overflow: hidden !important;
	box-shadow: 0 8px 20px -6px rgba(11, 31, 75, 0.16) !important;
	margin: 0 !important;
	background: #FFFFFF !important;
}

.paws-sam-container .leaflet-control-zoom a {
	width: 34px !important;
	height: 36px !important;
	line-height: 36px !important;
	background: #FFFFFF !important;
	color: #0B1F4B !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	border-bottom: 1px solid #EDF2FA !important;
	transition: background 0.15s ease, color 0.15s ease !important;
}

.paws-sam-container .leaflet-control-zoom a:last-child {
	border-bottom: 0 !important;
}

.paws-sam-container .leaflet-control-zoom a:hover {
	background: #F4F8FF !important;
	color: #1456C8 !important;
}

/* Fullscreen Button below Zoom Control */
.sam-fullscreen-btn {
	position: absolute;
	top: 102px;
	left: 16px;
	z-index: 800;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid #E2EAF6;
	color: #0B1F4B;
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 8px 20px -6px rgba(11, 31, 75, 0.16);
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.sam-fullscreen-btn:hover {
	background: #F4F8FF;
	color: #1456C8;
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   PAW MARKERS (DEFAULT YELLOW & ACTIVE BLUE)
   -------------------------------------------------------------------------- */
.sam-marker.sam-paw-marker {
	background: transparent !important;
	border: 0 !important;
	pointer-events: auto !important;
}

.sam-paw-pin {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #FFD23F;
	border: 3px solid #FFFFFF;
	box-shadow: 0 4px 12px rgba(11, 31, 75, 0.24);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.sam-paw-pin .sam-paw-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-18deg);
}

.sam-paw-pin .sam-paw-ico svg {
	fill: #0B1F4B;
	transition: fill 0.2s ease;
}

.sam-paw-pin:hover {
	transform: scale(1.14);
	box-shadow: 0 6px 16px rgba(11, 31, 75, 0.34);
}

/* Active Selected Marker (Blue #1456C8 with White Paw — exact mockup match) */
.sam-paw-pin.is-active {
	width: 40px;
	height: 40px;
	margin-left: -3px;
	margin-top: -3px;
	background: #1456C8 !important;
	border: 3.5px solid #FFFFFF !important;
	box-shadow: 0 8px 22px rgba(20, 86, 200, 0.55) !important;
	transform: scale(1.12);
}

.sam-paw-pin.is-active .sam-paw-ico svg {
	fill: #FFFFFF !important;
	width: 18px;
	height: 18px;
}

/* --------------------------------------------------------------------------
   FLOATING POPUP CARD (Des Plaines + ZIP Code)
   -------------------------------------------------------------------------- */
.sam-clean-popup .leaflet-popup-content-wrapper {
	background: #FFFFFF !important;
	color: #0B1F4B !important;
	border-radius: 14px !important;
	padding: 0 !important;
	box-shadow: 0 12px 28px -6px rgba(11, 31, 75, 0.26) !important;
	border: 1px solid #E6EEF9 !important;
}

.sam-clean-popup .leaflet-popup-content {
	margin: 10px 18px !important;
	line-height: 1.25 !important;
	text-align: center !important;
}

.sam-clean-popup .leaflet-popup-tip-container {
	width: 24px !important;
	height: 12px !important;
}

.sam-clean-popup .leaflet-popup-tip {
	background: #FFFFFF !important;
	box-shadow: 0 4px 10px rgba(11, 31, 75, 0.14) !important;
}

.sam-floating-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
}

.sam-fc-city {
	font-family: 'Outfit', sans-serif;
	font-size: 14.5px;
	font-weight: 800;
	color: #0B1F4B;
	letter-spacing: -0.01em;
}

.sam-fc-zip {
	font-family: 'Outfit', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: #1456C8;
	background: #EFF5FF;
	padding: 2px 8px;
	border-radius: 999px;
}

/* Admin notice */
.paws-sam-container .sam-admin-notice {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #fff4e5;
	color: #6b4200;
	border: 1px solid #f0c674;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12px;
	z-index: 1000;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.paws-sam-container.sam-bento-layout {
		grid-template-columns: 1fr;
		grid-template-rows: 260px minmax(340px, 1fr);
		height: auto;
		min-height: 620px;
	}
	.sam-sidebar {
		padding: 20px 18px 16px;
	}
	.sam-stat-number {
		font-size: 36px;
	}
	.sam-sidebar-divider {
		margin: 12px 0;
	}
}


/* High-legibility map tiles: keeps city names & streets 100% sharp and readable while softening neon highway colors */
.paws-sam-container .leaflet-tile-pane {
	filter: saturate(55%) contrast(102%) brightness(102%) !important;
	-webkit-filter: saturate(55%) contrast(102%) brightness(102%) !important;
	opacity: 1 !important;
}

/* Override any section custom CSS on zoom controls so they stay white like the mockup */
.paws-sam-container .leaflet-control-zoom,
.sam-bento-frame .leaflet-control-zoom {
	border: 1px solid #E2EAF6 !important;
	border-radius: 999px !important;
	background: #FFFFFF !important;
	box-shadow: 0 8px 20px -6px rgba(11, 31, 75, 0.16) !important;
}
.paws-sam-container .leaflet-control-zoom a,
.sam-bento-frame .leaflet-control-zoom a {
	background: #FFFFFF !important;
	color: #0B1F4B !important;
	border-bottom: 1px solid #EDF2FA !important;
}
.paws-sam-container .leaflet-control-zoom a:last-child,
.sam-bento-frame .leaflet-control-zoom a:last-child {
	border-bottom: 0 !important;
}
.paws-sam-container .leaflet-control-zoom a:hover,
.sam-bento-frame .leaflet-control-zoom a:hover {
	background: #F4F8FF !important;
	color: #1456C8 !important;
}
