/**
 * Block editor — land.html design system for property blocks.
 */

:root {
	--gitag-primary-navy: #032248;
	--gitag-accent-gold: #b49341;
	--gitag-text-main: #2d3748;
	--gitag-text-muted: #718096;
	--gitag-bg-light: #f7fafc;
	--gitag-border-color: #e2e8f0;
	--gitag-accent-blue: #3182ce;
	--gitag-input-border: #cbd5e0;
	--gitag-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--gitag-transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Block wrappers --- */

.editor-styles-wrapper .gitag-land-detail-block,
.gitag-land-detail-block,
.editor-styles-wrapper .gitag-hero-block,
.gitag-hero-block,
.editor-styles-wrapper .gitag-gallery-block,
.gitag-gallery-block,
.editor-styles-wrapper .gitag-listing-comment-block,
.gitag-listing-comment-block {
	box-sizing: border-box;
}

.editor-styles-wrapper .gitag-land-detail-block *,
.gitag-land-detail-block *,
.editor-styles-wrapper .gitag-hero-block *,
.gitag-hero-block *,
.editor-styles-wrapper .gitag-gallery-block *,
.gitag-gallery-block *,
.editor-styles-wrapper .gitag-listing-comment-block *,
.gitag-listing-comment-block * {
	box-sizing: border-box;
}

.editor-styles-wrapper .gitag-land-detail-editor,
.gitag-land-detail-editor {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* --- Section headers (land.html section-title) --- */

.editor-styles-wrapper .gitag-form-section,
.gitag-form-section {
	margin-top: 32px;
}

.editor-styles-wrapper .gitag-form-section:first-child,
.gitag-form-section:first-child {
	margin-top: 0;
}

.editor-styles-wrapper .gitag-section-header-block,
.gitag-section-header-block {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 2px solid var(--gitag-primary-navy);
	padding-bottom: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}

.editor-styles-wrapper .gitag-section-title,
.gitag-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--gitag-primary-navy);
	margin: 0;
	line-height: 1.4;
}

.editor-styles-wrapper .gitag-subsection-header,
.gitag-subsection-header {
	margin: 20px 0 12px;
}

.editor-styles-wrapper .gitag-subsection-title,
.gitag-subsection-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--gitag-primary-navy);
	margin: 0;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--gitag-border-color);
}

/* --- Form table (land.html form-table-container) --- */

.editor-styles-wrapper .gitag-form-table-container,
.gitag-form-table-container {
	background-color: #fff;
	border: 1px solid var(--gitag-border-color);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--gitag-shadow-sm);
}

.editor-styles-wrapper .gitag-form-table,
.gitag-form-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.editor-styles-wrapper .gitag-form-label-cell,
.gitag-form-label-cell {
	width: 200px;
	background-color: #fcfcfd;
	padding: 20px;
	vertical-align: top;
	border-right: 1px solid var(--gitag-border-color);
	border-bottom: 1px solid var(--gitag-border-color);
}

.editor-styles-wrapper .gitag-form-row:last-child .gitag-form-label-cell,
.gitag-form-row:last-child .gitag-form-label-cell {
	border-bottom: none;
}

.editor-styles-wrapper .gitag-label-wrapper,
.gitag-label-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.editor-styles-wrapper .gitag-field-label,
.gitag-field-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--gitag-primary-navy);
	line-height: 1.4;
}

.editor-styles-wrapper .gitag-form-control-cell,
.gitag-form-control-cell {
	padding: 16px 20px;
	vertical-align: middle;
	border-bottom: 1px solid var(--gitag-border-color);
}

.editor-styles-wrapper .gitag-form-row:last-child .gitag-form-control-cell,
.gitag-form-row:last-child .gitag-form-control-cell {
	border-bottom: none;
}

/* --- WordPress controls in table cells --- */

.editor-styles-wrapper .gitag-form-control-cell .components-base-control,
.gitag-form-control-cell .components-base-control {
	margin: 0;
	width: 100%;
}

.editor-styles-wrapper .gitag-form-control-cell .components-base-control__field,
.gitag-form-control-cell .components-base-control__field {
	margin-bottom: 0;
}

.editor-styles-wrapper .gitag-form-control-cell .components-text-control__input,
.editor-styles-wrapper .gitag-form-control-cell .components-select-control__input,
.gitag-form-control-cell .components-text-control__input,
.gitag-form-control-cell .components-select-control__input {
	width: 100%;
	max-width: 480px;
	min-height: 38px;
	border: 1px solid var(--gitag-input-border);
	border-radius: 4px;
	font-size: 13px;
	font-family: inherit;
	transition: var(--gitag-transition-base);
}

.editor-styles-wrapper .gitag-form-control-cell .components-text-control__input:focus,
.editor-styles-wrapper .gitag-form-control-cell .components-select-control__input:focus,
.gitag-form-control-cell .components-text-control__input:focus,
.gitag-form-control-cell .components-select-control__input:focus {
	border-color: var(--gitag-accent-blue);
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.editor-styles-wrapper .gitag-form-control-cell .components-textarea-control__input,
.gitag-form-control-cell .components-textarea-control__input {
	width: 100%;
	max-width: 640px;
	min-height: 88px;
	border: 1px solid var(--gitag-input-border);
	border-radius: 4px;
	font-size: 13px;
	transition: var(--gitag-transition-base);
}

/* Select — land.html select-wrapper (single chevron, no double icon) */

.editor-styles-wrapper .gitag-land-detail-block .components-select-control,
.gitag-land-detail-block .components-select-control,
.editor-styles-wrapper .gitag-hero-block .components-select-control,
.gitag-hero-block .components-select-control,
.editor-styles-wrapper .gitag-gallery-block .components-select-control,
.gitag-gallery-block .components-select-control,
.editor-styles-wrapper .gitag-listing-comment-block .components-select-control,
.gitag-listing-comment-block .components-select-control {
	position: relative;
	width: 100%;
	max-width: 480px;
}

.editor-styles-wrapper .gitag-land-detail-block .components-select-control__input,
.gitag-land-detail-block .components-select-control__input,
.editor-styles-wrapper .gitag-hero-block .components-select-control__input,
.gitag-hero-block .components-select-control__input,
.editor-styles-wrapper .gitag-gallery-block .components-select-control__input,
.gitag-gallery-block .components-select-control__input,
.editor-styles-wrapper .gitag-listing-comment-block .components-select-control__input,
.gitag-listing-comment-block .components-select-control__input {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-color: #fff !important;
	background-image: none !important;
	padding-right: 36px !important;
	cursor: pointer;
}

.editor-styles-wrapper .gitag-land-detail-block .components-select-control__input::-ms-expand,
.gitag-land-detail-block .components-select-control__input::-ms-expand,
.editor-styles-wrapper .gitag-hero-block .components-select-control__input::-ms-expand,
.gitag-hero-block .components-select-control__input::-ms-expand,
.editor-styles-wrapper .gitag-gallery-block .components-select-control__input::-ms-expand,
.gitag-gallery-block .components-select-control__input::-ms-expand,
.editor-styles-wrapper .gitag-listing-comment-block .components-select-control__input::-ms-expand,
.gitag-listing-comment-block .components-select-control__input::-ms-expand {
	display: none;
}

.editor-styles-wrapper .gitag-land-detail-block .components-select-control::after,
.gitag-land-detail-block .components-select-control::after,
.editor-styles-wrapper .gitag-hero-block .components-select-control::after,
.gitag-hero-block .components-select-control::after,
.editor-styles-wrapper .gitag-gallery-block .components-select-control::after,
.gitag-gallery-block .components-select-control::after,
.editor-styles-wrapper .gitag-listing-comment-block .components-select-control::after,
.gitag-listing-comment-block .components-select-control::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #a0aec0;
	pointer-events: none;
}

.editor-styles-wrapper .gitag-land-detail-block .components-select-control .components-input-control__suffix,
.editor-styles-wrapper .gitag-land-detail-block .components-input-control__suffix,
.editor-styles-wrapper .gitag-hero-block .components-select-control .components-input-control__suffix,
.editor-styles-wrapper .gitag-hero-block .components-input-control__suffix,
.editor-styles-wrapper .gitag-gallery-block .components-select-control .components-input-control__suffix,
.editor-styles-wrapper .gitag-gallery-block .components-input-control__suffix,
.editor-styles-wrapper .gitag-listing-comment-block .components-select-control .components-input-control__suffix,
.editor-styles-wrapper .gitag-listing-comment-block .components-input-control__suffix,
.gitag-land-detail-block .components-select-control .components-input-control__suffix,
.gitag-land-detail-block .components-input-control__suffix,
.gitag-hero-block .components-select-control .components-input-control__suffix,
.gitag-hero-block .components-input-control__suffix,
.gitag-gallery-block .components-select-control .components-input-control__suffix,
.gitag-gallery-block .components-input-control__suffix,
.gitag-listing-comment-block .components-select-control .components-input-control__suffix,
.gitag-listing-comment-block .components-input-control__suffix {
	display: none !important;
}

/* --- Radio buttons (land.html radio-input) --- */

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control,
.gitag-form-control-cell .components-radio-control {
	width: 100%;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control fieldset,
.gitag-form-control-cell .components-radio-control fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control legend,
.gitag-form-control-cell .components-radio-control legend {
	display: none;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control .components-v-stack,
.editor-styles-wrapper .gitag-form-control-cell .components-radio-control .components-radio-control__group-wrapper,
.editor-styles-wrapper .gitag-form-control-cell .components-radio-control fieldset > div,
.gitag-form-control-cell .components-radio-control .components-v-stack,
.gitag-form-control-cell .components-radio-control .components-radio-control__group-wrapper,
.gitag-form-control-cell .components-radio-control fieldset > div {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
	gap: 8px 24px !important;
	width: 100%;
	text-align: left;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__option,
.gitag-form-control-cell .components-radio-control__option {
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__option label,
.gitag-form-control-cell .components-radio-control__option label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--gitag-text-main) !important;
	margin: 0 !important;
	cursor: pointer !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__input[type="radio"],
.gitag-form-control-cell .components-radio-control__input[type="radio"],
.editor-styles-wrapper .gitag-land-detail-block .components-radio-control__input[type="radio"],
.gitag-land-detail-block .components-radio-control__input[type="radio"],
.editor-styles-wrapper .gitag-hero-block .components-radio-control__input[type="radio"],
.gitag-hero-block .components-radio-control__input[type="radio"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	accent-color: transparent !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	border: 2px solid var(--gitag-input-border) !important;
	border-radius: 50% !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	display: grid !important;
	place-content: center !important;
	cursor: pointer !important;
	transition: var(--gitag-transition-base) !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__input[type="radio"]::before,
.gitag-form-control-cell .components-radio-control__input[type="radio"]::before,
.editor-styles-wrapper .gitag-land-detail-block .components-radio-control__input[type="radio"]::before,
.gitag-land-detail-block .components-radio-control__input[type="radio"]::before,
.editor-styles-wrapper .gitag-hero-block .components-radio-control__input[type="radio"]::before,
.gitag-hero-block .components-radio-control__input[type="radio"]::before {
	content: "" !important;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	transform: scale(0) !important;
	transition: 0.15s transform ease-in-out !important;
	background-color: var(--gitag-primary-navy) !important;
	box-shadow: none !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__input[type="radio"]::after,
.gitag-form-control-cell .components-radio-control__input[type="radio"]::after,
.editor-styles-wrapper .gitag-land-detail-block .components-radio-control__input[type="radio"]::after,
.gitag-land-detail-block .components-radio-control__input[type="radio"]::after,
.editor-styles-wrapper .gitag-hero-block .components-radio-control__input[type="radio"]::after,
.gitag-hero-block .components-radio-control__input[type="radio"]::after {
	content: none !important;
	display: none !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__input[type="radio"]:checked,
.gitag-form-control-cell .components-radio-control__input[type="radio"]:checked,
.editor-styles-wrapper .gitag-land-detail-block .components-radio-control__input[type="radio"]:checked,
.gitag-land-detail-block .components-radio-control__input[type="radio"]:checked,
.editor-styles-wrapper .gitag-hero-block .components-radio-control__input[type="radio"]:checked,
.gitag-hero-block .components-radio-control__input[type="radio"]:checked {
	border-color: var(--gitag-primary-navy) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
}

.editor-styles-wrapper .gitag-form-control-cell .components-radio-control__input[type="radio"]:checked::before,
.gitag-form-control-cell .components-radio-control__input[type="radio"]:checked::before,
.editor-styles-wrapper .gitag-land-detail-block .components-radio-control__input[type="radio"]:checked::before,
.gitag-land-detail-block .components-radio-control__input[type="radio"]:checked::before,
.editor-styles-wrapper .gitag-hero-block .components-radio-control__input[type="radio"]:checked::before,
.gitag-hero-block .components-radio-control__input[type="radio"]:checked::before {
	transform: scale(1) !important;
}

.editor-styles-wrapper .gitag-radio-group,
.gitag-radio-group {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 8px 24px;
	width: 100%;
	text-align: left;
}

.editor-styles-wrapper .gitag-radio-label,
.gitag-radio-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--gitag-text-main);
	cursor: pointer;
	user-select: none;
}

.editor-styles-wrapper .gitag-radio-native,
.gitag-radio-native {
	position: absolute;
	inset: 0 auto auto 0;
	width: 18px;
	height: 18px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.editor-styles-wrapper .gitag-radio-visual,
.gitag-radio-visual {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 2px solid var(--gitag-input-border);
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	transition: var(--gitag-transition-base);
}

.editor-styles-wrapper .gitag-radio-visual::before,
.gitag-radio-visual::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gitag-primary-navy);
	transform: scale(0);
	transition: 0.15s transform ease-in-out;
}

.editor-styles-wrapper .gitag-radio-label.is-checked .gitag-radio-visual,
.gitag-radio-label.is-checked .gitag-radio-visual {
	border-color: var(--gitag-primary-navy);
}

.editor-styles-wrapper .gitag-radio-label.is-checked .gitag-radio-visual::before,
.gitag-radio-label.is-checked .gitag-radio-visual::before {
	transform: scale(1);
}

.editor-styles-wrapper .gitag-radio-native:focus-visible + .gitag-radio-visual,
.gitag-radio-native:focus-visible + .gitag-radio-visual {
	box-shadow: 0 0 0 3px rgba(3, 34, 72, 0.15);
}

/* --- Checkbox grids (land.html checkbox-label) --- */

.editor-styles-wrapper .gitag-checkbox-grid,
.gitag-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 16px;
	max-width: 960px;
	width: 100%;
}

.editor-styles-wrapper .gitag-checkbox-grid--features,
.gitag-checkbox-grid--features {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control,
.gitag-checkbox-grid .components-checkbox-control {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control__input-container,
.gitag-checkbox-grid .components-checkbox-control__input-container {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	border: 2px solid var(--gitag-input-border) !important;
	border-radius: 4px !important;
	background: #fff !important;
	transition: var(--gitag-transition-base) !important;
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control__input,
.gitag-checkbox-grid .components-checkbox-control__input {
	margin: 0 !important;
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control__checked,
.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control__indeterminate,
.gitag-checkbox-grid .components-checkbox-control__checked,
.gitag-checkbox-grid .components-checkbox-control__indeterminate {
	display: none !important;
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control:has(.components-checkbox-control__input:checked) .components-checkbox-control__input-container,
.gitag-checkbox-grid .components-checkbox-control:has(.components-checkbox-control__input:checked) .components-checkbox-control__input-container {
	border-color: var(--gitag-primary-navy) !important;
	background-color: var(--gitag-primary-navy) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 12px !important;
}

.editor-styles-wrapper .gitag-checkbox-grid .components-checkbox-control__label,
.gitag-checkbox-grid .components-checkbox-control__label {
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--gitag-text-main) !important;
}

/* --- Editorial (InnerBlocks paragraph) --- */

.editor-styles-wrapper .gitag-editorial-section__body,
.gitag-editorial-section__body {
	padding: 20px;
}

.editor-styles-wrapper .gitag-editorial-section__body .block-editor-inner-blocks,
.gitag-editorial-section__body .block-editor-inner-blocks {
	width: 100%;
}

.editor-styles-wrapper .gitag-editorial-section__body .block-editor-block-list__layout,
.gitag-editorial-section__body .block-editor-block-list__layout {
	margin: 0;
}

.editor-styles-wrapper .gitag-editorial-section__body .wp-block-paragraph,
.gitag-editorial-section__body .wp-block-paragraph {
	font-size: 13px;
	line-height: 1.7;
	color: var(--gitag-text-main);
	margin: 0;
}

/* --- Live preview --- */

.editor-styles-wrapper .gitag-land-detail-preview,
.gitag-land-detail-preview {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid var(--gitag-primary-navy);
}

.editor-styles-wrapper .gitag-land-detail-preview__head,
.gitag-land-detail-preview__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	flex-wrap: wrap;
	gap: 8px;
}

.editor-styles-wrapper .gitag-land-detail-preview__head h3,
.gitag-land-detail-preview__head h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--gitag-primary-navy);
	margin: 0;
}

.editor-styles-wrapper .gitag-land-detail-preview__badge,
.gitag-land-detail-preview__badge {
	font-size: 11px;
	background: #ebf8ff;
	color: var(--gitag-accent-blue);
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
}

.editor-styles-wrapper .gitag-land-detail-preview__note,
.gitag-land-detail-preview__note {
	font-size: 12px;
	color: var(--gitag-text-muted);
	margin: 0 0 12px;
	line-height: 1.5;
}

/* --- Gallery editor --- */

.editor-styles-wrapper .gitag-gallery-editor-wrap,
.gitag-gallery-editor-wrap {
	padding: 20px;
}

.editor-styles-wrapper .gitag-gallery-editor__item,
.gitag-gallery-editor__item {
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid var(--gitag-border-color);
	border-radius: 6px;
	background: #fff;
}

.editor-styles-wrapper .gitag-gallery-editor__item-head,
.gitag-gallery-editor__item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.editor-styles-wrapper .gitag-gallery-editor__item-num,
.gitag-gallery-editor__item-num {
	font-size: 13px;
	font-weight: 700;
	color: var(--gitag-primary-navy);
}

.editor-styles-wrapper .gitag-gallery-editor__media-row,
.gitag-gallery-editor__media-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	align-items: start;
}

.editor-styles-wrapper .gitag-gallery-editor__thumb-wrap,
.gitag-gallery-editor__thumb-wrap {
	width: 120px;
	height: 90px;
	border: 1px solid var(--gitag-border-color);
	border-radius: 4px;
	overflow: hidden;
	background: var(--gitag-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.editor-styles-wrapper .gitag-gallery-editor__thumb,
.gitag-gallery-editor__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editor-styles-wrapper .gitag-gallery-editor__limit,
.gitag-gallery-editor__limit {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--gitag-text-muted);
}

/* --- Gallery compact live preview --- */

.editor-styles-wrapper .gitag-gallery-preview,
.gitag-gallery-preview {
	max-width: 320px;
}

.editor-styles-wrapper .gitag-gallery-preview__stage,
.gitag-gallery-preview__stage {
	position: relative;
	margin-bottom: 8px;
	border: 1px solid var(--gitag-border-color);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.editor-styles-wrapper .gitag-gallery-preview__main,
.gitag-gallery-preview__main {
	display: block;
	width: 100%;
	height: auto;
	max-height: 168px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--gitag-bg-light);
}

.editor-styles-wrapper .gitag-gallery-preview__placeholder,
.editor-styles-wrapper .gitag-gallery-preview__thumb-placeholder,
.gitag-gallery-preview__placeholder,
.gitag-gallery-preview__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 168px;
	font-size: 11px;
	color: var(--gitag-text-muted);
	background: var(--gitag-bg-light);
}

.editor-styles-wrapper .gitag-gallery-preview__thumb-placeholder,
.gitag-gallery-preview__thumb-placeholder {
	max-height: none;
	aspect-ratio: auto;
	height: 100%;
	font-size: 10px;
}

.editor-styles-wrapper .gitag-gallery-preview__counter,
.gitag-gallery-preview__counter {
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: rgba( 26, 35, 50, 0.72 );
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}

.editor-styles-wrapper .gitag-gallery-preview__caption,
.gitag-gallery-preview__caption {
	margin: 0 0 8px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--gitag-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.editor-styles-wrapper .gitag-gallery-preview__thumbs,
.gitag-gallery-preview__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
}

.editor-styles-wrapper .gitag-gallery-preview__thumbs > li,
.gitag-gallery-preview__thumbs > li {
	flex: 0 0 auto;
}

.editor-styles-wrapper .gitag-gallery-preview__thumb,
.gitag-gallery-preview__thumb {
	display: block;
	width: 52px;
	height: 39px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 3px;
	overflow: hidden;
	cursor: pointer;
	background: var(--gitag-bg-light);
}

.editor-styles-wrapper .gitag-gallery-preview__thumb.is-active,
.gitag-gallery-preview__thumb.is-active {
	border-color: var(--gitag-accent-blue);
}

.editor-styles-wrapper .gitag-gallery-preview__thumb-img,
.gitag-gallery-preview__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editor-styles-wrapper .gitag-gallery-preview--empty,
.gitag-gallery-preview--empty {
	padding: 16px 12px;
	border: 1px dashed var(--gitag-border-color);
	border-radius: 4px;
	background: var(--gitag-bg-light);
	text-align: center;
}

.editor-styles-wrapper .gitag-gallery-preview__empty,
.gitag-gallery-preview__empty {
	margin: 0;
	font-size: 12px;
	color: var(--gitag-text-muted);
}

/* --- Access points --- */

.editor-styles-wrapper .gitag-access-points-wrap,
.gitag-access-points-wrap {
	padding: 20px;
}

.editor-styles-wrapper .gitag-access-points,
.gitag-access-points {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.editor-styles-wrapper .gitag-land-area-block__unit,
.gitag-land-area-block__unit {
	font-size: 13px;
	font-weight: 500;
	color: var(--gitag-text-main);
}

/* --- Land area block (land.html §4 土地面積) --- */

.editor-styles-wrapper .gitag-badge-required,
.gitag-badge-required {
	font-size: 10px;
	font-weight: 700;
	background-color: #fff5f5;
	color: #e53e3e;
	border: 1px solid rgba(229, 62, 62, 0.2);
	border-radius: 3px;
	padding: 2px 6px;
	white-space: nowrap;
}

.editor-styles-wrapper .gitag-land-area-block,
.gitag-land-area-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 720px;
}

.editor-styles-wrapper .gitag-land-area-block__primary,
.gitag-land-area-block__primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.editor-styles-wrapper .gitag-land-area-type-radio,
.gitag-land-area-type-radio {
	gap: 8px 24px;
}

.editor-styles-wrapper .gitag-land-area-block__size,
.gitag-land-area-block__size {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.editor-styles-wrapper .gitag-land-area-block__size--readonly,
.gitag-land-area-block__size--readonly {
	min-height: 38px;
}

.editor-styles-wrapper .gitag-land-area-block__size-value,
.gitag-land-area-block__size-value {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 140px;
	padding: 8px 12px;
	border: 1px solid var(--gitag-input-border);
	border-radius: 4px;
	background: var(--gitag-bg-subtle, #f7fafc);
	font-size: 13px;
	font-weight: 500;
	color: var(--gitag-text-main);
	text-align: right;
}

.editor-styles-wrapper .gitag-land-area-block__size .components-text-control__input,
.gitag-land-area-block__size .components-text-control__input {
	width: 140px !important;
	max-width: 140px !important;
	text-align: right;
}

.editor-styles-wrapper .gitag-land-area-block__tsubo,
.gitag-land-area-block__tsubo {
	font-size: 13px;
	font-weight: 500;
	color: var(--gitag-text-muted);
	margin-left: 8px;
}

.editor-styles-wrapper .gitag-helper-label,
.gitag-helper-label {
	margin: 0;
	font-size: 12px;
	color: var(--gitag-text-muted);
}

.editor-styles-wrapper .gitag-land-area-block__partials,
.gitag-land-area-block__partials {
	border-top: 1px dashed var(--gitag-border-color);
	padding-top: 16px;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.editor-styles-wrapper .gitag-land-area-block__partials-heading,
.gitag-land-area-block__partials-heading {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--gitag-primary-navy);
}

.editor-styles-wrapper .gitag-partial-area-row,
.gitag-partial-area-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.editor-styles-wrapper .gitag-partial-area-row__main,
.gitag-partial-area-row__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.editor-styles-wrapper .gitag-partial-area-row__label,
.gitag-partial-area-row__label {
	width: 200px;
	flex: 0 0 200px;
	font-size: 12px;
	font-weight: 500;
	color: var(--gitag-text-muted);
	text-align: left;
	line-height: 1.4;
}

.editor-styles-wrapper .gitag-partial-area-row__amount,
.gitag-partial-area-row__amount {
	flex: 0 0 auto;
}

.editor-styles-wrapper .gitag-partial-area-row__amount .components-text-control__input,
.gitag-partial-area-row__amount .components-text-control__input {
	width: 120px !important;
	max-width: 120px !important;
	text-align: right;
}

.editor-styles-wrapper .gitag-partial-area-row__unit,
.gitag-partial-area-row__unit {
	flex: 1 1 auto;
	min-width: 0;
}

.editor-styles-wrapper .gitag-partial-area-unit-radio,
.gitag-partial-area-unit-radio {
	gap: 8px 16px;
}

.editor-styles-wrapper .gitag-partial-area-row__note,
.gitag-partial-area-row__note {
	margin-left: 24px;
	font-size: 12px;
	color: #e53e3e;
	line-height: 1.5;
}

.editor-styles-wrapper .gitag-partial-area-row--high-voltage .gitag-partial-area-row__main,
.gitag-partial-area-row--high-voltage .gitag-partial-area-row__main {
	align-items: center;
}

@media (max-width: 782px) {
	.editor-styles-wrapper .gitag-partial-area-row__label,
	.gitag-partial-area-row__label {
		width: 100%;
		flex: 1 1 100%;
	}

	.editor-styles-wrapper .gitag-partial-area-row__note,
	.gitag-partial-area-row__note {
		margin-left: 0;
	}

	.editor-styles-wrapper .gitag-form-label-cell,
	.gitag-form-label-cell,
	.editor-styles-wrapper .gitag-form-control-cell,
	.gitag-form-control-cell {
		display: block;
		width: 100%;
		border-right: none;
	}

	.editor-styles-wrapper .gitag-form-row,
	.gitag-form-row {
		display: block;
	}

	.editor-styles-wrapper .gitag-checkbox-grid,
	.gitag-checkbox-grid,
	.editor-styles-wrapper .gitag-checkbox-grid--features,
	.gitag-checkbox-grid--features {
		grid-template-columns: 1fr 1fr;
	}

	.editor-styles-wrapper .gitag-gallery-editor__media-row,
	.gitag-gallery-editor__media-row {
		grid-template-columns: 1fr;
	}
}
