.nbd-showrooms,
.nbd-showrooms * {
	box-sizing: border-box;
}

/* Footer thật dùng đúng dải màu nhận diện Nệm Bình Dương. Box showroom được
 * render trước footer nên không còn lấy nền của footer làm nền section. */
footer#footer.footer-wrapper {
	background: linear-gradient(112deg, #0b2a5b 0%, #174d88 52%, #3fa9f5 100%) !important;
}

footer#footer.footer-wrapper::before {
	opacity: 0.15 !important;
}

footer#footer.footer-wrapper > .section,
footer#footer.footer-wrapper > .section > .section-bg {
	background-color: transparent !important;
	background-image: none !important;
}

footer#footer.footer-wrapper .absolute-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(5, 27, 61, 0.5) !important;
}

.nbd-showrooms {
	--nbd-sr-navy: #0b2a5b;
	--nbd-sr-blue: #3fa9f5;
	--nbd-sr-blue-soft: #eaf5ff;
	--nbd-sr-yellow: #ffc400;
	--nbd-sr-text: #29476f;
	--nbd-sr-line: #dce9f7;
	width: 100%;
	margin: 0 auto;
	padding-top: clamp(22px, 3vw, 42px);
	padding-bottom: clamp(22px, 3vw, 42px);
	background: transparent !important;
	color: var(--nbd-sr-text);
}

.nbd-showrooms__heading {
	margin: 0 auto clamp(18px, 2.2vw, 28px);
	text-align: center;
}

.nbd-showrooms__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: min(100%, 280px);
	margin: 0 auto 4px;
	color: var(--nbd-sr-yellow);
}

.nbd-showrooms__ornament span {
	width: 92px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--nbd-sr-yellow));
}

.nbd-showrooms__ornament span:last-child {
	background: linear-gradient(90deg, var(--nbd-sr-yellow), transparent);
}

.nbd-showrooms__ornament svg {
	width: 38px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nbd-showrooms__heading h2 {
	margin: 0;
	color: var(--nbd-sr-navy);
	font-size: var(--nbd-sr-title-desktop, 38px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

.nbd-showrooms__heading h2 strong {
	color: #ecb600;
	font: inherit;
}

.nbd-showrooms__heading > p {
	max-width: 720px;
	margin: 7px auto 0;
	color: #526b8c;
	font-size: var(--nbd-sr-subtitle-desktop, 15px);
	line-height: 1.5;
}

.nbd-showrooms__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.nbd-showrooms__card {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 1.15vw, 18px);
	min-width: 0;
	min-height: 292px;
	margin: 0;
	padding: 10px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 18px;
	background:
		linear-gradient(145deg, #ffffff 0%, #f7fbff 58%, #edf7ff 100%) padding-box,
		linear-gradient(125deg, var(--nbd-sr-navy) 0%, var(--nbd-sr-blue) 68%, var(--nbd-sr-yellow) 100%) border-box;
	box-shadow: 0 14px 34px rgba(11, 42, 91, 0.09);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.nbd-showrooms__card::before {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 28px;
	width: 112px;
	height: 4px;
	border-radius: 0 0 8px 8px;
	background: linear-gradient(90deg, var(--nbd-sr-navy), var(--nbd-sr-blue));
	content: "";
}

.nbd-showrooms__card::after {
	position: absolute;
	z-index: -1;
	right: -46px;
	bottom: -62px;
	width: 150px;
	height: 150px;
	border: 24px solid rgba(63, 169, 245, 0.07);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.16);
	content: "";
}

@media (hover: hover) {
	.nbd-showrooms__card:hover {
		transform: translateY(-3px);
		box-shadow: 0 18px 42px rgba(11, 42, 91, 0.14);
	}
}

.nbd-showrooms__media {
	position: relative;
	align-self: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 13px;
	background: var(--nbd-sr-blue-soft);
}

.nbd-showrooms__media::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: inherit;
	box-shadow: inset 0 -50px 60px rgba(11, 42, 91, 0.05);
	content: "";
	pointer-events: none;
}

.nbd-showrooms__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
}

.nbd-showrooms__body {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	padding: 6px 7px 5px 0;
	flex-direction: column;
}

.nbd-showrooms__title {
	margin-bottom: 8px;
}

.nbd-showrooms__title > span {
	display: block;
	margin-bottom: 1px;
	color: var(--nbd-sr-navy);
	font-size: var(--nbd-sr-kicker-desktop, 14px);
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 1.25;
	text-transform: uppercase;
}

.nbd-showrooms__title h3 {
	margin: 0;
	color: #eeb900;
	font-size: var(--nbd-sr-card-title-desktop, 24px);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-transform: uppercase;
}

.nbd-showrooms__address {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0 0 10px;
	padding: 7px 11px;
	border-radius: 9px;
	background: linear-gradient(95deg, #ffd51a 0%, var(--nbd-sr-yellow) 100%);
	box-shadow: 0 8px 18px rgba(255, 196, 0, 0.17);
	color: var(--nbd-sr-navy);
	font-size: var(--nbd-sr-address-desktop, 13px);
	font-weight: 600;
	line-height: 1.3;
}

.nbd-showrooms__address svg,
.nbd-showrooms__details svg,
.nbd-showrooms__button svg {
	display: block;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.nbd-showrooms__address > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.nbd-showrooms__details {
	display: grid;
	gap: 7px;
	margin-bottom: 11px;
}

.nbd-showrooms__details > div {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	color: #365579;
}

.nbd-showrooms__details svg {
	margin-top: 1px;
	color: #175da9;
}

.nbd-showrooms__details p {
	margin: 0;
	font-size: var(--nbd-sr-details-desktop, 13px);
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.nbd-showrooms__details b {
	color: #173e70;
	font-weight: 600;
}

.nbd-showrooms__details p :is(a, b),
.nbd-showrooms__address > span,
.nbd-showrooms__button > span {
	font-size: inherit;
}

.nbd-showrooms__details a {
	color: inherit;
	text-decoration: none;
}

.nbd-showrooms__details a:hover {
	color: #0b6ec4;
}

.nbd-showrooms__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.nbd-showrooms__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1 1 140px;
	min-width: 0;
	max-width: 100%;
	min-height: 40px;
	padding: 7px 11px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: var(--nbd-sr-button-desktop, 13px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nbd-showrooms__button span {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

.nbd-showrooms__button svg:last-child {
	width: 16px;
	height: 16px;
	margin-left: 0;
	flex-basis: 16px;
}

.nbd-showrooms__button:focus-visible {
	outline: 2px solid var(--nbd-sr-navy);
	outline-offset: 3px;
}

.nbd-showrooms__button--map {
	border-color: #1b5fa7;
	background: rgba(255, 255, 255, 0.72);
	color: var(--nbd-sr-navy);
}

.nbd-showrooms__button--contact {
	border-color: var(--nbd-sr-yellow);
	background: var(--nbd-sr-yellow);
	box-shadow: 0 9px 20px rgba(255, 196, 0, 0.21);
	color: var(--nbd-sr-navy);
}

@media (hover: hover) {
	.nbd-showrooms__button:hover {
		transform: translateY(-1px);
	}

	.nbd-showrooms__button--map:hover {
		border-color: var(--nbd-sr-navy);
		background: var(--nbd-sr-navy);
		color: #fff;
	}

	.nbd-showrooms__button--contact:hover {
		border-color: #ffd632;
		background: #ffd632;
		color: var(--nbd-sr-navy);
	}
}

@media (max-width: 1180px) {
	.nbd-showrooms__card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nbd-showrooms__button {
		flex-basis: 100%;
	}
}

@media (max-width: 900px) {
	.nbd-showrooms__grid {
		grid-template-columns: 1fr;
		max-width: 760px;
		margin: 0 auto;
	}

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

	.nbd-showrooms__button {
		flex-basis: 140px;
	}
}

@media (max-width: 620px) {
	.nbd-showrooms {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.nbd-showrooms__heading {
		margin-bottom: 15px;
	}

	.nbd-showrooms__heading h2 {
		font-size: var(--nbd-sr-title-mobile, 27px);
		line-height: 1.08;
	}

	.nbd-showrooms__heading > p {
		margin-top: 6px;
		font-size: var(--nbd-sr-subtitle-mobile, 13px);
		line-height: 1.4;
	}

	.nbd-showrooms__ornament {
		gap: 10px;
		width: min(100%, 220px);
	}

	.nbd-showrooms__ornament span {
		width: 64px;
	}

	.nbd-showrooms__card {
		display: block;
		min-height: 0;
		padding: 8px;
		border-radius: 15px;
	}

	.nbd-showrooms__card::before {
		left: 22px;
		width: 90px;
	}

	.nbd-showrooms__media {
		min-height: 0;
		border-radius: 11px;
	}

	.nbd-showrooms__body {
		padding: 13px 5px 4px;
	}

	.nbd-showrooms__title h3 {
		font-size: var(--nbd-sr-card-title-mobile, 20px);
	}

	.nbd-showrooms__title > span {
		font-size: var(--nbd-sr-kicker-mobile, 14px);
	}

	.nbd-showrooms__address {
		font-size: var(--nbd-sr-address-mobile, 13px);
	}

	.nbd-showrooms__details p {
		font-size: var(--nbd-sr-details-mobile, 13px);
	}

	.nbd-showrooms__button {
		min-height: 39px;
		padding-inline: 10px;
		font-size: var(--nbd-sr-button-mobile, 12px);
	}
}

@media (max-width: 390px) {
	.nbd-showrooms__button {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nbd-showrooms__card,
	.nbd-showrooms__button {
		transition: none;
	}
}
