/* IEI Frontend Styles */

/* Locations Cards */
.iei-locations-container {
	margin: 30px 0;
}

.iei-location-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.location-image {
	margin-bottom: 15px;
	height: 200px;
	overflow: hidden;
	border-radius: 5px;
}

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

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

.location-info h3 {
	margin: 0 0 10px 0;
	font-size: 22px;
	color: #333;
	font-weight: 600;
}

.location-city {
	color: #666;
	margin-bottom: 15px;
	font-size: 14px;
}

.more-info-btn {
	background: #d4a574;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background 0.3s ease;
}

.more-info-btn:hover {
	background: #b8935f;
}

/* Popup Styles */
.iei-location-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	z-index: 999999;
	display: none;
	overflow-y: auto;
	backdrop-filter: blur(5px);
}

.iei-location-popup.active {
	display: flex !important;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.popup-content {
	background: white;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	border-radius: 12px;
	margin: 20px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from { 
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to { 
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.popup-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 32px;
	cursor: pointer;
	z-index: 1000;
	color: #999;
	line-height: 1;
	font-weight: 300;
	transition: color 0.3s ease;
	padding: 5px;
}

.popup-close:hover {
	color: #333;
}

.popup-body {
	display: flex;
	padding: 40px;
	gap: 40px;
}

.popup-left {
	flex: 1;
}

.popup-left h2 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 28px;
	color: #333;
	font-weight: 700;
}

.popup-left p {
	margin: 12px 0;
	color: #666;
	line-height: 1.6;
	font-size: 15px;
}

.popup-left p strong {
	color: #333;
}

.popup-left a {
	color: #d4a574;
	text-decoration: none;
	transition: color 0.3s ease;
}

.popup-left a:hover {
	color: #b8935f;
	text-decoration: underline;
}

.popup-right {
	flex: 1;
}

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

.popup-social a {
	display: inline-block;
	margin-right: 15px;
	font-size: 28px;
	color: #666;
	transition: all 0.3s ease;
}

.popup-social a:hover {
	color: #d4a574;
	transform: translateY(-2px);
}

.popup-social .fa-facebook:hover { color: #1877f2; }
.popup-social .fa-instagram:hover { color: #e4405f; }
.popup-social .fa-linkedin:hover { color: #0077b5; }
.popup-social .fa-youtube:hover { color: #ff0000; }
.popup-social .fa-tiktok:hover { color: #000; }

#open-map-btn,
#map-open-map-btn {
	width: 100%;
	margin-top: 20px;
	background: #d4a574;
	color: white;
	border: none;
	padding: 15px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.3s ease;
}

#open-map-btn:hover,
#map-open-map-btn:hover {
	background: #b8935f;
}

#popup-map {
	width: 100%;
	height: 400px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #ddd;
}

#popup-image img {
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Map Container */
.iei-map-container {
	margin: 30px 0;
}

.iei-map-search {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.iei-map-search input {
	flex: 1;
	padding: 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.iei-map-search input:focus {
	outline: none;
	border-color: #d4a574;
}

.iei-map-search button {
	padding: 12px 20px;
	background: #d4a574;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease;
}

.iei-map-search button:hover {
	background: #b8935f;
}

#iei-all-locations-map,
#iei-locations-map {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
	.popup-body {
		flex-direction: column;
		padding: 25px;
		gap: 25px;
	}
	
	.popup-left h2 {
		font-size: 24px;
	}
	
	#popup-map {
		height: 250px !important;
	}
	
	.iei-map-search {
		flex-direction: column;
	}
	
	.iei-map-search input {
		width: 100%;
		margin-bottom: 10px;
	}
	
	.location-image {
		height: 150px;
	}
	
	.popup-content {
		width: 95%;
		max-height: 95vh;
	}
	
	.popup-close {
		font-size: 28px;
		top: 10px;
		right: 15px;
	}
}

@media (max-width: 480px) {
	.popup-body {
		padding: 20px;
	}
	
	.popup-left h2 {
		font-size: 20px;
	}
	
	.popup-social a {
		font-size: 24px;
		margin-right: 12px;
	}
	
	.iei-location-card {
		padding: 15px;
	}
	
	.location-info h3 {
		font-size: 18px;
	}
}