.vt-app {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 100%;
}

.vt-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vt-field {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 4px;
	min-width: 180px;
}

.vt-field select {
	padding: 6px 8px;
}

.vt-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.vt-stat {
	background: #f5f5f5;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	min-width: 100px;
	padding: 8px 12px;
}

.vt-stat span {
	color: #666;
	font-size: 11px;
	text-transform: uppercase;
}

.vt-stat strong {
	font-size: 18px;
}

.vt-map {
	border-radius: 6px;
	height: 520px;
	width: 100%;
}

.vt-popup {
	font-size: 13px;
	line-height: 1.5;
}

.vt-popup-media {
	max-width: 220px;
}

.vt-popup-thumb {
	border-radius: 4px;
	display: block;
	margin-bottom: 6px;
	max-width: 100%;
}

.vt-icon {
	align-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.4 );
	color: #fff;
	display: flex;
	font-size: 13px;
	font-weight: bold;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.vt-icon-start {
	background: #16a34a;
}

.vt-icon-end {
	background: #dc2626;
}

.vt-icon-photo {
	background: #2563eb;
	font-size: 14px;
}

.vt-icon-video {
	background: #7c3aed;
	font-size: 12px;
}

.vt-lightbox {
	align-items: center;
	background: rgba( 0, 0, 0, 0.85 );
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 100000;
}

.vt-lightbox[hidden] {
	display: none;
}

.vt-lightbox-inner {
	max-width: 90vw;
	position: relative;
	text-align: center;
}

.vt-lightbox-content img,
.vt-lightbox-content video {
	max-height: 80vh;
	max-width: 90vw;
}

.vt-lightbox-meta {
	color: #eee;
	font-size: 13px;
	margin-top: 10px;
}

.vt-lightbox-close {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	position: absolute;
	right: -10px;
	top: -36px;
}

.vt-lightbox-prev,
.vt-lightbox-next {
	background: rgba( 255, 255, 255, 0.15 );
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 32px;
	height: 48px;
	line-height: 1;
	position: fixed;
	top: 50%;
	transform: translateY( -50% );
	width: 48px;
	z-index: 100001;
}

.vt-lightbox-prev:hover,
.vt-lightbox-next:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.vt-lightbox-prev {
	left: 24px;
}

.vt-lightbox-next {
	right: 24px;
}

.vt-lightbox-counter {
	color: #ccc;
	font-size: 12px;
	margin-top: 6px;
	text-align: center;
}

/* ---------------------------------------------------------------------
   Landing screen
--------------------------------------------------------------------- */

.vt-landing h2 {
	margin-bottom: 12px;
}

.vt-landing-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
}

.vt-landing-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
	padding: 20px;
	text-align: left;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.vt-landing-card:hover {
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -2px );
}

.vt-landing-card h3 {
	margin: 0 0 8px;
}

.vt-landing-card p {
	color: #555;
	font-size: 14px;
	margin: 0;
}

.vt-view[hidden] {
	display: none;
}

.vt-back-to-landing {
	background: none;
	border: none;
	color: #2563eb;
	cursor: pointer;
	font-size: 13px;
	padding: 0;
}

/* ---------------------------------------------------------------------
   Live Events view
--------------------------------------------------------------------- */

.vt-live-toolbar {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.vt-live-status {
	align-items: center;
	display: flex;
	gap: 6px;
}

.vt-live-dot {
	background: #999;
	border-radius: 50%;
	display: inline-block;
	height: 10px;
	width: 10px;
}

.vt-live-dot-connecting {
	background: #d97706;
}

.vt-live-dot-connected {
	background: #16a34a;
}

.vt-live-dot-error {
	background: #dc2626;
}

.vt-radar-field input[type='range'] {
	width: 140px;
}

.vt-refresh-custom {
	margin-top: 4px;
	padding: 6px 8px;
	width: 100px;
}

.vt-live-layout {
	display: grid;
	gap: 12px;
	grid-template-columns: 240px 1fr;
}

@media ( max-width: 720px ) {
	.vt-live-layout {
		grid-template-columns: 1fr;
	}
}

.vt-live-map {
	height: 560px;
}

.vt-fleet-panel {
	background: #f9f9f9;
	border-radius: 6px;
	max-height: 560px;
	overflow-y: auto;
	padding: 12px;
}

.vt-fleet-panel h3 {
	font-size: 13px;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.vt-fleet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vt-fleet-item {
	border-bottom: 1px solid #e5e5e5;
	padding: 6px 0;
}

.vt-fleet-item label {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 13px;
	gap: 6px;
}

.vt-fleet-item-hidden {
	opacity: 0.45;
}

.vt-fleet-swatch {
	border-radius: 50%;
	display: inline-block;
	height: 10px;
	width: 10px;
}

.vt-fleet-rank {
	color: #888;
	font-size: 11px;
}

.vt-fleet-name {
	flex: 1;
}

.vt-fleet-speed {
	color: #666;
	font-variant-numeric: tabular-nums;
}

.vt-fleet-empty {
	color: #888;
	font-size: 13px;
}

/* ---------------------------------------------------------------------
   Weather
--------------------------------------------------------------------- */

.vt-weather-summary {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 8px;
}

.vt-weather-label {
	color: #666;
}

.vt-weather-chip {
	background: #eef2ff;
	border-radius: 999px;
	padding: 3px 10px;
}

.vt-weather-loading {
	color: #888;
	font-style: italic;
}

/* ---------------------------------------------------------------------
   Boat heading icon (Live Events)
--------------------------------------------------------------------- */

.vt-boat-icon {
	background: none;
	border: none;
	box-shadow: none;
}

.vt-boat-icon-rotate {
	transition: transform 0.5s linear;
}
