/**
 * Contact Page - Locations Section
 * Modern design, 1 column layout, accordion, employee cards
 *
 * @package MG
 */

/* ========================================
   Page Content Container Override
   ======================================== */

.page-content-container {
	padding-top: 0;
	padding-bottom: 0;
}

/* ========================================
   Contact Locations Section
   ======================================== */

.contact-locations {
	padding: 60px 20px;
	background: #fff;
}

.contact-locations__container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ========================================
   Location Card
   ======================================== */

.contact-location__card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 48px;
	margin-bottom: 48px;
	transition: box-shadow 0.3s ease;
}

.contact-location__card:last-child {
	margin-bottom: 0;
}

.contact-location__card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
	.contact-location__card {
		padding: 32px 24px;
		margin-bottom: 32px;
	}
}

/* ========================================
   Header
   ======================================== */

.contact-location__header {
	margin-bottom: 32px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 24px;
}

.contact-location__title {
	font-size: 36px;
	font-weight: 700;
	color: #000;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.contact-location__address {
	font-size: 18px;
	color: #505062;
	margin: 0 0 8px 0;
	line-height: 1.5;
}

.contact-location__nip {
	font-size: 14px;
	color: #78788a;
	margin: 0;
	font-weight: 500;
}

@media (max-width: 640px) {
	.contact-location__title {
		font-size: 28px;
	}

	.contact-location__address {
		font-size: 16px;
	}
}

/* ========================================
   Map
   ======================================== */

.contact-location__map {
	width: 100%;
	margin-bottom: 32px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-location__map iframe {
	width: 100%;
	height: 400px;
	display: block;
	border: 0;
}

@media (max-width: 768px) {
	.contact-location__map iframe {
		height: 300px;
	}
}

/* ========================================
   Hours
   ======================================== */

.contact-location__hours {
	margin-bottom: 32px;
	padding: 24px;
	background: #f8f8f8;
	border-radius: 8px;
}

.contact-location__hours h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #000;
}

.contact-location__hours-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

@media (max-width: 640px) {
	.contact-location__hours-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.hours-column strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #000;
}

.hours-column pre {
	font-family: var(--mg-font-sans);
	font-size: 15px;
	line-height: 1.7;
	color: #505062;
	margin: 0;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* ========================================
   Departments Accordion
   ======================================== */

.contact-location__departments {
	margin-bottom: 32px;
}

/* Accordion item (using <details>) */
.contact-location__dept-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	margin: 0;
}

.contact-location__dept-item:last-child {
	border-bottom: none;
}

/* Summary (clickable header) */
.contact-location__dept-title {
	font-size: 20px;
	font-weight: 600;
	color: #000;
	line-height: 1.4;
	padding: 24px 0;
	cursor: pointer;
	list-style: none;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	transition: color 0.2s ease;
}

.contact-location__dept-title:hover {
	color: #333;
}

/* Remove default marker */
.contact-location__dept-title::-webkit-details-marker {
	display: none;
}

/* Plus/minus icon */
.contact-location__dept-title::after {
	content: '+';
	font-size: 28px;
	font-weight: 300;
	color: #000;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 16px;
}

.contact-location__dept-item[open] .contact-location__dept-title::after {
	content: '−';
}

/* Content (expandable) */
.contact-location__dept-content {
	padding: 0 0 24px 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
}

@media (max-width: 1024px) {
	.contact-location__dept-content {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.contact-location__dept-content .no-employees {
	font-size: 14px;
	color: #78788a;
	font-style: italic;
	margin: 0;
	grid-column: 1 / -1;
}

/* ========================================
   Employee Card (Brand Design)
   ======================================== */

.contact-location__employee {
	display: flex;
	gap: 24px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	margin-bottom: 0;
}

/* Employee Media (Photo) */
.employee__media {
	flex-shrink: 0;
	width: 140px;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: #e8e8e8;
}

.employee__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Employee Placeholder (Brand Design) */
.employee__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	color: rgba(0, 0, 0, 0.15);
}

.employee__placeholder-icon {
	width: 50%;
	height: auto;
	display: block;
	opacity: 0.6;
}

/* Employee Body (Info + Actions) */
.employee__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
}

.employee__info {
	flex: 1;
}

.employee__name {
	font-size: 20px;
	font-weight: 700;
	color: #000;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.employee__position {
	font-size: 15px;
	color: #505062;
	margin: 0;
	line-height: 1.5;
}

.employee__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-start;
}

.employee__actions .btn {
	font-size: 13px;
	padding: 8px 16px;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.2s ease;
	border-radius: 6px;
}

.employee__actions .btn--compact {
	font-size: 13px;
	padding: 8px 16px;
}

.employee__actions .btn:hover {
	transform: translateY(-1px);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
	.employee__media {
		width: 120px;
	}

	.employee__name {
		font-size: 18px;
	}

	.employee__position {
		font-size: 14px;
	}
}

/* Responsive: Mobile */
@media (max-width: 640px) {
	.contact-location__employee {
		flex-direction: column;
		gap: 20px;
	}

	.employee__media {
		width: 100%;
		max-width: 240px;
		margin: 0 auto;
		aspect-ratio: 4 / 5;
	}

	.employee__body {
		text-align: center;
	}

	.employee__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.employee__actions .btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}

/* ========================================
   Footer (Directions Button)
   ======================================== */

.contact-location__footer {
	text-align: center;
	padding-top: 16px;
}

.contact-location__footer .btn {
	min-width: 240px;
	font-size: 16px;
	padding: 14px 32px;
	text-decoration: none;
	display: inline-block;
}

@media (max-width: 640px) {
	.contact-location__footer .btn {
		width: 100%;
		min-width: 0;
	}
}