.timeline-horizontal-container {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	padding: 40px 0 60px;
	margin-top: 30px;
	border-bottom: 2px solid #ccc;
	overflow-x: auto;
	scroll-behavior: smooth;
}

.timeline-horizontal-item {
	position: relative;
	text-align: center;
	min-width: 150px;
}

.timeline-dot {
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 14px;
	height: 14px;
	background-color: #0077ff;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #0077ff;
}

.timeline-content {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 10px;
	margin-bottom: 20px;
	display: inline-block;
}

.timeline-date {
	font-size: 0.8em;
	color: #888;
	margin-bottom: 5px;
}
body {
	font-family: system-ui, sans-serif;
}
.axis path,
.axis line {
	stroke: #ccc;
}
.snow-band {
	fill: rgba(180, 220, 255, 0.35);
}
.freezing-band {
	fill: rgba(200, 200, 255, 0.25);
}
.temp-line {
	fill: none;
	stroke-width: 2;
}
.legend rect {
	stroke-width: 0;
}
.hover-overlay {
	fill: transparent;
	cursor: pointer;
}
.tooltip {
	position: absolute;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	border-radius: 4px;
	pointer-events: none;
	font-size: 13px;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 0.15s;
}
.hover-line {
	stroke: #333;
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
	opacity: 0;
}

#map {
	height: 80vh;
	width: 100%;
}
.content-section {
	padding: 20px;
}
.search-box {
	margin-bottom: 10px;
}
#working-map {
	height: 400px;
	width: 100%;
}
#tree-graph {
	width: 1000px;
	height: 900px;
	border: 1px solid #ccc;
}
#3d-graph {
	width: 100vw;
	height: 100vh;
	display: block;
}
.hint {
	position: absolute;
	top: 250px;
	left: 12px;
	background: rgba(255, 255, 255, 0.9);
	padding: 6px 10px;
	border-radius: 6px;
	font-family: sans-serif;
	font-size: 13px;
	pointer-events: none;
}
#login-screen {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f8f8;
	z-index: 9999;
}

@media print {
	body * {
		visibility: hidden;
	}

	#map-wrapper,
	#map-wrapper * {
		visibility: visible;
	}

	#map-wrapper {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	#map {
		height: 100vh !important;
	}
}

.circle-label {
	white-space: pre-line;
	text-align: center;
	line-height: 1.2;
}

.device-gps {
	color: #2ecc71 !important;
	font-family: monospace;
	font-size: 0.8rem;
}
.device-notehub {
	color: #5dade2 !important;
	font-family: monospace;
	font-size: 0.8rem;
}
#device-list a.uk-active {
	font-weight: bold;
	text-decoration: underline;
}
#tree-graph {
	width: 100%;
	height: calc(100vh - 120px);
	overflow: hidden;
}

/* ─────────────────────────────────────────────
   Notes Grid
───────────────────────────────────────────── */

.property-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.notes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.note-item {
	position: relative;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease,
		opacity 0.3s ease,
		outline 0.2s ease;
}

.note-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.note-cell {
	width: 100%;
}

.note-media .note-img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.note-caption {
	font-size: 11px;
	color: #666;
	padding: 6px 8px 4px;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.note-text-only {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 12px;
	background: #f8f8f8;
}

.note-pdf {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	background: #f0f4ff;
	cursor: pointer;
	gap: 6px;
	font-size: 13px;
	color: #3a5bbf;
}

.note-pdf-icon {
	font-size: 28px;
}

.note-actions {
	display: flex;
	justify-content: flex-end;
	gap: 2px;
	padding: 4px 6px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

/* ─────────────────────────────────────────────
   Timeline Date Highlighting
───────────────────────────────────────────── */

.note-highlight {
	outline: 3px solid #1e87f0;
	outline-offset: -2px;
	box-shadow: 0 0 0 4px rgba(30, 135, 240, 0.18);
	transform: translateY(-2px);
	z-index: 1;
}

.note-dimmed {
	opacity: 0.28;
	filter: grayscale(40%);
}

.timeline-date-card {
	cursor: pointer;
	user-select: none;
	transition:
		background 0.15s,
		color 0.15s;
	padding: 10px 14px;
}

.timeline-date-card:hover {
	background: #eaf3ff !important;
	color: #1e87f0;
}

.timeline-date-active {
	background: #1e87f0 !important;
	color: #fff !important;
}

.timeline-date-active strong {
	color: #fff;
}
.graph-btn--active {
	background: #1e87f0;
	color: #fff;
	border-color: #1e87f0;
}
