/**
 * Zemra Marketplace & Booking – Frontend-Styles.
 * Alle Klassen mit Präfix "zmb-". Wird nur geladen, wenn ein
 * Zemra-Shortcode auf der Seite vorkommt.
 */

.zmb-form-wrap,
.zmb-dashboard {
	max-width: 720px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
}

.zmb-field {
	margin-bottom: 16px;
}

.zmb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.zmb-field input[type="text"],
.zmb-field input[type="number"],
.zmb-field input[type="date"],
.zmb-field select,
.zmb-field textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.zmb-field input[type="file"] {
	display: block;
	margin-top: 6px;
}

.zmb-required {
	color: #b32d2e;
}

.zmb-field-group {
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 20px;
}

.zmb-field-group legend {
	font-weight: 600;
	padding: 0 6px;
}

.zmb-field-group[disabled] {
	opacity: 0.6;
}

.zmb-hint {
	color: #646970;
	font-size: 13px;
	margin: 4px 0 12px;
}

.zmb-checkbox-group label {
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
}

.zmb-notice {
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.zmb-notice-info {
	background: #eef6fc;
	border: 1px solid #c8e1f4;
}

.zmb-notice-error {
	background: #fbeaea;
	border: 1px solid #f3c6c6;
	color: #7a1414;
}

.zmb-form-message {
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-weight: 600;
}

.zmb-form-message-success {
	background: #eaf7ea;
	color: #0a5c0a;
	border: 1px solid #c5e6c5;
}

.zmb-form-message-error {
	background: #fbeaea;
	color: #7a1414;
	border: 1px solid #f3c6c6;
}

.zmb-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
}

.zmb-button-primary {
	background: #1d4ed8;
	color: #fff;
}

.zmb-button-primary:hover {
	background: #1739a8;
	color: #fff;
}

.zmb-button-secondary {
	background: #fff;
	border-color: #ccd0d4;
	color: #1d2327;
}

.zmb-form-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.zmb-featured-preview img {
	max-width: 220px;
	border-radius: 6px;
	display: block;
	margin-bottom: 8px;
}

.zmb-gallery-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.zmb-gallery-item {
	position: relative;
	width: 90px;
	height: 90px;
}

.zmb-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.zmb-gallery-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: #b32d2e;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	font-size: 14px;
}

/* Dashboard */

.zmb-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.zmb-dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

.zmb-dashboard-table th,
.zmb-dashboard-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #e2e4e7;
	font-size: 14px;
}

.zmb-dashboard-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.zmb-link-button {
	background: none;
	border: none;
	color: #1d4ed8;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	text-decoration: underline;
}

.zmb-link-button-danger {
	color: #b32d2e;
}

.zmb-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eef0f2;
	color: #3c434a;
}

.zmb-badge-publish {
	background: #e4f4e4;
	color: #0a5c0a;
}

.zmb-badge-zmb_pending {
	background: #fff4e0;
	color: #8a5a00;
}

.zmb-badge-zmb_rejected {
	background: #fbeaea;
	color: #7a1414;
}

.zmb-badge-zmb_paused {
	background: #eceff1;
	color: #445;
}

.zmb-badge-draft {
	background: #eef0f2;
	color: #3c434a;
}

.zmb-back-link {
	margin-bottom: 16px;
}

.zmb-back-link a {
	text-decoration: none;
}

/* Karten-Picker im Anzeigenformular */

.zmb-map-picker {
	height: 260px;
	border-radius: 6px;
	margin-bottom: 6px;
	background: #eef0f2;
}

/* Suche */

.zmb-search-form {
	background: #f8f9fa;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.zmb-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.zmb-search-row:last-child {
	margin-bottom: 0;
}

.zmb-search-row input[type="text"],
.zmb-search-row input[type="number"],
.zmb-search-row select {
	flex: 1 1 180px;
	min-width: 140px;
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
}

.zmb-search-row-actions {
	justify-content: space-between;
	align-items: center;
}

.zmb-search-dynamic-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 4px 0 10px;
}

.zmb-field-inline {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.zmb-field-inline label {
	font-weight: 400;
	margin: 0;
	white-space: nowrap;
}

.zmb-field-inline input,
.zmb-field-inline select {
	padding: 6px 8px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 13px;
	width: 90px;
}

.zmb-view-toggle {
	display: inline-flex;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	overflow: hidden;
}

.zmb-view-toggle-btn {
	background: #fff;
	border: none;
	padding: 8px 16px;
	font-size: 13px;
	cursor: pointer;
}

.zmb-view-toggle-btn.is-active {
	background: #1d4ed8;
	color: #fff;
}

.zmb-search-count {
	color: #646970;
	font-size: 13px;
	margin: 0 0 12px;
}

.zmb-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.zmb-card {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.zmb-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.zmb-card-image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #eef0f2;
}

.zmb-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zmb-card-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #d97706;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
}

.zmb-card-body {
	padding: 12px 14px;
}

.zmb-card-title {
	font-size: 15px;
	margin: 0 0 4px;
	color: #1d2327;
}

.zmb-card-location {
	font-size: 13px;
	color: #646970;
	margin: 0 0 6px;
}

.zmb-card-price {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	color: #1d4ed8;
}

.zmb-search-map {
	height: 520px;
	border-radius: 8px;
	overflow: hidden;
}

.zmb-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
	justify-content: center;
}

.zmb-page-btn {
	min-width: 34px;
	padding: 6px 10px;
	border: 1px solid #ccd0d4;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.zmb-page-btn.is-active {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

/* Detail-Galerie und Eckdaten (an den Beitragsinhalt angehängt) */

.zmb-detail-gallery {
	margin: 20px 0;
}

.zmb-detail-gallery-main {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.zmb-detail-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.zmb-detail-gallery-thumbs img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
}

.zmb-detail-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 24px;
}

.zmb-detail-fact {
	background: #eef0f2;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.zmb-detail-fact-price {
	background: #1d4ed8;
	color: #fff;
}

/* Buchungs-Widget */

.zmb-booking-widget {
	max-width: 420px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 20px;
	margin: 24px 0;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zmb-booking-widget-title {
	margin-top: 0;
	font-size: 17px;
}

.zmb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.zmb-calendar-title {
	font-weight: 600;
}

.zmb-calendar-nav {
	background: #f1f2f4;
	border: none;
	border-radius: 4px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 14px;
}

.zmb-calendar-weekdays,
.zmb-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.zmb-calendar-weekdays span {
	font-size: 11px;
	color: #646970;
	font-weight: 600;
	padding: 4px 0;
}

.zmb-cal-day {
	border: none;
	background: #f7f8f9;
	border-radius: 4px;
	padding: 8px 0;
	font-size: 13px;
	cursor: pointer;
}

.zmb-cal-day:hover:not(:disabled) {
	background: #dbe6fb;
}

.zmb-cal-day:disabled {
	cursor: not-allowed;
	color: #c3c4c7;
}

.zmb-cal-day.is-blocked {
	background: #fbeaea;
	color: #b32d2e;
	text-decoration: line-through;
}

.zmb-cal-day.is-checkin,
.zmb-cal-day.is-checkout {
	background: #1d4ed8;
	color: #fff;
	font-weight: 700;
}

.zmb-cal-day.is-in-range {
	background: #c7d9fb;
}

.zmb-booking-selection {
	margin: 14px 0;
	font-size: 14px;
}

.zmb-booking-quote {
	margin: 14px 0;
	border-top: 1px solid #e2e4e7;
	padding-top: 10px;
}

.zmb-quote-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 3px 0;
}

.zmb-quote-total {
	font-weight: 700;
	font-size: 15px;
	border-top: 1px solid #e2e4e7;
	margin-top: 6px;
	padding-top: 8px;
}

/* Preisregeln (im Anzeigenformular) */

.zmb-pricing-rules-list {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

.zmb-pricing-rules-list th,
.zmb-pricing-rules-list td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid #e2e4e7;
	font-size: 13px;
}

.zmb-pricing-rule-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: end;
}

.zmb-pricing-rule-form .zmb-field {
	margin-bottom: 0;
}

.zmb-pricing-rule-form input {
	padding: 6px 8px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 13px;
	width: 120px;
}

/* Reservierungslisten (Dashboard) */

.zmb-booking-card {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.zmb-booking-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.zmb-booking-card-ref {
	font-size: 12px;
	color: #646970;
}

.zmb-booking-card-dates {
	font-size: 14px;
	margin: 4px 0;
}

.zmb-booking-card-actions {
	margin-top: 8px;
	display: flex;
	gap: 10px;
}

/* Favoriten-Button auf Suchkarten */

.zmb-card-favorite {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
}

/* Kontakt / Favorit / Melden (Detailseite) */

.zmb-contact-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 16px 0;
	flex-wrap: wrap;
}

.zmb-contact-form,
.zmb-report-form {
	max-width: 480px;
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zmb-contact-form textarea,
.zmb-report-form textarea,
.zmb-report-form select {
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
}

/* Bewertungen */

.zmb-reviews {
	margin: 28px 0;
	max-width: 640px;
}

.zmb-reviews-avg {
	font-size: 14px;
	font-weight: 600;
	color: #646970;
	margin-left: 8px;
}

.zmb-review-card {
	border-bottom: 1px solid #e2e4e7;
	padding: 14px 0;
}

.zmb-review-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4px;
}

.zmb-review-rating {
	color: #d97706;
	font-weight: 600;
}

.zmb-review-title {
	margin: 4px 0;
}

.zmb-review-reply {
	background: #f7f8f9;
	border-radius: 6px;
	padding: 10px 12px;
	margin-top: 8px;
}

.zmb-review-reply-form {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 420px;
}

.zmb-review-reply-form textarea {
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.zmb-review-form {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e4e7;
}

/* Nachrichten */

.zmb-messages h2,
.zmb-message-thread h2 {
	margin-top: 0;
}

.zmb-message-thread {
	max-width: 640px;
}

.zmb-message-list {
	max-height: 420px;
	overflow-y: auto;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
	background: #fafbfc;
}

.zmb-message {
	max-width: 75%;
	background: #eef0f2;
	border-radius: 10px;
	padding: 8px 12px;
	margin-bottom: 8px;
}

.zmb-message-own {
	margin-left: auto;
	background: #1d4ed8;
	color: #fff;
}

.zmb-message-time {
	display: block;
	font-size: 11px;
	opacity: 0.7;
	margin-top: 4px;
}

.zmb-message-compose {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zmb-message-compose textarea {
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.zmb-message-actions {
	display: flex;
	gap: 14px;
	margin-top: 10px;
}

/* Benachrichtigungen */

.zmb-notifications {
	max-width: 640px;
	margin-bottom: 24px;
}

.zmb-notification-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e4e7;
}

.zmb-notification-item.is-unread {
	background: #eef6fc;
}

.zmb-notification-item p {
	margin: 2px 0;
	font-size: 13px;
	color: #3c434a;
}

.zmb-notification-time {
	font-size: 11px;
	color: #8c8f94;
}

.zmb-badge-unread {
	background: #b32d2e;
	color: #fff;
}
