/**
 * Datei: locations.css
 * Modul: Locations
 * Autor: MARKS MEDIA
 *
 * Zweck:
 *   Enthält ausschließlich modulbezogenes Frontend-Styling für die Standortverwaltung.
 *   Globale Eingabe-, Button- und Farbdefinitionen liegen im Theme.
 */

/* ============================================================
   1. Container
============================================================ */
#mp-locations-wrap {
	margin-top: 10px;
}
#mp-locations-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 25px;
}

/* ============================================================
   2. Standort-Karten
============================================================ */
.mp-location-card {
	background: var(--color-8);
	border: 1px solid var(--color-6);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 14px;
}
.mp-location-address {
	flex: 1;
	font-size: 15px;
	color: var(--color-4);
	line-height: 1.5;
}
.mp-location-address strong {
	display: block;
	font-size: 16px;
	color: var(--color-1);
	margin-bottom: 2px;
	font-weight: 600;
}

/* ============================================================
   3. Formular-Layout (ohne globale Input- oder Button-Styles)
============================================================ */
#mp-location-form-wrap {
	background: var(--color-7);
	border: 1px solid var(--color-6);
	border-radius: 8px;
	padding: 18px 20px;
}
#mp-location-form .mp-field {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
}
#mp-location-form .mp-field-row {
	display: flex;
	gap: 10px;
}
#mp-location-form .mp-field-row .mp-field {
	flex: 1;
}
#mp-location-form label {
	font-size: 13px;
	color: var(--color-4);
	margin-bottom: 4px;
}
#mp-location-form .description {
	font-size: 12px;
	color: var(--color-5);
}

/* ============================================================
   4. Karte
============================================================ */
#mp-locations-map {
	width: 100%;
	height: 350px;
	border-radius: 10px;
	margin-bottom: 25px;
	border: 1px solid var(--color-6);
}

/* ============================================================
   5. Responsive Anpassungen
============================================================ */
@media (max-width: 768px) {
	#mp-location-form .mp-field-row {
		flex-direction: column;
	}
	.mp-location-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.mp-location-actions {
		margin-top: 8px;
	}
}

/* ============================================================
   6. Dropdown Breite
============================================================ */
#mp-location-select,
.select2-container {
	width: 100% !important;
	min-width: 100% !important;
	box-sizing: border-box;
}
