/**
 * Simple Real Estate
 *
 * Frontend shortcode and Property editor styles.
 */

.sre-single-property,
.sre-property-list,
.sre-property-carousel,
.sre-related-properties,
.sre-admin-tabs {
	--sre-color-primary: #176b55;
	--sre-color-primary-dark: #0f5140;
	--sre-color-accent: #d8a53b;
	--sre-color-text: #17211e;
	--sre-color-muted: #65716d;
	--sre-color-border: #dce3e0;
	--sre-color-surface: #ffffff;
	--sre-color-soft: #f3f7f5;
	--sre-shadow: 0 12px 34px rgba(20, 45, 37, 0.1);
	--sre-radius: 12px;
	--sre-radius-small: 7px;
	color: var(--sre-color-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
}

.sre-single-property *,
.sre-property-list *,
.sre-property-carousel *,
.sre-related-properties *,
.sre-admin-tabs * {
	box-sizing: border-box;
}

.sre-single-property img,
.sre-property-list img,
.sre-property-carousel img,
.sre-related-properties img {
	display: block;
	height: auto;
	max-width: 100%;
}

.sre-single-property :where(h1, h2, h3, h4, h5, h6, p),
.sre-property-card :where(h1, h2, h3, h4, h5, h6, p) {
	padding-bottom: 0;
}

.sre-single-property a,
.sre-property-list a,
.sre-property-carousel a,
.sre-related-properties a {
	color: var(--sre-color-primary);
}

.sre-single-property a:hover,
.sre-property-list a:hover,
.sre-property-carousel a:hover,
.sre-related-properties a:hover {
	color: var(--sre-color-primary-dark);
}

.sre-single-property button,
.sre-property-list button,
.sre-related-properties button,
.sre-single-property input,
.sre-single-property textarea {
	font: inherit;
}

.sre-single-property :focus-visible,
.sre-property-list :focus-visible,
.sre-property-carousel :focus-visible,
.sre-related-properties :focus-visible,
.sre-admin-tabs :focus-visible {
	outline: 3px solid rgba(23, 107, 85, 0.35);
	outline-offset: 3px;
}

.sre-button {
	align-items: center;
	background: var(--sre-color-primary);
	border: 1px solid var(--sre-color-primary);
	border-radius: var(--sre-radius-small);
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	line-height: 1.25;
	min-height: 44px;
	padding: 11px 20px;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sre-button:hover {
	background: var(--sre-color-primary-dark);
	border-color: var(--sre-color-primary-dark);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.sre-button:disabled {
	cursor: wait;
	opacity: 0.65;
	transform: none;
}

.sre-notice {
	background: var(--sre-color-soft);
	border-left: 4px solid var(--sre-color-primary);
	border-radius: var(--sre-radius-small);
	margin: 0;
	padding: 16px 18px;
}

/* Property grids and cards. */
.sre-property-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sre-property-grid--columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.sre-property-grid--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sre-property-grid--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sre-property-card {
	background: var(--sre-color-surface);
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius);
	box-shadow: 0 5px 20px rgba(20, 45, 37, 0.06);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.sre-property-card:hover {
	box-shadow: var(--sre-shadow);
	transform: translateY(-3px);
}

.sre-property-card__media {
	aspect-ratio: 16 / 10;
	background: var(--sre-color-soft);
	overflow: hidden;
	position: relative;
}

.sre-property-card__image-link {
	display: block;
	height: 100%;
}

.sre-card-slider,
.sre-card-slider__track {
	background: var(--sre-color-soft);
	height: 100%;
	position: relative;
	width: 100%;
}

.sre-card-slider {
	cursor: grab;
	isolation: isolate;
	overflow: hidden;
	touch-action: pan-y;
}

.sre-card-slider.is-dragging,
.sre-slider.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.sre-card-slider__slide {
	display: block;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 700ms;
	visibility: hidden;
	will-change: opacity;
	z-index: 0;
}

.sre-card-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
	visibility: visible;
	z-index: 1;
}

.sre-card-slider__control {
	align-items: center;
	background: rgba(16, 23, 21, 0.78);
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 29px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	z-index: 4;
}

.sre-card-slider__control:hover {
	background: var(--sre-color-primary);
}

.sre-card-slider__control--previous {
	left: 12px;
}

.sre-card-slider__control--next {
	right: 12px;
}

.sre-property-card__image {
	height: 100% !important;
	object-fit: cover;
	transition: transform 300ms ease;
	width: 100%;
}

.sre-property-card:hover .sre-property-card__image {
	transform: scale(1.025);
}

.sre-property-card__placeholder {
	background:
		linear-gradient(135deg, rgba(23, 107, 85, 0.08), rgba(216, 165, 59, 0.13)),
		var(--sre-color-soft);
	display: block;
	height: 100%;
	position: relative;
	width: 100%;
}

.sre-property-card__placeholder::after {
	color: rgba(23, 107, 85, 0.28);
	content: "\2302";
	font-size: 58px;
	left: 50%;
	line-height: 1;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.sre-property-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	left: 14px;
	position: absolute;
	top: 14px;
	z-index: 5;
}

.sre-property-card__badges--availability {
	justify-content: flex-end;
	left: auto;
	right: 14px;
}

.sre-badge {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 999px;
	color: var(--sre-color-primary-dark);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 8px 11px;
	text-transform: uppercase;
}

.sre-badge--status {
	background: var(--sre-color-primary);
	color: #ffffff;
}

.sre-property-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.sre-property-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 12px;
}

.sre-property-card__type {
	background: #e8f5ff;
	border: 1px solid #b9ddf5;
	border-radius: 3px;
	color: var(--sre-color-primary);
	display: inline-flex;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	padding: 6px 8px;
	text-transform: uppercase;
}

.sre-property-card__title {
	font-size: clamp(18px, 1.7vw, 21px);
	line-height: 1.25;
	margin: 0 0 7px;
}

.sre-property-card__title a {
	color: var(--sre-color-text);
	text-decoration: none;
}

.sre-property-card__price {
	color: var(--sre-color-primary);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 11px;
}

.sre-property-card__location {
	align-items: center;
	color: var(--sre-color-muted);
	display: flex;
	font-size: 13px;
	gap: 6px;
	margin: 0 0 14px;
}

.sre-property-card__location span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sre-property-card__excerpt {
	color: var(--sre-color-muted);
	display: -webkit-box;
	font-size: 14px;
	margin: 0 0 17px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sre-property-card__metrics {
	border-bottom: 1px solid var(--sre-color-border);
	border-top: 1px solid var(--sre-color-border);
	display: flex;
	flex-wrap: wrap;
	gap: 9px 16px;
	list-style: none !important;
	margin: 0 0 15px;
	padding: 13px 0 !important;
	padding-inline-start: 0 !important;
}

.sre-property-card__metric {
	align-items: baseline;
	color: var(--sre-color-muted);
	display: inline-flex;
	font-size: 12px;
	gap: 3px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap;
}

.sre-property-card__metric::before,
.sre-property-card__metric::after {
	content: none !important;
	display: none !important;
}

.sre-property-card__metric::marker {
	content: "";
}

.sre-property-card__metric strong {
	color: var(--sre-color-text);
	margin-right: 3px;
}

.sre-property-card__button {
	align-self: stretch;
	background: transparent;
	border-color: var(--sre-color-border);
	color: var(--sre-color-text) !important;
	font-size: 13px;
	text-transform: uppercase;
	width: 100%;
}

.sre-property-card__button:hover {
	background: var(--sre-color-primary);
	border-color: var(--sre-color-primary);
	color: #ffffff !important;
}

/* Pagination. */
.sre-pagination {
	margin-top: 34px;
}

.sre-pagination .page-numbers {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sre-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.sre-pagination a.page-numbers,
.sre-pagination span.page-numbers {
	align-items: center;
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius-small);
	display: inline-flex;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 7px 12px;
	text-decoration: none;
}

.sre-pagination span.current,
.sre-pagination a.page-numbers:hover {
	background: var(--sre-color-primary);
	border-color: var(--sre-color-primary);
	color: #ffffff;
}

/* Property carousel shortcode. */
.sre-property-carousel {
	margin-inline: auto;
	max-width: 1200px;
	width: 100%;
}

.sre-property-carousel__header {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.sre-property-carousel__title {
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
	margin: 0;
	padding-bottom: 0;
}

.sre-property-carousel__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.sre-property-carousel__viewport {
	overflow: hidden;
}

.sre-property-carousel__track {
	cursor: grab;
	display: flex;
	gap: 22px;
	overflow-x: auto;
	padding: 3px 3px 16px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	touch-action: pan-y;
}

.sre-property-carousel__track::-webkit-scrollbar,
.sre-related-slider__track::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.sre-property-carousel__track.is-dragging,
.sre-related-slider__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.sre-property-carousel__slide {
	flex: 0 0 calc((100% - 44px) / 3);
	min-width: 0;
	scroll-snap-align: start;
}

.sre-property-carousel__slide .sre-property-card {
	height: 100%;
}

/* Single property hero. */
.sre-single-property {
	margin-inline: auto;
	max-width: 1320px;
	width: 100%;
}

.sre-property-hero {
	background: var(--sre-color-surface);
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius);
	box-shadow: var(--sre-shadow);
	overflow: hidden;
	position: relative;
}

.sre-property-hero__badges {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	left: 20px;
	pointer-events: none;
	position: absolute;
	right: 20px;
	top: 20px;
	z-index: 4;
}

.sre-property-hero__badges-left,
.sre-property-hero__badges-right {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sre-property-hero__badges-right {
	justify-content: flex-end;
}

.sre-property-hero__badges .sre-badge {
	box-shadow: 0 4px 14px rgba(13, 30, 25, 0.22);
}

.sre-badge--availability {
	background: var(--sre-color-accent);
	color: #2d2107;
}

.sre-badge--availability-available {
	background: #16824f;
	color: #ffffff;
}

.sre-badge--availability-sold,
.sre-badge--availability-not-available {
	background: #b42318;
	color: #ffffff;
}

.sre-slider {
	background: #17211e;
	cursor: grab;
	position: relative;
	touch-action: pan-y;
}

.sre-slider__viewport {
	aspect-ratio: 16 / 8.3;
	overflow: hidden;
}

.sre-slider__track,
.sre-slider__slide {
	height: 100%;
	margin: 0;
	width: 100%;
}

.sre-slider__track {
	position: relative;
}

.sre-slider__slide {
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 650ms ease, visibility 650ms ease;
	visibility: hidden;
}

.sre-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.sre-slider__image {
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.sre-slider__loader {
	align-items: center;
	background: #17211e;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 1;
	pointer-events: none;
	position: absolute;
	transition: opacity 250ms ease, visibility 250ms ease;
	visibility: visible;
	z-index: 6;
}

.sre-slider:not(.is-loading) .sre-slider__loader {
	opacity: 0;
	visibility: hidden;
}

.sre-slider__spinner {
	animation: sre-spinner 750ms linear infinite;
	border: 4px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	border-top-color: #ffffff;
	height: 48px;
	width: 48px;
}

@keyframes sre-spinner {
	to {
		transform: rotate(360deg);
	}
}

.sre-slider__control {
	align-items: center;
	background: rgba(13, 30, 25, 0.76);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 36px;
	height: 46px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 4px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 160ms ease;
	width: 46px;
	z-index: 2;
}

.sre-slider__control:hover {
	background: var(--sre-color-primary);
}

.sre-slider__control--previous {
	left: 18px;
}

.sre-slider__control--next {
	right: 18px;
}

.sre-property-hero__content {
	margin-inline: auto;
	max-width: 1200px;
	padding: clamp(24px, 4vw, 44px);
}

.sre-property-hero__overlay {
	bottom: 0;
	left: 0;
	padding: clamp(22px, 4vw, 46px);
	position: absolute;
	right: 0;
	z-index: 3;
}

.sre-property-hero-card {
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.93);
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: var(--sre-radius);
	box-shadow: 0 18px 50px rgba(8, 25, 20, 0.24);
	margin-inline: auto;
	max-width: 1200px;
	padding: clamp(20px, 3vw, 30px);
}

.sre-property-hero-card__topline {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.sre-property-hero-card__eyebrow {
	color: var(--sre-color-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.sre-property-hero-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: flex-end;
}

.sre-property-hero-card .sre-property-hero__title {
	font-size: clamp(27px, 3vw, 40px);
	margin-bottom: 13px;
}

.sre-property-hero-card__meta {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 5px;
}

.sre-property-hero-card__meta .sre-property-price,
.sre-property-hero-card__meta .sre-property-location {
	margin: 0;
}

.sre-property-hero-card__meta .sre-property-price {
	font-size: clamp(21px, 2.5vw, 29px);
}

.sre-property-hero-card__stats {
	border-top: 1px solid rgba(101, 113, 109, 0.22);
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
	padding-top: 16px;
}

.sre-property-hero-card__stat {
	border-right: 1px solid rgba(101, 113, 109, 0.22);
	min-width: 0;
	padding-right: 12px;
}

.sre-property-hero-card__stat:last-child {
	border-right: 0;
}

.sre-property-hero-card__stat span {
	color: var(--sre-color-muted);
	display: block;
	font-size: 12px;
}

.sre-property-hero-card__stat strong {
	display: block;
	font-size: 17px;
	overflow-wrap: anywhere;
}

.sre-property-hero:not(.sre-property-hero--has-images) .sre-property-hero__overlay {
	position: static;
}

.sre-property-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 13px;
}

.sre-property-badges .sre-badge--type {
	background: var(--sre-color-soft);
	border: 1px solid var(--sre-color-border);
}

.sre-property-hero__title {
	font-size: clamp(30px, 5vw, 52px);
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0 0 12px;
}

.sre-property-price {
	color: var(--sre-color-primary);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	margin: 0 0 6px;
}

.sre-property-location {
	align-items: center;
	color: var(--sre-color-muted);
	display: flex;
	font-size: 16px;
	gap: 7px;
	margin: 0;
}

.sre-icon {
	color: var(--sre-color-primary);
	display: inline-block;
	fill: currentColor;
	flex: 0 0 auto;
	height: 18px;
	vertical-align: middle;
	width: 18px;
}

/* Single property content. */
.sre-single-property__layout {
	align-items: start;
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
	margin: 34px auto 0;
	max-width: 1200px;
	padding-inline: 20px;
}

.sre-property-section {
	background: var(--sre-color-surface);
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius);
	margin-bottom: 28px;
	padding: clamp(22px, 4vw, 34px);
}

.sre-property-section > h2,
.sre-agent-box > h2,
.sre-related-properties h2 {
	color: var(--sre-color-text);
	font-size: clamp(22px, 3vw, 29px);
	line-height: 1.2;
	margin: 0 0 22px;
}

.sre-property-description__content > :first-child {
	margin-top: 0;
}

.sre-property-description__content > :last-child {
	margin-bottom: 0;
}

.sre-overview-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sre-overview-card {
	background: var(--sre-color-soft);
	border-radius: var(--sre-radius-small);
	min-width: 0;
	padding: 18px;
}

.sre-overview-card__label {
	color: var(--sre-color-muted);
	display: block;
	font-size: 13px;
	margin-bottom: 3px;
}

.sre-overview-card__value {
	display: block;
	font-size: 18px;
	overflow-wrap: anywhere;
}

.sre-table-wrap {
	overflow-x: auto;
}

.sre-details-table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.sre-details-table th,
.sre-details-table td {
	border-bottom: 1px solid var(--sre-color-border);
	padding: 13px 10px;
	text-align: left;
	vertical-align: top;
}

.sre-details-table th {
	color: var(--sre-color-muted);
	font-weight: 600;
	width: 40%;
}

.sre-details-table tr:last-child th,
.sre-details-table tr:last-child td {
	border-bottom: 0;
}

.sre-gallery-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sre-gallery-grid__item {
	aspect-ratio: 4 / 3;
	background: var(--sre-color-soft);
	border: 0;
	border-radius: var(--sre-radius-small);
	cursor: zoom-in;
	display: block;
	overflow: hidden;
	padding: 0;
	width: 100%;
}

.sre-gallery-grid__item img {
	height: 100% !important;
	object-fit: cover;
	transition: transform 200ms ease;
	width: 100%;
}

.sre-gallery-grid__item:hover img {
	transform: scale(1.035);
}

body.sre-gallery-modal-open {
	overflow: hidden;
}

.sre-gallery-modal[hidden] {
	display: none;
}

.sre-gallery-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: clamp(14px, 3vw, 40px);
	position: fixed;
	z-index: 999999;
}

.sre-gallery-modal__backdrop {
	background: rgba(5, 12, 10, 0.94);
	border: 0;
	cursor: zoom-out;
	inset: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}

.sre-gallery-modal__dialog {
	height: min(88vh, 900px);
	max-width: 1440px;
	position: relative;
	width: 100%;
	z-index: 1;
}

.sre-gallery-modal__viewport {
	height: 100%;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.sre-gallery-modal__slide {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 350ms ease, visibility 350ms ease;
	visibility: hidden;
}

.sre-gallery-modal__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.sre-gallery-modal__slide img {
	height: auto !important;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.sre-gallery-modal__close,
.sre-gallery-modal__control {
	align-items: center;
	background: rgba(10, 24, 20, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	justify-content: center;
	position: absolute;
	z-index: 3;
}

.sre-gallery-modal__close:hover,
.sre-gallery-modal__control:hover {
	background: var(--sre-color-primary);
	border-color: #ffffff;
}

.sre-gallery-modal__close {
	font-size: 30px;
	height: 44px;
	line-height: 1;
	padding: 0 0 4px;
	right: 0;
	top: 0;
	transform: translate(35%, -35%);
	width: 44px;
}

.sre-gallery-modal__control {
	font-size: 42px;
	height: 52px;
	line-height: 1;
	padding: 0 0 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
}

.sre-gallery-modal__control--previous {
	left: 12px;
}

.sre-gallery-modal__control--next {
	right: 12px;
}

.sre-gallery-modal__counter {
	background: rgba(10, 24, 20, 0.78);
	border-radius: 999px;
	bottom: 10px;
	color: #ffffff;
	font-size: 14px;
	left: 50%;
	margin: 0;
	padding: 7px 13px;
	position: absolute;
	transform: translateX(-50%);
	z-index: 3;
}

.sre-features-grid {
	display: grid;
	gap: 12px 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sre-features-grid li {
	margin: 0;
	padding: 2px 0 2px 27px;
	position: relative;
}

.sre-features-grid li::before {
	color: var(--sre-color-primary);
	content: "\2713";
	font-weight: 900;
	left: 2px;
	position: absolute;
	top: 2px;
}

.sre-responsive-embed {
	aspect-ratio: 16 / 9;
	background: var(--sre-color-soft);
	border-radius: var(--sre-radius-small);
	overflow: hidden;
	position: relative;
}

.sre-responsive-embed iframe {
	border: 0;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

/* Agent sidebar and contact form. */
.sre-single-property__sidebar {
	min-width: 0;
	position: sticky;
	top: 32px;
}

.admin-bar .sre-single-property__sidebar {
	top: 64px;
}

.sre-agent-box {
	background: var(--sre-color-surface);
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius);
	box-shadow: var(--sre-shadow);
	padding: 26px;
}

.sre-agent-box__image {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	margin: 0 auto 18px;
	max-width: 150px;
	overflow: hidden;
}

.sre-agent-box__image img {
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.sre-agent-box__name {
	font-size: 21px;
	font-weight: 800;
	margin: 0 0 12px;
	text-align: center;
}

.sre-agent-box__job-title {
	color: var(--sre-color-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.025em;
	margin: -7px 0 14px;
	text-align: center;
}

.sre-agent-box__contact {
	border-bottom: 1px solid var(--sre-color-border);
	list-style: none;
	margin: 0 0 22px;
	padding: 0 0 18px;
}

.sre-agent-box__contact li {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 9px;
	margin: 0 0 7px;
	padding: 0;
}

.sre-agent-box__contact .sre-icon {
	height: 17px;
	width: 17px;
}

.sre-agent-box__contact span {
	color: var(--sre-color-muted);
}

.sre-agent-box__contact a {
	overflow-wrap: anywhere;
}

.sre-form-field {
	margin-bottom: 15px;
}

.sre-form-field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 5px;
}

.sre-form-field input,
.sre-form-field textarea {
	background: #ffffff;
	border: 1px solid var(--sre-color-border);
	border-radius: var(--sre-radius-small);
	color: var(--sre-color-text);
	display: block;
	line-height: 1.4;
	padding: 10px 12px;
	width: 100%;
}

.sre-form-field input:focus,
.sre-form-field textarea:focus {
	border-color: var(--sre-color-primary);
	box-shadow: 0 0 0 3px rgba(23, 107, 85, 0.12);
	outline: 0;
}

.sre-form-field input[aria-invalid="true"],
.sre-form-field textarea[aria-invalid="true"] {
	border-color: #b42318;
}

.sre-honeypot {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.sre-contact-form__submit {
	width: 100%;
}

.sre-contact-form__response {
	border-radius: var(--sre-radius-small);
	font-size: 14px;
	margin-top: 13px;
}

.sre-contact-form__response:not(:empty) {
	background: var(--sre-color-soft);
	padding: 10px 12px;
}

.sre-contact-form__response.is-success {
	background: #e9f7ef;
	color: #17643a;
}

.sre-contact-form__response.is-error {
	background: #fef0ed;
	color: #922018;
}

@media (min-width: 1025px) {
	.sre-agent-box {
		padding: 20px;
	}

	.sre-agent-box > h2 {
		font-size: 23px;
		margin-bottom: 15px;
	}

	.sre-agent-box__image {
		margin-bottom: 12px;
		max-width: 110px;
	}

	.sre-agent-box__name {
		font-size: 19px;
		margin-bottom: 9px;
	}

	.sre-agent-box__job-title {
		margin-bottom: 11px;
	}

	.sre-agent-box__contact {
		margin-bottom: 16px;
		padding-bottom: 12px;
	}

	.sre-agent-box__contact li {
		margin-bottom: 4px;
	}

	.sre-agent-box .sre-form-field {
		margin-bottom: 10px;
	}

	.sre-agent-box .sre-form-field label {
		margin-bottom: 3px;
	}

	.sre-agent-box .sre-form-field input,
	.sre-agent-box .sre-form-field textarea {
		padding: 8px 10px;
	}

	.sre-agent-box .sre-form-field textarea {
		min-height: 88px;
	}

	.sre-agent-box .sre-contact-form__submit {
		min-height: 40px;
		padding-block: 8px;
	}
}

/* Related property slider. */
.sre-related-properties {
	background: var(--sre-color-soft);
	border-radius: var(--sre-radius);
	margin: 42px auto 0;
	max-width: 1200px;
	padding: clamp(22px, 4vw, 38px);
}

/* Dedicated native Property permalink page. */
.sre-property-page,
.sre-property-page__main {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.sre-property-page .sre-single-property {
	max-width: none;
}

.sre-property-page .sre-property-hero {
	border-left: 0;
	border-radius: 0;
	border-right: 0;
}

.sre-property-page .sre-slider__viewport {
	aspect-ratio: auto;
	height: clamp(420px, 56vw, 720px);
}

.sre-related-properties__header {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.sre-related-properties__header h2 {
	margin-bottom: 0;
}

.sre-related-properties__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.sre-slider-button {
	align-items: center;
	background: var(--sre-color-surface);
	border: 1px solid var(--sre-color-border);
	border-radius: 50%;
	color: var(--sre-color-primary);
	cursor: pointer;
	display: inline-flex;
	font-size: 29px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	width: 42px;
}

.sre-slider-button:hover {
	background: var(--sre-color-primary);
	border-color: var(--sre-color-primary);
	color: #ffffff;
}

.sre-slider-button:disabled {
	cursor: default;
	opacity: 0.4;
}

.sre-related-slider {
	overflow: hidden;
}

.sre-related-slider__track {
	cursor: grab;
	display: flex;
	gap: 22px;
	overflow-x: auto;
	padding: 3px 3px 16px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	touch-action: pan-y;
}

.sre-related-slider__slide {
	flex: 0 0 calc((100% - 44px) / 3);
	min-width: 0;
	scroll-snap-align: start;
}

/* Property editor tabs and fields. */
.sre-admin-tabs {
	margin: -6px -12px -12px;
}

.sre-admin-tabs__navigation {
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0 12px;
}

.sre-admin-tabs__button {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	color: #50575e;
	cursor: pointer;
	font-weight: 600;
	margin: 0;
	padding: 15px 18px 12px;
}

.sre-admin-tabs__button:hover {
	color: #135e96;
}

.sre-admin-tabs__button.is-active {
	border-bottom-color: #2271b1;
	color: #1d2327;
}

.sre-admin-tabs__panel {
	padding: 24px;
}

.sre-admin-tabs__panel[hidden] {
	display: none;
}

.sre-admin-fields {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sre-admin-field--full {
	grid-column: 1 / -1;
}

.sre-admin-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 7px;
}

.sre-admin-field input[type="text"],
.sre-admin-field input[type="number"],
.sre-admin-field input[type="email"],
.sre-admin-field input[type="tel"],
.sre-admin-field input[type="url"],
.sre-admin-field textarea {
	max-width: none;
	width: 100%;
}

.sre-feature-options {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sre-feature-option {
	align-items: center;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: flex;
	gap: 8px;
	padding: 12px;
}

.sre-media-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0;
	min-height: 20px;
}

.sre-media-preview__item {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	height: 110px;
	overflow: hidden;
	position: relative;
	width: 110px;
}

.sre-media-preview__item img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sre-media-preview__remove {
	align-items: center;
	background: #b32d2e;
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 18px;
	height: 25px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 2px;
	position: absolute;
	right: 5px;
	top: 5px;
	width: 25px;
}

@media (max-width: 1024px) {
	.sre-property-grid--columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sre-single-property__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sre-single-property__sidebar {
		position: static;
	}

	.sre-overview-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sre-related-slider__slide {
		flex-basis: calc((100% - 22px) / 2);
	}

	.sre-property-carousel__slide {
		flex-basis: calc((100% - 22px) / 2);
	}
}

@media (max-width: 782px) {
	.admin-bar .sre-single-property__sidebar {
		top: 78px;
	}

	.sre-feature-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sre-property-grid,
	.sre-property-grid--columns-2,
	.sre-property-grid--columns-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sre-slider__viewport {
		aspect-ratio: auto;
		height: clamp(270px, 74vw, 480px);
	}

	.sre-slider__control {
		height: 40px;
		width: 40px;
	}

	.sre-slider__control--previous {
		left: 10px;
	}

	.sre-slider__control--next {
		right: 10px;
	}

	.sre-property-hero__overlay {
		bottom: 0;
		padding: 0 19px;
		position: absolute;
	}

	.sre-property-hero {
		border: none;
		box-shadow: none;
	}
	.sre-property-hero-card {
		backdrop-filter: blur(12px);
		background: rgba(255, 255, 255, 0.94);
		border: 1px solid var(--sre-color-border);
		border-radius: var(--sre-radius);
		box-shadow: 0 14px 34px rgba(8, 25, 20, 0.18);
		padding: 18px;
	}

	.sre-property-hero--has-images {
		overflow: visible;
		padding-bottom: clamp(150px, 42vw, 190px);
	}

	.sre-property-hero:not(.sre-property-hero--has-images) .sre-property-hero__overlay {
		padding: 0;
		position: static;
	}

	.sre-property-hero-card__topline {
		align-items: flex-start;
		gap: 9px;
	}

	.sre-property-hero-card__badges {
		justify-content: flex-start;
	}

	.sre-property-hero-card__stats {
		gap: 8px;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sre-property-hero-card__stat {
		padding-right: 7px;
	}

	.sre-property-hero-card__stat:nth-child(2) {
		border-right: 1px solid rgba(101, 113, 109, 0.22);
	}

	.sre-property-hero-card__stat span {
		font-size: 10px;
	}

	.sre-property-hero-card__stat strong {
		font-size: 16px;
	}

	.sre-property-hero__badges {
		left: 12px;
		right: 12px;
		top: 12px;
	}

	.sre-property-page .sre-slider__viewport {
		height: clamp(270px, 74vw, 480px);
	}

	.sre-gallery-modal {
		padding: 12px;
	}

	.sre-gallery-modal__dialog {
		height: 82vh;
	}

	.sre-gallery-modal__close {
		right: 8px;
		top: 8px;
		transform: none;
	}

	.sre-gallery-modal__control {
		height: 44px;
		width: 44px;
	}

	.sre-single-property__layout {
		gap: 24px;
		margin-top: 24px;
	}

	.sre-overview-grid,
	.sre-gallery-grid,
	.sre-features-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sre-related-slider__slide {
		flex-basis: 100%;
	}

	.sre-property-carousel__slide {
		flex-basis: 100%;
	}

	.sre-admin-fields,
	.sre-feature-options {
		grid-template-columns: minmax(0, 1fr);
	}

	.sre-admin-tabs__navigation {
		padding: 0 6px;
	}

	.sre-admin-tabs__button {
		flex: 1 1 auto;
		padding-inline: 10px;
	}

	.sre-admin-tabs__panel {
		padding: 18px;
	}
}

@media (max-width: 420px) {
	.sre-overview-grid,
	.sre-gallery-grid,
	.sre-features-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sre-agent-box {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sre-single-property *,
	.sre-property-list *,
	.sre-related-properties * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.sre-slider__spinner {
		animation-duration: 1.5s;
	}
}
