/* MHL Flohmarkt & Fahrzeughandel – Public-Styles
   Nutzt die Theme-CSS-Variablen (mit Fallbacks, damit das Plugin auch ohne
   das Theme mhl-oldtimer-vintage nutzbar bleibt). .mhl-btn/.mhl-btn-primary/
   .mhl-btn-outline sind bereits im Theme (assets/css/main.css) definiert und
   werden hier nur um fehlende Varianten ergänzt. */

.mhl-listing-form-wrap,
.mhl-my-listings-wrap {
	max-width: 720px;
}

/* -- Hinweise -- */

.mhl-notice {
	padding: 0.9em 1.1em;
	border-radius: var( --radius-sm, 6px );
	margin-bottom: 1.25em;
	border: 1px solid transparent;
}
.mhl-notice p {
	margin: 0;
}
.mhl-notice-success {
	background: rgba( 60, 130, 80, 0.12 );
	border-color: rgba( 60, 130, 80, 0.4 );
	color: #2b6b40;
}
.mhl-notice-error {
	background: rgba( 176, 40, 40, 0.1 );
	border-color: rgba( 176, 40, 40, 0.4 );
	color: #8a2323;
}
.mhl-notice-info {
	background: var( --mhl-cream, #f4ead8 );
	border-color: var( --mhl-border, rgba( 184, 138, 68, 0.35 ) );
	color: var( --mhl-text, #2a2119 );
}

/* -- Formular -- */

.mhl-listing-form .mhl-form-row {
	margin-bottom: 1.1em;
}
.mhl-listing-form label,
.mhl-listing-form .mhl-form-legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
	color: var( --mhl-text, #2a2119 );
}
.mhl-listing-form input[type='text'],
.mhl-listing-form input[type='number'],
.mhl-listing-form input[type='tel'],
.mhl-listing-form input[type='email'],
.mhl-listing-form textarea,
.mhl-listing-form select,
.mhl-listing-form input[type='file'] {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid var( --mhl-border, rgba( 184, 138, 68, 0.35 ) );
	border-radius: var( --radius-sm, 6px );
	background: var( --mhl-paper, #fbf5ea );
	color: var( --mhl-text, #2a2119 );
	font: inherit;
	box-sizing: border-box;
}
.mhl-listing-form textarea {
	resize: vertical;
}
.mhl-listing-form input:focus,
.mhl-listing-form textarea:focus,
.mhl-listing-form select:focus {
	outline: none;
	border-color: var( --mhl-brass-light, rgba( 214, 176, 106, 0.85 ) );
	box-shadow: 0 0 0 1px var( --mhl-brass-dim, rgba( 184, 138, 68, 0.25 ) );
}

.mhl-form-row-group {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) );
	gap: 1em;
}

.mhl-radio-label {
	display: flex !important;
	align-items: center;
	gap: 0.5em;
	font-weight: 400 !important;
	margin-bottom: 0.4em;
}
.mhl-radio-label input {
	width: auto;
}

.mhl-form-required-note {
	font-size: 0.85rem;
	color: var( --mhl-text-muted, #7a6a58 );
	margin: 0.3em 0 0;
}

.mhl-form-submit {
	margin-top: 1.5em;
}

.mhl-btn-sm {
	padding: 0.4em 0.9em;
	font-size: 0.85rem;
}
.mhl-btn-danger {
	color: #8a2323;
	border-color: #8a2323;
	background: transparent;
}
.mhl-btn-danger:hover {
	background: #8a2323;
	color: #fff;
}

.mhl-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -- Bild-Verwaltung im Formular -- */

.mhl-listing-image-list,
.mhl-listing-image-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin-top: 0.5em;
}
.mhl-listing-image-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	font-size: 0.8rem;
	font-weight: 400;
}
.mhl-listing-image-item img {
	border-radius: var( --radius-sm, 6px );
	object-fit: cover;
	border: 1px solid var( --mhl-border, rgba( 184, 138, 68, 0.35 ) );
}
.mhl-listing-image-preview img {
	width: 90px;
	height: 68px;
	object-fit: cover;
	border-radius: var( --radius-sm, 6px );
	border: 1px solid var( --mhl-border, rgba( 184, 138, 68, 0.35 ) );
}

/* -- Meine Anzeigen -- */

.mhl-my-listings-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
}
.mhl-my-listings-item {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 0.9em;
	border: 1px solid var( --mhl-border, rgba( 184, 138, 68, 0.35 ) );
	border-radius: var( --radius-md, 10px );
	background: var( --mhl-paper, #fbf5ea );
}
.mhl-my-listings-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 54px;
	border-radius: var( --radius-sm, 6px );
	overflow: hidden;
	background: var( --mhl-cream, #f4ead8 );
}
.mhl-my-listings-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mhl-my-listings-body {
	flex: 1 1 auto;
	min-width: 0;
}
.mhl-my-listings-body h3 {
	margin: 0 0 0.2em;
	font-size: 1.05rem;
}
.mhl-my-listings-meta {
	margin: 0;
	font-size: 0.85rem;
	color: var( --mhl-text-muted, #7a6a58 );
}
.mhl-my-listings-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 0.5em;
}
.mhl-my-listings-actions form {
	display: inline;
}
