/**
 * Google Maps Modal - MTC Tasarım Standardı
 * 
 * @package GRPCMedia
 * @version 2.0 - #2F2483 Primary Color
 */

/* ============================================
   MODAL BASE
   ============================================ */

.grpc-map-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	animation: fadeIn 0.3s ease;
}

.grpc-map-modal.active {
	display: block;
}

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

.grpc-map-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
}

.grpc-map-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	border-radius: 24px;
	max-width: 950px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(47, 36, 131, 0.5);
	animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
	from {
		transform: translate(-50%, -35%);
		opacity: 0;
		scale: 0.9;
	}
	to {
		transform: translate(-50%, -50%);
		opacity: 1;
		scale: 1;
	}
}

/* ============================================
   MODAL HEADER
   ============================================ */

.grpc-map-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30px 35px;
	background: linear-gradient(135deg, #2F2483 0%, #1e1850 100%);
	color: #ffffff;
	position: relative;
}

.grpc-map-modal-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, 
		transparent 0%, 
		rgba(255,255,255,0.3) 25%, 
		rgba(255,255,255,0.3) 75%, 
		transparent 100%
	);
}

.grpc-map-modal-header h3 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 12px;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.grpc-map-modal-header h3 i {
	font-size: 24px;
	filter: drop-shadow(0 4px 10px rgba(47, 36, 131, 0.5));
}

.grpc-map-modal-close {
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	width: 45px;
	height: 45px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grpc-map-modal-close:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MODAL BODY
   ============================================ */

.grpc-map-modal-body {
	max-height: calc(90vh - 110px);
	overflow-y: auto;
}

/* Custom scrollbar */
.grpc-map-modal-body::-webkit-scrollbar {
	width: 8px;
}

.grpc-map-modal-body::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.grpc-map-modal-body::-webkit-scrollbar-thumb {
	background: #2F2483;
	border-radius: 4px;
}

.grpc-map-modal-body::-webkit-scrollbar-thumb:hover {
	background: #1e1850;
}

/* ============================================
   MAP INFO CARDS
   ============================================ */

.grpc-map-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 25px;
	padding: 30px 35px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.grpc-map-info-item {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 20px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.grpc-map-info-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(47, 36, 131, 0.15);
}

.grpc-map-info-item i {
	font-size: 28px;
	color: #2F2483;
	margin-top: 3px;
	filter: drop-shadow(0 2px 6px rgba(47, 36, 131, 0.3));
}

.grpc-map-info-item strong {
	display: block;
	font-size: 15px;
	color: #2F2483;
	margin-bottom: 6px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.grpc-map-info-item p {
	margin: 0;
	font-size: 15px;
	color: #555555;
	line-height: 1.6;
	font-weight: 500;
}

.grpc-map-info-item a {
	color: #2F2483;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.grpc-map-info-item a:hover {
	color: #1e1850;
	text-decoration: underline;
}

/* ============================================
   IFRAME WRAPPER
   ============================================ */

.grpc-map-iframe-wrapper {
	width: 100%;
	height: 450px;
	position: relative;
	background: #e9ecef;
}

.grpc-map-iframe-wrapper iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.grpc-map-actions {
	display: flex;
	gap: 20px;
	padding: 30px 35px;
	background: #ffffff;
}

.grpc-map-directions-btn,
.grpc-map-open-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 32px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.grpc-map-directions-btn {
	background: linear-gradient(135deg, #2F2483 0%, #1e1850 100%);
	color: #ffffff;
	box-shadow: 0 6px 20px rgba(47, 36, 131, 0.4);
}

.grpc-map-directions-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(47, 36, 131, 0.5);
	background: linear-gradient(135deg, #1e1850 0%, #13102e 100%);
}

.grpc-map-open-btn {
	background: #ffffff;
	color: #2F2483;
	border: 2px solid #2F2483;
	box-shadow: 0 4px 15px rgba(47, 36, 131, 0.15);
}

.grpc-map-open-btn:hover {
	background: linear-gradient(135deg, rgba(47, 36, 131, 0.08) 0%, rgba(47, 36, 131, 0.15) 100%);
	color: #1e1850;
	border-color: #1e1850;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(47, 36, 131, 0.25);
}

.grpc-map-directions-btn i,
.grpc-map-open-btn i {
	font-size: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   TABLET RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.grpc-map-modal-content {
		width: 92%;
		max-height: 90vh;
	}
	
	.grpc-map-info {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	
	.grpc-map-iframe-wrapper {
		height: 400px;
	}
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.grpc-map-modal-content {
		width: 95%;
		border-radius: 20px;
		max-height: 95vh;
	}
	
	.grpc-map-modal-header {
		padding: 20px 25px;
	}
	
	.grpc-map-modal-header h3 {
		font-size: 20px;
	}
	
	.grpc-map-modal-close {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
	
	.grpc-map-info {
		grid-template-columns: 1fr;
		padding: 25px;
		gap: 20px;
	}
	
	.grpc-map-info-item {
		padding: 16px;
	}
	
	.grpc-map-info-item i {
		font-size: 22px;
	}
	
	.grpc-map-info-item strong {
		font-size: 14px;
	}
	
	.grpc-map-info-item p {
		font-size: 14px;
	}
	
	/* HARİTA - MOBIL */
	.grpc-map-iframe-wrapper {
		height: 300px !important;
	}
	
	.grpc-map-iframe-wrapper iframe {
		width: 100% !important;
		height: 300px !important;
	}
	
	.grpc-map-actions {
		flex-direction: column;
		padding: 25px;
		gap: 15px;
	}
	
	.grpc-map-directions-btn,
	.grpc-map-open-btn {
		padding: 14px 28px;
		font-size: 15px;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.grpc-map-modal-content {
		width: 98%;
		border-radius: 16px;
	}
	
	.grpc-map-modal-header {
		padding: 16px 20px;
	}
	
	.grpc-map-modal-header h3 {
		font-size: 18px;
	}
	
	.grpc-map-modal-close {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
	
	.grpc-map-info {
		padding: 20px;
		gap: 16px;
	}
	
	.grpc-map-info-item {
		padding: 14px;
	}
	
	/* HARİTA - EXTRA KÜÇÜK EKRAN */
	.grpc-map-iframe-wrapper {
		height: 250px !important;
	}
	
	.grpc-map-iframe-wrapper iframe {
		height: 250px !important;
	}
	
	.grpc-map-actions {
		padding: 20px;
		gap: 12px;
	}
	
	.grpc-map-directions-btn,
	.grpc-map-open-btn {
		padding: 12px 24px;
		font-size: 14px;
	}
}

/* ============================================
   ADDRESS LINK STYLING (Header)
   ============================================ */

.contact-address .address-link {
	color: inherit;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.contact-address .address-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

