/**
 * Multi Location Manager — Frontend Styles
 * Scoped to .mlm-* classes. Minimal layout only — colors/fonts inherit from theme.
 */

/* -------------------------------------------------------------------------
   Agent Grid
   ------------------------------------------------------------------------- */

.mlm-agents {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mlm-agents__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mlm-agents__photo-wrap {
	width: 100%;
	height: 320px;
	overflow: hidden;
	margin-bottom: 1rem;
}

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

.mlm-agents__details {
	width: 100%;
}

.mlm-agents__name {
	margin: 0 0 0.25rem;
	font-size: 1.1em;
}

.mlm-agents__title {
	margin: 0 0 0.25rem;
}

.mlm-agents__locations {
	margin: 0 0 0.5rem;
	font-size: 0.875em;
	opacity: 0.75;
}

.mlm-agents__email,
.mlm-agents__phone {
	margin: 0.2rem 0;
}

/* Tablet — 2 columns */
@media ( max-width: 900px ) {
	.mlm-agents {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile — 1 column */
@media ( max-width: 560px ) {
	.mlm-agents {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Location List ([mlm_locations_list])
   ------------------------------------------------------------------------- */

.mlm-locations {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-locations__item {
	display: flex;
	flex-direction: column;
}

.mlm-locations-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-locations-list__item {
	display: flex;
	flex-direction: column;
}

.mlm-locations-list__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.mlm-locations-list__name,
.mlm-locations-list__city,
.mlm-locations-list__phone {
	display: block;
	line-height: 1.5;
}

.mlm-locations-list__name {
	font-weight: bold;
	margin-bottom: 0.25rem;
}

.mlm-locations-list__city {
	margin-bottom: 0.25rem;
}

.mlm-locations-list__phone {
	margin-bottom: 0;
}

@media ( max-width: 900px ) {
	.mlm-locations-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media ( max-width: 560px ) {
	.mlm-locations-list {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   All Agents grouped by location ([mlm_all_agents group_by_location="1"])
   ------------------------------------------------------------------------- */

.mlm-all-agents__group {
	margin-bottom: 3rem;
}

.mlm-all-agents__group-title {
	margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------
   Location Switcher ([mlm_switcher])
   ------------------------------------------------------------------------- */

.mlm-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.mlm-switcher__label {
	font-size: 0.875em;
	white-space: nowrap;
}

.mlm-switcher__select {
	font-size: 0.875em;
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	cursor: pointer;
	max-width: 220px;
}
