/**
 * Custom Estatik Add Listing form — reference layout
 */
:root {
	--hector-primary: #00aeef;
	--hector-border: #e5e7eb;
	--hector-card-bg: #ffffff;
	--hector-page-bg: #f3f4f6;
	--hector-text: #111827;
	--hector-muted: #6b7280;
	--hector-error: #dc2626;
	--hector-info-bg: #e0f4fc;
	--hector-radius: 12px;
	--hector-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.hector-add-listing-wrap {
	font-family: var(--hector-font);
	font-size: 14px;
	color: var(--hector-text);
	max-width: 960px;
	margin: 0 auto 48px;
	padding: 24px 16px;
	background: var(--hector-page-bg);
}

.hector-add-listing-header {
	text-align: center;
	margin-bottom: 20px;
}

.hector-add-listing-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
}

.hector-add-listing-package {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.hector-add-listing-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.hector-add-listing-notice--info {
	background: var(--hector-info-bg);
	border: 1px solid #b6e4f7;
}

.hector-add-listing-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--hector-error);
}

.hector-add-listing-notice--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.hector-card {
	background: var(--hector-card-bg);
	border: 1px solid var(--hector-border);
	border-radius: var(--hector-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 24px;
	margin-bottom: 20px;
}

.hector-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
}

.hector-card__title--spaced {
	margin-top: 28px;
}

.hector-card__subtitle {
	color: var(--hector-muted);
	margin: -8px 0 16px;
	font-size: 13px;
}

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

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

.hector-field .required {
	color: var(--hector-error);
}

.hector-field input[type="text"],
.hector-field input[type="email"],
.hector-field input[type="tel"],
.hector-field input[type="url"],
.hector-field select,
.hector-field textarea {
	width: 100%;
	border: 1px solid var(--hector-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.hector-field textarea {
	min-height: 120px;
	resize: vertical;
}

.hector-field--error input,
.hector-field--error select,
.hector-field--error textarea {
	border-color: var(--hector-error);
}

.hector-field__error {
	display: block;
	color: var(--hector-error);
	font-size: 12px;
	margin-top: 4px;
}

.hector-field__hint {
	display: block;
	color: var(--hector-muted);
	font-size: 12px;
	margin-top: 4px;
}

.hector-field--email {
	position: relative;
}

.hector-field--email .hector-field__icon {
	position: absolute;
	left: 12px;
	top: 38px;
	color: var(--hector-muted);
}

.hector-field--email input {
	padding-left: 28px;
}

.hector-grid {
	display: grid;
	gap: 16px;
}

.hector-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.hector-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.hector-checkbox-grid {
	display: grid;
	gap: 10px;
}

.hector-checkbox-grid--categories {
	grid-template-columns: repeat(2, 1fr);
}

.hector-checkbox-grid--payments {
	grid-template-columns: repeat(3, 1fr);
}

.hector-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.hector-timing-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.hector-timing-tab {
	border: 1px solid var(--hector-border);
	background: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

.hector-timing-tab.is-active {
	background: var(--hector-primary);
	border-color: var(--hector-primary);
	color: #fff;
}

.hector-timing-panel {
	display: none;
}

.hector-timing-panel.is-active {
	display: block;
}

.hector-extra-details__body.is-hidden {
	display: none;
}

.hector-dropzone {
	border: 2px dashed var(--hector-border);
	border-radius: var(--hector-radius);
	padding: 32px 16px;
	text-align: center;
	background: #fafafa;
}

.hector-dropzone.is-dragover {
	border-color: var(--hector-primary);
	background: #f0f9ff;
}

.hector-gallery-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
	justify-content: center;
}

.hector-gallery-preview__item {
	position: relative;
	width: 80px;
	height: 80px;
}

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

.hector-gallery-preview__remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background: var(--hector-error);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.hector-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.hector-btn--outline {
	background: #fff;
	border: 1px solid var(--hector-border);
	color: var(--hector-text);
}

.hector-btn--primary,
.hector-btn--submit {
	background: var(--hector-primary);
	color: #fff;
}

.hector-btn--block {
	width: 100%;
	margin-top: 12px;
}

.hector-btn--submit {
	width: 100%;
	padding: 16px;
	font-size: 16px;
	margin-top: 8px;
}

.hector-video-preview {
	margin-top: 12px;
}

.hector-video-preview iframe {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.hector-grid--2,
	.hector-grid--3,
	.hector-checkbox-grid--payments {
		grid-template-columns: 1fr;
	}

	.hector-checkbox-grid--categories {
		grid-template-columns: 1fr;
	}

	.hector-add-listing-title {
		font-size: 22px;
	}
}
