/* ============================================
   Showroom Page – Hero
   ============================================ */

.hero.hero--showrooms {
	align-items: center;
	padding: 130px 0 70px;
	overflow: hidden;
}

.hero.hero--showrooms .hero-bg {
	background-position: right center;
	background-repeat: no-repeat;
}

.hero.hero--showrooms .hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg,
			var(--maroon) 0%,
			var(--maroon) 18%,
			rgba(106, 19, 61, 0.95) 30%,
			rgba(106, 19, 61, 0.82) 40%,
			rgba(106, 19, 61, 0.65) 50%,
			rgba(106, 19, 61, 0.45) 60%,
			rgba(106, 19, 61, 0.25) 70%,
			rgba(106, 19, 61, 0.1) 82%,
			transparent 95%);
}

.hero.hero--showrooms .hero-bg::after {
	z-index: 2;
	background:
		linear-gradient(90deg,
			rgba(8, 9, 13, 0.75) 0%,
			rgba(8, 9, 13, 0.48) 45%,
			rgba(8, 9, 13, 0.15) 75%,
			rgba(8, 9, 13, 0.3) 100%),
		linear-gradient(180deg,
			rgba(8, 9, 13, 0.1) 0%,
			rgba(8, 9, 13, 0.25) 60%,
			rgba(8, 9, 13, 0.5) 100%);
}

.showroom.hero-inner {
	align-items: flex-start;
}

.showroom.hero-inner h1 {
	color: #fff;
	text-align: left;
}

.showroom.hero-inner .sub {
	max-width: 500px;
	width: 100%;
	margin: 18px 0 36px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
	text-align: left;
}

.autocomplete-wrap {
	max-width: 650px;
}

@media (max-width: 960px) {
	.hero.hero--showrooms .hero-bg {
		background-size: auto 120%;
		background-position: right bottom;
	}
}

@media (max-width: 768px) {
	.hero.hero--showrooms {
		min-height: 80vh;
		padding: 120px 20px 60px;
	}

	.hero.hero--showrooms .hero-bg {
		background-size: cover;
		background-position: center top;
	}

	.showroom.hero-inner {
		align-items: center;
	}

	.showroom.hero-inner h1 {
		text-align: center;
	}

	.showroom.hero-inner .sub {
		font-size: 15px;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.autocomplete-wrap {
		max-width: 100%;
	}
}

/* ============================================
   Single Showroom Hero
   ============================================ */

.hero.hero--showrooms.hero--single {
	min-height: 90vh;
}

.hero.hero--showrooms.hero--single .hero-bg {
	background-size: cover;
	background-position: center;
}

.hero.hero--showrooms.hero--single .showroom-hero-content {
	max-width: 640px;
}

.hero.hero--showrooms.hero--single .hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero.hero--showrooms.hero--single .hero-cta .btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 768px) {
	.hero.hero--showrooms.hero--single {
		min-height: 60vh;
	}
}

/* ============================================
   Search Bar
   ============================================ */

.hero-showroom-search {
	position: relative;
	width: min(760px, 100%);
	margin: 0 auto;
}

.hero-showroom-search__field {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 50px;
	padding: 8px 8px 8px 22px;
	min-height: 50px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.hero-showroom-search .search-icon {
	width: 18px;
	height: 18px;
	stroke: var(--magenta);
	stroke-width: 2.2;
	fill: none;
	margin-right: 12px;
	flex-shrink: 0;
}

.hero-showroom-search input {
	border: none;
	outline: none;
	background: transparent;
	width: 100%;
	font-family: inherit;
	font-size: 16px;
	color: var(--ink);
}

.hero-showroom-search input::placeholder {
	color: #6c6c6c;
}

.hero-showroom-search .btn {
	height: 40px;
	padding: 0 28px;
	font-size: 16px;
}

/* ============================================
   Search Spinner
   ============================================ */

.search-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid var(--pinkline);
	border-top-color: var(--magenta);
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	flex-shrink: 0;
	margin-right: 12px;
}

.search-spinner.is-loading {
	display: block;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ============================================
   Autocomplete Dropdown
   ============================================ */

.autocomplete-wrap {
	position: relative;
	width: 100%;
	max-width: min(500px, 100%);
}

.autocomplete-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
	max-height: 320px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	scrollbar-width: thin;
	scrollbar-color: var(--pinkline) transparent;
	text-align: left;
}

.autocomplete-dropdown.is-open {
	display: block;
}

.autocomplete-dropdown::-webkit-scrollbar {
	width: 5px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
	background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
	background: var(--pinkline);
	border-radius: 10px;
}

.autocomplete-item {
	padding: 14px 20px;
	cursor: pointer;
	font-size: 15px;
	color: var(--ink);
	transition: background 0.12s ease;
	border-bottom: 1px solid #f5f5f5;
}

.autocomplete-item:last-child {
	border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
	background: var(--cream);
}

.autocomplete-item.is-active {
	background: var(--pinkbg);
}

.autocomplete-item .ac-title {
	font-weight: 600;
	display: block;
	margin-bottom: 2px;
}

.autocomplete-item .ac-meta {
	font-size: 13px;
	color: #888;
	font-weight: 400;
}

.autocomplete-item mark {
	background: none;
	color: var(--magenta);
	font-weight: 700;
}

.autocomplete-empty {
	padding: 18px 20px;
	font-size: 14px;
	color: #999;
	text-align: center;
}

/* ============================================
   View Toggle (hidden in archive mode)
   ============================================ */

.view-toggle-row {
	display: none;
	gap: 12px;
	justify-content: flex-end;
	width: 100%;
	margin-bottom: 28px;
}

.toggle-btn {
	border-radius: 25px;
	border: none;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--pinkline);
	padding: 12px 24px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--ink);
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
}

.toggle-btn.active {
	background: var(--maroon);
	color: #fff;
	box-shadow: none;
}

/* ============================================
   Locator Grid – shared layout
   ============================================ */

.locator-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: start;
}

.showroom-list-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ============================================
   Showroom Cards
   ============================================ */

.showroom-card {
	background: var(--cream);
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-shadow: inset 0 0 0 1px var(--pinkline);
	cursor: pointer;
	transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.showroom-card:hover {
	box-shadow: inset 0 0 0 1.5px var(--magenta), 0 12px 24px rgba(106, 19, 61, 0.05);
}

.showroom-card.active-showroom {
	box-shadow: inset 0 0 0 2px var(--magenta), 0 15px 30px rgba(106, 19, 61, 0.08);
	background: #fff;
}

.showroom-card h3 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--maroon);
}

.showroom-card p.address {
	margin: 0 0 4px;
	font-size: 14.5px;
	color: var(--ink);
	line-height: 1.45;
}

.showroom-card p.location-meta {
	margin: 0;
	font-size: 14.5px;
	color: var(--ink);
}

.contact-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ink);
}

.meta-item svg {
	color: var(--magenta);
	flex-shrink: 0;
}

.card-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.actions-row {
	display: flex;
	gap: 8px;
}

.btn-sm {
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	flex: 1;
	border-radius: 8px;
	text-align: center;
	height: 38px;
}

/* ============================================
   Map Container
   ============================================ */

.showroom-map-col {
	height: 550px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1.5px solid var(--pinkline);
}

.showroom-list-col::-webkit-scrollbar {
	width: 6px;
}

.showroom-list-col::-webkit-scrollbar-track {
	background: transparent;
}

.showroom-list-col::-webkit-scrollbar-thumb {
	background: var(--pinkline);
	border-radius: 10px;
}

.showroom-list-col::-webkit-scrollbar-thumb:hover {
	background: var(--magenta);
}

.showroom-state-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

p#showroomResultsCount {
	opacity: 0;
	font-size: 0;
}

.state-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 30px;
	border: 1.5px solid var(--pinkline);
	background: #fff;
	color: var(--maroon);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.state-tab:hover {
	background: var(--pinkbg);
	border-color: var(--magenta);
}

.state-tab.active {
	background: var(--maroon);
	border-color: var(--maroon);
	color: #fff;
}

.state-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 12px;
	font-weight: 700;
	padding: 0 6px;
}

.state-tab.active .state-tab-count {
	background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Archive Layout (default state)
   ============================================ */

.showroom-locator-wrapper.archive-layout .view-toggle-row {
	display: none;
}

.showroom-locator-wrapper.archive-layout .locator-grid {
	grid-template-columns: 1fr;
	gap: 0;
}

.showroom-locator-wrapper.archive-layout .showroom-list-col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-height: none;
	overflow-y: visible;
	padding-right: 0;
}

.showroom-locator-wrapper.archive-layout .showroom-map-col {
	display: none;
}

.showroom-locator-wrapper.archive-layout .showroom-card {
	cursor: pointer;
}

/* ============================================
   Locator Layout (after search)
   ============================================ */

.showroom-locator-wrapper.locator-layout .view-toggle-row {
	display: none;
}

.showroom-locator-wrapper.locator-layout .locator-grid {
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 40px;
}

.showroom-locator-wrapper.locator-layout .showroom-list-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: 600px;
	overflow-y: auto;
	padding-right: 12px;
}

.showroom-locator-wrapper.locator-layout .showroom-map-col {
	display: block;
}

/* ============================================
   Single Showroom
   ============================================ */

.badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.badge-item {
	background: var(--cream);
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--maroon);
	box-shadow: inset 0 0 0 1px var(--pinkline);
}

.overview-flex {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 60px;
	align-items: start;
}

.overview-details {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.overview-item {
	display: flex;
	gap: 16px;
	align-items: start;
}

.overview-item svg {
	color: var(--magenta);
	margin-top: 4px;
	flex-shrink: 0;
}

.overview-item-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.overview-item-value {
	font-size: 17.5px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.45;
}

.services-box {
	background: var(--pinkbg);
	border-radius: 16px;
	padding: 36px;
	box-shadow: inset 0 0 0 1px var(--pinkline);
}

.services-box h3 {
	margin: 0 0 24px;
	font-size: 18px;
	font-weight: 700;
	color: var(--maroon);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.services-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.service-item {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
}

.service-item svg {
	color: var(--magenta);
	flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
	.showroom-locator-wrapper.archive-layout .showroom-list-col {
		grid-template-columns: repeat(2, 1fr);
	}

	.showroom-locator-wrapper.locator-layout .locator-grid {
		grid-template-columns: 1fr;
	}

	.showroom-locator-wrapper.locator-layout .showroom-map-col {
		height: 480px;
	}

	.showroom-locator-wrapper.locator-layout .showroom-list-col {
		max-height: 480px;
	}

	.overview-flex {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.hero-showroom-search__field {
		align-items: center;
		border-radius: 22px;
		flex-wrap: wrap;
		padding: 10px 10px 10px 18px;
	}

	.hero-showroom-search input {
		flex: 1;
		min-width: 0;
	}

	.hero-showroom-search .btn {
		width: 100%;
		margin-top: 12px;
	}

	.showroom-state-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.state-tab {
		padding: 8px 16px;
		font-size: 13px;
	}

	.showroom-locator-wrapper.archive-layout .showroom-list-col {
		grid-template-columns: 1fr;
	}

	.showroom-card {
		padding: 20px;
	}

	.showroom-locator-wrapper.locator-layout .locator-grid {
		grid-template-columns: 1fr;
	}

	.showroom-locator-wrapper.locator-layout .showroom-map-col {
		height: 360px;
	}

	.showroom-locator-wrapper.locator-layout .showroom-list-col {
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.autocomplete-dropdown {
		max-height: 260px;
	}

}