/**
 * TrolleyMap CSS
 * Styling for the interactive map, city labels, hover cards, and detail panel
 */

#minimal-trolley-map {
	position: relative;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	z-index: 1;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tile filter to suppress road/town visibility */
.leaflet-tile-pane {
	filter: grayscale(60%) brightness(1.05) contrast(1.1);
}

/* Reset / zoom-out button */
.trolleymap-reset-control {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.trolleymap-reset-btn {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 6px 12px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
	font-size: inherit;
	font-family: 'Poppins', sans-serif;
}

.trolleymap-reset-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

/* Custom pin marker styles */
.trolleymap-marker {
	cursor: pointer;
	background: none !important;
	border: none !important;
	outline: none !important;
}

.trolleymap-marker-pin svg {
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.trolleymap-marker:hover .trolleymap-marker-pin svg {
	transform: scale(1.18) translateY(-3px);
	filter: drop-shadow(0 6px 14px rgba(220, 4, 39, 0.5));
}

.trolleymap-marker:hover path {
	fill: #ff1c43 !important; /* brighter red on hover */
}

.trolleymap-marker-active .trolleymap-marker-pin svg {
	transform: scale(1.35) translateY(-4px);
	filter: drop-shadow(0 8px 16px rgba(220, 4, 39, 0.55));
}

.trolleymap-marker-active .trolleymap-marker-pin path {
	fill: #ff1c43 !important;
}

.trolleymap-marker-highlight svg {
	animation: trolleymap-pin-pulse 1s ease-in-out infinite alternate;
}

@keyframes trolleymap-pin-pulse {
	0% {
		transform: scale(1);
		filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
	}
	100% {
		transform: scale(1.22) translateY(-4px);
		filter: drop-shadow(0 8px 16px rgba(220, 4, 39, 0.6));
	}
}

/* Country label on hover */
.trolleymap-country-label {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #999;
	border-radius: 3px;
	padding: 3px 8px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	font-size: inherit;
	font-family: 'Poppins', sans-serif;
}

#minimal-trolley-map.trolleymap-panel-open {
	width: 70%;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   OVERLAY PANEL (slides from right)
   ============================================ */
.trolleymap-city-detail-panel {
	position: fixed;
	top: 0;
	right: -35%; /* Start off-screen */
	width: 35%;
	height: 100vh;
	background: #ffffff;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
	font-size: 16px;
	font-family: 'Poppins', sans-serif;
	box-shadow: -5px 0 25px rgba(0,0,0,0.15);
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trolleymap-city-detail-panel * {
	box-sizing: border-box;
}

.trolleymap-city-detail-panel.trolleymap-detail-visible {
	right: 0; /* Slide in */
}

.trolleymap-city-detail-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
}

.trolleymap-city-detail-content img,
.trolleymap-city-detail-content video,
.trolleymap-city-detail-content iframe {
	max-width: 100%;
	height: auto;
}

/* Scrollable overlay container */
.trolleymap-overlay-scroll {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 0; /* No padding on the scroll container itself */
	overscroll-behavior: contain; /* prevent scroll bleed to page */
}

/* Lock page scroll while the detail panel is open */
body.trolleymap-detail-body-lock {
	overflow: hidden;
}

/* Close button */
.trolleymap-overlay-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s, background 0.2s;
	z-index: 100;
}

.trolleymap-overlay-close:hover {
	transform: scale(1.1);
	background: rgba(0, 0, 0, 0.6);
}

.trolleymap-overlay-close svg {
	width: 18px;
	height: 18px;
}

/* New content wrapper for padding */
.trolleymap-overlay-padded-content {
	padding: 24px;
}

/* ============================================
   TWO-COLUMN GRID LAYOUT
   ============================================ */
.trolleymap-overlay-row {
	display: grid;
	gap: 24px;
}

.trolleymap-overlay-row-main {
	grid-template-columns: 1fr; /* Single column for new design */
	align-items: start;
}

.trolleymap-overlay-row-attachments {
	grid-template-columns: 1fr;
	margin-top: 20px;
}

.trolleymap-overlay-row-content {
	grid-template-columns: 1fr;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.trolleymap-overlay-col {
	min-width: 0;
}

/* City title */
.trolleymap-overlay-city-title {
	margin: 0 0 16px 0;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

/* Section heading */
.trolleymap-overlay-section-heading {
	margin: 0 0 12px 0;
	font-weight: 700;
	color: #DC0527;
	letter-spacing: 0.5px;
}

/* Info table */
.trolleymap-overlay-info-table {
	width: 100%;
	border-collapse: collapse;
}

.trolleymap-overlay-info-table tr {
	border-bottom: 1px solid #f5f5f5;
}

.trolleymap-overlay-info-table tr:last-child {
	border-bottom: none;
}

.trolleymap-overlay-info-table td {
	padding: 8px 0;
	vertical-align: top;
}

.trolleymap-overlay-info-table td:first-child {
	color: #888;
	font-weight: 500;
	padding-right: 16px;
	white-space: nowrap;
	width: auto; /* Allow column to size naturally */
}

.trolleymap-overlay-info-table td:last-child {
	color: #333;
	font-weight: 600;
	word-break: break-word;
	text-align: right; /* Align values to the right */
}

.trolleymap-overlay-info-table a {
	color: #DC0527;
	text-decoration: none;
}

.trolleymap-overlay-info-table a:hover {
	text-decoration: underline;
}

.trolleymap-overlay-link {
	color: #DC0527;
	text-decoration: none;
	font-weight: 600;
	word-break: break-all;
}

.trolleymap-overlay-link:hover {
	text-decoration: underline;
}

/* Featured image */
.trolleymap-overlay-featured-image-wrapper {
	width: 100%;
	height: 300px;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.trolleymap-overlay-featured-img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.trolleymap-overlay-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.trolleymap-overlay-no-image svg {
	width: 48px;
	height: 48px;
}

/* History section */
.trolleymap-overlay-col-history {
	margin-bottom: 16px;
}

.trolleymap-overlay-col-history:last-child {
	margin-bottom: 0;
}

.trolleymap-overlay-section-content {
	color: #555;
	line-height: 1.7;
}

.trolleymap-overlay-section-content p {
	margin: 0 0 10px 0;
}

.trolleymap-overlay-section-content p:last-child {
	margin-bottom: 0;
}

.trolleymap-overlay-section-content a {
	color: #DC0527;
	text-decoration: none;
}

.trolleymap-overlay-section-content a:hover {
	text-decoration: underline;
}

.trolleymap-detail-section {
	padding: 16px 24px;
	box-sizing: border-box;
	max-width: 100%;
}

.trolleymap-detail-section + .trolleymap-detail-section {
	border-top: 1px solid #f0f0f0;
}

.trolleymap-detail-section-heading {
	margin: 0 0 12px 0;
	font-weight: 700;
	color: #DC0527;
	letter-spacing: 0.6px;
}

.trolleymap-detail-section-subheading {
	margin: 0 0 8px 0;
	font-weight: 600;
	color: #333;
}

.trolleymap-detail-content-html a {
	color: #DC0527;
	text-decoration: none;
}

.trolleymap-detail-content-html a:hover {
	text-decoration: underline;
}

.trolleymap-detail-content-html {
	color: #555;
	line-height: 1.7;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.trolleymap-detail-content-html p {
	margin: 0 0 12px 0;
}

.trolleymap-detail-content-html p:last-child {
	margin-bottom: 0;
}

.trolleymap-detail-content-html ul,
.trolleymap-detail-content-html ol {
	margin: 0 0 12px 0;
	padding-left: 20px;
}

.trolleymap-detail-content-html li {
	margin-bottom: 4px;
}

.trolleymap-detail-content-html br + br {
	display: none;
}

.trolleymap-detail-content-html strong {
	font-weight: 700;
	color: #333;
}

/* Detail Header */
.trolleymap-detail-header {
	padding: 10px 15px 0px;
	border-bottom: 1px solid #e8e8e8;
	flex-shrink: 0;
}

.trolleymap-detail-header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 14px;
}

.trolleymap-detail-city-name {
	margin: 0 0 2px 0;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.trolleymap-detail-country {
	color: #888;
}

.trolleymap-detail-close {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
	margin-left: 12px;
	margin-top: -4px;
}

.trolleymap-detail-close:hover {
	color: #333;
	background: #f5f5f5;
}

.trolleymap-detail-back {
	background: none;
	border: none;
	color: #DC0527;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.15s;
}

.trolleymap-detail-back:hover {
	background: #fdf0f0;
}

.trolleymap-detail-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	color: #555;
}

.trolleymap-detail-table tr:not(:last-child) td {
	padding-bottom: 8px;
}

.trolleymap-detail-table td:first-child {
	color: #888;
	font-weight: 500;
	padding-right: 16px;
	white-space: nowrap;
	width: 40%;
}

.trolleymap-detail-table td:last-child {
	color: #333;
	font-weight: 600;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* Plain link style */
.trolleymap-plain-link {
	color: #DC0527;
	text-decoration: none;
	font-weight: 600;
	word-break: break-all;
}

.trolleymap-plain-link:hover {
	text-decoration: underline;
}

.trolleymap-attachment-row {
	color: #555;
	line-height: 1.6;
}

/* ============================================
   DYNAMIC PANEL - HERO SECTION
   ============================================ */
.trolleymap-detail-hero {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.trolleymap-detail-hero-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.trolleymap-detail-hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px 20px 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.trolleymap-detail-hero-close {
	background: rgba(255,255,255,0.95);
	border: none;
	color: #333;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	transition: transform 0.2s, background 0.2s;
}

.trolleymap-detail-hero-close:hover {
	transform: scale(1.1);
	background: #fff;
}

.trolleymap-detail-hero-close svg {
	width: 14px;
	height: 14px;
}

.trolleymap-detail-btn-group {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 6px;
	z-index: 10;
}

.trolleymap-detail-hero-simple .trolleymap-detail-btn-group {
	top: 6px;
	right: 6px;
}

.trolleymap-detail-hero-simple .trolleymap-detail-hero-close {
	background: #f5f5f5;
}

.trolleymap-detail-expand-btn {
	background: rgba(255,255,255,0.95);
	border: none;
	color: #333;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	transition: transform 0.2s, background 0.2s;
}

.trolleymap-detail-expand-btn:hover {
	transform: scale(1.1);
	background: #fff;
}

.trolleymap-detail-expand-btn svg {
	width: 14px;
	height: 14px;
}

.trolleymap-detail-hero-simple .trolleymap-detail-expand-btn {
	background: #f5f5f5;
}

.trolleymap-detail-hero-title {
	margin: 0;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.trolleymap-detail-hero-subtitle {
	margin: 2px 0 0;
	color: rgba(255,255,255,0.9);
}

/* Hero without image */
.trolleymap-detail-hero-simple {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	background: #fff;
}

.trolleymap-detail-hero-simple .trolleymap-detail-hero-close {
	top: 6px;
	right: 6px;
	background: #f5f5f5;
}

.trolleymap-detail-hero-simple .trolleymap-detail-hero-title {
	color: #1a1a1a;
	text-shadow: none;
}

.trolleymap-detail-hero-simple .trolleymap-detail-hero-subtitle {
	color: #888;
}

/* ============================================
   DYNAMIC PANEL - DETAIL ROWS
   ============================================ */
.trolleymap-detail-rows {
	padding: 4px 16px;
}

.trolleymap-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
}

.trolleymap-detail-row:last-child {
	border-bottom: none;
}

.trolleymap-detail-row-label {
	color: #888;
	flex-shrink: 0;
	margin-right: 12px;
}

.trolleymap-detail-row-value {
	font-weight: 600;
	color: #333;
	text-align: right;
	word-break: break-word;
	flex: 1;
}

/* ============================================
   DYNAMIC PANEL - WEBSITE BUTTON
   ============================================ */
.trolleymap-detail-website {
	padding: 4px 16px 12px;
}

.trolleymap-website-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #DC0527;
	color: white;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.2s;
}

.trolleymap-website-btn:hover {
	background: #b8031f;
	text-decoration: none;
	color: white;
}

.trolleymap-website-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ============================================
   DYNAMIC PANEL - DIRECT SECTIONS (no collapse)
   ============================================ */
.trolleymap-detail-direct-section {
	border-top: 1px solid #f0f0f0;
}

.trolleymap-direct-section-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #DC0527;
	margin: 0;
	padding: 12px 16px 8px;
}

.trolleymap-direct-section-header svg {
	width: 18px;
	height: 18px;
	color: #DC0527;
	flex-shrink: 0;
}

.trolleymap-direct-section-content {
	color: #555;
	line-height: 1.6;
	padding: 0 16px 12px;
}

.trolleymap-direct-section-content p {
	margin: 0 0 8px 0;
}

.trolleymap-direct-section-content p:last-child {
	margin-bottom: 0;
}

.trolleymap-direct-section-content a {
	color: #DC0527;
	text-decoration: none;
}

.trolleymap-direct-section-content a:hover {
	text-decoration: underline;
}

/* ============================================
   DYNAMIC PANEL - EXPAND/COLLAPSE SECTIONS
   ============================================ */
.trolleymap-detail-expandable-section {
	border-top: 1px solid #f0f0f0;
}

.trolleymap-expandable-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 12px 16px;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	margin: 0;
}

.trolleymap-expandable-header:hover {
	background: #f8f9fa;
}

.trolleymap-expandable-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #DC0527;
}

.trolleymap-expandable-title svg {
	width: 18px;
	height: 18px;
	color: #DC0527;
	flex-shrink: 0;
}

.trolleymap-expandable-chevron {
	width: 16px;
	height: 16px;
	color: #999;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.trolleymap-expandable-section.expanded .trolleymap-expandable-chevron {
	transform: rotate(180deg);
}

.trolleymap-expandable-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.2s ease;
	opacity: 0;
}

.trolleymap-expandable-section.expanded .trolleymap-expandable-content {
	max-height: 2000px;
	opacity: 1;
}

.trolleymap-expandable-inner {
	padding: 0 16px 12px;
	color: #555;
	line-height: 1.6;
}

.trolleymap-expandable-inner p {
	margin: 0 0 8px 0;
}

.trolleymap-expandable-inner p:last-child {
	margin-bottom: 0;
}

.trolleymap-expandable-inner a {
	color: #DC0527;
	text-decoration: none;
}

.trolleymap-expandable-inner a:hover {
	text-decoration: underline;
}

/* ============================================
   DYNAMIC PANEL - ATTACHMENT LIST
   ============================================ */
.trolleymap-detail-attachments {
	margin-top: 0;
}

.trolleymap-attachments-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #DC0527;
	margin-bottom: 12px;
}

.trolleymap-attachments-title svg {
	width: 18px;
	height: 18px;
}

.trolleymap-attachment-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}

.trolleymap-attachment-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #f8f9fa;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: background 0.2s, border-color 0.2s;
	border: 1px solid #eee;
	overflow: hidden;
}

.trolleymap-attachment-item:hover {
	background: #fff;
	border-color: #DC0527;
	text-decoration: none;
	color: #333;
}

.trolleymap-attachment-file-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trolleymap-attachment-file-icon svg {
	width: 16px;
	height: 16px;
	color: #DC0527;
}

.trolleymap-attachment-info {
	flex: 1;
	min-width: 0;
}

.trolleymap-attachment-name {
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trolleymap-attachment-arrow {
	display: none;
}

/* ============================================
   DYNAMIC PANEL - EMPTY STATE
   ============================================ */
.trolleymap-detail-empty {
	padding: 32px 16px;
	text-align: center;
	color: #999;
}

.trolleymap-detail-empty-icon {
	margin-bottom: 12px;
	opacity: 0.5;
}

.trolleymap-detail-empty-icon svg {
	width: 40px;
	height: 40px;
	color: #999;
}

.trolleymap-detail-empty-text {
	line-height: 1.5;
}

/* Leaflet control overrides for clean look */
#minimal-trolley-map .leaflet-control-zoom a {
	color: #555;
}

#minimal-trolley-map .leaflet-interactive,
#minimal-trolley-map .leaflet-interactive:focus,
#minimal-trolley-map path.leaflet-interactive:focus {
	outline: none !important;
}

#minimal-trolley-map .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.7);
	padding: 2px 5px;
}

/* Search */
.trolleymap-search-container {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	display: flex;
	align-items: stretch;
	height: 34px;
}

.trolleymap-search-toggle {
	width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	flex-shrink: 0;
}

.trolleymap-search-toggle:hover {
	background-color: #f5f5f5;
	border-color: #ccc;
}

.trolleymap-search-dropdown {
	width: 0;
	overflow: hidden;
	transition: width 0.25s ease;
	display: flex;
	align-items: stretch;
}

.trolleymap-search-container.trolleymap-search-open .trolleymap-search-dropdown {
	width: 220px;
}

.trolleymap-search-container.trolleymap-search-open .trolleymap-search-toggle {
	border-radius: 6px 0 0 6px;
	border-right: none;
}

.trolleymap-search-input {
	width: 220px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-left: none;
	border-radius: 0 6px 6px 0;
	outline: none;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	line-height: 34px;
	font-size: inherit;
	font-family: 'Poppins', sans-serif;
}

.trolleymap-search-input::placeholder {
	color: #aaa;
}

.trolleymap-search-results {
	position: absolute;
	top: 40px;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	max-height: 240px;
	overflow-y: auto;
	display: none;
	z-index: 801;
}

.trolleymap-search-results.trolleymap-search-visible {
	display: block;
}

.trolleymap-search-item {
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.1s;
}

.trolleymap-search-item:last-child {
	border-bottom: none;
}

.trolleymap-search-item:hover {
	background: #f5f5f5;
}

.trolleymap-search-item-name {
	display: block;
	font-weight: 600;
	color: #333;
}

.trolleymap-search-item-country {
	color: #999;
}



.trolleymap-search-item.trolleymap-search-item-country {
	background: #f8f9fa;
	border-left: 3px solid #DC0427;
}

.trolleymap-search-item.trolleymap-search-item-country:hover {
	background: #fce8ea;
}

.trolleymap-search-item-count {
	display: inline-block;
	background: #DC0427;
	color: white;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	margin-left: 8px;
}

.trolleymap-search-empty {
	padding: 16px 14px;
	text-align: center;
	color: #999;
}

.trolleymap-search-header {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	background: #DC0427;
	color: white;
	font-weight: 600;
}

.trolleymap-search-back {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 4px 8px;
	margin-right: 8px;
	font-size: 16px;
}

.trolleymap-search-back:before {
	content: '\2190';
}

.trolleymap-search-country-title {
	flex: 1;
}

.trolleymap-search-city-list {
	max-height: 300px;
	overflow-y: auto;
}

.trolleymap-search-city-item {
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.1s;
}

.trolleymap-search-city-item:hover {
	background: #f5f5f5;
}

.trolleymap-search-city-item.active {
	border-left: 3px solid #46b450;
}

.trolleymap-search-city-item.inactive {
	border-left: 3px solid #999;
	opacity: 0.7;
}

.trolleymap-search-city-name {
	font-weight: 500;
	color: #333;
}

.trolleymap-search-city-lines {
	font-size: 12px;
	color: #666;
}

.trolleymap-search-city-country {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}

/* Fullscreen Control */
.trolleymap-fullscreen-control {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	margin-bottom: 10px;
}

.trolleymap-fullscreen-btn {
	width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	color: #555;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	font-size: inherit;
	font-family: 'Poppins', sans-serif;
}

.trolleymap-fullscreen-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
	color: #333;
}

.trolleymap-fullscreen-btn:active {
	transform: scale(0.96);
}

.trolleymap-fullscreen-btn svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Active Cities Counter */
.trolleymap-counter-control {
	background: white !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	margin-left: 10px;
	margin-bottom: 0;
}

.trolleymap-counter-content {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	font-size: 13px;
	color: #333;
	font-family: 'Poppins', sans-serif;
}

.trolleymap-counter-icon {
	color: #DC0427;
	margin-right: 6px;
	display: flex;
	align-items: center;
	line-height: 1;
}

.trolleymap-counter-icon svg {
	display: block;
}

.trolleymap-counter-text {
	font-weight: 500;
}

/* Fullscreen mode styles */
#minimal-trolley-map.trolleymap-fullscreen-mode {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 99998 !important;
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#minimal-trolley-map.trolleymap-fullscreen-mode.trolleymap-panel-open {
	width: 100vw !important;
}

:fullscreen #minimal-trolley-map,
:-webkit-full-screen #minimal-trolley-map,
:-moz-full-screen #minimal-trolley-map,
:-ms-fullscreen #minimal-trolley-map {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99998;
	border: none;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

.trolleymap-fullscreen-active {
	overflow: hidden !important;
}

.trolleymap-fullscreen-active #minimal-trolley-map {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 99998 !important;
	border: none;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

/* Hover card on red dots */
.trolleymap-hover-tooltip {
	background: #fff;
	border: none;
	border-radius: 8px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
	padding: 10px 14px;
	font-size: inherit;
	font-family: 'Poppins', sans-serif;
}

.trolleymap-hover-tooltip::before {
	border-top-color: #fff;
}

.trolleymap-hover-card {
	line-height: 1.7;
	color: #555;
}

.trolleymap-hover-card strong {
	color: #333;
	font-weight: 600;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	#minimal-trolley-map {
		height: 100vh !important;
		width: 100% !important;
		min-height: 100vh;
		z-index: 1;
	}

	#minimal-trolley-map.trolleymap-panel-open {
		width: 100% !important;
	}

	/* Mobile: Fullscreen panel from right */
	.trolleymap-city-detail-panel {
		width: 100%; /* Full width on mobile */
		right: -100%;
		box-shadow: -3px 0 15px rgba(0,0,0,0.1);
	}

	.trolleymap-city-detail-panel.trolleymap-detail-visible {
		right: 0;
	}

	.trolleymap-overlay-close {
		top: 12px;
		right: 12px;
	}

	.trolleymap-overlay-padded-content {
		padding: 16px;
	}

	.trolleymap-overlay-featured-image-wrapper {
		height: 200px;
	}

	.trolleymap-overlay-city-title {
		margin-bottom: 12px;
	}

	.trolleymap-overlay-info-table td {
		padding: 6px 0;
	}

	.trolleymap-overlay-info-table td:first-child {
		white-space: normal;
	}

	.trolleymap-detail-content-html {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.trolleymap-detail-content-html ul,
	.trolleymap-detail-content-html ol {
		padding-left: 16px;
	}

	/* Search */
	.trolleymap-search-container.trolleymap-search-open .trolleymap-search-dropdown {
		width: 180px;
	}

	.trolleymap-search-input {
		width: 180px;
	}

	.trolleymap-search-results {
		max-height: 200px;
	}

	.trolleymap-search-item {
		padding: 12px 14px;
	}
}

@media (max-width: 480px) {
	#minimal-trolley-map {
		height: 50vh !important;
		min-height: 260px;
		z-index: 10 !important;
	}

	.trolleymap-overlay-scroll {
		padding: 12px;
	}

	.trolleymap-overlay-featured-img {
		max-width: 100%;
	}

	.trolleymap-overlay-info-table td {
		padding: 5px 0;
	}

	/* Search */
	.trolleymap-search-container {
		top: 6px;
		right: 6px;
		height: 30px;
	}

	.trolleymap-search-toggle {
		width: 30px;
		height: 30px;
		background-size: 14px 14px;
	}

	.trolleymap-search-container.trolleymap-search-open .trolleymap-search-dropdown {
		width: 150px;
	}

	.trolleymap-search-input {
		width: 150px;
		height: 30px;
		line-height: 30px;
		padding: 0 10px;
	}

	.trolleymap-search-results {
		top: 34px;
		max-height: 180px;
	}
}

/* Print */
@media print {
	#minimal-trolley-map {
		display: none;
	}

	.trolleymap-city-detail-panel {
		display: none !important;
	}
}
