.sm-wrx-gallery {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 8px;
	width: 100%;
	height: 550px;
}

.sm-wrx-gallery__hero,
.sm-wrx-gallery__thumb {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	cursor: pointer;
	background: #eee;
	height: 100%;
}

.sm-wrx-gallery__hero img,
.sm-wrx-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sm-wrx-gallery__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	height: 100%;
}

.sm-wrx-gallery__show-all {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: #fff !important;
	color: #222 !important;
	border: none;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: background 0.2s ease, color 0.2s ease;
}

.sm-wrx-gallery__show-all:hover {
	background: #007fa9 !important;
	color: #fff !important;
}

/* Responsive: stack on small screens */
@media (max-width: 782px) {
	.sm-wrx-gallery {
		grid-template-columns: 1fr;
		height: auto;
	}

	.sm-wrx-gallery__hero {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.sm-wrx-gallery__grid {
		height: auto;
	}

	.sm-wrx-gallery__thumb {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

/* --- Lightbox --- */
.sm-wrx-lightbox {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}

.sm-wrx-lightbox.is-open {
	display: flex;
}

.sm-wrx-lightbox img {
	max-width: 96vw;
	max-height: 92vh;
	object-fit: contain;
}

.sm-wrx-lightbox__close,
.sm-wrx-lightbox__prev,
.sm-wrx-lightbox__next {
	position: absolute;
	background: rgba(0,0,0,0.06) !important;
	color: #222 !important;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 12px 16px;
	border-radius: 999px;
}

.sm-wrx-lightbox__close:hover,
.sm-wrx-lightbox__prev:hover,
.sm-wrx-lightbox__next:hover {
	background: rgba(0,0,0,0.12) !important;
	color: #222 !important;
}

.sm-wrx-lightbox__close {
	top: 20px;
	right: 20px;
}

.sm-wrx-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.sm-wrx-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.sm-wrx-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #444;
	font-size: 14px;
}

/* --- Open For Inspection list --- */
.sm-wrx-inspections {
	margin: 16px 0;
}

.sm-wrx-inspections__title {
	margin: 0 0 8px;
	font-size: 16px;
}

.sm-wrx-inspections__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm-wrx-inspections__item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.sm-wrx-inspections__date {
	font-weight: 600;
}

/* --- Features grid --- */
.sm-wrx-features {
	margin: 16px 0;
}

.sm-wrx-features__grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 20px;
}

.sm-wrx-features__item {
	position: relative;
	padding-left: 18px;
}

.sm-wrx-features__item::before {
	content: "\2022"; /* plain bullet dot */
	position: absolute;
	left: 0;
}

@media (max-width: 600px) {
	.sm-wrx-features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Agent card --- */
.sm-wrx-agent-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 16px 0;
}

.sm-wrx-agent-card__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.sm-wrx-agent-card__initials {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #2a2a2a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.sm-wrx-agent-card__details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm-wrx-agent-card__name {
	margin: 0;
}

.sm-wrx-agent-card__phone,
.sm-wrx-agent-card__email {
	margin: 0;
}

/* --- Media nav row (Photos / Floor Plan / Video) --- */
.sm-wrx-medianav {
	display: flex;
	gap: 12px;
	margin: 16px 0;
}

.sm-wrx-medianav__tile {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sm-wrx-medianav__tile--video {
	/* Intentionally left flexible (flex: 1, inherited from .sm-wrx-medianav__tile)
	   so this tile always matches the width of the other three regardless of
	   screen size, rather than chasing a fixed pixel value that only lines up
	   at one specific viewport width. */
}

.sm-wrx-medianav__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: #eee;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
}

.sm-wrx-medianav__thumb--empty {
	background-color: #e2e2e2 !important;
}

.sm-wrx-medianav__thumb--empty:hover {
	background-color: #d5d5d5 !important;
}

.sm-wrx-request-floorplan-btn {
	border: none !important;
	outline: none;
	color: #222 !important;
}

.sm-wrx-medianav__request {
	color: #222 !important;
}

.sm-wrx-request-floorplan-btn:focus,
.sm-wrx-request-floorplan-btn:focus-visible {
	outline: 2px solid #007fa9 !important;
	box-shadow: none !important;
}

.sm-wrx-medianav__thumb--dark {
	background-color: #1a1a1a;
	position: relative;
}

.sm-wrx-medianav__thumb--dark::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.25);
}

.sm-wrx-medianav__thumb--dark .sm-wrx-medianav__icon {
	position: relative;
	z-index: 1;
}

.sm-wrx-medianav__icon {
	font-size: 22px;
	color: #fff;
	background: rgba(0,0,0,0.35);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sm-wrx-medianav__request {
	background: #fff;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
}

.sm-wrx-medianav__unavailable {
	color: #999;
	font-size: 12px;
	text-align: center;
	padding: 0 8px;
}

.sm-wrx-medianav__label {
	font-size: 13px;
	text-align: center;
	color: #333;
}

@media (max-width: 600px) {
	.sm-wrx-medianav {
		flex-wrap: wrap;
	}
	.sm-wrx-medianav__tile {
		flex: 1 1 45%;
	}
}

.sm-wrx-features__item--hidden {
	display: none;
}

.sm-wrx-features__toggle {
	margin-top: 10px;
	background: none !important;
	border: none;
	color: #0073aa !important;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.sm-wrx-features__toggle:hover {
	background: none !important;
	color: #0073aa !important;
	text-decoration: underline;
}

/* --- Shared paragraph text style (matches theme body text) --- */
.sm-wrx-features__item,
.sm-wrx-agent-card__phone,
.sm-wrx-agent-card__email,
.sm-wrx-inspections__item {
	font-family: "Highgate", sans-serif;
	font-size: 17px;
	font-weight: 300;
}

.sm-wrx-agent-card__call {
	color: #007fa9;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	margin: 4px 0;
}

.sm-wrx-agent-card__call:hover {
	text-decoration: underline;
}

/* --- Sidebar card wrapper (apply to the Elementor container wrapping
   inspection times + agent card + enquiry form) --- */
.sm-wrx-sidebar-card {
	border: 1px solid #e2e2e2;
	padding: 24px;
	background: #fff;
}

/* --- Floor plan request modal --- */
.sm-wrx-fp-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sm-wrx-fp-modal.is-open {
	display: flex;
}

.sm-wrx-fp-modal__dialog {
	background: #fff;
	max-width: 420px;
	width: 100%;
	padding: 32px;
	position: relative;
}

.sm-wrx-fp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.sm-wrx-fp-modal__title {
	margin: 0 0 8px;
	text-align: center;
}

.sm-wrx-fp-modal__subtitle {
	margin: 0 0 20px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

.sm-wrx-fp-modal__agent {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f7f7f7;
	padding: 12px;
	margin-bottom: 20px;
}

.sm-wrx-fp-modal__agent-photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.sm-wrx-fp-modal__form input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e0e0e0;
	padding: 12px 16px;
	margin-bottom: 12px;
	font-size: 15px;
}

.sm-wrx-fp-modal__submit {
	width: 100%;
	background: #007fa9 !important;
	color: #fff !important;
	border: none;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.sm-wrx-fp-modal__submit:hover {
	background: #00658a !important;
	color: #fff !important;
}

.sm-wrx-fp-modal__message {
	text-align: center;
	font-size: 14px;
	margin-top: 10px;
}

/* --- Gravity Forms styling inside the floor plan request modal --- */
.sm-wrx-fp-modal .gform_wrapper {
	margin: 0;
}

.sm-wrx-fp-modal .gfield_label {
	display: none; /* rely on placeholder text instead, matching the reference design */
}

.sm-wrx-fp-modal input[type=text],
.sm-wrx-fp-modal input[type=email],
.sm-wrx-fp-modal input[type=tel],
.sm-wrx-fp-modal .gform-theme-field-control {
	--gf-local-border-color: #e0e0e0 !important;
	--gf-local-border-width: 1px !important;
	--gf-local-radius: 0px !important;
	--gf-local-bg-color: #fff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 0 !important;
	color: #555 !important;
	padding: 14px 18px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.sm-wrx-fp-modal .gform_footer {
	margin: 20px 0 0 !important;
	padding: 0 !important;
}

.sm-wrx-fp-modal.gform-theme.gform-theme--framework .gform_button,
.sm-wrx-fp-modal .gform-theme.gform-theme--framework .gform_button,
.sm-wrx-fp-modal .gform_button {
	--gf-local-bg-color: #007fa9 !important;
	--gf-local-color: #fff !important;
	--gf-local-border-width: 0px !important;
	--gf-local-radius: 0px !important;
	--gf-local-width: 100% !important;
	width: 100% !important;
	background-color: #007fa9 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 14px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.sm-wrx-fp-modal .gform_button:hover {
	--gf-local-bg-color: #00658a !important;
	background-color: #00658a !important;
	color: #fff !important;
}

.sm-wrx-fp-modal .gform_confirmation_message {
	text-align: center;
	color: #007fa9;
}

/* --- Downloads section — single stacked list, row dividers --- */
.sm-wrx-downloads {
	margin: 24px 0;
}

.sm-wrx-downloads__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #999;
	margin-bottom: 12px;
}

.sm-wrx-downloads__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #eee;
}

.sm-wrx-downloads__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.sm-wrx-downloads__label {
	font-weight: 600;
}

.sm-wrx-downloads__value {
	color: #666;
	text-align: right;
}

.sm-wrx-downloads__link {
	color: #007fa9 !important;
	text-decoration: none;
	white-space: nowrap;
}

.sm-wrx-downloads__link:hover {
	text-decoration: underline;
}

.sm-wrx-downloads__button {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
}

@media (max-width: 500px) {
	.sm-wrx-downloads__row {
		flex-wrap: wrap;
	}
}

/* --- Inspection times list (redesigned) --- */
.sm-wrx-inspections__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm-wrx-inspections__item {
	display: grid;
	grid-template-columns: 200px 160px 1fr;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}

.sm-wrx-inspections__date {
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.sm-wrx-inspections__badge {
	background: #ab9271;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
}

.sm-wrx-inspections__time {
	color: #666;
	font-size: 14px;
}

.sm-wrx-inspections__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.sm-wrx-inspections--empty {
	padding: 12px 0;
}

.sm-wrx-inspections__empty-msg {
	color: #666;
	font-size: 15px;
	font-style: italic;
	margin: 0;
}

.sm-wrx-inspections__register {
	background: #fff !important;
	border: 1px solid #ccc !important;
	color: #222 !important;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.sm-wrx-inspections__register:hover {
	background: #007fa9 !important;
	border-color: #007fa9 !important;
	color: #fff !important;
}

.sm-wrx-inspections__register:focus,
.sm-wrx-inspections__register:focus-visible {
	outline: 2px solid #007fa9 !important;
	border-color: #ccc !important;
	color: #222 !important;
	box-shadow: none !important;
}

@media (max-width: 500px) {
	.sm-wrx-inspections__item {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.sm-wrx-inspections__actions {
		justify-content: flex-start;
	}
}

/* --- Upcoming Inspections (cross-property, grouped by date) --- */
.sm-wrx-upcoming__day {
	margin-top: 40px;
	margin-bottom: 32px;
}

.sm-wrx-upcoming__day:first-child {
	margin-top: 0;
}

.sm-wrx-upcoming__date {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #ab9271;
	font-size: 18px;
}

.sm-wrx-upcoming__properties {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm-wrx-upcoming__property {
	display: grid;
	grid-template-columns: 300px 1fr 170px auto;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.sm-wrx-upcoming__property:last-child {
	border-bottom: none;
}

.sm-wrx-upcoming__thumb-link {
	display: block;
	line-height: 0;
}

.sm-wrx-upcoming__thumb {
	width: 300px !important;
	height: 300px !important;
	max-width: 300px !important;
	object-fit: cover !important;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.15);
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.sm-wrx-upcoming__property:hover .sm-wrx-upcoming__thumb {
	filter: brightness(0.88);
	box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.sm-wrx-upcoming__details {
	display: flex;
	flex-direction: column;
}

.sm-wrx-upcoming__title {
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	color: #222;
}

.sm-wrx-upcoming__title:hover {
	text-decoration: underline;
}

.sm-wrx-upcoming__suburb {
	font-size: 13px;
	color: #888;
}

.sm-wrx-upcoming__time {
	text-align: right;
	color: #666;
	font-size: 16px;
	letter-spacing: 1px;
	white-space: nowrap;
}

.sm-wrx-upcoming-empty {
	color: #888;
}

@media (max-width: 500px) {
	.sm-wrx-upcoming__property {
		grid-template-columns: 1fr;
	}
	.sm-wrx-upcoming__thumb {
		width: 100%;
		height: 200px;
	}
	.sm-wrx-upcoming__time {
		grid-column: 1;
		text-align: left;
	}
	.sm-wrx-upcoming__property .sm-wrx-inspections__register {
		grid-column: 1;
	}
}

/* --- Information Pack landing page --- */
.sm-wrx-infopack__hero {
	width: 100%;
	height: 380px;
	background-size: cover;
	background-position: center;
	margin-bottom: 24px;
}

.sm-wrx-infopack__body {
	max-width: 800px;
	margin: 0 auto 32px;
}

.sm-wrx-infopack__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #ab9271;
	margin-bottom: 8px;
}

.sm-wrx-infopack__title {
	margin: 0 0 16px;
}

.sm-wrx-infopack__intro,
.sm-wrx-infopack__description {
	color: #555;
	line-height: 1.6;
	font-family: "Highgate", sans-serif;
	font-size: 17px;
	font-weight: 300;
}

.sm-wrx-infopack__downloads {
	max-width: 800px;
	margin: 0 auto;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.sm-wrx-infopack__agent {
	max-width: 800px;
	margin: 24px auto 0;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

/* --- Sold Properties grid --- */
.sm-wrx-sold-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.sm-wrx-sold-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
}

.sm-wrx-sold-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: #eee;
}

.sm-wrx-sold-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #ab9271;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.sm-wrx-sold-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sm-wrx-sold-card__title {
	margin: 0;
	font-size: 16px;
	color: #222;
}

.sm-wrx-sold-card__suburb {
	font-size: 13px;
	color: #888;
}

.sm-wrx-sold-card__specs {
	font-size: 13px;
	color: #666;
}

.sm-wrx-sold-card__price {
	margin-top: 6px;
	font-weight: 700;
	color: #007fa9;
}

.sm-wrx-sold-empty {
	color: #888;
}

@media (max-width: 900px) {
	.sm-wrx-sold-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.sm-wrx-sold-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Appraisal CTA (for Sold property template) --- */
.sm-wrx-appraisal-cta {
	background: #f7f5f2;
	border-left: 4px solid #ab9271;
	padding: 24px;
	margin: 24px 0;
}

.sm-wrx-appraisal-cta__title {
	margin: 0 0 8px;
}

.sm-wrx-appraisal-cta__text {
	margin: 0 0 16px;
	color: #555;
	line-height: 1.6;
}

.sm-wrx-appraisal-cta__button {
	display: inline-block;
	background: #007fa9 !important;
	color: #fff !important;
	text-decoration: none;
	padding: 12px 24px;
	font-weight: 600;
	border-radius: 0;
}

.sm-wrx-appraisal-cta__button:hover {
	background: #00658a !important;
}
