body.logged-in .menu-container .user-logged-out {
	display: none;
}
body:not(.logged-in) .menu-container .user-logged-in {
	display: none;
}
body:not(.admin-bar) .menu-container .user-admin {
	display: none;
}

.rem-form {
	border: 1px solid #ccc;
	background-color: #fff;
	padding: 20px;
	border-radius: 5px;
	& .rem-message {
		padding: 10px;
		border-radius: 5px;
		margin-bottom: 20px;
		background-color: #d4edda;
		color: #155724;
		&.error {
			background-color: #f8d7da;
			color: #721c24;
		}
	}
	& form {
		position: relative;
		display: block;
	}
	& .rem-form-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}
	label {
		display: block;
		margin-top: 5px;
		margin-bottom: 2px;
		font-weight: 600;
		color: #333;
	}
	& input[type="text"], & input[type="email"], & input[type="password"], & input[type="tel"], & input[type="url"], & input[type="number"], & select, & textarea {
		width: 100%;
		padding: 10px;
		border: 1px solid #ddd;
		border-radius: 4px;
		font-size: 14px;
		box-sizing: border-box;
	}
	& input:focus, & select:focus, & textarea:focus {
		outline: none;
		border-color: #0073aa;
		box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
	}
	& .notice {
		margin-top: 10px;
	}
	.rem-loading {
		position: absolute;
		left: -10px;
		top: -10px;
		width: calc(100% + 20px);
		height: calc(100% + 20px);
		background-color: rgba(0,0,0,.1);
		& span {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			&:before {
				content: '';
				display: block;
				width: 30px;
				height: 30px;
				margin: 0 auto;
				border-radius: 50%;
				border: 3px solid rgba(0,0,0,.3);
				border-top-color: #fff;
				animation: spin .6s linear infinite;
			}
			@keyframes spin {
				from { transform: rotate(0deg); }
				to { transform: rotate(360deg); }
			}
		}
	}
}
.rem-user-dashboard {
	& .rem-dashboard-nav {
		display: flex;
		justify-content: space-between;
		margin-bottom: 20px;
		& .rem-nav-link {
			color: #000;
			padding: 10px 20px;
			border: 1px solid #ccc;
			border-radius: 5px;
			background-color: #f0f0f0;
			&:hover {
				background-color: #fff;
			}
			&.active {
				background-color: #fff;
			}
		}
	}
	& .rem-dashboard-section {
		display: none;
		&.active {
			display: block;
		}
	}
}

.rem-properties-page {
	border: 1px solid #ccc;
	background-color: #fff;
	padding: 20px;
	border-radius: 5px;
	& .rem-properties-table {
		margin-top: 20px;
		table {
			width: 100%;
			border-collapse: collapse;
			margin-top: 10px;
			& th {
				background-color: #f0f0f0;
				border: 1px solid #ccc;
				padding: 10px;
				text-align: left;
			}
			& td {
				border: 1px solid #ccc;
				padding: 10px;
			}
		}
	}
	& .rem-modal {
		z-index: 1000;
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,.5);
		display: none;
		& .rem-modal-content {
			background-color: #fff;
			border-radius: 5px;
			padding: 20px;
			position: fixed;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			width: 100%;
			height: auto;
			max-width: 1000px;
			max-height: 100%;
		}
		& .rem-modal-close {
			cursor: pointer;
			float: right;
			font-size: 28px;
			font-weight: bold;
			&:hover {
				text-decoration: none;
				color: #000;
			}
		}
	}
}
@media (max-width: 1000px) {
	.rem-properties-page {
		& .rem-modal-content {
			left: 0;
			top: 0;
			transform: none;
			border-radius: 0;
			overflow: scroll;
		}
	}
}

.rem-button {
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	margin-top: 20px;
	cursor: pointer;
	&:hover {
		background-color: #005676;
	}
}

.rem-button,
.rem-button-secondary {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}
.rem-button {
	background: #0073aa;
	color: white;
}
.rem-button:hover {
	background: #005a87;
}
.rem-button-secondary {
	background: #f1f1f1;
	color: #333;
}
.rem-button-secondary:hover {
	background: #ddd;
}

.rem-properties-page {
	padding: 20px;
}
.rem-properties-table {
	margin: 30px 0;
	overflow-x: auto;
}
.rem-properties-table table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.rem-properties-table th,
.rem-properties-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
	&.centered {
		text-align: center;
	}
}
.rem-properties-table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #333;
}
.rem-properties-table tr:hover {
	background: #f9f9f9;
}
.rem-properties-table button {
	padding: 6px 12px;
	margin: 0;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.rem-edit-btn {
	background: #0073aa;
	color: white;
}
.rem-edit-btn:hover {
	background: #005a87;
}
.rem-delete-btn {
	background: #d63638;
	color: white;
}
.rem-delete-btn:hover {
	background: #b32d2e;
}

.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}
.status-neu {
	background: #e7f5ff;
	color: #0073aa;
}
.status-in-arbeit {
	background: #fff3cd;
	color: #856404;
}
.status-veröffentlicht,
.status-veroffentlicht {
	background: #d4edda;
	color: #155724;
}
.status-deaktiviert {
	background: #f8d7da;
	color: #721c24;
}

.rem-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	transition: color 0.3s ease;
}
.rem-modal-close:hover {
	color: #333;
}

.rem-image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 10px;
}
.rem-image-item img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}
.rem-image-remove {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(214, 54, 56, 0.9);
	color: white;
	border: none;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.rem-image-remove:hover {
	background: rgba(214, 54, 56, 1);
	transform: scale(1.1);
}
.rem-image-order {
	position: absolute;
	bottom: 5px;
	left: 5px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
}

.rem-price-summary {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 4px;
	margin: 20px 0;
}
.rem-price-summary p {
	margin: 10px 0;
	display: flex;
	justify-content: space-between;
	font-size: 16px;
}
.rem-price-summary .total-price {
	border-top: 2px solid #333;
	padding-top: 10px;
	margin-top: 10px;
	font-size: 20px;
	font-weight: bold;
	color: #0073aa;
}

#rem-view-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
	& .rem-modal-content {
		background-color: white;
		margin: 5% auto;
		padding: 30px;
		border-radius: 8px;
		width: 90%;
		max-width: 600px;
		max-height: 90vh;
		overflow-y: auto;
		position: relative;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	}
	& .rem-modal-close {
		position: absolute;
		top: 15px;
		right: 20px;
		font-size: 28px;
		font-weight: bold;
		color: #999;
		cursor: pointer;
		transition: color 0.3s ease;
	}
	& .rem-modal-close:hover {
		color: #333;
	}
}

.rem-property {
	border: 1px solid #ccc;
	background-color: #fff;
	padding: 20px;
	border-radius: 5px;
	& .rem-property-video {
		width: 560px;
		height: 315px;
		max-width: 100%;
		max-height: 100%;
		display: block;
		margin: 20px auto;
	}
	& .rem-property-image {
		width: 100%;
		height: 250px;
		padding-top: calc(75% / 4 * 3);
		background-size: cover;
		background-position: center;
		background-color: #f0f0f0;
		position: relative;
	}
	& .no-image {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: 48px;
	}
	& .rem-property-price-badge {
		position: absolute;
		top: 15px;
		right: 15px;
		background: rgba(0, 115, 170, 0.95);
		color: white;
		padding: 8px 15px;
		border-radius: 4px;
		font-size: 18px;
		font-weight: bold;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	}
	& .rem-property-meta {
		margin-bottom: 20px;
	}
	& .rem-property-meta-item {
		display: grid;
		grid-template-columns: 60px 1fr;
		align-items: center;
		margin-bottom: 10px;
	}
	& .rem-property-meta-item .definition {
		margin-right: 10px;
		font-weight: bold;
	}
	& .rem-property-details {
		margin: 40px 0;
	}
	& .rem-property-images {
		& .title {
			font-weight: bold;
			margin-bottom: 20px;
		}
		& .rem-property-images-list {
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
			padding: 0;
			list-style-type: none;
			justify-content: center;
			& li {
				vertical-align: middle;
				align-self: center;
				justify-self: center;
				& img {
					width: 100%;
					max-width: 240px;
					height: auto;
					max-height: 300px;
				}
			}
		}
	}
}