/**
 * Location Page Styles
 *
 * @package ICDirectoryCore
 */

/* Location Single Page Layout */
.ic-location-single {
	margin-bottom: 3rem;
}

.ic-location-header-section {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e5e5;
}

/* Location Banner */
.ic-location-banner-wrapper {
	margin-bottom: 2rem;
}

.ic-location-banner {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ic-location-banner img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 400px;
	object-fit: cover;
}

.ic-location-banner-tagline {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #fff;
	padding: 2rem 1.5rem 1.5rem;
	text-align: center;
	font-size: 1.1em;
	font-weight: 500;
}

/* Location Header */
.ic-location-header {
	margin-bottom: 0;
}

.ic-location-header-content {
	padding: 0;
}

.ic-location-title {
	margin: 0 0 0.75rem 0;
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.ic-location-region-country {
	font-size: 1.1em;
	color: #666;
	margin-bottom: 1rem;
	font-weight: 400;
}

.ic-location-tagline {
	font-size: 1em;
	color: #888;
	margin-bottom: 1.5rem;
	font-style: italic;
}

.ic-location-description {
	font-size: 1.05em;
	line-height: 1.8;
	color: #444;
	margin-top: 1.5rem;
}

.ic-location-description p {
	margin-bottom: 1em;
}

.ic-location-description p:last-child {
	margin-bottom: 0;
}

.ic-location-meta-title {
	margin: 0.5rem 0;
	font-size: 1.2em;
}

.ic-location-meta-desc {
	margin: 1rem 0;
}

.ic-view-events-btn {
	margin-top: 1rem;
}

/* Location Info */
.ic-location-info {
	margin-bottom: 2rem;
}

.ic-location-description {
	margin-bottom: 1.5rem;
}

.ic-location-address {
	margin-bottom: 1.5rem;
}

.ic-location-address h3 {
	margin-bottom: 0.5rem;
}

.ic-location-address address {
	font-style: normal;
	line-height: 1.6;
}

.ic-view-all-events-btn {
	margin-top: 1rem;
}

/* Sidebar Widgets */
.ic-location-widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

.ic-location-widget .widget-title,
.ic-location-widget h3 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.3em;
	font-weight: 600;
	color: #1a1a1a;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e5e5e5;
}

/* Override for Top Countries widget to match Regions style */
.ic-location-widget.ic-location-countries-widget .widget-title,
.ic-location-widget.ic-location-countries-widget h3 {
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 1rem;
}


/* Event Content */
.ic-event-content.post-content p,.ic-event-content.post-content ul {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.ic-location-title {
		font-size: 2em;
	}
	
	.ic-location-banner-tagline {
		padding: 1.5rem 1rem 1rem;
		font-size: 1em;
	}
	
	.ic-location-header-section {
		margin-bottom: 2rem;
		padding-bottom: 1.5rem;
	}
	
	.ic-location-events-section {
		margin-top: 2rem;
		padding-top: 2rem;
	}
}

.ic-location-events-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.ic-location-events-header h2 {
	margin: 0;
}

.ic-location-events-sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ic-location-events-sort select {
	padding: 0.5rem;
}

/* Events Grid - SmartMag compatible */
.ic-events-grid {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

/* SmartMag grid classes integration */
/* .loop-wrap.grid-posts.ic-events-grid inherits SmartMag grid styles */

.ic-events-grid.ic-col-2 {
	grid-template-columns: repeat(2, 1fr);
}

.ic-events-grid.ic-col-3 {
	grid-template-columns: repeat(3, 1fr);
}

.ic-events-grid.ic-col-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
	.ic-events-grid.ic-col-2,
	.ic-events-grid.ic-col-3,
	.ic-events-grid.ic-col-4 {
		grid-template-columns: 1fr;
	}
	
	.ic-location-events-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.ic-events-grid.ic-col-3,
	.ic-events-grid.ic-col-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Event Card - Modern Clean Design */
.ic-event-card {
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	height: 100%;
}

.ic-event-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.ic-event-image {
	margin: 0;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.ic-event-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.ic-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ic-event-card:hover .ic-event-image img {
	transform: scale(1.05);
}


.ic-event-content {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.ic-event-content.post-content .ic-event-date {
	color: #666;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	margin-bottom: 0.25rem;
}

h3.ic-event-title.post-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

h3.ic-event-title.post-title a {
	text-decoration: none;
	color: #1a1a1a;
	transition: color 0.3s ease;
}

h3.ic-event-title.post-title a:hover {
	color: var(--c-main, #2ab391);
}

.ic-event-content.post-content .ic-event-venue{
	color: #666;
	font-size: 0.875rem;
	line-height: 1.4;
	margin-top: 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ic-event-content.post-content .ic-event-engagement {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid #f0f0f0;
	font-size: 0.875rem;
}

.ic-event-interested {
	color: #666;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ic-event-interested:empty {
	display: none;
}

.ic-event-price {
	color: #1a1a1a;
	font-weight: 600;
}

/* Pagination */
.ic-events-pagination {
	margin-top: 2rem;
	text-align: center;
}

.ic-events-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	border: 1px solid #e0e0e0;
	text-decoration: none;
	border-radius: 3px;
}

.ic-events-pagination .page-numbers:hover,
.ic-events-pagination .page-numbers.current {
	background: var(--c-main, #2ab391);
	color: #fff;
	border-color: var(--c-main, #2ab391);
}

/* No Events */
.ic-no-events {
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
}

/* Location Header Updates */

.ic-location-title {
	margin: 0 0 0.5rem 0;
	font-size: 2.5em;
	font-weight: bold;
}

.ic-location-region-country {
	font-size: 1.2em;
	color: #666;
	margin-bottom: 1rem;
}

.ic-location-tagline {
	font-size: 1.1em;
	font-style: italic;
	color: #888;
	margin-bottom: 1.5rem;
}

.ic-location-description {
	margin-top: 1.5rem;
	line-height: 1.8;
}

/* Section Titles */
.ic-section-title {
	margin: 1rem 0 2rem 0;
	font-size: 1.5em;
	font-weight: bold;
}

/* Nearby Locations */


.ic-nearby-locations {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ic-nearby-locations li {
	margin: 0;
}

.ic-nearby-locations a {
	display: block;
	padding: 0.75rem 1rem;
	background: #f5f5f5;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: background 0.3s ease;
}

.ic-nearby-locations a:hover {
	background: #e0e0e0;
	color: var(--c-main, #2ab391);
}

/* Related Regions */
.ic-related-regions {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ic-related-regions li {
	margin: 0;
}

.ic-related-regions a {
	display: block;
	padding: 0.75rem 1rem;
	background: #f5f5f5;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: background 0.3s ease;
}

.ic-related-regions a:hover {
	background: #e0e0e0;
	color: var(--c-main, #2ab391);
}

/* Location Hierarchy Template */
.ic-location-hierarchy-header {
	margin-bottom: 3rem;
}

.ic-location-hierarchy-banner {
	margin-bottom: 2rem;
}

.ic-location-hierarchy-banner img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* .ic-location-hierarchy-header-content - padding handled by theme */

.ic-location-hierarchy-title {
	margin: 0 0 0.5rem 0;
	font-size: 2.5em;
	font-weight: bold;
}

.ic-location-hierarchy-tagline {
	font-size: 1.1em;
	font-style: italic;
	color: #888;
	margin-bottom: 1.5rem;
}

.ic-location-hierarchy-description {
	margin-top: 1.5rem;
	line-height: 1.8;
}

/* Location Children Grid */
.ic-location-children {
	margin: 3rem 0;
}

.ic-location-grid {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

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

.ic-location-grid.ic-col-2 {
	grid-template-columns: repeat(2, 1fr);
}

.ic-location-grid.ic-col-3 {
	grid-template-columns: repeat(3, 1fr);
}

.ic-location-grid.ic-col-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Location Child Card */
.ic-location-child-card {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ic-location-child-card:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.ic-location-child-image {
	margin: 0;
	overflow: hidden;
}

.ic-location-child-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.ic-location-child-card:hover .ic-location-child-image img {
	transform: scale(1.05);
}

.ic-location-child-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ic-location-child-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.3em;
}

.ic-location-child-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ic-location-child-title a:hover {
	color: var(--c-main, #2ab391);
}

.ic-location-child-parent {
	margin: 0.5rem 0;
	color: #666;
	font-size: 0.9em;
}

.ic-location-child-description {
	margin: 1rem 0;
	line-height: 1.6;
	color: #555;
	flex: 1;
}

.ic-location-child-events {
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.9em;
	color: var(--c-main, #2ab391);
	font-weight: 500;
}

.ic-no-children {
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
}

.ic-location-children-pagination {
	margin-top: 2rem;
	text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
	.ic-location-grid.ic-col-4,
	.ic-location-grid.ic-col-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ic-location-grid.ic-col-4,
	.ic-location-grid.ic-col-3,
	.ic-location-grid.ic-col-2 {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Location Index Page - Country Cards
   ============================================ */

/* Country Card Styling */
.ic-country-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ic-country-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
	border-color: #d0d0d0;
}

.ic-country-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Country Image */
.ic-country-image {
	margin: 0;
	overflow: hidden;
	position: relative;
	background: #f8f8f8;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ic-country-image-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.ic-country-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ic-country-card:hover .ic-country-image img {
	transform: scale(1.08);
}

/* Country Content */
.ic-country-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ic-country-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.4em;
	font-weight: 600;
	line-height: 1.3;
}

.ic-country-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ic-country-title a:hover {
	color: var(--c-main, #2ab391);
}

.ic-country-description {
	margin: 0 0 1rem 0;
	color: #666;
	line-height: 1.6;
	font-size: 0.95em;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ic-country-regions {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
}

.ic-region-badge {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	background: #f5f5f5;
	color: #555;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 500;
	transition: all 0.3s ease;
}

.ic-country-card:hover .ic-region-badge {
	color: #000;
}

/* Location Index Meta */
.ic-location-index-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}

.ic-location-index-tagline {
	color: #666;
	font-size: 1em;
	line-height: 1.6;
}

.ic-location-index-count {
	color: #888;
	font-size: 0.9em;
	font-weight: 500;
}

/* Countries Grid */
.ic-location-countries-grid {
	margin-top: 2rem;
}

.ic-location-grid {
	gap: 1.5rem;
}

/* Load More Button */
.ic-load-more-wrapper {
	text-align: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e5e5;
}
/* 
.ic-load-more-button {
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(var(--c-main-rgb, 42, 179, 145), 0.2);
} */

.ic-load-more-button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(var(--c-main-rgb, 42, 179, 145), 0.3);
}

.ic-load-more-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ic-load-more-spinner {
	display: inline-block;
	margin-left: 1rem;
	color: #666;
}

/* ============================================
   Category List Widget & Categories Filter
   ============================================ */

.ic-location-categories-list-widget,
.ic-location-categories-widget {
	max-height: none;
}

.ic-location-categories-filter {
	margin-bottom: 0;
}

.ic-location-categories-filter .widget-title {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.3em;
	font-weight: 600;
	color: #1a1a1a;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e5e5e5;
}

/* Categories Search */
.ic-categories-search {
	position: relative;
	margin-bottom: 1rem;
	display: block;
	width: 100%;
}

.ic-category-search-input {
	width: 100%;
	padding: 0.75rem 3rem 0.75rem 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 0.95em;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
	display: block;
	background-color: #fff;
	position: relative;
}

.ic-category-search-input:focus {
	outline: none;
	border-color: var(--c-main, #2ab391);
	box-shadow: 0 0 0 2px rgba(var(--c-main-rgb, 42, 179, 145), 0.1);
}

.ic-search-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	font-size: 1.1em;
	line-height: 1;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Loading State */
.ic-loading-state {
	padding: 20px;
	text-align: center;
}

.ic-loading-text {
	color: #666;
}

/* Visibility Classes */
.ic-hidden {
	display: none !important;
}

.ic-visible {
	display: block !important;
}

.ic-categories-list-wrapper,
.ic-regions-list-wrapper,
.ic-cities-list-wrapper {
	max-height: 600px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.5rem;
}

/* Custom Scrollbar for Category List, Regions, and Cities */
.ic-categories-list-wrapper::-webkit-scrollbar,
.ic-regions-list-wrapper::-webkit-scrollbar,
.ic-cities-list-wrapper::-webkit-scrollbar {
	width: 6px;
}

.ic-categories-list-wrapper::-webkit-scrollbar-track,
.ic-regions-list-wrapper::-webkit-scrollbar-track,
.ic-cities-list-wrapper::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 3px;
}

.ic-categories-list-wrapper::-webkit-scrollbar-thumb,
.ic-regions-list-wrapper::-webkit-scrollbar-thumb,
.ic-cities-list-wrapper::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.ic-categories-list-wrapper::-webkit-scrollbar-thumb:hover,
.ic-regions-list-wrapper::-webkit-scrollbar-thumb:hover,
.ic-cities-list-wrapper::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.ic-categories-load-more-wrapper {
	margin-top: 1rem;
	text-align: center;
	clear: both;
	display: block;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.ic-categories-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ic-categories-list .widget-list-item {
	margin: 0 0 0.5rem 0;
	padding: 0;
}

.ic-categories-list .widget-list-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 15px;
	background: #f8f8f8;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.ic-categories-list .widget-list-link:hover {
	background: #f0f0f0;
	border-color: #e0e0e0;
	color: var(--c-main, #2ab391);
	transform: translateX(4px);
}

.ic-categories-list .widget-list-link.active {
	background: var(--c-main, #2ab391);
	color: #fff;
	border-color: var(--c-main, #2ab391);
	font-weight: 500;
}

.ic-categories-list .widget-list-link.active:hover {
	background: rgba(var(--c-main-rgb, 42, 179, 145), 0.85);
	border-color: rgba(var(--c-main-rgb, 42, 179, 145), 0.85);
	transform: translateX(0);
}

.ic-categories-list .widget-list-text {
	flex: 1;
	font-size: 0.95em;
	line-height: 1.4;
}

.ic-categories-list .widget-list-count {
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	margin-left: 0.5rem;
	min-width: 2rem;
	text-align: center;
}

.ic-categories-list .widget-list-link.active .widget-list-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.ic-categories-list .widget-list-link:not(.active) .widget-list-count {
	background: #e0e0e0;
	color: #666;
}

.ic-categories-list .widget-list-link:hover:not(.active) .widget-list-count {
	background: #d0d0d0;
}

/* ============================================
   Top Countries Widget
   ============================================ */

/* Override for Top Countries widget to match Regions style */
.ic-location-widget.ic-location-countries-widget .widget-title,
.ic-location-widget.ic-location-countries-widget h3 {
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 1rem;
}

.ic-countries-list-wrapper {
	max-height: 600px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.5rem;
}

/* Custom Scrollbar for Countries List */
.ic-countries-list-wrapper::-webkit-scrollbar {
	width: 6px;
}

.ic-countries-list-wrapper::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 3px;
}

.ic-countries-list-wrapper::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.ic-countries-list-wrapper::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.ic-countries-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ic-countries-list .widget-list-item {
	margin: 0 0 0.5rem 0;
	padding: 0;
}

.ic-countries-list .ic-country-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 15px;
	background: #f8f8f8;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	width: 100%;
	box-sizing: border-box;
}

.ic-countries-list .ic-country-link:hover {
	background: #f0f0f0;
	border-color: #e0e0e0;
	color: var(--c-main, #2ab391);
	transform: translateX(4px);
}

.ic-countries-list .ic-country-name {
	flex: 1;
	font-size: 0.95em;
	line-height: 1.4;
	font-weight: 400;
}

.ic-countries-list .ic-country-event-count {
	font-size: 0.85em;
	font-weight: 500;
	color: #666;
	margin-left: 0.5rem;
}

.ic-countries-list .ic-country-link:hover .ic-country-event-count {
	color: var(--c-main, #2ab391);
}

.ic-countries-list .widget-list-item.no-results {
	padding: 0.75rem 1rem;
	color: #999;
	font-size: 0.95em;
	text-align: center;
}

/* ============================================
   Regions & Cities Widgets
   ============================================ */

.ic-regions-list,
.ic-cities-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ic-regions-list .widget-list-item,
.ic-cities-list .widget-list-item {
	margin: 0 0 0.5rem 0;
	padding: 0;
}

.ic-regions-list .widget-list-link,
.ic-cities-list .widget-list-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 15px;
	background: #f8f8f8;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.ic-regions-list .widget-list-link:hover,
.ic-cities-list .widget-list-link:hover {
	background: #f0f0f0;
	border-color: #e0e0e0;
	color: var(--c-main, #2ab391);
	transform: translateX(4px);
}

.ic-regions-list .widget-list-text,
.ic-cities-list .widget-list-text {
	flex: 1;
	font-size: 0.95em;
	line-height: 1.4;
}

.ic-regions-list .widget-list-count,
.ic-cities-list .widget-list-count {
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	background: #e0e0e0;
	color: #666;
	border-radius: 12px;
	margin-left: 0.5rem;
	min-width: 2rem;
	text-align: center;
	transition: all 0.2s ease;
}

.ic-regions-list .widget-list-link:hover .widget-list-count,
.ic-cities-list .widget-list-link:hover .widget-list-count {
	background: #d0d0d0;
}

/* Cities Grouped Layout */
.ic-cities-list-grouped {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.ic-cities-group {
	margin-bottom: 0;
}

.ic-cities-group-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.1em;
	font-weight: 600;
	color: var(--c-main, #2ab391);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ic-cities-group:first-child .ic-cities-group-title {
	margin-top: 0;
}

.ic-cities-group .ic-cities-list {
	margin: 0;
}

/* See All Button */
.ic-cities-see-all {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}

/* Regions Grouped Layout */
.ic-regions-list-grouped {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.ic-regions-group {
	margin-bottom: 0;
}

.ic-regions-group-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.1em;
	font-weight: 600;
	color: var(--c-main, #2ab391);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ic-regions-group:first-child .ic-regions-group-title {
	margin-top: 0;
}

.ic-regions-group .ic-regions-list {
	margin: 0;
}

/* See All Button */
.ic-regions-see-all {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}
/* 
.ic-see-all-button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--c-main, #2ab391);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(var(--c-main-rgb, 42, 179, 145), 0.2);
}

.ic-see-all-button:hover {
	background: rgba(var(--c-main-rgb, 42, 179, 145), 0.85);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(var(--c-main-rgb, 42, 179, 145), 0.3);
} */

/* Responsive Design for Location Index */
@media (max-width: 1024px) {
	.ic-location-grid.ic-col-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.ic-country-image img {
		height: 160px;
	}
}

@media (max-width: 768px) {
	.ic-location-grid.ic-col-3 {
		grid-template-columns: 1fr;
	}
	
	.ic-country-content {
		padding: 1.25rem;
	}
	
	.ic-country-title {
		font-size: 1.25em;
	}
	
	.ic-categories-list-wrapper,
	.ic-regions-list-wrapper,
	.ic-cities-list-wrapper {
		max-height: 500px;
	}
	
	.ic-location-index-meta {
		font-size: 0.95em;
	}
	
	.ic-cities-group-title,
	.ic-regions-group-title {
		font-size: 1em;
	}
}

@media (max-width: 480px) {
	.ic-country-image img {
		height: 140px;
	}
	
	/* .ic-load-more-button {
		padding: 0.75rem 1.5rem;
		font-size: 0.95em;
	} */
}

/* ============================================
   Mobile Slide-In Filter Panel
   ============================================ */

/* Mobile Filter Button */
.icd-mobile-filter-button {
	display: none;
	margin: 1.5rem 0;
	width: 100%;
	text-align: center;
	/* Inherit theme button styles via .ts-button class */
	/* Additional overrides for mobile filter button */
}

.icd-mobile-filter-button.ts-button {
	/* Ensure full width on mobile */
	width: 100%;
	box-sizing: border-box;
}

.icd-mobile-filter-button:hover {
	/* Theme handles hover via .ts-button:hover */
}

.icd-mobile-filter-button:active {
	/* Theme handles active via button:active */
}

/* Mobile Filter Overlay */
.icd-mobile-filter-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.icd-mobile-filter-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

/* Mobile Filter Panel */
.icd-mobile-filter-panel {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 85%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	z-index: 9999;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	transform: translateX(-100%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.icd-mobile-filter-panel.open {
	transform: translateX(0);
	opacity: 1;
	z-index: 99999;
}

/* Panel Header */
.icd-mobile-filter-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e5e5e5;
	background: #f8f8f8;
	position: sticky;
	top: 0;
	z-index: 10;
}

.icd-mobile-filter-panel-header h3 {
	margin: 0;
	font-size: 1.2em;
	font-weight: 600;
	color: #1a1a1a;
}

.icd-mobile-filter-close {
	background: none;
	border: none;
	font-size: 1.8em;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	border-radius: 4px;
}

.icd-mobile-filter-close:hover {
	color: #000;
	background: #e5e5e5;
}

.icd-mobile-filter-close span {
	display: block;
	line-height: 1;
}

/* Panel Content */
.icd-mobile-filter-panel-content {
	padding: 1rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.icd-mobile-filter-panel-content .icd-mobile-sidebar-clone,
.icd-mobile-filter-panel-content .sidebar,
.icd-mobile-filter-panel-content .main-sidebar,
.icd-mobile-filter-panel-content aside {
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Bunyad theme inner wrapper */
.icd-mobile-filter-panel-content .inner {
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
	visibility: visible !important;
}

.icd-mobile-filter-panel-content .widget-area {
	margin: 0 !important;
	display: block !important;
	visibility: visible !important;
}

.icd-mobile-filter-panel-content .widget,
.icd-mobile-filter-panel-content section,
.icd-mobile-filter-panel-content .ic-location-widget {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin-bottom: 1.5rem !important;
	width: 100% !important;
}

.icd-mobile-filter-panel-content .widget:last-child {
	margin-bottom: 0 !important;
}

/* Ensure all widget content is visible */
.icd-mobile-filter-panel-content * {
	max-width: 100% !important;
}

.icd-mobile-filter-panel-content .widget-title,
.icd-mobile-filter-panel-content h3 {
	display: block !important;
	visibility: visible !important;
}

/* Hide desktop sidebar on mobile, show mobile button */
@media (max-width: 1023px) {
	.icd-mobile-filter-button {
		display: block;
	}

	.icd-mobile-filter-overlay,
	.icd-mobile-filter-panel {
		display: block;
	}

	.ts-row .sidebar.icd-location-sidebar,
	.ts-row .sidebar:not(.icd-desktop-sidebar):not(.ic-event-sidebar) {
		display: none;
	}

	/* Adjust main content width on mobile when sidebar is hidden */
	.ts-row .main-content {
		width: 100%;
		max-width: 100%;
	}
}

/* Show desktop sidebar, hide mobile elements on desktop */
@media (min-width: 1024px) {
	.icd-mobile-filter-button {
		display: none !important;
	}

	.icd-mobile-filter-overlay,
	.icd-mobile-filter-panel {
		display: none !important;
	}

	.ts-row .sidebar.icd-location-sidebar,
	.ts-row .sidebar:not(.icd-desktop-sidebar):not(.ic-event-sidebar),
	.ts-row .sidebar.ic-event-sidebar {
		display: block;
	}

	/* Prevent body scroll lock on desktop */
	body.icd-filter-panel-open {
		overflow: visible !important;
	}
}

/* Prevent body scroll when panel is open */
body.icd-filter-panel-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

/* ============================================
   Single Event Template
   ============================================ */

.ic-event-single {
	margin-bottom: 2rem;
}

.ic-event-header {
	margin-bottom: 1.5rem;
}

.ic-event-title {
	margin: 1rem 0 0 0;
	font-size: 1.75em;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
}

.ic-event-featured-image {
	margin: 0.75rem 0 0 0;
	width: 100%;
	max-width: 100%;
	max-height: 450px;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	display: block;
}

/* Blur background layer - matches reference implementation */
.ic-event-banner-background {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
    opacity: 1;
}

.ic-event-featured-image img,
.ic-event-banner {
	position: relative;
    max-height: 470px;
    width: auto;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Responsive image sizing */
@media (max-width: 1023px) {
	.ic-event-featured-image {
		max-height: 400px;
	}
	
	.ic-event-featured-image img,
	.ic-event-banner {
		max-height: 400px;
	}
	
	.ic-event-title {
		font-size: 1.5em;
	}
}

@media (max-width: 768px) {
	.ic-event-featured-image {
		max-height: 300px;
	}
	
	.ic-event-featured-image img,
	.ic-event-banner {
		max-height: 300px;
	}
	
	.ic-event-title {
		font-size: 1.35em;
	}
	
	.ic-event-header {
		margin-bottom: 1rem;
	}
}

.ic-event-content-wrapper {
	margin-top: 1.5rem;
}

.ic-event-content {
	line-height: 1.8;
}

/* Event Sidebar Widgets */
.ic-event-sidebar .widget-area {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.ic-event-details,
.ic-event-organizer,
.ic-event-ticket {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 1.5rem;
}

.ic-event-details h3,
.ic-event-organizer h3,
.ic-event-ticket h3 {
	margin: 0 0 1rem 0;
	font-size: 1.2em;
	font-weight: 600;
	color: #1a1a1a;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e5e5e5;
}

.ic-event-details ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ic-event-details li {
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f0f0f0;
}

.ic-event-details li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.ic-event-details li strong {
	display: inline-block;
	min-width: 80px;
	color: #666;
	font-weight: 500;
}

.ic-event-organizer p {
	margin: 0;
	line-height: 1.6;
}

.ic-event-organizer a {
	color: var(--c-main, #2ab391);
	text-decoration: none;
}

.ic-event-organizer a:hover {
	text-decoration: underline;
}

.ic-event-ticket .ic-buy-ticket {
	display: block;
	width: 100%;
	text-align: center;
}

/* Responsive Layout */
@media (max-width: 1023px) {
	.ic-event-content-wrapper {
		flex-direction: column;
	}

	.ic-event-main-content {
		width: 100%;
		max-width: 100%;
		margin-bottom: 2rem;
	}

	.ic-event-sidebar {
		width: 100%;
		max-width: 100%;
		display: block !important; /* Ensure sidebar is visible on mobile */
	}
}

/* Fixed Buy Tickets Button for Mobile */
.ic-event-fixed-buy-button {
	display: none;
}

@media screen and (max-width: 768px) {
	.ic-event-fixed-buy-button {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99999;
		background: #fff;
		border-top: 1px solid #e0e0e0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
		padding: 0.75rem 1rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0;
	}

	.ic-fixed-buy-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		width: 100%;
		padding: 0.875rem 1.25rem;
		background: var(--c-main, #2ab391);
		color: #fff;
		text-decoration: none;
		border-radius: 8px;
		font-weight: 600;
		font-size: 1rem;
		transition: background 0.3s ease, transform 0.2s ease;
		box-shadow: 0 2px 8px rgba(42, 179, 145, 0.3);
	}

	.ic-fixed-buy-btn:active {
		transform: scale(0.98);
	}

	.ic-fixed-buy-btn:hover {
		background: #238f73;
		color: #fff;
	}

	.ic-fixed-buy-icon {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.ic-fixed-buy-icon svg {
		width: 20px;
		height: 20px;
		fill: currentColor;
	}

	.ic-fixed-buy-text {
		flex: 1;
		text-align: center;
	}

	.ic-fixed-buy-separator {
		margin: 0 0.25rem;
		opacity: 0.7;
	}

	.ic-fixed-buy-price {
		font-weight: 700;
	}

	/* Add padding to main container to prevent content from being hidden behind fixed button */
	.single-ic_event .main,
	.single-ic_event article.ic-event-single {
		padding-bottom: 80px;
	}
}

/* Related Events Section */
.ic-related-events {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e5e5;
}

.ic-related-events-title {
	margin: 0 0 1.5rem 0;
	font-size: 1.75em;
	font-weight: 600;
	color: #1a1a1a;
}

.ic-related-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

/* Custom column classes for shortcode */
.ic-related-events-grid.ic-related-events-cols-1 {
	grid-template-columns: 1fr;
}

.ic-related-events-grid.ic-related-events-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.ic-related-events-grid.ic-related-events-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.ic-related-events-grid.ic-related-events-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Responsive related events grid */
@media (max-width: 1023px) {
	.ic-related-events-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 768px) {
	.ic-related-events {
		margin-top: 2rem;
		padding-top: 1.5rem;
	}
	
	.ic-related-events-title {
		font-size: 1.5em;
		margin-bottom: 1.25rem;
	}
	
	.ic-related-events-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem;
	}
}

