/* RE/MAX Atlantis storefront: catalog toolbar, mobile filter drawer,
   favorites/compare, list/map switch, landing header, homepage block.
   All classes here are new, non-Houzez markup (RACC_Storefront and the
   storefront additions to RACC_Search), so every one is styled here
   rather than relying on the theme. Loads after racc-public.css. */

.racc-storefront-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px 56px;
	box-sizing: border-box;
}

.racc-storefront-header h1,
.racc-storefront-wrap > h1 {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.2;
}

.racc-storefront-links,
.racc-home__operations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.racc-storefront-links a,
.racc-home__operations a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid #cfd4dc;
	border-radius: 999px;
	background: #fff;
	color: #1c3a6e;
	font-size: 14px;
	text-decoration: none;
}

.racc-storefront-links a span,
.racc-home__operations a span {
	color: #5b6472;
	font-size: 12px;
}

/* ---- Toolbar, sort, list/map ------------------------------------------ */
.racc-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.racc-toolbar .racc-result-count {
	margin: 0;
}

.racc-view-toggle {
	display: inline-flex;
	border: 1px solid #cfd4dc;
	border-radius: 6px;
	overflow: hidden;
}

.racc-view-toggle__btn {
	min-height: 40px;
	padding: 6px 16px;
	border: 0;
	background: #fff;
	color: #1c3a6e;
	font-weight: 600;
	cursor: pointer;
}

.racc-view-toggle__btn.is-active {
	background: #1c3a6e;
	color: #fff;
}

.racc-map {
	width: 100%;
	height: 460px;
	border-radius: 10px;
	background: #eef0f3;
	z-index: 0;
}

.racc-map--detail {
	height: 320px;
}

.racc-map-coverage {
	margin: 8px 0 16px;
	color: #5b6472;
	font-size: 14px;
}

.racc-map-panel[hidden],
.racc-listings[hidden],
.racc-saved__empty[hidden] {
	display: none;
}

.racc-empty,
.racc-saved__empty,
.racc-saved__note {
	margin: 24px 0;
	padding: 20px;
	border: 1px dashed #cfd4dc;
	border-radius: 10px;
	color: #5b6472;
}

.racc-search-form__reset {
	align-self: center;
	color: #1c3a6e;
	font-size: 14px;
}

.racc-search-form__head,
.racc-filters-toggle {
	display: none;
}

.racc-pagination__gap {
	padding: 6px 4px;
	color: #5b6472;
}

/* ---- Favorite / compare ------------------------------------------------ */
.racc-card--unified {
	position: relative;
}

.racc-tools {
	display: inline-flex;
	gap: 6px;
}

.racc-card > .racc-tools {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
}

.racc-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: #3b4452;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	cursor: pointer;
}

.racc-tool.is-on {
	background: #1c3a6e;
	color: #fff;
}

.racc-tool--favorite.is-on {
	background: #c8102e;
}

.racc-tool--favorite.is-on svg path {
	fill: currentColor;
}

.racc-detail__headline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.racc-detail__headline .racc-detail__mode {
	margin: 0;
}

.racc-card__badge--sold {
	background: #5b6472;
}

.racc-dock {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 900;
	display: flex;
	gap: 8px;
}

.racc-dock__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #1c3a6e;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.racc-dock__link:hover,
.racc-dock__link:focus {
	color: #fff;
}

.racc-dock__link span {
	display: inline-block;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #fff;
	color: #1c3a6e;
	font-size: 13px;
	text-align: center;
}

.racc-toast {
	position: fixed;
	left: 50%;
	bottom: 76px;
	z-index: 950;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 6px;
	background: #1f2733;
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translateX(-50%);
	transition: opacity .2s;
	pointer-events: none;
}

.racc-toast.is-visible {
	opacity: 1;
}

.racc-compare-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.racc-compare {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	background: #fff;
}

.racc-compare th,
.racc-compare td {
	padding: 10px 12px;
	border: 1px solid #e3e6ea;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
}

.racc-compare thead th {
	width: 22%;
}

.racc-compare thead th:first-child {
	width: 12%;
}

.racc-compare thead img {
	display: block;
	width: 100%;
	max-width: 280px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
}

.racc-compare__title {
	display: block;
	margin: 8px 0;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.racc-compare__remove {
	padding: 4px 10px;
	border: 1px solid #cfd4dc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

/* ---- Detail additions -------------------------------------------------- */
.racc-features,
.racc-detail-map,
.racc-similar {
	margin-top: 32px;
}

.racc-features h2,
.racc-detail-map h2,
.racc-similar h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.racc-features ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.racc-features li {
	padding-left: 18px;
	background: linear-gradient(#1d6f42, #1d6f42) no-repeat 0 .55em / 8px 8px;
	font-size: 15px;
}

/* ---- Homepage block ---------------------------------------------------- */
.racc-home {
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

.racc-home__hero {
	margin-bottom: 32px;
	padding: 24px;
	border-radius: 12px;
	background: #f1f3f6;
}

.racc-home h2 {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 1.2;
}

.racc-home__search {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.racc-home__search select,
.racc-home__search input {
	width: 100%;
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid #cfd4dc;
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
	font-size: 16px;
}

.racc-home__search button {
	min-height: 48px;
	padding: 8px 24px;
	border: 0;
	border-radius: 6px;
	background: #c8102e;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.racc-home__operations {
	margin: 0;
}

.racc-home__section {
	margin-bottom: 40px;
}

.racc-home__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.racc-home__section-head h2 {
	margin: 0;
}

.racc-home__section-head a {
	color: #1c3a6e;
	font-weight: 600;
	white-space: nowrap;
}

.racc-home__advisor {
	padding: 28px 24px;
	border-radius: 12px;
	background: #1c3a6e;
	color: #fff;
	text-align: center;
}

.racc-home__advisor h2 {
	color: #fff;
}

.racc-home__advisor .racc-assigned-agent-cta a {
	min-height: 48px;
	line-height: 32px;
	padding: 8px 28px;
	font-weight: 700;
}

/* ---- Phone: filters become a full-screen drawer ----------------------- */
@media (max-width: 768px) {
	.racc-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		min-height: 48px;
		margin: 0 0 12px;
		padding: 8px 16px;
		justify-content: center;
		border: 1px solid #1c3a6e;
		border-radius: 6px;
		background: #fff;
		color: #1c3a6e;
		font-size: 16px;
		font-weight: 600;
	}

	.racc-filters-toggle__count {
		min-width: 22px;
		padding: 1px 6px;
		border-radius: 999px;
		background: #1c3a6e;
		color: #fff;
		font-size: 13px;
	}

	.racc-catalog .racc-search-form {
		display: none;
	}

	.racc-catalog .racc-search-form.is-open {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin: 0;
		padding: 16px;
		overflow-y: auto;
		background: #fff;
	}

	.racc-catalog .racc-search-form.is-open .racc-search-form__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 18px;
	}

	.racc-catalog .racc-search-form .racc-search-form__close {
		width: 44px;
		min-height: 44px;
		padding: 0;
		background: #f1f3f6;
		color: #1f2733;
		font-size: 26px;
		line-height: 1;
	}

	.racc-catalog .racc-search-form select,
	.racc-catalog .racc-search-form input {
		min-height: 48px;
		font-size: 16px;
	}

	.racc-drawer-open,
	.racc-drawer-open body {
		overflow: hidden;
	}

	.racc-map {
		height: 380px;
	}

	.racc-storefront-header h1,
	.racc-storefront-wrap > h1 {
		font-size: 24px;
	}

	.racc-home {
		padding: 24px 16px;
	}

	.racc-home__hero {
		padding: 16px;
	}

	.racc-home h2 {
		font-size: 22px;
	}

	.racc-home__search {
		grid-template-columns: 1fr 1fr;
	}

	.racc-home__search select:first-child,
	.racc-home__search button {
		grid-column: 1 / -1;
	}
}

/* ---- Marketplace hero (top of the homepage) ---------------------------- */
.racc-home--top {
	max-width: none;
	padding: 0 0 32px;
}

.racc-home--top > .racc-home__section,
.racc-home--top > .racc-home__advisor,
.racc-home--top > .raal-recommendations {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.racc-home--top > .racc-home__advisor {
	max-width: 1208px;
	padding: 28px 24px;
}

.racc-hero {
	position: relative;
	margin-bottom: 32px;
	padding: 24px;
	border-radius: 12px;
	background: #f1f3f6;
}

.racc-hero--full {
	/* Full-bleed even when the theme wraps the content in a container. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	min-height: 560px;
	display: flex;
	align-items: center;
	padding: 48px 16px;
	border-radius: 0;
	box-sizing: border-box;
	overflow: hidden;
	background: #1c3a6e;
}

.racc-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 55%;
}

.racc-hero--full::after {
	/* Light scrim so white text reads on a bright sky without tinting the sea. */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 30, 60, .38) 0%, rgba(10, 30, 60, .12) 55%, rgba(10, 30, 60, .30) 100%);
}

.racc-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
}

.racc-hero--full h1 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 46px;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.racc-hero__count {
	margin: 0 0 20px;
	color: #5b6472;
	font-size: 17px;
}

.racc-hero--full .racc-hero__count {
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.racc-hero__form.racc-home__search {
	display: block;
	margin: 0;
}

.racc-hero__tabs {
	display: inline-flex;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}

.racc-hero__tabs label {
	margin: 0;
	cursor: pointer;
}

.racc-hero__tabs input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.racc-hero__tabs span {
	display: block;
	min-height: 48px;
	padding: 12px 24px;
	background: rgba(255, 255, 255, .78);
	color: #1c3a6e;
	font-size: 16px;
	font-weight: 700;
	box-sizing: border-box;
}

.racc-hero__tabs small {
	font-weight: 400;
	opacity: .75;
}

.racc-hero__tabs input:checked + span {
	background: #fff;
}

.racc-hero__tabs input:focus-visible + span {
	outline: 2px solid #c8102e;
	outline-offset: -2px;
}

.racc-hero__fields {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr auto;
	gap: 10px;
	padding: 14px;
	border-radius: 0 10px 10px 10px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.racc-hero:not(.racc-hero--full) .racc-hero__fields {
	box-shadow: none;
}

.racc-hero__fields button {
	white-space: nowrap;
}

/* ---- Destinations ------------------------------------------------------ */
.racc-destinations {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.racc-destination {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 3;
	padding: 14px;
	border-radius: 10px;
	overflow: hidden;
	background: #1c3a6e;
	color: #fff;
	text-decoration: none;
}

.racc-destination:hover,
.racc-destination:focus {
	color: #fff;
}

.racc-destination img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.racc-destination::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .7) 100%);
}

.racc-destination__label,
.racc-destination__count {
	position: relative;
	z-index: 1;
}

.racc-destination__label {
	font-size: 18px;
	font-weight: 700;
}

.racc-destination__count {
	font-size: 13px;
	opacity: .9;
}

/* ---- Inquiry: honest "not available" state ----------------------------- */
.racc-inquiry-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.racc-inquiry-fields[disabled] {
	opacity: .55;
}

.racc-inquiry-unavailable {
	margin: 0;
	padding: 12px 14px;
	border-left: 4px solid #b26a00;
	background: #fff6e5;
	color: #5c3b00;
	font-size: 15px;
}

.racc-inquiry-status--error {
	color: #a4161a;
}

@media (max-width: 768px) {
	.racc-hero--full {
		min-height: 520px;
		padding: 32px 16px;
	}

	.racc-hero--full h1 {
		font-size: 32px;
	}

	.racc-hero__tabs {
		display: flex;
	}

	.racc-hero__tabs label {
		flex: 1;
	}

	.racc-hero__tabs span {
		text-align: center;
	}

	.racc-hero__fields {
		grid-template-columns: 1fr;
		border-radius: 0 0 10px 10px;
	}

	.racc-destinations {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

.racc-inquiry-form .racc-inquiry-consent {
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.racc-inquiry-form .racc-inquiry-consent input {
	width: 20px;
	min-height: 20px;
	height: 20px;
	margin: 2px 0 0;
	flex: none;
}

.racc-facts {
	margin-top: 32px;
}

.racc-facts h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.racc-facts dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px 24px;
	margin: 0;
}

.racc-facts dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #e3e6ea;
}

.racc-facts dt {
	color: #5b6472;
	font-weight: 400;
}

.racc-facts dd {
	margin: 0;
	font-weight: 600;
}

/* ---- Listing extras: floor plans, video, tour --------------------------- */
.racc-plans,
.racc-video,
.racc-tour {
	margin-top: 32px;
}

.racc-plans h2,
.racc-video h2,
.racc-tour h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.racc-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.racc-plan {
	margin: 0;
	padding: 12px;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	background: #fff;
}

.racc-plan img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 6px;
}

.racc-plan figcaption {
	margin-top: 8px;
	font-size: 14px;
}

.racc-plan figcaption strong {
	display: block;
	font-size: 15px;
}

.racc-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #eef0f3;
}

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