/**
 * Tram & Location Map (OpenStreetMap + Leaflet)
 * ZICER Plavi ured - Vodnikova 12/2 (dvorište) & ZET tramvajske linije
 * Clean, flat styling aligned with theme design language
 */

.tram-location-map-wrapper {
	max-width: 900px;
	width: 100%;
	margin: 20px 0 15px 0 !important;
	border-radius: 3px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e1e9e9;
	font-family: inherit;
	position: relative;
	box-sizing: border-box;
}

.tram-location-map-wrapper * {
	box-sizing: border-box;
}

/* Header - Solid flat #0054a6, strictly no gradient */
.tram-location-map-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background-color: #0054a6 !important;
	background: #0054a6 !important;
	background-image: none !important;
	color: #ffffff;
	flex-wrap: wrap;
	gap: 10px;
	border-radius: 2px 2px 0 0;
}

.tram-location-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #ffffff;
}

.tram-location-title i {
	font-size: 20px;
	color: #ffffff;
	flex-shrink: 0;
}

.tram-location-title strong {
	color: #ffffff;
	font-weight: 700;
}

.tram-location-stats {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tram-location-badge {
	background-color: #003d7a !important;
	background: #003d7a !important;
	background-image: none !important;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.tram-location-badge i {
	font-size: 14px;
	color: #93c5fd;
}

.tram-header-pills {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: 2px;
}

/* Quick Transit Info Bar */
.tram-quick-info-bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 20px;
	padding: 11px 18px;
	background: #f8fafc;
	border-bottom: 1px solid #e1e9e9;
	font-size: 12px;
	color: #334155;
}

.tram-info-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tram-info-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #1e293b;
}

.tram-info-label i {
	color: #0054a6;
	font-size: 15px;
}

.tram-info-label strong {
	color: #0f172a;
}

.tram-pills-list {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Round Circular Tram Line Pills */
.tram-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	border-radius: 50% !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	border: 1.5px solid #ffffff !important;
	cursor: default;
	user-select: none;
	flex-shrink: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tram-pill:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

/* Distinct individual colors for each tram line */
.tram-line-2 {
	background-color: #dc2626 !important; /* Crvena - Linija 2 */
}

.tram-line-4 {
	background-color: #16a34a !important; /* Zelena - Linija 4 */
}

.tram-line-9 {
	background-color: #2563eb !important; /* Plava - Linija 9 */
}

.tram-line-12 {
	background-color: #ea580c !important; /* Narančasta - Linija 12 */
}

.tram-line-13 {
	background-color: #9333ea !important; /* Ljubičasta - Linija 13 */
}

.tram-line-17 {
	background-color: #0891b2 !important; /* Tirkizna/Teal - Linija 17 */
}

/* Mini circular pills for header */
.tram-pill-mini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50% !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	vertical-align: middle;
	flex-shrink: 0;
}

/* Circular pills inside map tooltips */
.map-tram-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50% !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	border: 1px solid #ffffff !important;
	margin: 0 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	vertical-align: middle;
	flex-shrink: 0;
}

/* Map Container */
.tram-location-map-container {
	height: 460px;
	width: 100%;
	position: relative;
	z-index: 1;
	background: #f1f5f9;
	border-radius: 0 0 3px 3px;
}

@media (max-width: 768px) {
	.tram-location-map-container {
		height: 380px;
	}
	.tram-location-map-header {
		padding: 10px 14px;
	}
	.tram-location-title {
		font-size: 13px;
	}
	.tram-location-badge {
		font-size: 11px;
		padding: 3px 8px;
	}
	.tram-quick-info-bar {
		padding: 9px 14px;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.tram-location-map-container {
		height: 320px;
	}
	.tram-location-stats {
		width: 100%;
		justify-content: flex-start;
	}
	.tram-quick-info-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

/* Endpoint Permanent Badges - Fixed to exact coordinates */
.leaflet-tooltip.endpoint-tooltip-office {
	padding: 5px 10px !important;
	border-radius: 3px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background-color: #0054a6 !important;
	background: #0054a6 !important;
	white-space: nowrap !important;
	border: 1px solid rgba(255, 255, 255, 0.8) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
	line-height: 1.2 !important;
	pointer-events: none !important;
	cursor: default !important;
	letter-spacing: 0.2px !important;
}

.leaflet-tooltip.endpoint-tooltip-office i {
	font-size: 13px;
	margin-right: 4px;
	vertical-align: -1px;
}

.leaflet-tooltip-top.endpoint-tooltip-office:before {
	border-top-color: #0054a6 !important;
}

.leaflet-tooltip.endpoint-tooltip-tram {
	padding: 5px 9px !important;
	border-radius: 3px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background-color: #202024 !important;
	background: #202024 !important;
	white-space: nowrap !important;
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
	line-height: 1.3 !important;
	pointer-events: none !important;
	cursor: default !important;
}

.leaflet-tooltip.endpoint-tooltip-tram i {
	font-size: 13px;
	margin-right: 3px;
	vertical-align: -1px;
	color: #93c5fd;
}

.leaflet-tooltip-bottom.endpoint-tooltip-tram:before {
	border-bottom-color: #202024 !important;
}

.leaflet-tooltip-top.endpoint-tooltip-tram:before {
	border-top-color: #202024 !important;
}

.leaflet-tooltip.endpoint-tooltip-entrance {
	padding: 3px 6px !important;
	border-radius: 3px !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background-color: #16a34a !important;
	background: #16a34a !important;
	white-space: nowrap !important;
	border: 1px solid rgba(255, 255, 255, 0.6) !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
	line-height: 1.2 !important;
	pointer-events: none !important;
	cursor: default !important;
}

.leaflet-tooltip.endpoint-tooltip-entrance i {
	font-size: 11px;
	margin-right: 2px;
	vertical-align: -1px;
}

.leaflet-tooltip-top.endpoint-tooltip-entrance:before {
	border-top-color: #16a34a !important;
}

/* Side Transit Column (pored karte) */
.tram-side-column {
	margin-bottom: 15px !important;
}

@media (min-width: 769px) {
	.tram-side-column {
		margin-top: 67px; /* Poravnanje s vrhom karte (ispod h2 naslova Kako do nas?) */
	}
}

.tram-side-content {
	display: block;
}

.tram-side-item {
	margin-bottom: 18px;
}

.tram-side-item:last-child {
	margin-bottom: 0;
}

.tram-side-label,
.tram-side-column > strong,
.tram-side-item > strong {
	display: block !important;
	float: none !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #555555 !important;
	line-height: 22px !important;
	margin-top: 0 !important;
	margin-bottom: 4px !important;
	clear: both !important;
}

.tram-side-column .contact_page_info {
	position: relative !important;
	padding-left: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 16px !important;
	font-weight: 300 !important;
	line-height: 22px !important;
	color: #555555 !important;
}

.tram-side-column .contact_page_info strong {
	display: inline !important;
	float: none !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	color: #555555 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tram-side-column p:empty {
	display: none !important;
}

.tram-side-stations {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tram-side-stations li {
	position: relative !important;
	padding-left: 16px !important;
	margin-bottom: 6px !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 16px !important;
	font-weight: 300 !important;
	line-height: 22px !important;
	color: #555555 !important;
}

.tram-side-stations li:last-child {
	margin-bottom: 0 !important;
}

.tram-side-stations li:before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: #555555;
	font-size: 16px;
	line-height: 22px;
}

.tram-side-stations li strong {
	display: inline !important;
	float: none !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	color: #555555 !important;
	margin: 0 !important;
}

/* Contact Page Sections Spacing Optimizations (Smanjenje whitespace-a iznad naslova) */
body.page-id-221 .dnd_section_dd.contact_section_alternative {
	padding-top: 40px !important;
	padding-bottom: 0 !important;
}

body.page-id-221 .dnd_section_dd.contact_section_alternative .wpcf7-submit {
	margin-bottom: 24px !important;
}

body.page-id-221 .dnd_section_dd.contact_section_alternative .contact_page_info:last-child {
	margin-bottom: 24px !important;
}

/* Sekcija "Kako do nas?" */
.contact_transit_section {
	padding-top: 25px !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Sekcija "Gdje parkirati?" */
.contact_parking_section {
	padding-top: 25px !important;
	padding-bottom: 45px !important;
}

