.agm-modal .link--wrapper {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.agm-modal .content--card-wrapper:hover {
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}
/**
 * AGM Map Block Styles
 */
.section--agm-map {
	padding: 40px 0;
	background-color: #f9f9f9;
}

@media (max-width: 768px) {
	.section--agm-map {
		padding: 30px 0;
	}
}

.agm-map-container {
	position: relative;
	width: 100%;
	height: auto;
}

/**
 * Google Map
 */
#agm-map {
	width: 100%;
	height: 600px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

@media (max-width: 768px) {
	#agm-map {
		height: 400px;
	}
}

@media (max-width: 480px) {
	#agm-map {
		height: 300px;
	}
}

/**
 * Modal Styles
 */
.agm-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	background: white;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
	z-index: 999;
	transition: all 0.3s ease-in-out;
	opacity: 0;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

@media (max-width: 768px) {
	.agm-modal {
		width: 95%;
		max-width: none;
	}
}

.agm-modal.agm-modal-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
	box-shadow: 0 16px 56px rgba(0, 0, 0, 0.35);
}

.agm-modal-content {
	position: relative;
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.agm-modal-content {
		padding: 20px;
	}
}

.agm-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agm-modal-close:hover {
	color: #2e7d8c;
	transform: scale(1.1);
}

.agm-modal-close:active {
	transform: scale(0.95);
}

.agm-modal-body {
	padding-top: 0;
}

.agm-modal-location {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e8e8e8;
}

.agm-modal-location p {
	margin: 8px 0;
	font-size: 24px;
	color: #096b64;
	font-weight: 600;
}

.agm-modal-location p span {
	font-weight: 400;
	color: #666;
}

@media (max-width: 768px) {
	.agm-modal-location p {
		font-size: 15px;
	}
}

.agm-modal-years {
	margin-top: 20px;
}

.agm-modal-years-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.agm-modal-years-grid--single {
	grid-template-columns: 1fr;
}

.agm-modal .content--card-small--inner {
	background: #096b64;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
}

.agm-modal .highlight-white {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.agm-modal .icon-card-area--large {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.agm-modal .icon-cards {
	width: 48px;
	height: auto;
}

@media (max-width: 768px) {
	.agm-modal-years-grid {
		grid-template-columns: 1fr;
	}

	.highlight-white {
		font-size: 16px;
	}
}

/**
 * Modal Backdrop
 */
.agm-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	z-index: 998;
	transition: all 0.3s ease-in-out;
	pointer-events: none;
}

.agm-modal-backdrop.agm-modal-backdrop-open {
	background: rgba(0, 0, 0, 0.5);
	pointer-events: auto;
}

/**
 * Map Controls Styling (Google Maps Controls)
 */
/* Google Maps controls use default styling */
/* Customize as needed in your theme customizer */

/**
 * Accessibility
 */
@media (prefers-reduced-motion: reduce) {
	.agm-modal,
	.agm-modal-backdrop,
	.agm-modal-close {
		transition: none !important;
	}
}

/**
 * Print Styles
 */
@media print {
	.agm-modal,
	.agm-modal-backdrop {
		display: none !important;
	}
	#agm-map {
		height: auto;
		min-height: 300px;
	}
}

/**
 * Animation Classes
 */
@keyframes scaleIn {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.7);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Use animations for modern browsers */
@supports (animation: scaleIn 0.3s ease-in-out) {
	.agm-modal.agm-modal-open {
		animation: scaleIn 0.3s ease-in-out;
	}
	.agm-modal-backdrop.agm-modal-backdrop-open {
		animation: fadeIn 0.3s ease-in-out;
	}
}
