/**
 * xWeather Maps - Frontend Styles
 */

/* Map Container */
.xweather-map-container {
	position: relative;
	width: 100%;
	height: 800px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f5f5;
}

/* Loading State */
.xweather-map-container.loading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	animation: xwm-spin 1s linear infinite;
	z-index: 1000;
}

@keyframes xwm-spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom Forecast Button */
.xwm-forecast-button {
	display: inline-block;
	padding: 8px 16px;
	margin: 10px 0;
	background: #0078d4;
	color: white !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.xwm-forecast-button:hover {
	background: #106ebe;
	color: white !important;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

/* Info Panel Customizations */
.aeris-interactive-map .panel-info {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
}

.aeris-interactive-map .panel-info .panel-content {
	padding: 15px;
}

/* Layer Panel Customizations */
.aeris-interactive-map .panel-layers {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
}

.aeris-interactive-map .panel-layers .layer-button {
	transition: all 0.2s ease;
}

.aeris-interactive-map .panel-layers .layer-button:hover {
	transform: translateX(2px);
}

/* Search Panel Customizations */
.aeris-interactive-map .panel-search input {
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 8px 12px;
	font-size: 14px;
}

.aeris-interactive-map .panel-search input:focus {
	outline: none;
	border-color: #0078d4;
	box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* Legend Panel Customizations */
.aeris-interactive-map .panel-legends {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 4px;
	padding: 10px;
}

/* Timeline Panel Customizations */
.aeris-interactive-map .panel-timeline {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
	.xweather-map-container {
		height: 400px;
	}
	
	.aeris-interactive-map .panel-info {
		max-width: 90%;
	}
	
	.aeris-interactive-map .panel-layers {
		max-width: 200px;
	}
}

@media (max-width: 480px) {
	.xweather-map-container {
		height: 300px;
		border-radius: 0;
	}
	
	.aeris-interactive-map .panel-info {
		max-width: 100%;
		left: 0 !important;
		right: 0 !important;
		transform: none !important;
	}
	
	.xwm-forecast-button {
		display: block;
		text-align: center;
		margin: 10px 0;
	}
}

/* Print Styles */
@media print {
	.aeris-interactive-map .panel-layers,
	.aeris-interactive-map .panel-search,
	.aeris-interactive-map .panel-timeline {
		display: none !important;
	}
}

/* Accessibility Improvements */
.xweather-map-container:focus-within {
	outline: 2px solid #0078d4;
	outline-offset: 2px;
}

.aeris-interactive-map button:focus,
.aeris-interactive-map a:focus,
.aeris-interactive-map input:focus {
	outline: 2px solid #0078d4;
	outline-offset: 2px;
}

/* Dark Mode Support (if your theme supports it) */
@media (prefers-color-scheme: dark) {
	.xweather-map-container {
		border-color: #444;
		background: #222;
	}
	
	.aeris-interactive-map .panel-info,
	.aeris-interactive-map .panel-layers,
	.aeris-interactive-map .panel-legends,
	.aeris-interactive-map .panel-timeline {
		background: rgba(30, 30, 30, 0.95);
		color: #fff;
	}
	
	.aeris-interactive-map .panel-search input {
		background: #333;
		border-color: #555;
		color: #fff;
	}
}

/*
Additional styles for Local Weather
 */

.circle {
	border: 2px solid;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 22px;
	height: 44px;
	width: 44px;
}

.heating {
	color: red;
	border-color: red;
}

.cooling {
	color: blue;
	border-color: blue;
}

.gray {
	border-color: blue;
	color: darkgray;
}

.light-gray {
	color: #EEEEEE;
}

.degree-days__container {
	flex-direction: column;
}

/* .degree-days__row {
    display: flex;
    align-items: center;
    padding: 6px 0 6px 0;
} */

.w-100 {
	width: 100%;
}

.ml-auto {
	margin-left: auto;
}

.mb-1 {
	margin-bottom: 6px;
}

.mb-3 {
	margin-bottom: 20px;
}

.mr-1 {
	margin-right: 6px;
}

.mr-2 {
	margin-right: 12px;
}

.mr-3 {
	margin-right: 20px;
}

hr {
	margin: 10px 0 10px 0;
}

.degree-days__totals-container {
	display: flex;
}

.font-weight-bold {
	font-weight: 700;
}

.font-weight-light {
	font-weight: 400;
}

.font-size-normal {
	font-size: 16px;
}

.font-size-large {
	font-size: 20px;
}

.degree-days__dates {
	height: 32px;
}

.degree-days__dd-title {
	height: 42px;
}

.degree-days__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0px;
	gap: 4px;
	width: 42.25px;
	height: 42px;
}

.degree-days__rect {
	height: 22px;
	width: 100%;
}

.degree-days__temp {
	font-size: 14px;
	font-weight: 700;
}

.degree-days__temp--dark {
	color: #000000
}

.degree-days__temp--light {
	color: #fff
}

.degree-days__dates-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 0px;
	width: 42.25px;
	height: 32px;
	text-align: center;
	font-size: 14px;
	font-weight: 400;
}

.degree-days__dates-cell--light {
	color: #fff;
}

.degree-days__dates-cell--dark {
	color: #777;
}

.degree-days__row {
	display: flex;
	align-items: flex-start;
	padding: 0px;
	gap: 2px;
	width: 100%;
	margin-bottom: 6px;
}

.degree-days__total {
	border-top: 1px solid #CCCCCC;
	gap: 81px;
	justify-content: space-between;
	margin-top: 22px;
	margin: 22px 0 20px 0;
	padding: 8px 0px 0px;
}

.degree-days__dates-month {
	flex: none;
	order: 0;
	flex-grow: 0;
}

.degree-days__dates-day {
	flex: none;
	order: 1;
	flex-grow: 0;
}

.degree-days__legend {
	display: flex;
	flex-direction: column;
	color: #999999;
	font-size: 12px;
	line-height: 16px;
	font-weight: 400;
}

.degree-days__legend--light {
	color: #fff;
}

.degree-days__legend--dark {
	color: #999999;
}

.demo-list-container {
	min-height: 140px;
}

.shadow {
	position: absolute;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 80px;
	pointer-events: none;
}

.shadow--top {
	top: 0;
	background: -webkit-linear-gradient(270deg, #14181Ad9, transparent);
	background: linear-gradient(180deg, #14181Ad9, transparent);
	opacity: 0;
}

.shadow--bottom {
	bottom: 0;
	background: -webkit-linear-gradient(90deg, #14181Ad9, transparent);
	background: linear-gradient(0deg, #14181Ad9, transparent);
}

.forecast-row {
	display: flex;
	justify-content: space-between;
}

.forecast-row__column {
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 6px;
	box-sizing: border-box;
}

.w-15 {
	width: 15%;
}

.w-25 {
	width: 25%;
}

.w-20 {
	width: 20%;
}

.w-40 {
	width: 40%;
}