/* =====================================================
   CTA dugme za otvaranje mape
   ===================================================== */
#ce-open-map-btn {
	display: block;
	width: 50%;
	min-height: 40px;
	height: auto;
	margin-top: 10px;
	background: #8f499c;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	padding: 10px 15px;
	line-height: 1.3;
}

#ce-selected-location-btn {
	display: none;
	width: 100%;
	min-height: 40px;
	height: auto;
	margin-top: 10px;
	background: #276749;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	padding: 10px 15px;
	line-height: 1.3;
	word-break: break-word;
	white-space: normal;
}

@media (max-width: 600px) {
	#ce-open-map-btn {
		width: 100%;
	}
}

/* =====================================================
   Info ikona i popup
   ===================================================== */
.ce-info-wrapper {
	position: relative;
	display: inline-block;
}

.ce-info-icon {
	display: block;
	cursor: pointer;
}

.ce-info-popup {
	display: none;
	position: absolute;
	right: 0;
	top: 30px;
	width: 280px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.13);
	padding: 14px 16px;
	z-index: 9999;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

.ce-info-popup ol {
	margin: 0 0 10px 0;
	padding-left: 20px;
}

.ce-info-popup ol li {
	margin-bottom: 7px;
}

.ce-info-popup ol li:last-child {
	margin-bottom: 0;
}

.ce-info-note {
	margin: 10px 0 0;
	font-size: 12px;
	color: #666;
	border-top: 1px solid #eee;
	padding-top: 8px;
}

.ce-info-wrapper:hover .ce-info-popup,
.ce-info-wrapper.ce-info-open .ce-info-popup {
	display: block;
}

/* =====================================================
   Mapa i search bar wrapper
   ===================================================== */
#ce-parcelshop-map-wrapper {
	margin: 10px 0;
	display: none;
}

#ce-parcelshop-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	margin: 8px 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

#ce-parcelshop-map {
	width: 100%;
	height: 420px;
	border-radius: 4px;
	margin-bottom: 8px;
}

#ce-parcelshop-list {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
}

.ce-parcelshop-item {
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ce-parcelshop-item:last-child {
	border-bottom: none;
}

.ce-parcelshop-item:hover {
	background: #f5eef7;
}

.ce-parcelshop-item.selected {
	background: #8f499c;
	color: #fff;
}

.ce-parcelshop-item.previewing {
	background: #f5eef7;
	border-left: 3px solid #8f499c;
}

.ce-parcelshop-item-text {
	flex: 1;
	min-width: 0;
}

.ce-parcelshop-item .ce-distance {
	color: #888;
	font-size: 12px;
	white-space: nowrap;
	flex-shrink: 0;
}

.ce-parcelshop-item.selected .ce-distance {
	color: #f0e6f3;
}

.ce-type-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 1px 6px;
	border-radius: 3px;
	background: #8f499c;
	color: #fff;
	margin-right: 6px;
	vertical-align: middle;
}

.ce-parcelshop-item.selected .ce-type-badge {
	background: #fff;
	color: #8f499c;
}
