/* Add-listing category / form picker only */

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-list,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 8px 0 24px;
	padding: 4px;
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 132px;
	padding: 20px 14px;
	border: 1px solid #dfe8e2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px -22px rgba(16, 35, 24, 0.35);
	color: #102318;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item:hover,
.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item.active,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item:hover,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item.active {
	border-color: #1f6b4a;
	background: #eef6f1;
	box-shadow: 0 14px 30px -20px rgba(31, 107, 74, 0.55);
	transform: translateY(-2px);
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-icon,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #f3f7f4;
	overflow: hidden;
	flex: none;
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-icon img,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-icon:empty,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-icon:empty {
	background: linear-gradient(135deg, #d8ebe1 0%, #eef6f1 100%);
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-title,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-title {
	margin: 0;
	color: #102318;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item:hover .rtcl-form-title,
.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item.active .rtcl-form-title,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item:hover .rtcl-form-title,
.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item.active .rtcl-form-title {
	color: #164e37;
}

@media (max-width: 991px) {
	.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-list,
	.rtcl-form-page #rtcl-form-builder-container .rtcl-form-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ecorahi-listing-submitted-notice {
	max-width: 860px;
	margin: 0 auto 18px;
	padding: 16px 18px;
	border: 1px solid #b9dcc8;
	border-radius: 14px;
	background: #eef6f1;
	color: #164e37;
	text-align: center;
}

.ecorahi-listing-submitted-notice strong {
	display: block;
	margin-bottom: 6px;
	font-size: 18px;
}

.ecorahi-listing-submitted-notice p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Locked category field (category URL or guest invite) */

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked {
	pointer-events: none;
	cursor: not-allowed;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category .ant-select-selector,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked .ant-select-selector {
	background: #f3f7f4 !important;
	border-color: #dfe8e2 !important;
	color: #164e37;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category .ant-select-arrow,
.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category .ant-select-clear,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked .ant-select-arrow,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked .ant-select-clear {
	display: none !important;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category .ant-select-selection-item,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked .ant-select-selection-item {
	color: #164e37;
	font-weight: 600;
	line-height: 30px;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .ecorahi-category-readonly {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #dfe8e2;
	border-radius: 10px;
	background: #f3f7f4;
	color: #164e37;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-field-content:has(.ecorahi-category-readonly) .rtcl-fb-input-category {
	display: none !important;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked:has(.ecorahi-category-readonly) .rtcl-fb-errors {
	display: none !important;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked.ecorahi-category-synced .rtcl-fb-errors,
.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-errors:empty {
	display: none !important;
}

.ecorahi-lock-category .rtcl-fb-field.ecorahi-category-field--locked .rtcl-fb-input-category .ant-select-selection-search,
.ecorahi-lock-category .rtcl-fb-input-category.ecorahi-category-locked .ant-select-selection-search {
	width: 0 !important;
	margin: 0 !important;
	overflow: hidden;
}

@media (max-width: 575px) {
	.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-list,
	.rtcl-form-page #rtcl-form-builder-container .rtcl-form-list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-item,
	.rtcl-form-page #rtcl-form-builder-container .rtcl-form-item {
		min-height: 0;
		flex-direction: row;
		justify-content: flex-start;
		padding: 14px 16px;
		text-align: left;
	}

	.ecorahi-add-listing-page #rtcl-form-builder-container .rtcl-form-icon,
	.rtcl-form-page #rtcl-form-builder-container .rtcl-form-icon {
		width: 48px;
		height: 48px;
	}
}

/* Registered Address / Address Nominatim suggestions */
.ecorahi-address-suggest-field .rtcl-fb-field-content {
	position: relative;
}

.ecorahi-address-suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: 240px;
	overflow: auto;
	border: 1px solid #d5e0d9;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 28px -18px rgba(16, 35, 24, 0.45);
}

.ecorahi-address-suggest__item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #eef3f0;
	background: transparent;
	color: #102318;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.ecorahi-address-suggest__item:last-child {
	border-bottom: 0;
}

.ecorahi-address-suggest__item:hover,
.ecorahi-address-suggest__item:focus {
	background: #eef6f1;
	outline: none;
}

.ecorahi-address-suggest__empty {
	padding: 10px 12px;
	color: #5b6b62;
	font-size: 13px;
	line-height: 1.4;
}

.ecorahi-location-selected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	padding: 10px 12px;
	border: 1px solid #d5e0d9;
	border-radius: 10px;
	background: #f7faf8;
}

.ecorahi-location-selected .tax-selected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: #102318;
	font-size: 14px;
}

.ecorahi-location-selected .ecorahi-location-change {
	color: #1f6b4a;
	font-size: 13px;
	white-space: nowrap;
}
