/**
 * Store Locator Popover Styles
 */

/* Overlay */
.av-store-locator-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 999998;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.av-store-locator-overlay.active {
	display: block;
	opacity: 1;
}

/* Popover Container */
.av-store-locator {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
	overflow-y: auto;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.av-store-locator.active {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Close Button */
.av-store-locator-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.av-store-locator-close:hover {
	background: #fff;
	transform: scale(1.1);
}

.av-store-locator-close::before,
.av-store-locator-close::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 2px;
	background: #333;
	transition: background 0.2s ease;
}

.av-store-locator-close::before {
	transform: rotate(45deg);
}

.av-store-locator-close::after {
	transform: rotate(-45deg);
}

.av-store-locator-close:hover::before,
.av-store-locator-close:hover::after {
	background: #000;
}

/* Content Wrapper */
.av-store-locator-content {
	max-width: 450px;
	margin: 0 auto 0 10%;
	padding: 20px;
	/* height: calc(100% - 85px); */
	display: flex;
	flex-direction: column;
	align-items: center;
	border-radius: 20px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 568px) {
	.av-store-locator-content {
		margin: 0 15px;
	}
}

/* Header */
.av-store-locator-header {
	text-align: center;
	margin-bottom: 11px;
	width: 100%;
}

.av-store-locator-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.av-store-locator-logo {
	max-width: 260px;
	height: auto;
	display: block;
	margin: 10px auto 21px;
}

.av-store-locator-subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

/* Locate Me Button (hidden for now, but keeping structure) */
.av-store-locator-locate-btn {
	display: none;
}

/* Store List */
.av-store-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	overflow-y: auto;
	padding: 2px 0;
}

/* Store Card */
.av-store-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #000;
}

.av-store-card:hover {
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.av-store-card-content {
	flex: 1;
	min-width: 0;
}

.av-store-card-city {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

.av-store-card-details {
	font-size: 14px;
	color: #666;
	margin: 0;
	line-height: 1.4;
}

.av-store-card-status {
	font-weight: 600;
	color: #2e7d32;
}

.av-store-card-status.closed {
	color: #d32f2f;
}

.av-store-card-distance {
	display: none;
	font-weight: 700;
	color: #1a1a1a;
	margin-right: 5px;
}

.av-store-card-arrow {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-left: 15px;
	transition: transform 0.3s ease;
}

.av-store-card:hover .av-store-card-arrow {
	transform: translateX(5px);
}

.av-store-card-arrow svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	color: #666;
}

/* No stores message */
.av-store-locator-empty {
	text-align: center;
	padding: 40px 20px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
}

/* Button */
.av-store-locator-button-wrap {
	margin-top: 30px;
	text-align: center;
	width: 100%;
}

.av-store-locator-button {
	display: inline-block;
	padding: 14px 40px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	width: 100%;
}

.av-store-locator-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	opacity: 0.9;
}

/* Button element specific styles (for close button) */
button.av-store-locator-button {
	border: none;
	cursor: pointer;
	font-family: inherit;
}

/* Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.av-store-locator.active .av-store-locator-content {
	animation: fadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
	.av-store-locator-content {
		padding: 40px 15px;
	}
	
	.av-store-locator-title {
		font-size: 24px;
	}
	
	.av-store-locator-logo {
		max-width: 250px;
	}
	
	.av-store-locator-subtitle {
		font-size: 14px;
	}
	
	.av-store-card {
		padding: 18px 20px;
	}
	
	.av-store-card-city {
		font-size: 16px;
		margin-bottom: 6px;
	}
	
	.av-store-card-details {
		font-size: 13px;
	}
	
	.av-store-locator-close {
		top: 15px;
		right: 15px;
		width: 36px;
		height: 36px;
	}
	
	.av-store-locator-button {
		padding: 12px 32px;
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.av-store-locator-title {
		font-size: 20px;
		letter-spacing: 1px;
	}
	
	.av-store-locator-logo {
		max-width: 200px;
	}
	
	.av-store-card {
		padding: 16px 18px;
	}
	
	.av-store-card-city {
		font-size: 15px;
	}
	
	.av-store-card-details {
		font-size: 12px;
	}
	
	.av-store-card-arrow {
		width: 20px;
		height: 20px;
		margin-left: 10px;
	}
	
	.av-store-locator-button {
		padding: 12px 28px;
		font-size: 14px;
	}
}
