/**
 * Public CSS for Snowstorms.ca Weather Engine
 * 100% Isolated, Scoped & Elementor-Friendly Stylesheet.
 *
 * All styles are strictly prefixed with .sw- to prevent bleeding into
 * or conflicting with Elementor layouts, theme typography, or third-party plugins.
 *
 * @package Snowstorm_Weather
 */

/* ==========================================================================
   CSS Custom Properties (Scoped to Snowstorm Elements)
   ========================================================================== */

[class*="sw-"] {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--sw-bg-card: rgba(255, 255, 255, 0.95);
	--sw-bg-card-dark: #1e293b;
	--sw-border: rgba(226, 232, 240, 0.9);
	--sw-border-dark: rgba(51, 65, 85, 0.8);
	--sw-text-primary: #0f172a;
	--sw-text-secondary: #64748b;
	--sw-accent-blue: #0284c7;
	--sw-accent-cyan: #06b6d4;
	--sw-accent-amber: #d97706;
	--sw-accent-red: #dc2626;
	--sw-radius-sm: 8px;
	--sw-radius-md: 14px;
	--sw-radius-lg: 20px;
	--sw-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--sw-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
	--sw-shadow-hover: 0 12px 32px -4px rgba(14, 165, 233, 0.15);
	box-sizing: border-box;
}

[class*="sw-"] *,
[class*="sw-"] *::before,
[class*="sw-"] *::after {
	box-sizing: border-box;
}

.sw-zero-padding {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ==========================================================================
   1. Hourly Forecast Carousel [weather_hourly]
   ========================================================================== */

.sw-hourly-container {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.sw-hourly-scroll {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 20px) / 3);
	gap: 10px;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
	padding: 0;
}

.sw-hourly-scroll::-webkit-scrollbar {
	height: 6px;
}

.sw-hourly-scroll::-webkit-scrollbar-track {
	background: rgba(241, 245, 249, 0.8);
	border-radius: 999px;
}

.sw-hourly-scroll::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.sw-hourly-scroll::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.sw-hourly-track,
.sw-hourly-track.sw-responsive-grid {
	display: contents;
}

.sw-hourly-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 0.85rem 0.35rem;
	background: #000000B5;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	box-shadow: var(--sw-shadow-sm);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	text-align: center;
	color: #ffffff;
}

@media (min-width: 768px) {
	.sw-hourly-scroll {
		grid-auto-columns: calc((100% - 40px) / 5);
	}
}

@media (min-width: 1025px) {
	.sw-hourly-scroll {
		grid-auto-columns: calc((100% - 70px) / 8);
	}
}

.sw-hourly-item:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: var(--sw-shadow-hover);
}

.sw-hourly-item.sw-current-hour {
	background: #000000D0;
	border-color: rgba(255, 255, 255, 0.35);
}

.sw-hourly-time {
	font-size: 0.825rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 0.2rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sw-hourly-icon-wrap.sw-icon-fit {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.15rem auto;
	padding: 0;
}

.sw-hourly-icon-wrap.sw-icon-fit .sw-hourly-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0;
	filter: none;
}

.sw-hourly-temp {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.15rem;
}

.sw-hourly-feels {
	font-size: 0.725rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
}

.sw-hourly-precip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 0.2rem;
}

.sw-hourly-precip-icon {
	color: #7dd3fc;
	flex-shrink: 0;
}

/* ==========================================================================
   2. Seven-Day Forecast Widget [weather_7day]
   ========================================================================== */

.sw-7day-container {
	width: 100%;
	margin: 1.5rem 0;
	font-family: inherit;
}

.sw-7day-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.sw-7day-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.25rem;
	background: #ffffff;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	box-shadow: var(--sw-shadow-sm);
	transition: all 0.2s ease;
}

.sw-7day-row:hover {
	transform: translateX(4px);
	border-color: #38bdf8;
	box-shadow: var(--sw-shadow-hover);
}

.sw-7day-row.sw-today-row {
	background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
	border-left: 4px solid #0284c7;
}

.sw-7day-col-day {
	width: 110px;
	display: flex;
	flex-direction: column;
}

.sw-7day-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sw-text-primary);
}

.sw-7day-date {
	font-size: 0.775rem;
	color: var(--sw-text-secondary);
}

.sw-7day-col-icon {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 140px;
}

.sw-7day-col-icon img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.sw-7day-cond-text {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--sw-text-primary);
}

.sw-7day-col-precip {
	width: 80px;
	text-align: center;
}

.sw-precip-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #0284c7;
	background: rgba(2, 132, 199, 0.08);
	padding: 3px 8px;
	border-radius: 999px;
}

.sw-precip-badge.sw-precip-none {
	background: transparent;
	opacity: 0.3;
}

.sw-7day-col-temps {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 140px;
	justify-content: flex-end;
}

.sw-temp-high {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--sw-text-primary);
	width: 36px;
	text-align: right;
}

.sw-temp-bar-bg {
	flex: 1;
	height: 6px;
	background: linear-gradient(90deg, #93c5fd 0%, #f97316 100%);
	border-radius: 999px;
	opacity: 0.75;
}

.sw-temp-low {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--sw-text-secondary);
	width: 36px;
	text-align: left;
}

/* ==========================================================================
   3. Live Search Autocomplete [weather_search]
   ========================================================================== */

.sw-search-wrapper {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0.5rem 0;
	font-family: inherit;
}

.sw-search-input-group {
	position: relative;
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 999px;
	padding: 0.4rem 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.sw-search-input-group:focus-within {
	border-color: #0284c7;
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
}

.sw-search-icon {
	display: flex;
	align-items: center;
	color: #94a3b8;
	margin-right: 0.6rem;
}

.sw-search-input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	padding: 0.5rem 0 !important;
	font-size: 0.95rem !important;
	color: var(--sw-text-primary) !important;
	outline: none !important;
	box-shadow: none !important;
}

.sw-search-input::placeholder {
	color: #94a3b8;
}

.sw-search-clear {
	background: none !important;
	border: none !important;
	font-size: 1.25rem;
	color: #94a3b8;
	cursor: pointer;
	padding: 0 0.4rem;
	line-height: 1;
}

.sw-search-clear:hover {
	color: var(--sw-text-primary);
}

.sw-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--sw-radius-md);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	max-height: 320px;
	overflow-y: auto;
	z-index: 99999;
}

.sw-search-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none !important;
	color: var(--sw-text-primary) !important;
	transition: background 0.15s ease;
	cursor: pointer;
}

.sw-search-item:last-child {
	border-bottom: none;
}

.sw-search-item:hover,
.sw-search-item.is-selected {
	background: #f0f9ff !important;
}

.sw-search-item-city {
	font-weight: 600;
	font-size: 0.95rem;
}

.sw-search-item-prov {
	font-size: 0.8rem;
	font-weight: 500;
	color: #0284c7;
	background: rgba(2, 132, 199, 0.1);
	padding: 2px 8px;
	border-radius: 999px;
}

/* ==========================================================================
   4. Alerts & Air Quality Badges [weather_alerts] & [weather_air_quality]
   ========================================================================== */

.sw-alerts-container {
	margin: 1rem 0;
	font-family: inherit;
}

.sw-alert-item {
	padding: 1rem 1.25rem;
	border-radius: var(--sw-radius-md);
	margin-bottom: 0.75rem;
	background: #fef2f2;
	border-left: 5px solid #dc2626;
	color: #991b1b;
}

.sw-alert-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.sw-alert-title {
	font-size: 1rem;
	font-weight: 700;
}

.sw-alert-headline {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0.25rem 0;
}

.sw-alert-desc {
	font-size: 0.85rem;
	line-height: 1.45;
	margin: 0.25rem 0 0;
	opacity: 0.9;
}

.sw-no-alerts {
	display: inline-flex;
}

.sw-alert-none {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #166534;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
}

.sw-air-quality {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: inherit;
}

.sw-air-quality.aqi-good {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.sw-air-quality.aqi-moderate {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.sw-air-quality.aqi-sensitive,
.sw-air-quality.aqi-unhealthy {
	background: #fff1f2;
	color: #9f1239;
	border: 1px solid #fecdd3;
}

.sw-aqi-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* ==========================================================================
   5. Geolocation Banner [weather_geo_banner]
   ========================================================================== */

.sw-geo-banner {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff;
	padding: 0.75rem 1.25rem;
	border-radius: var(--sw-radius-md);
	margin: 1rem 0;
	font-family: inherit;
	box-shadow: var(--sw-shadow-md);
}

.sw-geo-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.sw-geo-text {
	font-weight: 500;
	font-size: 0.95rem;
	flex: 1;
}

.sw-geo-btn {
	color: #0369a1 !important;
	background: #ffffff !important;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.sw-geo-btn:hover {
	background: #f0f9ff !important;
	transform: translateX(2px);
}

/* ==========================================================================
   6. Single Municipality Weather Dashboard Template
   ========================================================================== */

.sw-municipality-single-main {
	padding: 2.5rem 1.5rem 5rem;
	background: transparent;
	width: 100%;
}

.sw-single-container {
	max-width: 1060px;
	margin: 0 auto;
}

.sw-single-weather-dashboard {
	font-family: inherit;
	width: 100%;
	margin: 0 auto 3rem;
	color: var(--sw-text-primary);
}

.sw-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--sw-border);
}

.sw-dashboard-title {
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem 0;
	color: var(--sw-text-primary);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.sw-dashboard-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.sw-time-badge,
.sw-updated-badge {
	font-size: 0.825rem;
	font-weight: 600;
	color: #475569;
	background: #f1f5f9;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
}

.sw-header-search-wrap {
	max-width: 340px;
	width: 100%;
}

.sw-header-search-wrap .sw-search-wrapper {
	margin: 0;
	max-width: 100%;
}

.sw-dashboard-hero {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff;
	border-radius: var(--sw-radius-lg);
	padding: 2.25rem 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 12px 32px rgba(2, 132, 199, 0.22);
}

.sw-hero-temp-box {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	flex-wrap: wrap;
}

.sw-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-hero-temp {
	font-size: 3.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.sw-hero-details {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sw-hero-condition {
	font-size: 1.35rem;
	font-weight: 700;
}

.sw-hero-feels,
.sw-hero-highlow {
	font-size: 0.95rem;
	opacity: 0.9;
}

.sw-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.sw-metric-card {
	background: #ffffff;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	padding: 1.15rem 1.25rem;
	box-shadow: var(--sw-shadow-sm);
	font-size: 0.95rem;
}

.sw-metric-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sw-text-secondary);
	margin-bottom: 0.35rem;
	font-weight: 700;
}

.sw-metric-val {
	font-weight: 700;
	color: var(--sw-text-primary);
	font-size: 1.1rem;
	display: block;
}

.sw-dashboard-section {
	margin-bottom: 2.5rem;
}

.sw-dashboard-section h3 {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--sw-text-primary);
}

.sw-dashboard-astro {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.sw-astro-card {
	background: #f8fafc;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	padding: 1.15rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
}

/* ==========================================================================
   7. Post Meta Cleanup (Ensures theme site header and navigation stay 100% visible)
   ========================================================================== */

.single-municipality .wp-block-post-title,
.single-municipality p:has(.wp-block-post-author-name),
.single-municipality div:has(> .wp-block-post-author-name),
.single-municipality .wp-block-group:has(.wp-block-post-author-name),
.single-municipality .entry-meta,
.single-municipality .post-meta,
.single-municipality .wp-block-post-author,
.single-municipality .wp-block-post-author-name,
.single-municipality .wp-block-post-date,
.single-municipality .wp-block-post-terms {
	display: none !important;
}

/* ==========================================================================
   8. Revisions Phase: Hero Card, 5 Metric Cards, 5-Day Preview, Radar, Subpages
   ========================================================================== */

/* Combined Hero Weather Card */
.sw-hero-card {
	display: inline-flex;
	align-items: center;
	gap: 1.15rem;
	padding: 0.75rem 1.1rem;
	background: #000000B5;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--sw-radius-sm);
	color: #ffffff;
	max-width: fit-content;
}

.sw-hero-temp-col {
	display: flex;
	align-items: center;
}

.sw-hero-temp-value {
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.sw-hero-icon-col {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-hero-icon-img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.sw-hero-meta-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sw-hero-condition {
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
}

.sw-hero-feels {
	font-size: 0.8rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}

.sw-hero-highlow {
	font-size: 0.8rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}

/* Section 3: 5 Styled Detail Cards */
.sw-dashboard-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 1.5rem 0;
}

.sw-metric-card-box {
	background: #000000B5;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	padding: 14px 18px;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sw-metric-sub-row {
	display: flex;
	flex-direction: column;
}

.sw-metric-sub-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.65);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
}

.sw-metric-sub-val {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

/* Section 4: 5-Day Minimalist Forecast Preview */
.sw-5day-container {
	background: #000000B5;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	padding: 12px 18px;
	color: #ffffff;
	height: 270px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
}

.sw-5day-list {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}

.sw-5day-row {
	display: flex;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-5day-row:last-child {
	border-bottom: none;
}

.sw-5day-col-day {
	width: 65px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
}

.sw-5day-col-icon {
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-5day-col-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.sw-5day-col-temps {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sw-5day-temp-low {
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	width: 32px;
	text-align: right;
}

.sw-5day-bar-track {
	flex: 1;
	height: 5px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 999px;
	position: relative;
	overflow: hidden;
}

.sw-5day-bar-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 50%, #f59e0b 100%);
	border-radius: 999px;
}

.sw-5day-temp-high {
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
	width: 32px;
	text-align: left;
}

/* Radar Map Widget */
.sw-radar-container {
	border-radius: 0 !important;
	overflow: hidden;
	box-shadow: none;
	border: 0 !important;
	background: #0b1220;
}

.sw-radar-container iframe {
	border: 0 !important;
	border-radius: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	transform: scale(1.06);
	transform-origin: center center;
}

/* Subpage Navigation Menu Tabs */
.sw-nav-menu-bar {
	display: inline-flex;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.sw-nav-menu-list {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sw-nav-item .sw-nav-link {
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.sw-nav-item .sw-nav-link:hover,
.sw-nav-item .sw-nav-link:focus {
	background: rgba(0, 0, 0, 0.16);
	border-color: rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
}

.sw-nav-item.sw-nav-active .sw-nav-link {
	background: #00000029 !important;
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff !important;
}

.sw-nav-divider {
	color: rgba(255, 255, 255, 0.4);
	font-weight: 300;
	user-select: none;
}

/* Subpages Layouts */
.sw-subpage-wrap {
	width: 100%;
	margin: 1.5rem 0 3rem;
}

.sw-subpage-header {
	margin-bottom: 1.5rem;
}

.sw-subpage-title {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
	color: var(--sw-text-primary);
}

.sw-subpage-hourly-list {
	background: #ffffff;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	overflow: hidden;
	box-shadow: var(--sw-shadow-sm);
}

.sw-subpage-hourly-header-row {
	display: grid;
	grid-template-columns: 85px 1.5fr 80px 90px 90px 1.2fr 80px;
	padding: 12px 16px;
	background: #f8fafc;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sw-text-secondary);
	border-bottom: 1px solid var(--sw-border);
}

.sw-subpage-hourly-row {
	display: grid;
	grid-template-columns: 85px 1.5fr 80px 90px 90px 1.2fr 80px;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.95rem;
	transition: background 0.15s ease;
}

.sw-subpage-hourly-row:last-child {
	border-bottom: none;
}

.sw-subpage-hourly-row:hover {
	background: #f8fafc;
}

.sw-subpage-hourly-row.sw-hourly-row-now {
	background: #f0f9ff;
}

.sw-subpage-hourly-row .sw-col-cond {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sw-weekly-day-card {
	background: #ffffff;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--sw-shadow-sm);
}

.sw-weekly-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.sw-weekly-day-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--sw-text-primary);
}

.sw-weekly-day-date {
	font-size: 0.85rem;
	color: var(--sw-text-secondary);
}

.sw-weekly-day-summary {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sw-weekly-highlow {
	display: block;
	font-size: 1rem;
	color: var(--sw-text-primary);
}

.sw-weekly-cond {
	font-size: 0.85rem;
	color: var(--sw-text-secondary);
}

.sw-weekly-periods-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.sw-period-box {
	background: #f8fafc;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-sm);
	padding: 12px 10px;
	text-align: center;
}

.sw-period-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sw-text-secondary);
	margin-bottom: 6px;
}

.sw-period-icon img {
	width: 40px;
	height: 40px;
	margin: 0 auto 6px;
	display: block;
}

.sw-period-temp {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sw-text-primary);
}

.sw-period-feels {
	font-size: 0.75rem;
	color: var(--sw-text-secondary);
	margin-bottom: 4px;
}

.sw-period-cond {
	font-size: 0.8rem;
	color: var(--sw-text-secondary);
	margin-bottom: 4px;
}

.sw-period-precip {
	font-size: 0.75rem;
	font-weight: 600;
	color: #0284c7;
}

.sw-dashboard-split-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

/* Elementor section visibility: add CSS class sw-only-today / sw-only-hourly / sw-only-weekly */
body.sw-weather-view-today .sw-only-hourly,
body.sw-weather-view-today .sw-only-weekly,
body.sw-weather-view-hourly .sw-only-today,
body.sw-weather-view-hourly .sw-only-weekly,
body.sw-weather-view-weekly .sw-only-today,
body.sw-weather-view-weekly .sw-only-hourly {
	display: none !important;
}

body.elementor-editor-active .sw-only-today,
body.elementor-editor-active .sw-only-hourly,
body.elementor-editor-active .sw-only-weekly {
	display: block !important;
}

.elementor-element.sw-view-hidden {
	display: none !important;
}

/* Shared Elementor Today template: hide Today widgets when Hourly/Weekly auto-pages render */
body.sw-auto-subpage.sw-weather-view-hourly .sw-hero-card,
body.sw-auto-subpage.sw-weather-view-hourly .sw-metric-card-box,
body.sw-auto-subpage.sw-weather-view-hourly .sw-hourly-container,
body.sw-auto-subpage.sw-weather-view-hourly .sw-5day-container,
body.sw-auto-subpage.sw-weather-view-hourly .sw-radar-container,
body.sw-auto-subpage.sw-weather-view-hourly .sw-7day-container,
body.sw-auto-subpage.sw-weather-view-hourly .sw-dashboard-cards-grid,
body.sw-auto-subpage.sw-weather-view-hourly .sw-dashboard-hero-section,
body.sw-auto-subpage.sw-weather-view-hourly .sw-dashboard-section,
body.sw-auto-subpage.sw-weather-view-hourly .sw-dashboard-split-row,
body.sw-auto-subpage.sw-weather-view-weekly .sw-hero-card,
body.sw-auto-subpage.sw-weather-view-weekly .sw-metric-card-box,
body.sw-auto-subpage.sw-weather-view-weekly .sw-hourly-container,
body.sw-auto-subpage.sw-weather-view-weekly .sw-5day-container,
body.sw-auto-subpage.sw-weather-view-weekly .sw-radar-container,
body.sw-auto-subpage.sw-weather-view-weekly .sw-7day-container,
body.sw-auto-subpage.sw-weather-view-weekly .sw-dashboard-cards-grid,
body.sw-auto-subpage.sw-weather-view-weekly .sw-dashboard-hero-section,
body.sw-auto-subpage.sw-weather-view-weekly .sw-dashboard-section,
body.sw-auto-subpage.sw-weather-view-weekly .sw-dashboard-split-row {
	display: none !important;
}

@media (max-width: 900px) {
	.sw-dashboard-split-row {
		grid-template-columns: 1fr;
	}
	.sw-weekly-periods-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.sw-subpage-hourly-header-row,
	.sw-subpage-hourly-row {
		grid-template-columns: 70px 1.2fr 65px 75px;
	}
	.sw-col-feels,
	.sw-col-wind,
	.sw-col-hum {
		display: none;
	}
}
