/**
 * Locations Block Front-end CSS
 */

/* Background Colors - Named Colors */
.locations-bg-image-cont.bg-dark-blue {
	background-color: #0F293E;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-dark-brown {
	background-color: #290B0B;
	opacity: 0.9;
}


.locations-bg-image-cont.bg-burgundy {
	background-color: #800020;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-gold {
	background-color: #B8860B;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-copper {
	background-color: #B87333;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-periwinkle {
	background-color: #CCCCFF;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-deep-blue {
	background-color: #00008B;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-dark-red {
	background-color: #8B0000;
	opacity: 0.9;
}


.locations-bg-image-cont.bg-white {
	background-color: #FFFFFF;
	opacity: 0.9;
}

.locations-bg-image-cont.bg-black {
	background-color: #000000;
	opacity: 0.9;
}

/* Text Colors */
.locations.text-white,
.locations.text-white h1,
.locations.text-white h2,
.locations.text-white h3,
.locations.text-white h4,
.locations.text-white h5,
.locations.text-white h6,
.locations.text-white p,
.locations.text-white .locations-title,
.locations.text-white .locations-description,
.locations.text-white .location-title,
.locations.text-white .location-description,
.locations.text-white .location-name,
.locations.text-white .location-address,
.locations.text-white .location-contact {
	color: #FFFFFF;
}

.locations.text-black,
.locations.text-black h1,
.locations.text-black h2,
.locations.text-black h3,
.locations.text-black h4,
.locations.text-black h5,
.locations.text-black h6,
.locations.text-black p,
.locations.text-black .locations-title,
.locations.text-black .locations-description,
.locations.text-black .location-title,
.locations.text-black .location-description,
.locations.text-black .location-name,
.locations.text-black .location-address,
.locations.text-black .location-contact {
	color: #000000;
}

.locations.text-dark-blue,
.locations.text-dark-blue h1,
.locations.text-dark-blue h2,
.locations.text-dark-blue h3,
.locations.text-dark-blue h4,
.locations.text-dark-blue h5,
.locations.text-dark-blue h6,
.locations.text-dark-blue p,
.locations.text-dark-blue .locations-title,
.locations.text-dark-blue .locations-description,
.locations.text-dark-blue .location-title,
.locations.text-dark-blue .location-description,
.locations.text-dark-blue .location-name,
.locations.text-dark-blue .location-address,
.locations.text-dark-blue .location-contact {
	color: #0F293E;
}

/* Title and Description Styles */
.locations .locations-title,
.locations .location-title {
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 48px;
	line-height: 42px;
	margin-bottom: 23px;
	font-weight: 400;
	text-align: left;
}

.locations .locations-description,
.locations .location-description {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: -0.48px;
	margin-bottom: 23px;
	text-align: left;
}

/* Updated Locations Grid Styling */
.locations .locations-grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin: 0 auto;
}

/* Mobile layout first */
.locations .location-item {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 0 0 30px 0;
	margin-bottom: 30px;
	box-sizing: border-box;
	position: relative;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

/* Card Hover Effects - Similar to Recent Resources */
/* Hover effect for the grid - when any item is hovered, reduce opacity of others */
.locations-grid:hover .location-item {
	opacity: 0.5;
}

/* The hovered item should maintain full opacity */
.locations-grid .location-item:hover {
	opacity: 1;
}

/* Mobile horizontal divider */
.locations .location-with-horizontal-border {
	position: relative;
}

@media (max-width: 1500px) {
	.locations .locations-description,
	.locations .location-description {
		font-size: 16px !important;
	}

	.locations .location-address {
		font-size: 16px !important;
	}

	.locations .location-contact {
		font-size: 16px !important;
	}

	.l-location-icon {
		font-size: 16px !important;
	}

	.locations .wp-block-button .wp-block-button__link,
	.locations .location-button .wp-block-button__link,
	.locations .locations-button .wp-block-button__link {
		font-size: 16px !important;
	}
}

.locations .location-with-horizontal-border:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.40);
	margin-bottom: 30px;
}

/* Border colors based on text color for horizontal borders */
.locations.text-white .location-with-horizontal-border:after {
	background-color: rgba(255, 255, 255, 0.40);
}

.locations.text-black .location-with-horizontal-border:after {
	background-color: rgba(0, 0, 0, 0.40);
}

.locations.text-dark-blue .location-with-horizontal-border:after {
	background-color: rgba(15, 41, 62, 0.40);
}

/* Desktop layout with fixed widths for proper spacing */
@media (min-width: 768px) {
	.locations .locations-grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		column-gap: 72px;
		width: 100%;
	}

	.locations .location-item {
		padding: 0;
		margin: 0 0 30px 0;
		width: 100%;
		max-width: 100%;
	}

	/* Apply vertical border to first and second columns only */
	.locations .location-with-border {
		position: relative;
	}

	.locations .location-with-border:after {
		content: '';
		position: absolute;
		top: 0;
		right: -36px; /* Half of the 72px gap */
		height: 100%;
		width: 1px;
		background-color: rgba(255, 255, 255, 0.40);
	}

	/* Remove horizontal borders on desktop */
	.locations .location-with-horizontal-border:after {
		display: none;
	}

	/* Disable hover effect on mobile, enable on desktop */
	.locations-grid:hover .location-item {
		opacity: 0.5;
	}

	.locations-grid .location-item:hover {
		opacity: 1;
	}
}

/* Disable hover effect on mobile */
@media (max-width: 767px) {
	.locations-grid:hover .location-item {
		opacity: 1 !important;
	}
}

/* Border colors based on text color for vertical borders */
.locations.text-white .location-with-border:after {
	background-color: rgba(255, 255, 255, 0.40);
}

.locations.text-black .location-with-border:after {
	background-color: rgba(0, 0, 0, 0.40);
}

.locations.text-dark-blue .location-with-border:after {
	background-color: rgba(15, 41, 62, 0.40);
}

/* Location Item Styling */
.locations .location-name {
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 24px;
	line-height: 30px;
	font-weight: 400;
	text-align: left;
	margin-bottom: 29px;
}

.locations .location-address {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 29px;
	text-align: left;
}

/* Clickable address styling */
.locations .location-address .address-link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}



.locations .location-contact {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	text-align: left;
}

.locations .location-contact .separator {
	margin: 0 10px;
}

.locations .phone-wrapper,
.locations .fax-wrapper {
	display: flex;
	align-items: center;
}

/* Phone link styling */
.locations .phone-link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}



.l-location-icon {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px;
	margin-right: 5px;
}

/* Button Styles */
.locations .wp-block-buttons,
.locations .location-buttons,
.locations .locations-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-start;
}

/* Default Button Style (single button with background) */
.locations .wp-block-button .wp-block-button__link,
.locations .location-button .wp-block-button__link,
.locations .locations-button .wp-block-button__link {
	background-color: #A6B8E3;
	color: #000;
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	line-height: 21px;
	font-weight: 400;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
}

.locations .wp-block-button .wp-block-button__link:hover,
.locations .location-button .wp-block-button__link:hover,
.locations .locations-button .wp-block-button__link:hover {
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 0 rgba(0, 0, 0, 0.15);
	transition: 300ms ease-in;
}

/* Background image container */
.locations-bg-image-cont{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.locations-bg-image{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
	object-fit: cover;
}

/* Container and structure */
.locations .container {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0 auto;
	padding: 0 30px;
}

@media (max-width: 767px) {
	.location-contact {
		margin-bottom: 41px;
	}

	.locations .container {
		padding: 0 20px;
	}
}
