/* Weather Modal Tabs */
.weather-tabs {
	display: flex;
	border-bottom: 2px solid #e6e6e6;
	background: #f8f9fa;
	flex-shrink: 0;
	flex-wrap: wrap;
	padding: 0 20px;
}

.weather-tab-button {
	background: none;
	border: none;
	padding: 12px 16px;
	cursor: pointer;
	font-size: 0.95rem;
	color: #666;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
	white-space: nowrap;
	font-weight: 500;
}

.weather-tab-button:hover {
	color: #0b6efd;
	background: rgba(11, 110, 253, 0.05);
}

.weather-tab-button.active {
	color: #0b6efd;
	border-bottom-color: #0b6efd;
}

/* Weather Timeline */
.weather-timeline {
	padding: 30px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 20px;
}

.weather-timeline-legend {
	display: flex;
	gap: 30px;
	margin-bottom: 20px;
	padding: 15px 0;
	border-bottom: 2px solid #e6e6e6;
}

.weather-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
}

.weather-legend-point {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.weather-legend-point.sky {
	background: #0b6efd;
}

.weather-legend-point.sun {
	background: linear-gradient(135deg, #ffc107, #ff9800);
}

.weather-legend-point.flight {
	background: #722f2f;
}

.weather-legend-point.dji {
	background: #2d5016;
}

.weather-legend-label {
	color: #333;
}

.weather-flight-time-rectangle {
	position: absolute;
	top: 10%;
	height: 80%;
	background: rgba(114, 47, 47, 0.3);
	border: 2px solid #722f2f;
	border-radius: 12px;
	z-index: 5;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(114, 47, 47, 0.2);
}

.weather-flight-time-rectangle:hover {
	background: rgba(114, 47, 47, 0.4);
	box-shadow: 0 4px 12px rgba(114, 47, 47, 0.3);
}

.weather-flight-time-tooltip {
	position: absolute;
	top: -32px;
	left: 50%;
	transform: translateX(-50%);
	background: #722f2f;
	color: white;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	box-shadow: 0 2px 8px rgba(114, 47, 47, 0.3);
}

.weather-flight-time-rectangle:hover .weather-flight-time-tooltip {
	opacity: 1;
}

.weather-dji-flight-time-rectangle {
	position: absolute;
	top: 10%;
	height: 80%;
	background: rgba(45, 80, 22, 0.3);
	border: 2px solid #2d5016;
	border-radius: 12px;
	z-index: 5;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(45, 80, 22, 0.2);
}

.weather-dji-flight-time-rectangle:hover {
	background: rgba(45, 80, 22, 0.4);
	box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.weather-dji-flight-time-tooltip {
	position: absolute;
	top: -32px;
	left: 50%;
	transform: translateX(-50%);
	background: #2d5016;
	color: white;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.weather-dji-flight-time-rectangle:hover .weather-dji-flight-time-tooltip {
	opacity: 1;
}

.weather-timeline-track {
	position: relative;
	height: 60px;
	background: #e6e6e6;
	border-radius: 8px;
	margin: 0;
	display: flex;
	align-items: center;
}

.weather-timeline-track::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #0b6efd 0%, #0dcaf0 100%);
	transform: translateY(-50%);
	border-radius: 1px;
}

.weather-timeline-point {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	background: #0b6efd;
	border: 3px solid white;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(11, 110, 253, 0.3);
	z-index: 10;
}

.weather-timeline-point:hover {
	width: 20px;
	height: 20px;
	transform: translate(-50%, -50%) scale(1.2);
	box-shadow: 0 4px 12px rgba(11, 110, 253, 0.5);
}

.weather-timeline-point[data-type="sun"] {
	background: linear-gradient(135deg, #ffc107, #ff9800);
}

.weather-timeline-point[data-type="sun"]:hover {
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.weather-timeline-label {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	border: 1px solid #0b6efd;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #0b6efd;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	z-index: 20;
}

.weather-timeline-point:hover .weather-timeline-label {
	opacity: 1;
}

/* Weather Tab Content */
.weather-tab-content {
	display: none;
	padding: 20px;
}

.weather-tab-content.active {
	display: block;
}

/* Weather Tab Pane */
.weather-tab-pane {
	display: none;
}

.weather-tab-pane.active {
	display: block;
}

/* Weather Images Grid with Hover Effects */
.weather-images-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.weather-image-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
	perspective: 1000px;
}

.weather-image-wrapper {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e6e6e6;
	position: relative;
}

.weather-image-hover {
	transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.weather-image-hover:hover {
	transform: scale(1.08) translateY(-8px);
	box-shadow: 0 12px 24px rgba(11, 110, 253, 0.25);
	border-color: #0b6efd;
	z-index: 100;
}

.weather-image-hover:hover img {
	transform: scale(1.05);
	filter: brightness(1.05);
}

.weather-image-hover.weather-image-active {
	transform: scale(1.12) translateY(-12px);
	box-shadow: 0 16px 32px rgba(11, 110, 253, 0.4);
	border-color: #0b6efd;
	border-width: 3px;
	z-index: 101;
}

.weather-image-hover.weather-image-active img {
	transform: scale(1.08);
	filter: brightness(1.1);
}

.weather-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.weather-image-wrapper img:hover {
	cursor: zoom-in;
}

.weather-image-time {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0b6efd;
	transition: all 0.2s ease;
}

.weather-image-item:hover .weather-image-time {
	color: #0056b3;
	font-size: 0.95rem;
}

.weather-image-type {
	font-size: 0.8rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.weather-image-item:hover .weather-image-type {
	color: #0b6efd;
}

/* Image Popup */
#weather-image-popup {
	display: none;
}

#weather-image-popup.active {
	display: block;
}

.weather-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.weather-popup-content {
	background: white;
	border-radius: 12px;
	padding: 30px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: flex;
	flex-direction: column;
	gap: 15px;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.weather-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 28px;
	font-weight: bold;
	color: #888;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.weather-popup-close:hover {
	color: #222;
	background: #e9ecef;
}

.weather-popup-image-container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 60vh;
	overflow: hidden;
	border-radius: 8px;
}

.weather-popup-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: 60vh;
}

.weather-popup-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	text-align: center;
}

.weather-popup-type {
	font-size: 1rem;
	font-weight: 700;
	color: #0b6efd;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex: 1;
}

.weather-popup-content[data-type="sun"] .weather-popup-type {
	background: linear-gradient(135deg, #ffc107, #ff9800);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.weather-popup-time {
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	flex: 1;
}

/* Sky and Sun Images Organized */
.weather-images-section {
	margin-bottom: 30px;
	animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.weather-images-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border-left: 4px solid #0b6efd;
	padding-left: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.weather-images-section-title i {
	font-size: 1.3rem;
	color: #0b6efd;
}

/* No Data Message */
.weather-no-data {
	padding: 60px 20px;
	text-align: center;
	color: #999;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 8px;
	margin-top: 20px;
	border: 2px dashed #e6e6e6;
}

.weather-no-data p {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.weather-images-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 15px;
	}

	.weather-image-hover:hover {
		transform: scale(1.05) translateY(-6px);
	}
}

@media (max-width: 768px) {
	.weather-images-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 12px;
	}

	.weather-tabs {
		padding: 0 10px;
	}

	.weather-tab-button {
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	.weather-timeline {
		padding: 20px 10px;
	}

	.weather-timeline-track {
		height: 50px;
	}

	.weather-timeline-label {
		font-size: 0.7rem;
		bottom: -26px;
	}

	.weather-image-hover:hover {
		transform: scale(1.03) translateY(-4px);
	}

	.weather-images-section-title {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.weather-images-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.weather-image-item {
		gap: 8px;
	}

	.weather-timeline-track {
		height: 40px;
		margin: 0 -10px;
		border-radius: 4px;
	}

	.weather-timeline-point {
		width: 12px;
		height: 12px;
		border-width: 2px;
	}

	.weather-timeline-point:hover {
		width: 16px;
		height: 16px;
	}

	.weather-images-section-title {
		font-size: 0.9rem;
	}
}
