/**
 * Homepage Styles
 *
 * Project: Automuseums
 * Author: Synergy Marketing (info@synergymarketing.mk)
 * Version: 1.0.0
 *
 * Structure:
 * 1. CSS Variables
 * 2. Base Styles
 * 3. Hero Section
 * 4. Search Section
 * 5. Map Section
 * 6. Museums Section
 * 7. List CTA Section
 * 8. Shared Components
 * 9. Responsive (Mobile-first)
 */

/* ===========================================
   1. CSS VARIABLES
   =========================================== */
:root {
	/* Colors - Brand Palette */
	--color-brand-blue: #2563EB;
	--color-brand-blue-dark: #1D4ED8;
	--color-brand-blue-darkest: #1E40AF;
	--color-brand-blue-light: #DBEAFE;
	--color-dark-gray: #1F2937;
	--color-medium-gray: #6B7280;
	--color-light-gray: #F3F4F6;
	--color-border-gray: #E5E7EB;
	--color-white: #FFFFFF;
	--color-orange: #F59E0B;
	--color-green: #10B981;
	--color-red: #EF4444;

	/* Typography */
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Spacing */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;
	--space-20: 80px;

	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

	/* Container */
	--container-max-width: 1200px;
	--container-padding: var(--space-4);
}

@media (min-width: 1024px) {
	:root {
		--container-padding: var(--space-8);
	}
}

/* ===========================================
   2. BASE STYLES
   =========================================== */
.homepage-v2 {
	font-family: var(--font-family);
	padding: 0 !important;
	margin: 0 !important;
}

/* Remove Astra theme padding/margins from homepage */
.homepage-v2 #primary.content-area,
.homepage-v2.site-main,
#primary.content-area .homepage-v2 {
	padding: 0 !important;
	margin: 0 !important;
}

.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ===========================================
   3. HERO SECTION
   =========================================== */
.hero-section {
	position: relative;
	height: 70vh;
	min-height: 500px;
	max-height: 800px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

.hero-section__image-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-section__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-section__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
}

.hero-section__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: var(--space-6);
	max-width: 800px;
}

.hero-section__heading {
	font-family: var(--font-family);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-white);
	margin-bottom: var(--space-4);
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.hero-section__heading {
		font-size: 40px;
	}
}

@media (min-width: 1024px) {
	.hero-section__heading {
		font-size: 48px;
	}
}

.hero-section__tagline {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

@media (min-width: 768px) {
	.hero-section__tagline {
		font-size: 18px;
	}
}

@media (min-width: 1024px) {
	.hero-section__tagline {
		font-size: 20px;
	}
}

.hero-section__scroll-indicator {
	position: absolute;
	bottom: var(--space-8);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: var(--color-white);
	animation: bounce 2s infinite;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.hero-section__scroll-indicator:hover {
	opacity: 0.8;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	40% {
		transform: translateX(-50%) translateY(-10px);
	}
	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}

.hero-section__scroll-icon {
	width: 24px;
	height: 24px;
}

/* ===========================================
   4. SEARCH SECTION
   =========================================== */
.search-section {
	padding: var(--space-12) 0;
	background: var(--color-white);
}

@media (min-width: 1024px) {
	.search-section {
		padding: var(--space-16) 0;
	}
}

.search-section__heading {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-dark-gray);
	text-align: center;
	margin-bottom: var(--space-8);
}

@media (min-width: 1024px) {
	.search-section__heading {
		font-size: 30px;
	}
}

.search-section__form {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

@media (min-width: 640px) {
	.search-section__form {
		grid-template-columns: 1fr 1fr;
	}

	.search-section__input-group {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.search-section__form {
		grid-template-columns: 2fr 1fr 1fr auto;
	}

	.search-section__input-group {
		grid-column: auto;
	}
}

.search-input-wrapper {
	position: relative;
}

.search-input-wrapper__icon {
	position: absolute;
	left: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--color-medium-gray);
	pointer-events: none;
}

.search-input {
	width: 100%;
	padding: 14px var(--space-4) 14px 48px;
	font-size: 16px;
	font-family: var(--font-family);
	color: var(--color-dark-gray);
	background: var(--color-white);
	border: 1px solid var(--color-border-gray);
	border-radius: var(--radius-md);
	transition: border-color 150ms ease;
}

.search-input:focus {
	outline: none;
	border-color: var(--color-brand-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
	color: var(--color-medium-gray);
}

.filter-dropdown {
	width: 100%;
	padding: 14px var(--space-4);
	padding-right: 40px;
	font-size: 16px;
	font-family: var(--font-family);
	color: var(--color-dark-gray);
	background: var(--color-white);
	border: 1px solid var(--color-border-gray);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: border-color 150ms ease;
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>');
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

.filter-dropdown:hover {
	border-color: var(--color-brand-blue);
}

.filter-dropdown:focus {
	outline: none;
	border-color: var(--color-brand-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-section__submit-btn {
	width: 100%;
	padding: 14px var(--space-6);
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-family);
	color: var(--color-white);
	background: var(--color-brand-blue);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 150ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
}

@media (min-width: 1024px) {
	.search-section__submit-btn {
		width: auto;
	}
}

.search-section__submit-btn:hover {
	background: var(--color-brand-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.search-section__submit-btn:active {
	transform: translateY(0);
}

.search-section__submit-btn:focus {
	outline: 2px solid var(--color-brand-blue);
	outline-offset: 2px;
}

.search-section__submit-icon {
	width: 20px;
	height: 20px;
}

.search-section__advanced {
	text-align: center;
	margin-top: var(--space-4);
}

.search-section__advanced-link {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-brand-blue);
	text-decoration: none;
	transition: color 150ms ease;
}

.search-section__advanced-link:hover {
	color: var(--color-brand-blue-dark);
	text-decoration: underline;
}

/* ===========================================
   5. MAP SECTION
   =========================================== */
.map-section {
	padding: var(--space-16) 0;
	background: #fff !important;
	border-top: 6px solid var(--color-brand-blue);
	border-bottom: 6px solid var(--color-brand-blue);
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	position: relative;
}

@media (min-width: 1024px) {
	.map-section {
		padding: var(--space-20) 0;
	}
}

.map-section__heading {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-dark-gray);
	text-align: center;
	margin-bottom: var(--space-6);
	position: relative;
	display: inline-block;
	width: 100%;
}

/* Decorative underline accent */
.map-section__heading::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg,
		var(--color-brand-blue) 0%,
		var(--color-orange) 100%
	);
	border-radius: 2px;
}

@media (min-width: 768px) {
	.map-section__heading {
		font-size: 34px;
	}
}

@media (min-width: 1024px) {
	.map-section__heading {
		font-size: 40px;
	}
}

.map-section__description {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #2563eb;
	text-align: center;
	margin: var(--space-6) auto var(--space-8);
}

@media (min-width: 768px) {
	.map-section__description {
		font-size: 18px;
	}
}

.map-section__container {
	width: 100vw;
	min-height: 400px;
	overflow: hidden;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	margin-bottom: var(--space-8);
	background: var(--color-border-gray);
	position: relative;
}

@media (min-width: 768px) {
	.map-section__container {
		min-height: 500px;
	}
}

@media (min-width: 1024px) {
	.map-section__container {
		min-height: 600px;
	}
}

.map-section__cta {
	text-align: center;
}

/* ===========================================
   6. MUSEUMS SECTION
   =========================================== */
.museums-section {
	padding: var(--space-16) 0;
	background: var(--color-white);
}

@media (min-width: 1024px) {
	.museums-section {
		padding: var(--space-20) 0;
	}
}

.museums-section__heading {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-dark-gray);
	text-align: center;
	margin-bottom: var(--space-10);
}

@media (min-width: 1024px) {
	.museums-section__heading {
		font-size: 30px;
	}
}

.museums-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
	.museums-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.museums-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.museums-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--space-16);
}

.museums-grid__empty-icon {
	width: 48px;
	height: 48px;
	color: var(--color-medium-gray);
	margin: 0 auto var(--space-4);
}

.museums-grid__empty-text {
	font-size: 18px;
	color: var(--color-medium-gray);
	margin: 0;
}

.museums-section__view-all {
	text-align: center;
}

/* ===========================================
   7. LIST CTA SECTION
   =========================================== */
.list-cta-section {
	padding: var(--space-16) 0;
	background: var(--color-light-gray);
	text-align: center;
}

@media (min-width: 1024px) {
	.list-cta-section {
		padding: var(--space-20) 0;
	}
}

.list-cta-section__heading {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-dark-gray);
	margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
	.list-cta-section__heading {
		font-size: 30px;
	}
}

.list-cta-section__description {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-medium-gray);
	max-width: 600px;
	margin: 0 auto var(--space-6);
}

.list-cta-section__benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-8);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
}

@media (min-width: 640px) {
	.list-cta-section__benefits {
		flex-direction: row;
		justify-content: center;
		gap: var(--space-6);
	}
}

.list-cta-section__benefit {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-dark-gray);
	display: flex;
	align-items: center;
	justify-content: center;
}

.list-cta-section__benefit::before {
	content: "•";
	color: var(--color-brand-blue);
	font-size: 18px;
	margin-right: var(--space-2);
}

/* ===========================================
   8. SHARED COMPONENTS
   =========================================== */

/* Primary Button */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-family);
	color: var(--color-white);
	background: var(--color-brand-blue);
	border: none;
	border-radius: var(--radius-md);
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
	cursor: pointer;
	text-decoration: none;
	transition: all 150ms ease;
}

.btn-primary:hover {
	background: var(--color-brand-blue-dark);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
	transform: translateY(-2px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-primary:focus {
	outline: 2px solid var(--color-brand-blue);
	outline-offset: 2px;
}

.btn-primary__icon {
	width: 20px;
	height: 20px;
	margin-right: var(--space-2);
}

/* Secondary Link Button */
.view-all-link {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-family);
	color: var(--color-brand-blue);
	background: transparent;
	border: 2px solid var(--color-brand-blue);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: all 150ms ease;
}

.view-all-link:hover {
	background: var(--color-brand-blue-light);
	border-color: var(--color-brand-blue-dark);
}

.view-all-link:focus {
	outline: 2px solid var(--color-brand-blue);
	outline-offset: 2px;
}

/* Museum Card */
.museum-card {
	background: var(--color-white);
	border: 1px solid var(--color-border-gray);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: all 200ms ease;
}

.museum-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-brand-blue-light);
}

.museum-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.museum-card__image {
	position: relative;
	padding-bottom: 66.67%; /* 3:2 ratio */
	overflow: hidden;
	background: var(--color-light-gray);
}

.museum-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.museum-card:hover .museum-card__image img {
	transform: scale(1.05);
}

.museum-card__image-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-light-gray);
}

.museum-card__content {
	padding: var(--space-5);
}

.museum-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-dark-gray);
	margin: 0 0 var(--space-3);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.museum-card__location,
.museum-card__types {
	font-size: 14px;
	font-weight: 400;
	color: var(--color-medium-gray);
	margin: 0 0 var(--space-2);
	display: flex;
	align-items: center;
}

.museum-card__location-icon,
.museum-card__types-icon {
	width: 16px;
	height: 16px;
	margin-right: var(--space-2);
	flex-shrink: 0;
}

.museum-card__excerpt {
	font-size: 14px;
	color: var(--color-medium-gray);
	line-height: 1.5;
	margin: var(--space-3) 0 0;
}

.museum-card__meta {
	font-size: 12px;
	color: var(--color-medium-gray);
	display: flex;
	align-items: center;
	flex-direction: column;
}

/* ===========================================
   9. RESPONSIVE UTILITIES
   =========================================== */

/* Remove Astra default padding on homepage */
.homepage-v2 .ast-container {
	padding: 0;
	max-width: 100%;
}

.homepage-v2 .site-content {
	padding: 0;
}

/* Ensure full-width sections */
.homepage-v2 #primary {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Mobile optimizations */
@media (max-width: 639px) {
	.hero-section {
		min-height: 400px;
	}

	.search-section__form {
		gap: var(--space-3);
	}

	.museums-grid {
		gap: var(--space-4);
	}
}

/* Print styles */
@media print {
	.hero-section,
	.map-section,
	.list-cta-section {
		display: none;
	}

	.museums-grid {
		grid-template-columns: 1fr;
	}
}

/* ===========================================
   10. EXPLORE SECTION - COUNTER ANIMATIONS
   =========================================== */

/* Animation timing variables */
:root {
	--timing-instant: 100ms;
	--timing-fast: 200ms;
	--timing-base: 300ms;
	--timing-slow: 500ms;
	--timing-slower: 700ms;
	--ease-in: cubic-bezier(0.4, 0, 1, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
	--ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Explore Section Container */
.explore-section-wrapper {
	padding: var(--space-16) 0;
	background-color: #2563EB;
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 600ms var(--ease-out),
	            transform 600ms var(--ease-out);
}

/* Background image overlay */
.explore-section-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('../../../../uploads/2020/07/Portugalia_232j.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
}

/* Subtle pattern overlay on top of image */
.explore-section-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
}

.explore-section-wrapper.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 1024px) {
	.explore-section-wrapper {
		padding: var(--space-20) 0;
	}
}

/* Remove padding from site content for full width */
.site-content {
	padding-left: 0;
	padding-right: 0;
}

/* Remove padding from Astra container classes on homepage */
.home .ast-container,
.home .ast-container-fluid {
	padding-left: 0;
	padding-right: 0;
}

/* Override container max-width for full width section */
.explore-section-wrapper .container,
.explore-section-wrapper .ast-container,
.explore-section-wrapper .ast-container-fluid {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

.explore-section {
	max-width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	padding: 0 var(--space-6);
}

@media (min-width: 768px) {
	.explore-section {
		padding: 0 var(--space-8);
	}
}

@media (min-width: 1024px) {
	.explore-section {
		padding: 0 var(--space-12);
	}
}

/* Header Typography */
.explore-header {
	text-align: center;
	margin-bottom: var(--space-12);
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 500ms var(--ease-out),
	            transform 500ms var(--ease-out);
}

.explore-section-wrapper.is-visible .explore-header {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 100ms;
}

.explore-title {
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: var(--space-3);
	line-height: 1.2;
}

@media (min-width: 768px) {
	.explore-title {
		font-size: 34px;
	}
}

@media (min-width: 1024px) {
	.explore-title {
		font-size: 40px;
	}
}

.explore-subtitle {
	font-size: 16px;
	font-weight: 400;
	color: var(--color-white) !important;
	margin: 0 auto;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.explore-subtitle {
		font-size: 18px;
	}
}

/* Search Wrapper - Elevated Card */
.explore-search-wrapper {
	background: white;
	padding: var(--space-8);
	border-radius: var(--radius-xl);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
	            0 4px 6px -2px rgba(0, 0, 0, 0.04);
	margin-bottom: var(--space-12);
	opacity: 0;
	transform: translateY(30px) scale(0.95);
	transition: all 500ms var(--ease-out);
}

.explore-section-wrapper.is-visible .explore-search-wrapper {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: 400ms;
}

@media (min-width: 1024px) {
	.explore-search-wrapper {
		padding: var(--space-10);
	}
}

/* Focus within lift effect */
.explore-search-wrapper:focus-within {
	box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.12),
	            0 10px 10px -5px rgba(37, 99, 235, 0.08),
	            0 0 0 4px rgba(37, 99, 235, 0.1);
	transform: translateY(-2px);
}

/* Fix filter shortcode layout for homepage */
.explore-search-wrapper .museum-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: stretch;
	width: 100%;
}

/* Desktop: horizontal layout with proper wrapping */
@media (min-width: 1024px) {
	.explore-search-wrapper .museum-filters {
		flex-wrap: nowrap;
		gap: var(--space-3);
	}
}

/* Filter groups take equal space */
.explore-search-wrapper .filter-group {
	flex: 1;
	min-width: 180px;
}

/* Search input takes more space */
.explore-search-wrapper .filter-group.filter-search {
	flex: 2;
	min-width: 240px;
}

/* Button positioning and styling override */
.explore-search-wrapper .filter-submit-btn {
	flex: 0 0 auto !important;
	min-width: 120px !important;
	height: 48px !important;
	border-radius: var(--radius-md) !important;
	border: none !important;
	margin-left: 0 !important;
	position: relative !important;
	background-color: var(--color-brand-blue) !important;
	color: white !important;
}

/* Restore right border and rounded corners for connected layout */
.explore-search-wrapper .filter-group:last-of-type .filter-select {
	border-right: 1px solid var(--color-border-gray) !important;
	border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* First filter gets left rounded corners */
.explore-search-wrapper .filter-group:first-child .filter-select {
	border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* On mobile, full width with individual rounded corners */
@media (max-width: 1023px) {
	.explore-search-wrapper .filter-group {
		width: 100%;
	}

	.explore-search-wrapper .filter-select {
		border-radius: var(--radius-md) !important;
		border-right: 1px solid var(--color-border-gray) !important;
	}

	.explore-search-wrapper .filter-submit-btn {
		width: 100%;
		min-width: unset !important;
	}
}

/* Counter Stats Grid */
.explore-counters-wrapper {
	margin-top: var(--space-12);
}

/* Remove background from plugin counter section */
.explore-counters-wrapper .automuseums-counters-section {
	background: transparent;
}

.counter-stats-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-6);
}

@media (max-width: 639px) {
	.counter-stats-wrapper {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4);
	}
}

@media (max-width: 479px) {
	.counter-stats-wrapper {
		grid-template-columns: 1fr;
	}
}

/* Modern Counter Cards */
.counter-card {
	background: white;
	padding: var(--space-8) var(--space-6);
	border-radius: var(--radius-lg);
	text-align: center;
	border: 2px solid var(--color-border-gray);
	transition: all 300ms var(--ease-in-out);
	position: relative;
	overflow: hidden;
	cursor: default;
	opacity: 0;
	transform: translateY(30px);
}

/* Staggered card entrance */
.explore-section-wrapper.is-visible .counter-card:nth-child(1) {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 500ms var(--ease-out),
	            transform 500ms var(--ease-out);
	transition-delay: 600ms;
}

.explore-section-wrapper.is-visible .counter-card:nth-child(2) {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 500ms var(--ease-out),
	            transform 500ms var(--ease-out);
	transition-delay: 700ms;
}

.explore-section-wrapper.is-visible .counter-card:nth-child(3) {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 500ms var(--ease-out),
	            transform 500ms var(--ease-out);
	transition-delay: 800ms;
}

.explore-section-wrapper.is-visible .counter-card:nth-child(4) {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 500ms var(--ease-out),
	            transform 500ms var(--ease-out);
	transition-delay: 900ms;
}

/* Gradient overlay on hover */
.counter-card::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg,
		rgba(37, 99, 235, 0.1) 0%,
		rgba(59, 130, 246, 0.05) 100%);
	opacity: 0;
	transition: opacity 400ms ease;
	border-radius: var(--radius-lg);
	z-index: 0;
}

/* Animated top accent bar */
.counter-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--color-brand-blue) 50%,
		transparent 100%);
	transition: transform 400ms var(--ease-bounce);
	z-index: 1;
}

/* Hover state */
.counter-card:hover {
	border-color: var(--color-brand-blue);
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15),
	            0 10px 10px -5px rgba(37, 99, 235, 0.1),
	            0 0 0 4px rgba(37, 99, 235, 0.05);
}

.counter-card:hover::before {
	opacity: 1;
}

.counter-card:hover::after {
	transform: translateX(-50%) scaleX(1);
}

/* All children need position relative */
.counter-card > * {
	position: relative;
	z-index: 2;
}

@media (max-width: 768px) {
	.counter-card {
		padding: var(--space-6) var(--space-4);
	}
}

/* Icon Wrapper Styling */
.counter-icon-wrapper {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-5);
	background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
	border-radius: var(--radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 400ms var(--ease-in-out);
	position: relative;
	overflow: visible;
}

/* Pulsing glow effect */
.counter-icon-wrapper::before {
	content: '';
	position: absolute;
	inset: -8px;
	background: radial-gradient(circle,
		rgba(37, 99, 235, 0.3) 0%,
		transparent 70%);
	opacity: 0;
	animation: none;
	border-radius: 50%;
}

.counter-card:hover .counter-icon-wrapper::before {
	animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
	0%, 100% {
		opacity: 0;
		transform: scale(0.8);
	}
	50% {
		opacity: 1;
		transform: scale(1.2);
	}
}

/* Icon base styling */
.counter-icon {
	width: 40px;
	height: 40px;
	color: var(--color-brand-blue);
	transition: all 400ms var(--ease-bounce);
	transform-origin: center;
}

/* Hover state for wrapper */
.counter-card:hover .counter-icon-wrapper {
	background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2),
	            0 0 0 4px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
	.counter-icon-wrapper {
		width: 56px;
		height: 56px;
	}

	.counter-icon {
		width: 36px;
		height: 36px;
	}
}

/* Individual Icon Animations */

/* Museum Icon - Building Rise */
.counter-card:hover .museum-icon {
	animation: museumRise 600ms var(--ease-bounce);
}

@keyframes museumRise {
	0% {
		transform: translateY(0) scale(1);
	}
	30% {
		transform: translateY(-6px) scale(1.05);
	}
	50% {
		transform: translateY(-3px) scale(1.08);
	}
	70% {
		transform: translateY(-5px) scale(1.06);
	}
	100% {
		transform: translateY(-4px) scale(1.05);
	}
}

/* Countries Icon - Globe Wobble */
.counter-card:hover .countries-icon {
	animation: globeWobble 600ms ease;
}

@keyframes globeWobble {
	0%, 100% {
		transform: rotate(0deg) scale(1.05);
	}
	25% {
		transform: rotate(-10deg) scale(1.08);
	}
	75% {
		transform: rotate(10deg) scale(1.08);
	}
}

/* Cities Icon - Buildings Grow */
.counter-card:hover .cities-icon {
	animation: citiesGrow 500ms var(--ease-bounce);
}

@keyframes citiesGrow {
	0% {
		transform: scaleY(1) translateY(0);
	}
	30% {
		transform: scaleY(0.9) translateY(2px);
	}
	60% {
		transform: scaleY(1.15) translateY(-4px);
	}
	100% {
		transform: scaleY(1.05) translateY(-2px);
	}
}

/* Vehicle Icon - Drive Animation */
.counter-card:hover .vehicle-icon {
	animation: vehicleDrive 600ms var(--ease-bounce);
}

@keyframes vehicleDrive {
	0% {
		transform: translateX(0) scale(1);
	}
	20% {
		transform: translateX(-2px) scale(1.02) rotate(-2deg);
	}
	40% {
		transform: translateX(4px) scale(1.05) rotate(1deg);
	}
	60% {
		transform: translateX(6px) scale(1.08) rotate(-1deg);
	}
	80% {
		transform: translateX(2px) scale(1.06) rotate(1deg);
	}
	100% {
		transform: translateX(0) scale(1.05) rotate(0deg);
	}
}

/* Number Typography */
.counter-number {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-dark-gray);
	line-height: 1;
	margin-bottom: var(--space-2);
	transition: all 300ms var(--ease-bounce);
	display: inline-block;
}

.counter-card:hover .counter-number {
	transform: scale(1.1);
	color: var(--color-brand-blue);
}

@media (max-width: 768px) {
	.counter-number {
		font-size: 32px;
	}
}

/* Label Typography */
.counter-label {
	display: block;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 25px;
	font-weight: 500;
	color: #090a0c;
	line-height: 1.5;
	text-transform: capitalize;
	letter-spacing: 1px;
	transition: all 300ms ease;
}

.counter-card:hover .counter-label {
	color: var(--color-brand-blue);
	letter-spacing: 1.5px;
}

/* Plugin shortcode counter labels (automuseums-counters-section) */
.automuseums-counters-section.layout-grid .counter-label {
	color: #000000;
	font-size: 25px;
}

/* ===========================================
   11. REDUCED MOTION & ACCESSIBILITY
   =========================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.explore-section-wrapper,
	.counter-card,
	.counter-icon {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Focus states for keyboard navigation */
.counter-card:focus-visible {
	outline: 3px solid var(--color-brand-blue);
	outline-offset: 4px;
	border-color: var(--color-brand-blue);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.counter-card {
		border-width: 3px;
	}

	.counter-card:hover {
		border-color: #000;
	}
}

/* ===========================================
   12. NEWSLETTER SECTION
   =========================================== */
.newsletter-section {
	padding: var(--space-16) 0;
	background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Subtle pattern overlay */
.newsletter-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

@media (min-width: 1024px) {
	.newsletter-section {
		padding: var(--space-20) 0;
	}
}

.newsletter-section .container {
	position: relative;
	z-index: 1;
	max-width: 600px;
}

/* Email Icon */
.newsletter-section__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto var(--space-6);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.newsletter-section__icon svg {
	color: var(--color-white);
	opacity: 0.9;
}

/* Heading */
.newsletter-section__heading {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-white);
	margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
	.newsletter-section__heading {
		font-size: 32px;
	}
}

@media (min-width: 1024px) {
	.newsletter-section__heading {
		font-size: 36px;
	}
}

/* Description */
.newsletter-section__description {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: 450px;
	margin: 0 auto var(--space-8);
}

@media (min-width: 768px) {
	.newsletter-section__description {
		font-size: 18px;
	}
}

/* Form Container */
.newsletter-section__form {
	max-width: 480px;
	margin: 0 auto;
}

/* Contact Form 7 Overrides */
.newsletter-section .wpcf7 {
	margin: 0;
}

.newsletter-section .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

@media (min-width: 640px) {
	.newsletter-section .wpcf7-form {
		flex-direction: row;
		gap: var(--space-3);
	}
}

.newsletter-section .wpcf7-form p {
	margin: 0;
	flex: 1;
}

/* Email Input Field */
.newsletter-section .wpcf7-email {
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	font-family: var(--font-family);
	color: var(--color-dark-gray);
	background: var(--color-white);
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	transition: all 200ms ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newsletter-section .wpcf7-email:focus {
	outline: none;
	border-color: var(--color-orange);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
	            0 0 0 4px rgba(245, 158, 11, 0.2);
}

.newsletter-section .wpcf7-email::placeholder {
	color: var(--color-medium-gray);
}

/* Submit Button */
.newsletter-section .wpcf7-submit {
	width: 100%;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-family);
	color: #1E3A5F;
	background: var(--color-orange);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 200ms ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	white-space: nowrap;
}

@media (min-width: 640px) {
	.newsletter-section .wpcf7-submit {
		width: auto;
	}
}

.newsletter-section .wpcf7-submit:hover {
	background: #E08C00;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-section .wpcf7-submit:active {
	transform: translateY(0);
}

.newsletter-section .wpcf7-submit:focus {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

/* Response Messages */
.newsletter-section .wpcf7-response-output {
	margin: var(--space-4) 0 0 !important;
	padding: var(--space-3) var(--space-4) !important;
	border-radius: var(--radius-md) !important;
	font-size: 14px;
	text-align: center;
}

.newsletter-section .wpcf7-mail-sent-ok,
.newsletter-section .wpcf7 form.sent .wpcf7-response-output {
	background: rgba(16, 185, 129, 0.2) !important;
	border: 1px solid rgba(16, 185, 129, 0.4) !important;
	color: #A7F3D0 !important;
}

.newsletter-section .wpcf7-validation-errors,
.newsletter-section .wpcf7 form.invalid .wpcf7-response-output,
.newsletter-section .wpcf7 form.failed .wpcf7-response-output {
	background: rgba(239, 68, 68, 0.2) !important;
	border: 1px solid rgba(239, 68, 68, 0.4) !important;
	color: #FCA5A5 !important;
}

/* Validation Error on Input */
.newsletter-section .wpcf7-not-valid {
	border-color: var(--color-red) !important;
}

.newsletter-section .wpcf7-not-valid-tip {
	color: #FCA5A5;
	font-size: 13px;
	margin-top: var(--space-2);
	text-align: left;
}

/* Spinner */
.newsletter-section .wpcf7-spinner {
	margin: var(--space-3) auto 0;
}

/* Privacy Note (optional) */
.newsletter-section__privacy {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: var(--space-4);
}

.newsletter-section__privacy a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
}

.newsletter-section__privacy a:hover {
	color: var(--color-white);
}

/* ===========================================
   13. LATEST UPDATES SECTION
   =========================================== */
.updates-section {
	padding: var(--space-16) 0;
	background: var(--color-light-gray);
}

@media (min-width: 1024px) {
	.updates-section {
		padding: var(--space-20) 0;
	}
}

/* Section Header */
.updates-header {
	text-align: center;
	margin-bottom: var(--space-12);
}

.updates-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-dark-gray);
	margin-bottom: var(--space-3);
	line-height: 1.2;
	position: relative;
	display: inline-block;
}

/* Blue accent underline */
.updates-title::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--color-brand-blue);
	border-radius: 2px;
}

@media (min-width: 768px) {
	.updates-title {
		font-size: 34px;
	}
}

@media (min-width: 1024px) {
	.updates-title {
		font-size: 40px;
	}
}

.updates-subtitle {
	font-size: 16px;
	color: var(--color-medium-gray);
	margin: var(--space-6) 0 0;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.updates-subtitle {
		font-size: 18px;
	}
}

/* Three Column Grid */
.updates-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
}

@media (min-width: 768px) {
	.updates-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.updates-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-6);
		align-items: stretch;
	}
}

/* Column Card Container */
.updates-column {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	display: flex;
	flex-direction: column;
	transition: all 300ms ease;
	border: 1px solid var(--color-border-gray);
	min-height: 450px;
}

.updates-column:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--color-brand-blue-light);
}

/* Column Header */
.updates-column__header {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-4);
	border-bottom: 2px solid var(--color-border-gray);
}

.updates-column__icon {
	width: 28px;
	height: 28px;
	color: var(--color-brand-blue);
	flex-shrink: 0;
}

.updates-column__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--color-dark-gray);
	margin: 0;
	line-height: 1.3;
}

@media (min-width: 1024px) {
	.updates-column__title {
		font-size: 20px;
	}
}

/* Updates List */
.updates-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* Individual Update Card */
.update-card {
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: all 200ms ease;
	border: 1px solid var(--color-border-gray);
}

.update-card:hover {
	transform: translateX(4px);
	border-color: var(--color-brand-blue-light);
	box-shadow: var(--shadow-sm);
}

.update-card__link {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3);
	text-decoration: none;
	color: inherit;
}

.update-card__image {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--color-light-gray);
}

.update-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.update-card__content {
	flex: 1;
	min-width: 0;
}

.update-card__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-dark-gray);
	margin: 0 0 var(--space-1);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 200ms ease;
}

.update-card:hover .update-card__title {
	color: var(--color-brand-blue);
}

.update-card__date,
.update-card__location {
	font-size: 12px;
	color: var(--color-medium-gray);
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

.update-card__location svg {
	color: var(--color-brand-blue);
}

/* Column CTA Button */
.updates-column__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-5);
	padding: var(--space-3) var(--space-5);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-brand-blue);
	background: var(--color-white);
	border: 2px solid var(--color-brand-blue);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: all 200ms ease;
}

.updates-column__cta:hover {
	background: var(--color-brand-blue);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.updates-column__cta svg {
	transition: transform 200ms ease;
}

.updates-column__cta:hover svg {
	transform: translateX(4px);
}

/* Empty State */
.updates-empty {
	font-size: 14px;
	color: var(--color-medium-gray);
	text-align: center;
	padding: var(--space-8) var(--space-4);
	margin: 0;
}
