/* Layout: map (left) + nearby places list (right) */
.its-nearby-places-layout {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.its-nearby-places-layout__map-col {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	border-right: 1px solid #e5e7eb;
	background: #f3f4f6;
}

.its-nearby-places-layout__map,
.its-nearby-places-layout__map.block-map-wrap {
	flex: 1 1 auto;
	min-height: 280px;
	height: 280px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.its-nearby-places-layout__map-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

.its-nearby-places-layout__map-location {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2937;
}

.its-nearby-places-layout__pin {
	color: #1f2937;
	flex-shrink: 0;
}

.its-nearby-places-layout__maps-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}

.its-nearby-places-layout__maps-link:hover,
.its-nearby-places-layout__maps-link:focus {
	text-decoration: underline;
	color: #1d4ed8;
}

.its-nearby-places-layout__list-col {
	padding: 0.5rem 1rem 0.75rem;
	background: #fff;
	min-height: 320px;
	display: flex;
	flex-direction: column;
}

/* Places list panel */
.its-nearby-places {
	margin: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.its-nearby-places--error,
.its-nearby-places--info {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin: 0.75rem 0;
}

.its-nearby-places--error {
	background: #fdecea;
	color: #8a1f11;
	border: 1px solid #f5c6cb;
}

.its-nearby-places--info {
	background: #f4f6f8;
	color: #333;
	border: 1px solid #dce1e6;
}

.its-nearby-places__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
}

.its-nearby-places__item {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.85rem 0.25rem;
	border-bottom: 1px solid #eef0f3;
	background: transparent;
}

.its-nearby-places__item:last-child {
	border-bottom: 0;
}

.its-nearby-places__icon {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: #3b82f6;
	flex-shrink: 0;
}

.its-nearby-places__icon--pharmacy {
	background: #eef2ff;
	color: #3b82f6;
}

.its-nearby-places__icon--grocery {
	background: #ecfdf5;
	color: #059669;
}

.its-nearby-places__icon--medical {
	background: #eff6ff;
	color: #2563eb;
}

.its-nearby-places__icon--restaurant {
	background: #fff7ed;
	color: #ea580c;
}

.its-nearby-places__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.its-nearby-places__name {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
	color: #111827;
	text-decoration: none;
}

.its-nearby-places__name:hover,
.its-nearby-places__name:focus {
	color: #2563eb;
	text-decoration: underline;
}

.its-nearby-places__type {
	font-size: 0.8125rem;
	line-height: 1.3;
	color: #6b7280;
	padding: 0;
	background: none;
	border-radius: 0;
}

.its-nearby-places__distance {
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	white-space: nowrap;
	align-self: start;
	padding-top: 0.15rem;
}

.its-nearby-places__see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: auto;
	padding: 0.65rem 0.25rem 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #2563eb;
	text-decoration: none;
}

.its-nearby-places__see-all:hover,
.its-nearby-places__see-all:focus {
	color: #1d4ed8;
	text-decoration: underline;
}

@media (max-width: 991px) {
	.its-nearby-places-layout {
		grid-template-columns: 1fr;
	}

	.its-nearby-places-layout__map-col {
		border-right: 0;
		border-bottom: 1px solid #e5e7eb;
		min-height: 260px;
	}

	.its-nearby-places-layout__map,
	.its-nearby-places-layout__map.block-map-wrap {
		min-height: 220px;
		height: 220px !important;
	}

	.its-nearby-places-layout__list-col {
		min-height: 0;
	}
}
