/* Best Events Public Styles */

/* Container */
.best-events-container {
	margin: 1.5em 0;
	clear: both;
}

.best-events-title {
	margin-bottom: 1em;
	font-size: 1.75em;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 0.5em;
}

.best-events-no-results {
	padding: 1.5em;
	text-align: center;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #666;
}

/* List View */
.best-events-list {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
}

.best-event-item {
	display: flex;
	gap: 1em;
	padding: 1em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.best-event-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.best-event-thumbnail {
	flex-shrink: 0;
	width: 200px;
}

.best-event-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.best-event-content {
	flex: 1;
	min-width: 0;
}

.best-event-title {
	margin: 0 0 0.5em;
	font-size: 1.5em;
	line-height: 1.3;
}

.best-event-title a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
}

.best-event-title a:hover {
	color: #005177;
	text-decoration: underline;
}

.best-event-categories {
	margin-bottom: 0.5em;
	font-size: 0.9em;
	color: #666;
	font-style: italic;
}

.best-event-date,
.best-event-location {
	margin-bottom: 0.4em;
	font-size: 0.95em;
	color: #444;
}

.best-event-date strong,
.best-event-location strong {
	color: #333;
}

.best-event-excerpt {
	margin: 0.75em 0;
	color: #555;
	line-height: 1.6;
}

.best-event-excerpt p:last-child {
	margin-bottom: 0;
}

.best-event-links {
	margin-top: 0.75em;
	padding-top: 0.75em;
	border-top: 1px solid #e0e0e0;
	font-size: 0.9em;
}

.best-event-links a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
}

.best-event-links a:hover {
	color: #005177;
	text-decoration: underline;
}

/* Table View */
.best-events-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	overflow: hidden;
}

.best-events-table thead {
	background: #0073aa;
	color: #fff;
}

.best-events-table th {
	padding: 0.75em;
	text-align: left;
	font-weight: 600;
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.best-events-table tbody tr {
	border-bottom: 1px solid #e0e0e0;
	transition: background-color 0.2s ease;
}

.best-events-table tbody tr:last-child {
	border-bottom: none;
}

.best-events-table tbody tr:hover {
	background-color: #f7f9fc;
}

.best-events-table td {
	padding: 0.75em;
	font-size: 0.95em;
	color: #444;
	vertical-align: middle;
}

.best-events-table td.best-event-name {
	font-weight: 500;
}

.best-events-table td.best-event-name a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
}

.best-events-table td.best-event-name a:hover {
	color: #005177;
	text-decoration: underline;
}

.best-events-table td.best-event-date {
	white-space: nowrap;
}

.best-events-table td.best-event-links a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.best-events-table td.best-event-links a:hover {
	color: #005177;
	text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.best-events-list {
		gap: 1em;
	}

	.best-event-item {
		flex-direction: column;
		padding: 0.75em;
		gap: 0.75em;
	}

	.best-event-thumbnail {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}

	.best-event-categories {
		margin-bottom: 0.4em;
	}

	.best-event-date,
	.best-event-location {
		margin-bottom: 0.3em;
	}

	.best-event-excerpt {
		margin: 0.5em 0;
	}

	.best-events-table {
		font-size: 0.9em;
	}

	.best-events-table,
	.best-events-table thead,
	.best-events-table tbody,
	.best-events-table th,
	.best-events-table td,
	.best-events-table tr {
		display: block;
	}

	.best-events-table thead {
		display: none;
	}

	.best-events-table tbody tr {
		margin-bottom: 1em;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		padding: 0.75em;
	}

	.best-events-table td {
		padding: 0.4em 0;
		border: none;
		position: relative;
		padding-left: 40%;
		text-align: left;
	}

	.best-events-table td::before {
		content: attr(data-label);
		position: absolute;
		left: 0;
		width: 35%;
		padding-right: 10px;
		font-weight: 600;
		color: #333;
	}

	.best-events-table td.best-event-name::before {
		content: "Evento:";
	}

	.best-events-table td.best-event-date::before {
		content: "Data:";
	}

	.best-events-table td.best-event-location::before {
		content: "Località:";
	}

	.best-events-table td.best-event-category::before {
		content: "Categoria:";
	}

	.best-events-table td.best-event-links::before {
		content: "Link:";
	}
}

@media screen and (max-width: 480px) {
	.best-events-title {
		font-size: 1.5em;
		margin-bottom: 0.75em;
	}

	.best-events-list {
		gap: 0.75em;
	}

	.best-event-item {
		padding: 0.6em;
		gap: 0.6em;
	}

	.best-event-title {
		font-size: 1.3em;
		margin-bottom: 0.4em;
	}

	.best-event-categories {
		margin-bottom: 0.3em;
	}

	.best-event-date,
	.best-event-location {
		margin-bottom: 0.25em;
		font-size: 0.9em;
	}

	.best-event-excerpt {
		margin: 0.4em 0;
		font-size: 0.9em;
	}

	.best-events-table tbody tr {
		margin-bottom: 0.75em;
		padding: 0.6em;
	}

	.best-events-table td {
		padding: 0.3em 0;
		padding-left: 0;
		text-align: left;
		font-size: 0.9em;
	}

	.best-events-table td::before {
		position: static;
		display: block;
		margin-bottom: 0.2em;
		width: 100%;
	}
}

/* Map View */
.best-events-map-container {
	margin: 2em 0;
	clear: both;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
}

.best-events-map {
	width: 100%;
	min-height: 400px;
	position: relative;
	z-index: 1;
}

.best-events-marker-icon {
	transition: transform 0.2s ease;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.best-events-marker-icon:hover {
	transform: scale(1.15);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.best-event-popup {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.best-event-popup-title {
	margin: 0 0 0.75em;
	font-size: 1.1em;
	font-weight: 600;
	color: #0073aa;
	line-height: 1.3;
}

.best-event-popup-date,
.best-event-popup-location,
.best-event-popup-category {
	margin-bottom: 0.5em;
	font-size: 0.9em;
	color: #444;
}

.best-event-popup-date strong,
.best-event-popup-location strong,
.best-event-popup-category strong {
	color: #333;
}

.best-event-popup-excerpt {
	margin: 0.75em 0;
	font-size: 0.9em;
	color: #555;
	line-height: 1.5;
}

.best-event-popup-weather {
	margin: 0.75em 0;
	padding: 0.75em;
	background: #f7f9fc;
	border-radius: 4px;
	font-size: 0.9em;
}

.best-event-popup-weather .weather-loading {
	text-align: center;
	color: #666;
	font-size: 0.85em;
}

.best-event-popup-weather .weather-error {
	text-align: center;
	color: #999;
	font-size: 0.85em;
}

.best-event-popup-weather .weather-info {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.best-event-popup-weather .weather-header {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.best-event-popup-weather .weather-icon {
	width: 50px;
	height: 50px;
}

.best-event-popup-weather .weather-temp {
	font-size: 1.5em;
	font-weight: 600;
	color: #0073aa;
}

.best-event-popup-weather .weather-desc {
	font-size: 0.9em;
	color: #444;
	font-weight: 500;
	text-transform: capitalize;
}

.best-event-popup-weather .weather-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	font-size: 0.85em;
	color: #666;
	margin-top: 0.25em;
}

.best-event-popup-weather .weather-details span {
	white-space: nowrap;
}

.best-event-tooltip {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	padding: 8px 12px;
}

.best-event-tooltip strong {
	font-size: 13px;
	color: #0073aa;
	display: block;
	margin-bottom: 4px;
}

.best-event-tooltip-wrapper {
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #0073aa;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	padding: 0;
	font-size: 12px;
}

.best-event-tooltip-wrapper .leaflet-tooltip-left::before {
	border-left-color: #0073aa;
}

.best-event-tooltip-wrapper .leaflet-tooltip-right::before {
	border-right-color: #0073aa;
}

.tooltip-weather-container {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #e0e0e0;
}

.weather-loading-small {
	font-size: 10px;
	color: #999;
	text-align: center;
}

.weather-tooltip-info {
	text-align: center;
	line-height: 1.4;
}

.best-event-popup-link {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #e0e0e0;
}

.best-event-popup-link .button {
	display: inline-block;
	padding: 0.5em 1em;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9em;
	transition: background-color 0.2s ease;
}

.best-event-popup-link .button:hover {
	background: #005177;
}

.leaflet-popup-content-wrapper {
	border-radius: 8px;
}

.leaflet-popup-content {
	margin: 1em;
	min-width: 200px;
}

/* Responsive Map Styles */
@media screen and (max-width: 768px) {
	.best-events-map {
		min-height: 300px;
	}

	.best-event-popup-title {
		font-size: 1em;
	}

	.best-event-popup-date,
	.best-event-popup-location,
	.best-event-popup-category,
	.best-event-popup-excerpt {
		font-size: 0.85em;
	}
}

/* Print Styles */
@media print {
	.best-event-item,
	.best-events-table tr {
		page-break-inside: avoid;
	}

	.best-event-item:hover,
	.best-events-table tbody tr:hover {
		box-shadow: none;
		transform: none;
		background-color: transparent;
	}

	.best-event-links a::after,
	.best-events-table td.best-event-links a::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #666;
	}

	.best-events-map-container {
		display: none;
	}
}

/* Single Event Page Styles */
.best-event-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5em 1em;
}

.best-event-header {
	margin-bottom: 1.5em;
	padding-bottom: 1em;
	border-bottom: 3px solid #0073aa;
}

.best-event-single-title {
	margin: 0 0 0.5em;
	font-size: 2.5em;
	line-height: 1.2;
	color: #333;
}

.best-event-single-categories {
	font-size: 1.1em;
	color: #666;
	font-style: italic;
}

.best-event-categories-label {
	font-weight: 600;
	color: #333;
}

.best-event-featured-image {
	margin-bottom: 1.5em;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.best-event-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.best-event-single-content {
	line-height: 1.8;
}

.best-event-single-content h2 {
	margin: 1.5em 0 0.85em;
	font-size: 1.8em;
	color: #0073aa;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 0.5em;
}

.best-event-single-content h2:first-child {
	margin-top: 0;
}

.best-event-meta-section {
	background: #f7f9fc;
	padding: 1.5em;
	border-radius: 8px;
	margin-bottom: 1.5em;
	border-left: 4px solid #0073aa;
}

.best-event-location-info h2 {
	margin-top: 0;
	font-size: 1.5em;
}

.best-event-location-details p {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 1.1em;
	margin: 0;
	color: #333;
}

.best-event-location-details .dashicons {
	color: #0073aa;
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.best-event-occurrences {
	margin-top: 1.25em;
}

.best-event-occurrences h2 {
	margin-top: 0;
	font-size: 1.5em;
}

.best-event-occurrences-list {
	list-style: none;
	padding: 0;
	margin: 0.75em 0 0;
	display: grid;
	gap: 0.5em;
}

.best-event-occurrences-list li {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 0.85em;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	font-size: 1.05em;
	font-weight: 500;
	color: #333;
}

.best-event-occurrences-list .dashicons {
	color: #0073aa;
	width: 20px;
	height: 20px;
	font-size: 20px;
	flex-shrink: 0;
}

.best-event-excerpt {
	background: #fff9e6;
	padding: 1.25em;
	border-radius: 8px;
	border-left: 4px solid #f0b429;
	margin-bottom: 1.5em;
}

.best-event-excerpt h2 {
	margin-top: 0;
	color: #d68000;
}

.best-event-description {
	margin-bottom: 1.5em;
}

.best-event-description p {
	margin-bottom: 0.85em;
}

.best-event-description img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 0.85em 0;
}

.best-event-map-section {
	margin: 1.5em 0;
}

.best-event-map-section .best-events-map {
	height: 450px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.best-event-external-links {
	margin: 1.5em 0;
}

.best-event-links-list {
	list-style: none;
	padding: 0;
	margin: 0.75em 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
}

.best-event-links-list li {
	flex: 1;
	min-width: 200px;
}

.best-event-links-list a {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.25em;
	background: #fff;
	border: 2px solid #0073aa;
	border-radius: 6px;
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.best-event-links-list a:hover {
	background: #0073aa;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.best-event-links-list .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.best-event-social-share {
	margin: 1.5em 0;
	padding: 1.5em;
	background: #f7f7f7;
	border-radius: 8px;
}

.best-event-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1em;
}

.share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.share-button .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.share-facebook {
	background: #1877f2;
	color: #fff;
}

.share-facebook:hover {
	background: #0d65d9;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.share-x {
	background: #000000;
	color: #fff;
}

.share-x .dashicons {
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 18px;
}

.share-x .dashicons::before {
	content: "𝕏";
	font-family: Arial, sans-serif;
}

.share-x:hover {
	background: #1a1a1a;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.share-instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
}

.share-instagram:hover {
	background: linear-gradient(45deg, #d87b2a 0%, #c85830 25%, #c31f38 50%, #b31c5a 75%, #a01076 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(193, 53, 132, 0.4);
}

.share-whatsapp {
	background: #25d366;
	color: #fff;
}

.share-whatsapp:hover {
	background: #1ebe57;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.share-gmail {
	background: #ea4335;
	color: #fff;
}

.share-gmail:hover {
	background: #d33426;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(234, 67, 53, 0.3);
}

.share-copy {
	background: #6c757d;
	color: #fff;
}

.share-copy:hover {
	background: #5a6268;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Single Event Styles */
@media screen and (max-width: 768px) {
	.best-event-single {
		padding: 1em;
	}

	.best-event-single-title {
		font-size: 1.8em;
	}

	.best-event-single-content h2 {
		font-size: 1.4em;
		margin: 1.25em 0 0.75em;
	}

	.best-event-meta-section {
		padding: 1.25em;
		margin-bottom: 1.25em;
	}

	.best-event-links-list {
		flex-direction: column;
	}

	.best-event-links-list li {
		min-width: 100%;
	}

	.best-event-share-buttons {
		justify-content: center;
	}

	.best-event-map-section .best-events-map {
		height: 350px;
	}
}

@media screen and (max-width: 480px) {
	.best-event-single-title {
		font-size: 1.5em;
	}

	.best-event-single-content h2 {
		font-size: 1.2em;
		margin: 1.5em 0 0.75em;
	}

	.best-event-meta-section {
		padding: 1em;
	}

	.best-event-map-section .best-events-map {
		height: 300px;
	}
}

@media print {
	.best-event-social-share,
	.best-event-external-links {
		page-break-inside: avoid;
	}

	.share-button {
		box-shadow: none;
		transform: none;
	}

	.best-event-map-section {
		display: none;
	}
}

/* Accessibility Improvements */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Enhanced focus states for keyboard navigation */
.best-event-title a:focus,
.best-event-links a:focus,
.best-events-table a:focus,
.best-event-popup-link .button:focus,
.best-event-links-list a:focus,
.share-button:focus {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Skip to content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #0073aa;
	color: #fff;
	padding: 8px 15px;
	text-decoration: none;
	z-index: 100000;
}

.skip-link:focus {
	top: 0;
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.best-event-item,
	.best-events-table,
	.best-event-occurrences-list li,
	.best-event-links-list a {
		border-width: 2px;
	}

	.best-event-title a:focus,
	.best-event-links a:focus,
	.best-events-table a:focus {
		outline-width: 4px;
	}
}

/* Reduced motion support */
@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;
	}

	.best-event-item:hover,
	.best-event-links-list a:hover,
	.share-button:hover {
		transform: none !important;
	}
}

/* Better color contrast for links */
.best-event-title a,
.best-event-links a,
.best-events-table a {
	text-decoration-skip-ink: auto;
}

/* Focus-visible for modern browsers */
.best-event-title a:focus-visible,
.best-event-links a:focus-visible,
.best-events-table a:focus-visible,
.share-button:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

/* Ensure minimum tap target size (44x44px) for mobile */
@media (max-width: 768px) {
	.best-event-links a,
	.best-events-table a,
	.share-button {
		min-height: 44px;
		min-width: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* Nearby Events Map Styles */
.best-events-nearby-container {
	max-width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.best-events-nearby-controls {
	background: #f8f9fa;
	padding: 1.5em;
	border-radius: 8px;
	margin-bottom: 1em;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nearby-control-group {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 1em;
	flex-wrap: wrap;
}

.nearby-control-group:last-child {
	margin-bottom: 0;
}

.nearby-control-group label {
	font-weight: 600;
	color: #333;
	min-width: 80px;
	margin: 0;
}

.nearby-date-input {
	padding: 0.5em 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	flex: 0 0 auto;
	min-width: 150px;
}

.nearby-today-btn,
.nearby-reset-btn {
	padding: 0.5em 1em;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 500;
	transition: background 0.3s ease;
}

.nearby-today-btn:hover,
.nearby-reset-btn:hover {
	background: #005a87;
}

.nearby-reset-btn {
	background: #2c7f39;
}

.nearby-reset-btn:hover {
	background: #236630;
}

.nearby-radius-slider {
	flex: 1;
	min-width: 150px;
	height: 6px;
	border-radius: 3px;
	background: #ddd;
	outline: none;
	-webkit-appearance: none;
}

.nearby-radius-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0073aa;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nearby-radius-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0073aa;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#nearby-radius-value {
	font-weight: 700;
	color: #0073aa;
}

.nearby-status {
	padding: 0.75em;
	border-radius: 4px;
	text-align: center;
	font-weight: 500;
	margin-top: 1em;
}

.nearby-status.status-loading {
	background: #e7f3ff;
	color: #0073aa;
}

.nearby-status.status-error {
	background: #fef0f0;
	color: #c53030;
}

.nearby-status.status-success {
	background: #f0fdf4;
	color: #15803d;
}

.nearby-status.status-info {
	background: #fef3c7;
	color: #b45309;
}

.nearby-events-list {
	margin-top: 1em;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.nearby-events-list-items {
	display: flex;
	flex-direction: column;
}

.nearby-event-item {
	border-bottom: 1px solid #eee;
	transition: background 0.2s ease;
}

.nearby-event-item:last-child {
	border-bottom: none;
}

.nearby-event-item:hover {
	background: #f8f9fa;
}

.nearby-event-link {
	display: block;
	padding: 1em 1.25em;
	color: #333;
	text-decoration: none;
	line-height: 1.5;
}

.nearby-event-link:hover {
	color: #0073aa;
}

.nearby-event-title {
	font-weight: 600;
	color: #0073aa;
}

.nearby-event-separator {
	color: #999;
	font-weight: 400;
}

.nearby-event-category {
	color: #666;
	font-size: 0.95em;
}

.nearby-event-location {
	color: #666;
	font-size: 0.95em;
}

.nearby-event-distance {
	color: #999;
	font-size: 0.9em;
	font-style: italic;
}

@media screen and (max-width: 768px) {
	.best-events-nearby-controls {
		padding: 1em;
	}

	.nearby-control-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5em;
	}

	.nearby-control-group label {
		min-width: auto;
		width: 100%;
	}

	.nearby-date-input {
		width: 100%;
		min-width: auto;
	}

	.nearby-today-btn,
	.nearby-reset-btn {
		width: 100%;
		margin-bottom: 0.5em;
	}

	.nearby-reset-btn {
		margin-bottom: 0;
	}

	.nearby-radius-slider {
		width: 100%;
		min-width: auto;
	}

	.nearby-event-link {
		padding: 0.75em 1em;
		font-size: 0.95em;
		line-height: 1.6;
	}

	.nearby-event-title,
	.nearby-event-category,
	.nearby-event-location {
		display: inline;
	}

	.nearby-event-separator {
		display: inline;
		padding: 0 0.25em;
	}

	.nearby-event-distance {
		display: inline;
		margin-left: 0.25em;
	}
}

@media screen and (max-width: 480px) {
	.best-events-nearby-controls {
		padding: 0.75em;
		margin-bottom: 0.75em;
	}

	.nearby-control-group {
		gap: 0.4em;
	}

	.nearby-event-link {
		padding: 0.6em 0.75em;
		font-size: 0.9em;
	}

	.nearby-event-title {
		font-size: 0.95em;
	}

	.nearby-event-category,
	.nearby-event-location {
		font-size: 0.85em;
	}

	.nearby-event-distance {
		font-size: 0.8em;
	}
}

/* Map Footer Styles */
.best-events-map-footer {
	background: #f8f9fa;
	padding: 0.75em 1em;
	text-align: center;
	border-top: 1px solid #e0e0e0;
	font-size: 0.9em;
	color: #666;
}

.best-events-map-footer .map-footer-text {
	color: #666;
	font-weight: 400;
}

.best-events-map-footer .map-footer-link {
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.best-events-map-footer .map-footer-link:hover {
	color: #005a87;
	text-decoration: underline;
}

@media screen and (max-width: 480px) {
	.best-events-map-footer {
		padding: 0.6em 0.75em;
		font-size: 0.85em;
	}
}

/* ===========================
   LOCATION STYLES
   =========================== */

.best-locations-list-container {
	margin: 1.5em 0;
}

.best-locations-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.best-location-item {
	padding: 1em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.best-location-item:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transform: translateX(5px);
}

.best-location-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.best-location-link:hover {
	color: #0073aa;
}

.best-location-item strong {
	color: #0073aa;
	font-size: 1.1em;
}

.location-category {
	color: #666;
	font-style: italic;
	font-size: 0.95em;
}

.location-city {
	color: #444;
	font-size: 0.95em;
}

.best-locations-no-results {
	padding: 1.5em;
	text-align: center;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #666;
}

.best-locations-map-container {
	margin: 1.5em 0;
}

.best-locations-map {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5em;
}

.best-locations-list-below-map {
	margin-top: 2em;
}

.best-locations-list-below-map h3 {
	margin-bottom: 1em;
	font-size: 1.5em;
	color: #333;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 0.5em;
}

.best-location-popup {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	min-width: 250px;
}

.location-popup-logo {
	margin-bottom: 10px;
	text-align: center;
}

.location-popup-logo img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.location-popup-title {
	margin: 0 0 10px;
	font-size: 1.2em;
	color: #0073aa;
	font-weight: 600;
}

.location-popup-category,
.location-popup-location {
	margin-bottom: 8px;
	font-size: 0.9em;
	line-height: 1.4;
}

.location-popup-category strong,
.location-popup-location strong {
	color: #333;
}

.location-popup-excerpt {
	margin: 10px 0;
	padding: 8px;
	background: #f9f9f9;
	border-left: 3px solid #0073aa;
	font-size: 0.9em;
	line-height: 1.5;
}

.location-popup-excerpt p {
	margin: 0;
}

.location-popup-contacts {
	display: flex;
	gap: 8px;
	margin: 10px 0;
	flex-wrap: wrap;
}

.location-contact-btn {
	display: inline-block;
	padding: 6px 12px;
	background: #0073aa;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.85em;
	transition: background 0.2s ease;
}

.location-contact-btn:hover {
	background: #005177;
}

.location-popup-social {
	margin: 10px 0;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.social-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.social-links a {
	font-size: 1.2em;
	text-decoration: none;
	transition: transform 0.2s ease;
	display: inline-block;
}

.social-links a:hover {
	transform: scale(1.2);
}

.location-popup-actions {
	margin-top: 12px;
	text-align: center;
}

.location-details-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #0073aa;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.location-details-btn:hover {
	background: #005177;
}

.best-location-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2em 1em;
}

.location-header {
	margin-bottom: 2em;
	border-bottom: 3px solid #0073aa;
	padding-bottom: 1em;
}

.location-title {
	margin: 0 0 0.5em;
	font-size: 2.5em;
	color: #0073aa;
	line-height: 1.2;
}

.location-category-display {
	margin-bottom: 0.5em;
	font-size: 1.1em;
}

.category-label {
	font-weight: 600;
	color: #333;
}

.category-value {
	color: #666;
	font-style: italic;
}

.location-address-display {
	font-size: 1.1em;
	color: #444;
}

.address-icon {
	margin-right: 0.5em;
}

.location-content-wrapper {
	display: grid;
	gap: 2em;
}

.location-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5em;
	margin-bottom: 1em;
}

.location-logo img,
.location-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-contacts-section {
	background: #f9f9f9;
	padding: 1.5em;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.location-contacts-section h2 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.75em;
	color: #333;
}

.location-contact-buttons {
	display: flex;
	gap: 1em;
	margin-bottom: 1.5em;
	flex-wrap: wrap;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.75em 1.5em;
	background: #0073aa;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: background 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
	background: #005177;
	transform: translateY(-2px);
}

.btn-icon {
	font-size: 1.2em;
}

.location-social-section h3 {
	margin-bottom: 0.75em;
	font-size: 1.3em;
	color: #333;
}

.location-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1em;
	background: #fff;
	color: #333 !important;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
	background: #f0f0f0;
	border-color: #0073aa;
}

.social-icon {
	font-size: 1.2em;
}

.location-excerpt {
	padding: 1.5em;
	background: #e7f5fe;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
	font-size: 1.1em;
	line-height: 1.6;
}

.location-description {
	margin-top: 2em;
}

.location-description h2 {
	margin-bottom: 1em;
	font-size: 1.75em;
	color: #333;
}

.location-description p {
	line-height: 1.7;
	margin-bottom: 1em;
}

.location-map-section {
	margin-top: 2em;
}

.location-map-section h2 {
	margin-bottom: 1em;
	font-size: 1.75em;
	color: #333;
}

#single-location-map {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
	.location-title {
		font-size: 2em;
	}

	.location-images {
		grid-template-columns: 1fr;
	}

	.location-contact-buttons {
		flex-direction: column;
	}

	.contact-btn {
		justify-content: center;
	}

	.location-social-links {
		flex-direction: column;
	}
}

@media screen and (max-width: 480px) {
	.best-location-single {
		padding: 1em 0.5em;
	}

	.location-title {
		font-size: 1.5em;
	}

	.location-contacts-section {
		padding: 1em;
	}
}
