/*
===========================================
GOOGLE MAPS FIX - Harita Görünüm Düzeltmesi
===========================================
*/

/* Google Maps Container - CRITICAL */
.map-container {
	width: 100% !important;
	height: 500px !important;
	overflow: hidden !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
	background: #f8f9fa !important;
	position: relative !important;
	margin-bottom: 2rem !important;
	display: block !important;
}

.map-container iframe {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	height: 100% !important;
	width: 100% !important;
	border: 0 !important;
	display: block !important;
	border-radius: 12px !important;
}

/* Contact page specific */
.contact-mapbox {
	width: 100% !important;
	height: 100% !important;
	display: block !important;
}

.contact-mapbox .map-container {
	width: 100% !important;
	height: 450px !important;
}

.contact-mapbox iframe {
	width: 100% !important;
	height: 100% !important;
}

/* Ensure iframe loads */
iframe[src*="google.com/maps"] {
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	display: block !important;
	min-height: 400px !important;
}

/* Contact section layout */
.contact-section {
	padding: 3rem 0 !important;
}

.contact-section .row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 2rem !important;
}

.contact-section .col-lg-8,
.contact-section .col-md-12 {
	flex: 1 1 65% !important;
	min-width: 0 !important;
}

.contact-section .col-lg-4 {
	flex: 1 1 30% !important;
	min-width: 280px !important;
}

/* Mobile responsive */
@media (max-width: 992px) {
	.map-container,
	.contact-mapbox .map-container {
		height: 400px !important;
	}
	
	.contact-section .col-lg-8,
	.contact-section .col-lg-4 {
		flex: 1 1 100% !important;
	}
}

@media (max-width: 768px) {
	.map-container,
	.contact-mapbox .map-container {
		height: 350px !important;
		margin-bottom: 1.5rem !important;
	}
	
	.contact-section {
		padding: 2rem 0 !important;
	}
	
	iframe[src*="google.com/maps"] {
		min-height: 300px !important;
	}
}

@media (max-width: 576px) {
	.map-container,
	.contact-mapbox .map-container {
		height: 300px !important;
	}
}

/* Ensure map is visible and clickable */
.map-container {
	pointer-events: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.map-container iframe {
	pointer-events: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Animation for map load */
@keyframes fadeInMap {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.map-container {
	animation: fadeInMap 0.6s ease-out !important;
}

/* Loading state */
.map-container::before {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 40px !important;
	height: 40px !important;
	border: 4px solid #f3f3f3 !important;
	border-top: 4px solid #0066cc !important;
	border-radius: 50% !important;
	animation: spin 1s linear infinite !important;
	z-index: 1 !important;
}

.map-container.loaded::before {
	display: none !important;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

