/**
 * Timeline mini DSS (gió + lúa) — không phụ thuộc .gm-maps-shell.
 */
.namrom-mini-timeline {
	position: fixed;
	left: 0;
	right: 64px;
	bottom: 0;
	z-index: 110;
	pointer-events: none;
	box-sizing: border-box;
	overflow: visible;
}

.namrom-mini-timeline.hidden {
	display: none !important;
}

.namrom-mini-timeline.visible {
	display: block;
	pointer-events: auto;
}

.namrom-mini-timeline.timeline-split-2 .timeline-container {
	background: rgba(255, 255, 255, 0.92);
	border-top: 1px solid #e8eaed;
}

.namrom-mini-timeline.timeline-split-2 .timeline-label {
	font-size: 10px;
}

.namrom-mini-timeline.timeline-split-2 .timeline-current-time {
	font-size: 11px;
}

.namrom-mini-timeline .timeline-container {
	background: transparent;
	padding: 0;
	box-shadow: none;
	border: none;
	position: relative;
	min-height: 6px;
	overflow: visible;
}

.namrom-mini-timeline .timeline-controls {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0 48px 0 8px;
	min-height: 6px;
	background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.85) 40%, #fff 100%);
	border-top: none;
	transition: min-height 0.2s ease, padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.namrom-mini-timeline:hover .timeline-controls,
.namrom-mini-timeline.is-expanded .timeline-controls,
.namrom-mini-timeline.is-playing .timeline-controls,
.namrom-mini-timeline.timeline-split-2 .timeline-controls {
	min-height: 40px;
	padding: 26px 48px 6px 10px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -2px 12px rgba(60, 64, 67, 0.12);
	border-top: 1px solid #e8eaed;
	overflow: visible;
}

.namrom-mini-timeline .timeline-btn {
	width: 0;
	height: 0;
	min-width: 0;
	padding: 0;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	border: none;
	pointer-events: none;
	flex-shrink: 0;
	cursor: pointer;
	transition: opacity 0.15s ease, width 0.15s ease, height 0.15s ease;
}

.namrom-mini-timeline:hover .timeline-btn,
.namrom-mini-timeline.is-expanded .timeline-btn,
.namrom-mini-timeline.is-playing .timeline-btn,
.namrom-mini-timeline.timeline-split-2 .timeline-btn {
	width: 30px;
	height: 30px;
	opacity: 1;
	pointer-events: auto;
	border-radius: 7px;
	background: #f1f3f4;
	color: #202124;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 4px;
}

.namrom-mini-timeline:hover .timeline-btn.play,
.namrom-mini-timeline.is-expanded .timeline-btn.play,
.namrom-mini-timeline.is-playing .timeline-btn.play,
.namrom-mini-timeline.timeline-split-2 .timeline-btn.play {
	width: 32px;
	height: 32px;
	background: #1a73e8;
	color: #fff;
}

.namrom-mini-timeline:hover .timeline-btn.pause,
.namrom-mini-timeline.is-expanded .timeline-btn.pause,
.namrom-mini-timeline.is-playing .timeline-btn.pause,
.namrom-mini-timeline.timeline-split-2 .timeline-btn.pause {
	width: 32px;
	height: 32px;
	background: #ea4335;
	color: #fff;
}

.namrom-mini-timeline .timeline-slider-wrapper {
	flex: 1 1 auto;
	padding: 0;
	min-width: 0;
	width: 100%;
	position: relative;
	overflow: visible;
}

.namrom-mini-timeline .irs,
.namrom-mini-timeline .irs-with-grid {
	width: 100% !important;
	max-width: 100%;
	height: 14px;
	margin: 0;
	overflow: visible !important;
}

.namrom-mini-timeline .irs-line,
.namrom-mini-timeline .irs-bar {
	position: absolute !important;
	left: 0;
	height: 5px !important;
	top: 4.5px !important;
	margin: 0 !important;
	border: none !important;
	transform: none !important;
	border-radius: 3px;
}

.namrom-mini-timeline .irs-line {
	width: auto !important;
	right: 0 !important;
	background: rgba(26, 115, 232, 0.22) !important;
}

.namrom-mini-timeline .irs-bar {
	background: #1a73e8 !important;
}

.namrom-mini-timeline .irs-handle {
	width: 10px;
	height: 10px;
	top: 2px !important;
	border: 2px solid #1a73e8;
	background: #fff;
	box-shadow: 0 1px 4px rgba(26, 115, 232, 0.45);
	margin-top: 0 !important;
}

.namrom-mini-timeline:hover .irs,
.namrom-mini-timeline.is-expanded .irs,
.namrom-mini-timeline.is-playing .irs,
.namrom-mini-timeline.timeline-split-2 .irs {
	height: 28px;
}

.namrom-mini-timeline:hover .irs-with-grid,
.namrom-mini-timeline.is-expanded .irs-with-grid,
.namrom-mini-timeline.is-playing .irs-with-grid,
.namrom-mini-timeline.timeline-split-2 .irs-with-grid {
	height: 28px;
}

.namrom-mini-timeline:hover .irs-line,
.namrom-mini-timeline.is-expanded .irs-line,
.namrom-mini-timeline.is-playing .irs-line,
.namrom-mini-timeline.timeline-split-2 .irs-line,
.namrom-mini-timeline:hover .irs-bar,
.namrom-mini-timeline.is-expanded .irs-bar,
.namrom-mini-timeline.is-playing .irs-bar,
.namrom-mini-timeline.timeline-split-2 .irs-bar {
	height: 6px !important;
	top: 11px !important;
}

.namrom-mini-timeline:hover .irs-handle,
.namrom-mini-timeline.is-expanded .irs-handle,
.namrom-mini-timeline.is-playing .irs-handle,
.namrom-mini-timeline.timeline-split-2 .irs-handle {
	top: 9px !important;
	width: 14px;
	height: 14px;
}

.namrom-mini-timeline .irs-from,
.namrom-mini-timeline .irs-to {
	display: none !important;
	visibility: hidden !important;
}

.namrom-mini-timeline .irs-single {
	background: #1a73e8;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	top: -26px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
	z-index: 4;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.namrom-mini-timeline .irs-grid,
.namrom-mini-timeline .irs-min,
.namrom-mini-timeline .irs-max {
	display: none !important;
}

.namrom-mini-timeline .timeline-label-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-height: 22px;
	margin: 0;
	padding: 2px 40px 4px 12px;
	background: transparent;
}

.namrom-mini-timeline:hover .timeline-label-row,
.namrom-mini-timeline.is-expanded .timeline-label-row,
.namrom-mini-timeline.is-playing .timeline-label-row,
.namrom-mini-timeline.timeline-split-2 .timeline-label-row {
	background: rgba(255, 255, 255, 0.96);
	justify-content: space-between;
}

.namrom-mini-timeline .timeline-label-group {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 10px;
	justify-content: flex-end;
	min-width: 0;
}

.namrom-mini-timeline .timeline-label {
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #202124;
	text-transform: uppercase;
	white-space: nowrap;
}

.namrom-mini-timeline .timeline-current-time {
	font-size: 12px;
	font-weight: 700;
	color: #1a73e8;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.namrom-mini-timeline .timeline-date {
	font-size: 11px;
	font-weight: 600;
	color: #5f6368;
	font-variant-numeric: tabular-nums;
	display: none;
}

.namrom-mini-timeline:hover .timeline-date--start,
.namrom-mini-timeline.is-expanded .timeline-date--start,
.namrom-mini-timeline.is-playing .timeline-date--start,
.namrom-mini-timeline.timeline-split-2 .timeline-date--start,
.namrom-mini-timeline:hover .timeline-date--end,
.namrom-mini-timeline.is-expanded .timeline-date--end,
.namrom-mini-timeline.is-playing .timeline-date--end,
.namrom-mini-timeline.timeline-split-2 .timeline-date--end {
	display: inline;
}

.namrom-mini-timeline .timeline-close-btn {
	position: absolute;
	right: 6px;
	bottom: 50%;
	transform: translateY(50%);
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.92);
	color: #5f6368;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.75;
	font-size: 12px;
	line-height: 1;
}

.namrom-mini-timeline:hover .timeline-close-btn,
.namrom-mini-timeline.is-expanded .timeline-close-btn,
.namrom-mini-timeline.is-playing .timeline-close-btn,
.namrom-mini-timeline.timeline-split-2 .timeline-close-btn {
	opacity: 1;
	bottom: auto;
	top: 8px;
	transform: none;
}

.namrom-mini-timeline .timeline-close-btn:hover {
	background: #ea4335;
	color: #fff;
}

body:has(#wind-modern-timeline.visible) #dss-wind-speed-legend.dss-wind-speed-legend {
	right: 108px !important;
	bottom: 4px !important;
	z-index: 111 !important;
}

body:has(#wind-modern-timeline.visible.timeline-split-2) #dss-wind-speed-legend.dss-wind-speed-legend {
	left: auto;
	right: auto;
	bottom: 4px !important;
}

@media (max-width: 991.98px) {
	.namrom-mini-timeline .timeline-controls {
		min-height: 36px;
		padding: 26px 44px 4px 8px;
		background: rgba(255, 255, 255, 0.96);
		overflow: visible;
	}

	.namrom-mini-timeline .timeline-btn {
		width: 28px;
		height: 28px;
		opacity: 1;
		pointer-events: auto;
		border-radius: 7px;
		background: #f1f3f4;
		color: #202124;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 4px;
	}

	.namrom-mini-timeline .timeline-btn.play {
		width: 30px;
		height: 30px;
		background: #1a73e8;
		color: #fff;
	}

	.namrom-mini-timeline .timeline-btn.pause {
		width: 30px;
		height: 30px;
		background: #ea4335;
		color: #fff;
	}

	.namrom-mini-timeline .timeline-date--start,
	.namrom-mini-timeline .timeline-date--end {
		display: none !important;
	}
}
