/**
 * Route Finder V2 Map Card View
 * Full-viewport map with floating info card overlay.
 */

/* ── Wrapper & Map ────────────────────────────────────────────────────────── */

.rfcc-v2-mapcard-container {
	container-type: inline-size;
	width: 100%;
}

.rfcc-v2-mapcard-container.rfcc-mapcard-full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	max-width: 100vw;
	overflow: hidden;
}

.rfcc-mapcard-full-width .rfcc-v2-mapcard-wrapper {
	height: calc(100vh - 80px);
	height: calc(100dvh - 80px);
	max-height: none;
	min-height: 500px;
}

@media (max-width: 768px) {
	.rfcc-mapcard-full-width .rfcc-v2-mapcard-wrapper {
		height: auto;
		min-height: 0;
	}
}

.rfcc-v2-mapcard-wrapper {
	position: relative;
	width: 100%;
	height: 80vh;
	min-height: 500px;
	max-height: 900px;
	max-width: none;
	overflow: hidden;
}

.rfcc-v2-mapcard-map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rfcc-v2-mapcard-map .leaflet-control-zoom {
	margin-right: 16px;
	margin-bottom: 16px;
}

@media (max-width: 768px) {
	.rfcc-v2-mapcard-map .leaflet-control-zoom {
		margin-right: 10px;
		margin-bottom: 10px;
	}
}

/* ── Card Overlay ─────────────────────────────────────────────────────────── */

.rfcc-v2-mapcard-overlay {
	position: absolute;
	top: 64px;
	left: 24px;
	z-index: 1000;
	width: 360px;
	max-height: calc(100% - 88px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transition: opacity 0.3s ease;
}

.rfcc-v2-mapcard-overlay.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

/* ── Hero Image ───────────────────────────────────────────────────────────── */

.rfcc-mapcard-hero {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 16px 16px 0 0;
	display: block;
}

/* ── Card Body ────────────────────────────────────────────────────────────── */

.rfcc-mapcard-body {
	padding: 14px 16px 16px;
}

/* Activity badge */
.rfcc-mapcard-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 6px;
}

.rfcc-mapcard-activity {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #666;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	line-height: 1.3;
}

.rfcc-mapcard-activity.grade-badge {
	color: inherit;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 600;
	border-radius: 10px;
	min-width: 0;
	margin-right: 0;
	line-height: 1.3;
	border: 1.5px solid;
}
.rfcc-mapcard-activity.grade-badge::after {
	background: rgba(30, 30, 30, 0.95);
	color: #fff;
	font-size: 11px;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.rfcc-mapcard-activity i {
	font-size: 9px;
	color: #888;
}

.rfcc-mapcard-gpx-pill,
.rfcc-mapcard-gpx-pill:hover,
.rfcc-mapcard-gpx-pill:visited {
	text-decoration: none !important;
	cursor: pointer;
}

/* Title */
.rfcc-mapcard-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0 0 6px;
}

/* Climbing badges */
.rfcc-mapcard-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 10px;
}

.rfcc-mapcard-badges:empty {
	display: none;
}

/* ── Stats Row ────────────────────────────────────────────────────────────── */

.rfcc-mapcard-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.rfcc-mapcard-stat {
	flex: 1 1 calc(25% - 8px);
	min-width: 50px;
	text-align: center;
}

.rfcc-mapcard-stat-icon {
	font-size: 14px;
	color: #888;
	margin-bottom: 4px;
}

.rfcc-mapcard-stat-value {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.rfcc-mapcard-stat-label {
	font-size: 10px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-top: 1px;
}

/* Unit toggle spans */
.rfcc-mapcard-stats .unit-imperial { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-stats .unit-metric { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-stats .unit-imperial { display: inline; }

/* ── Description ──────────────────────────────────────────────────────────── */

.rfcc-mapcard-desc-wrap {
	margin-top: 10px;
}

.rfcc-mapcard-desc-wrap:empty {
	display: none;
}

.rfcc-mapcard-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rfcc-mapcard-desc.expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.rfcc-mapcard-more {
	display: inline;
	font-size: 12px;
	color: #3498db;
	cursor: pointer;
	margin-top: 4px;
}

.rfcc-mapcard-more:hover {
	text-decoration: underline;
}

/* ── CTA Button ───────────────────────────────────────────────────────────── */

.rfcc-mapcard-cta {
	display: block;
	width: 100%;
	padding: 10px 16px;
	margin-top: 12px;
	background: #2ecc71;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s;
}

.rfcc-mapcard-cta:hover,
.rfcc-mapcard-cta:focus {
	background: #27ae60;
	color: #fff;
	text-decoration: none;
}

.rfcc-mapcard-cta:visited {
	color: #fff;
	text-decoration: none;
}

/* ── Group Card ───────────────────────────────────────────────────────────── */

.rfcc-mapcard-group-header {
	padding: 20px 20px 12px;
}

.rfcc-mapcard-group-name {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 4px;
}

.rfcc-mapcard-group-count {
	font-size: 13px;
	color: #888;
}

.rfcc-mapcard-route-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

.rfcc-mapcard-route-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	cursor: pointer;
	transition: background 0.15s;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: inherit;
}

.rfcc-mapcard-route-item:last-child {
	border-bottom: none;
}

.rfcc-mapcard-route-item:hover,
.rfcc-mapcard-route-item.highlighted {
	background: #f0f6ff;
}

.rfcc-mapcard-route-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.rfcc-mapcard-route-info {
	flex: 1;
	min-width: 0;
}

.rfcc-mapcard-route-name {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rfcc-mapcard-route-meta {
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

.rfcc-mapcard-route-meta .unit-imperial { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-route-meta .unit-metric { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-route-meta .unit-imperial { display: inline; }

.rfcc-mapcard-route-arrow {
	color: #ccc;
	font-size: 12px;
	flex-shrink: 0;
}

.rfcc-mapcard-route-item:hover .rfcc-mapcard-route-arrow {
	color: #3498db;
}

/* ── Loading Spinner ──────────────────────────────────────────────────────── */

.rfcc-mapcard-loading {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 14px;
}

.rfcc-mapcard-loading::before {
	content: '';
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto 12px;
	border: 3px solid #eee;
	border-top-color: #3498db;
	border-radius: 50%;
	animation: rfcc-mapcard-spin 0.8s linear infinite;
}

@keyframes rfcc-mapcard-spin {
	to { transform: rotate(360deg); }
}

/* ── Responsive: Container Queries (narrow embeds) ───────────────────────── */

.rfcc-mapcard-toggle-btn {
	display: none;
}

@container (max-width: 900px) {
	.rfcc-mapcard-toggle-btn {
		display: flex;
		align-items: center;
		gap: 6px;
		position: absolute;
		top: 12px;
		left: 12px;
		z-index: 1001;
		padding: 8px 16px;
		border-radius: 24px;
		border: none;
		background: #fff;
		color: #333;
		font-size: 14px;
		font-weight: 600;
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
		cursor: pointer;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
		transition: background 0.15s, box-shadow 0.15s;
	}

	.rfcc-mapcard-toggle-btn:hover {
		background: #f5f5f5;
		box-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
	}

	.rfcc-mapcard-toggle-btn i {
		font-size: 13px;
	}

	.rfcc-v2-mapcard-overlay {
		display: none;
		width: min(320px, calc(100% - 24px));
		left: 12px;
		top: 56px;
		max-height: calc(100% - 68px);
	}

	.rfcc-v2-mapcard-overlay.loading {
		display: flex;
	}

	.rfcc-v2-mapcard-overlay.card-open {
		display: block;
	}

	.rfcc-mapcard-hero {
		height: 120px;
	}

	.rfcc-mapcard-body {
		padding: 10px 12px 12px;
	}

	.rfcc-mapcard-title {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.rfcc-mapcard-stat-value {
		font-size: 16px;
	}

	.rfcc-mapcard-stat-label {
		font-size: 9px;
	}

	.rfcc-mapcard-desc {
		font-size: 12px;
		-webkit-line-clamp: 2;
	}

	.rfcc-mapcard-cta {
		padding: 8px 16px;
		font-size: 13px;
	}
}

/* ── Responsive: Mobile Stacked Layout ───────────────────────────────────── */

@media (max-width: 768px) {
	.rfcc-v2-mapcard-wrapper {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	.rfcc-v2-mapcard-map {
		position: relative;
		inset: auto;
		width: 100%;
		height: 55vh;
		height: 55dvh;
		min-height: 260px;
		flex-shrink: 0;
		touch-action: pan-y;
	}

	.rfcc-mapcard-toggle-btn {
		display: none !important;
	}

	.rfcc-v2-mapcard-overlay {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		max-height: none;
		overflow-y: visible;
		border-radius: 0;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
		z-index: 10;
		display: block !important;
	}

	.rfcc-mapcard-hero {
		height: 150px;
		border-radius: 0;
	}

	.rfcc-mapcard-body {
		padding: 12px 16px 16px;
	}

	.rfcc-mapcard-title {
		font-size: 16px;
		margin-bottom: 6px;
	}

	.rfcc-mapcard-activity {
		font-size: 10px;
		padding: 3px 8px;
		margin-bottom: 6px;
	}

	.rfcc-mapcard-badges {
		margin-bottom: 8px;
	}

	.rfcc-mapcard-stats {
		gap: 8px;
		padding-top: 10px;
	}

	.rfcc-mapcard-stat-value {
		font-size: 14px;
	}

	.rfcc-mapcard-stat-label {
		font-size: 10px;
	}

	.rfcc-mapcard-desc-wrap {
		margin-top: 10px;
	}

	.rfcc-mapcard-cta {
		margin-top: 12px;
	}

	.rfcc-mapcard-group-header {
		padding: 12px 16px 8px;
	}

	.rfcc-mapcard-group-name {
		font-size: 17px;
	}

	.rfcc-mapcard-route-list {
		max-height: 200px;
		overflow-y: auto;
	}

	.rfcc-mapcard-route-item {
		padding: 10px 16px;
		gap: 10px;
	}

	.rfcc-mapcard-dest-detail-mobile {
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}
}

/* ── Map Controls (pill buttons) ───────────────────────────────────────────── */

.rfcc-mapcard-controls {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 1000;
	display: flex;
	gap: 6px;
	pointer-events: auto;
}

.rfcc-mapcard-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.55);
	color: #888;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.3;
}

.rfcc-mapcard-pill:hover {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(0, 0, 0, 0.25);
	color: #444;
}

.rfcc-mapcard-pill.active {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.3);
	color: #222;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.rfcc-mapcard-pill i {
	font-size: 11px;
}

@media (max-width: 768px) {
	.rfcc-mapcard-controls {
		position: absolute;
		top: 10px;
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		gap: 4px;
		z-index: 1000;
	}

	.rfcc-mapcard-pill {
		padding: 5px 10px;
		font-size: 11px;
		gap: 4px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
	}

	.rfcc-mapcard-pill .rfcc-mapcard-elevation-label,
	.rfcc-mapcard-pill .rfcc-mapcard-arrows-label,
	.rfcc-mapcard-pill .rfcc-mapcard-linestyle-label,
	.rfcc-mapcard-pill .rfcc-mapcard-unit-label,
	.rfcc-mapcard-pill .rfcc-mapcard-stops-label,
	.rfcc-mapcard-pill .rfcc-mapcard-layers-label {
		display: none;
	}
}

/* ── Mobile Touch Hint ────────────────────────────────────────────────────── */

.rfcc-mapcard-touch-hint {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	z-index: 999;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
	white-space: nowrap;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rfcc-mapcard-touch-hint.visible {
	opacity: 1;
}

/* ── Elevation Profile Chart ──────────────────────────────────────────────── */

.rfcc-mapcard-elevation {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: 160px;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(12px) saturate(1.4);
	-webkit-backdrop-filter: blur(12px) saturate(1.4);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	display: none;
	padding: 4px;
}

.rfcc-mapcard-elevation.visible {
	display: block;
}

.rfcc-mapcard-elevation canvas {
	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 768px) {
	.rfcc-mapcard-elevation {
		height: 120px;
		padding: 4px;
		bottom: auto;
		top: calc(55vh - 120px);
		top: calc(55dvh - 120px);
		background: rgba(255, 255, 255, 0.4);
	}
}

.rf-dark-mode .rfcc-mapcard-elevation {
	background: rgba(0, 0, 0, 0.3);
	border-top-color: rgba(255, 255, 255, 0.15);
}

/* ── Grade Badge Tooltips ──────────────────────────────────────────────────── */

.rfcc-mapcard-badges {
	overflow: visible;
	position: relative;
	z-index: 10;
}

.rfcc-mapcard-badges .grade-badge {
	overflow: visible;
	position: relative;
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 10px;
	line-height: 1.3;
	min-width: 0;
	opacity: 0.85;
}

.rfcc-mapcard-badges .grade-badge::after {
	z-index: 100;
	left: 0;
	transform: none;
	width: max-content;
	max-width: 280px;
}

/* ── Scrollbar Styling ────────────────────────────────────────────────────── */

.rfcc-v2-mapcard-overlay,
.rfcc-mapcard-route-list {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
.rfcc-v2-mapcard-overlay:hover,
.rfcc-mapcard-route-list:hover {
	scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.rfcc-v2-mapcard-overlay::-webkit-scrollbar,
.rfcc-mapcard-route-list::-webkit-scrollbar {
	width: 5px;
}

.rfcc-v2-mapcard-overlay::-webkit-scrollbar-track,
.rfcc-mapcard-route-list::-webkit-scrollbar-track {
	background: transparent;
}

.rfcc-v2-mapcard-overlay::-webkit-scrollbar-thumb,
.rfcc-mapcard-route-list::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0);
	border-radius: 3px;
	transition: background 0.2s;
}
.rfcc-v2-mapcard-overlay:hover::-webkit-scrollbar-thumb,
.rfcc-mapcard-route-list:hover::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
}
.rfcc-v2-mapcard-overlay::-webkit-scrollbar-thumb:hover,
.rfcc-mapcard-route-list::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.35);
}

/* ── Card scroll indicator ───────────────────────────────────────────────── */

.rfcc-mapcard-scroll-btn {
	position: sticky;
	bottom: 8px;
	float: right;
	margin-right: 6px;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s, background 0.15s, transform 0.25s;
	z-index: 10;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	pointer-events: auto;
}
.rfcc-mapcard-scroll-btn.visible {
	opacity: 1;
	visibility: visible;
}
.rfcc-mapcard-scroll-btn:hover {
	background: rgba(0, 0, 0, 0.5);
}
.rfcc-mapcard-scroll-btn svg {
	transition: transform 0.25s;
}
.rfcc-mapcard-scroll-btn.at-bottom svg {
	transform: rotate(180deg);
}

/* ── Layer Switcher Dropdown ──────────────────────────────────────────────── */

.rfcc-mapcard-layers-wrap {
	position: relative;
}

.rfcc-mapcard-layers-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px) saturate(1.4);
	-webkit-backdrop-filter: blur(12px) saturate(1.4);
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	min-width: 180px;
	z-index: 1001;
	overflow: hidden;
}

.rfcc-mapcard-layer-option {
	display: block;
	width: 100%;
	padding: 10px 16px;
	border: none;
	background: none;
	text-align: left;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	transition: background 0.15s;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rfcc-mapcard-layer-option:hover {
	background: rgba(0, 0, 0, 0.06);
}

.rfcc-mapcard-layer-option + .rfcc-mapcard-layer-option {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Destination Detail Slide-In ─────────────────────────────────────────── */

@keyframes rfcc-slide-in {
	from { transform: translateX(100%); opacity: 0; }
	to   { transform: translateX(0);    opacity: 1; }
}

.rfcc-slide-in {
	animation: rfcc-slide-in 0.25s ease-out;
}

.rfcc-mapcard-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	margin: 16px 16px 0;
	border: none;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	transition: background 0.15s;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rfcc-mapcard-back-btn:hover {
	background: rgba(0, 0, 0, 0.1);
}

.rfcc-mapcard-dest-hero {
	width: 100%;
	aspect-ratio: 16 / 7;
	margin-top: 12px;
	background-size: cover;
	background-position: center;
	border-radius: 0;
}

.rfcc-mapcard-dest-body {
	padding: 16px 18px 18px;
}

.rfcc-mapcard-dest-name {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.3;
}

.rfcc-mapcard-dest-distance {
	font-size: 12px;
	color: #666;
	margin: 2px 0 10px;
}
.rfcc-mapcard-dest-distance .unit-imperial { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-dest-distance .unit-metric { display: none; }
.rfcc-v2-mapcard-wrapper.imperial .rfcc-mapcard-dest-distance .unit-imperial { display: inline; }

.rfcc-mapcard-dest-address {
	font-size: 13px;
	color: #555;
	margin: 0 0 14px;
	display: flex;
	align-items: flex-start;
	gap: 7px;
	line-height: 1.5;
}

.rfcc-mapcard-dest-address i {
	color: #d63031;
	margin-top: 3px;
	flex-shrink: 0;
}

.rfcc-mapcard-dest-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.rfcc-mapcard-dest-link,
.rfcc-mapcard-dest-link:link,
.rfcc-mapcard-dest-link:visited,
.rfcc-mapcard-dest-link:hover,
.rfcc-mapcard-dest-link:focus,
.rfcc-mapcard-dest-link:active {
	text-decoration: none !important;
}

.rfcc-mapcard-dest-link {
	color: #fff;
	background: #2271b1;
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 6px;
	transition: background 0.15s, opacity 0.15s;
}

.rfcc-mapcard-dest-link:hover,
.rfcc-mapcard-dest-link:focus,
.rfcc-mapcard-dest-link:active {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}

.rfcc-mapcard-dest-link:visited {
	color: #fff;
	text-decoration: none;
}

.rfcc-mapcard-dest-notes {
	font-size: 13px;
	color: #555;
	line-height: 1.6;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.rfcc-mapcard-dest-description {
	font-size: 13px;
	color: #444;
	line-height: 1.6;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.rfcc-mapcard-dest-description p {
	margin: 0 0 8px;
}

.rfcc-mapcard-dest-description p:last-child {
	margin-bottom: 0;
}

/* ── Dark Mode ────────────────────────────────────────────────────────────── */

.rf-dark-mode .rfcc-v2-mapcard-overlay {
	background: #1e1e1e;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.rf-dark-mode .rfcc-v2-mapcard-overlay::before {
	background: #555;
}

.rf-dark-mode .rfcc-mapcard-activity {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.12);
	color: #aaa;
}

.rf-dark-mode .rfcc-mapcard-activity i {
	color: #999;
}

.rf-dark-mode .rfcc-mapcard-title {
	color: #e8e8e8;
}

.rf-dark-mode .rfcc-mapcard-body {
	color: #ccc;
}

.rf-dark-mode .rfcc-mapcard-stats {
	border-top-color: #333;
}

.rf-dark-mode .rfcc-mapcard-stat-value {
	color: #e0e0e0;
}

.rf-dark-mode .rfcc-mapcard-stat-icon {
	color: #666;
}

.rf-dark-mode .rfcc-mapcard-stat-label {
	color: #777;
}

.rf-dark-mode .rfcc-mapcard-desc {
	color: #999;
}

.rf-dark-mode .rfcc-mapcard-more {
	color: #6ea8ff;
}

.rf-dark-mode .rfcc-mapcard-cta {
	background: #2ecc71;
	color: #fff;
}

.rf-dark-mode .rfcc-mapcard-cta:hover {
	background: #27ae60;
}

.rf-dark-mode .rfcc-mapcard-group-header {
	border-bottom-color: #333;
}

.rf-dark-mode .rfcc-mapcard-group-name {
	color: #e8e8e8;
}

.rf-dark-mode .rfcc-mapcard-group-count {
	color: #888;
}

.rf-dark-mode .rfcc-mapcard-route-item {
	border-bottom-color: #2a2a2a;
}

.rf-dark-mode .rfcc-mapcard-route-item:hover,
.rf-dark-mode .rfcc-mapcard-route-item.highlighted {
	background: #282c34;
}

.rf-dark-mode .rfcc-mapcard-route-name {
	color: #e0e0e0;
}

.rf-dark-mode .rfcc-mapcard-route-meta {
	color: #888;
}

.rf-dark-mode .rfcc-mapcard-route-arrow {
	color: #555;
}

.rf-dark-mode .rfcc-mapcard-route-item:hover .rfcc-mapcard-route-arrow {
	color: #6ea8ff;
}

.rf-dark-mode .rfcc-mapcard-pill {
	background: rgba(50, 50, 50, 0.75);
	border-color: rgba(255, 255, 255, 0.2);
	color: #bbb;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.rf-dark-mode .rfcc-mapcard-pill:hover {
	background: rgba(60, 60, 60, 0.9);
	border-color: rgba(255, 255, 255, 0.35);
	color: #ddd;
}

.rf-dark-mode .rfcc-mapcard-pill.active {
	background: rgba(70, 70, 70, 0.95);
	border-color: rgba(255, 255, 255, 0.4);
	color: #f0f0f0;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.rf-dark-mode .rfcc-mapcard-toggle-btn {
	background: #333;
	color: #eee;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.rf-dark-mode .rfcc-mapcard-toggle-btn:hover {
	background: #3a3a3a;
}

.rf-dark-mode .rfcc-mapcard-loading {
	color: #777;
}

.rf-dark-mode .rfcc-mapcard-loading::before {
	border-color: #333;
	border-top-color: #6ea8ff;
}

.rf-dark-mode .rfcc-v2-mapcard-overlay::-webkit-scrollbar-thumb,
.rf-dark-mode .rfcc-mapcard-route-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
}

.rf-dark-mode .rfcc-mapcard-back-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #ccc;
}

.rf-dark-mode .rfcc-mapcard-back-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.rf-dark-mode .rfcc-mapcard-dest-name {
	color: #eee;
}

.rf-dark-mode .rfcc-mapcard-dest-distance {
	color: #999;
}

.rf-dark-mode .rfcc-mapcard-dest-address {
	color: #999;
}

.rf-dark-mode .rfcc-mapcard-dest-address i {
	color: #e74c3c;
}

.rf-dark-mode .rfcc-mapcard-dest-link {
	background: #3a3a3a;
	color: #ccc;
}

.rf-dark-mode .rfcc-mapcard-dest-link:hover {
	background: #4a4a4a;
	color: #fff;
}

.rf-dark-mode .rfcc-mapcard-dest-notes {
	color: #aaa;
	border-top-color: #333;
}

.rf-dark-mode .rfcc-mapcard-dest-description {
	color: #aaa;
	border-top-color: #333;
}

.rf-dark-mode .rfcc-mapcard-layers-dropdown {
	background: rgba(30, 30, 30, 0.92);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rf-dark-mode .rfcc-mapcard-layer-option {
	color: #ccc;
}

.rf-dark-mode .rfcc-mapcard-layer-option:hover {
	background: rgba(255, 255, 255, 0.08);
}

.rf-dark-mode .rfcc-mapcard-layer-option + .rfcc-mapcard-layer-option {
	border-top-color: rgba(255, 255, 255, 0.08);
}
