/* ============================================================
   Datei: /wp-content/plugins/mietp-core/inc/modules/listings/css/listings-admin.css
   Modul: Listings (Admin)
   Autor: MARKS MEDIA
   Zweck:
     - Admin-Styling für die drei Metaboxen:
         1) Kategorien (Checkbox-Baum)
         2) Galerie
         3) Preistabelle
     - Übersichtliche, klare Darstellung ohne überschüssige UI
============================================================ */

/* ------------------------------------------------------------
   0) Basis-Container (falls benötigt)
------------------------------------------------------------ */
.mietp-admin-block {
	background: #fff;
	border: 1px solid #ddd;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 6px;
}

.mietp-admin-block h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 600;
	color: #111;
}

.mietp-admin-field {
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
}

.mietp-admin-field label {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
}

.mietp-admin-field input,
.mietp-admin-field textarea,
.mietp-admin-field select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
}

/* ------------------------------------------------------------
   1) Kategorien – Checkbox-Baum
------------------------------------------------------------ */
.mietp-cat-tree {
	max-height: 380px;
	overflow: auto;
	padding: 6px 4px;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 4px;
}

.mp-cat-ul {
	list-style: none;
	margin: 0;
	padding-left: 16px;
}

.mp-cat-ul li {
	margin: 4px 0;
}

.mp-cat-ul label {
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	user-select: none;
}

.mp-cat-ul input[type="checkbox"] {
	transform: scale(1.1);
	cursor: pointer;
}

/* ------------------------------------------------------------
   2) Galerie (Admin)
------------------------------------------------------------ */
#mp-admin-gallery-wrapper {
	border: 1px solid #ddd;
	padding: 10px;
	background: #fafafa;
	border-radius: 4px;
}

.mp-admin-gallery-items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.mp-admin-gallery-item {
	width: 80px;
	height: 80px;
	overflow: hidden;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mp-admin-gallery-item img {
	max-width: 100%;
	max-height: 100%;
	display: block;
}

/* ------------------------------------------------------------
   3) Preistabelle (Admin)
------------------------------------------------------------ */
.mp-admin-prices-wrapper {
	border: 1px solid #ddd;
	padding: 10px;
	background: #fafafa;
	border-radius: 4px;
}

.mp-admin-price-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
}

.mp-admin-price-table th {
	background: #f0f0f0;
	font-weight: 600;
	padding: 6px;
	border-bottom: 1px solid #ccc;
	font-size: 13px;
}

.mp-admin-price-table td {
	padding: 6px;
	border-bottom: 1px solid #e5e5e5;
}

.mp-admin-price-table input {
	width: 100%;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.mp-price-remove {
	background: #cc3333;
	color: #fff;
	border: none;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.mp-price-remove:hover {
	background: #b42c2c;
}

.mp-price-add {
	background: #006699;
	color: #fff;
	border: none;
	padding: 8px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.mp-price-add:hover {
	background: #004d66;
}
