/* Đông Võ Realty – header, footer, menu mobile, liên hệ nổi (Figma 3:6, 65:567, 104:1578, 113:1190, 5:569, 99:599, 5:643, 104:1621) */

/* ===================== Nút / phần tử dùng chung ===================== */
.dv-round {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 20px; border: 0; padding: 0;
	background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.dv-round--red { background: var(--dv-red); }

/* Logo Zalo chính thức có bóng đổ tràn ra ngoài khung (đúng như Figma) */
.dv-zalo { position: relative; display: block; flex: none; }
.dv-zalo .dv-icon { position: absolute; max-width: none; }
.dv-zalo--36 { width: 36px; height: 36px; }
.dv-zalo--36 .dv-icon { left: -12.74px; top: -7.71px; }
.dv-zalo--18 { width: 18px; height: 18px; }
.dv-zalo--18 .dv-icon { left: -19.94px; top: -12px; }
.dv-zalo--15 { width: 15.43px; height: 15.43px; }
.dv-zalo--15 .dv-icon { left: -5.46px; top: -3.31px; }

/* ===================== Header ===================== */
.dv-header { position: relative; z-index: 50; background: var(--dv-ink); color: #fff; }
.dv-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; }
.dv-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	padding: 24px max(var(--dv-gutter), calc((100% - var(--dv-container)) / 2));
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.dv-logo { display: block; flex: none; }
.dv-logo img { width: 100%; height: 100%; object-fit: contain; }
.dv-header__logo { width: 156px; height: 40px; }

.dv-nav { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.dv-nav > li { position: relative; }
.dv-nav > li > a {
	position: relative; display: flex; align-items: center; gap: 3px; padding: 8px 0;
	font-size: 14px; font-weight: 500; line-height: normal; white-space: nowrap;
	color: rgba(255, 255, 255, .85);
}
.dv-nav > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -0px; height: 2px;
	background: var(--dv-red); transform: scaleX(0); transition: transform .2s ease;
}
.dv-nav > li:hover > a,
.dv-nav > li:focus-within > a { color: #fff; }
.dv-nav > li:hover > a::after,
.dv-nav > li:focus-within > a::after,
.dv-nav > .current-menu-item > a::after,
.dv-nav > .current-menu-ancestor > a::after,
.dv-nav > .current-menu-parent > a::after { transform: scaleX(1); }
.dv-nav > .current-menu-item > a,
.dv-nav > .current-menu-ancestor > a,
.dv-nav > .current-menu-parent > a { color: #fff; font-weight: 600; }
.dv-nav__chev { width: 14px; height: 14px; }

/* Menu con */
.dv-nav .sub-menu {
	position: absolute; top: calc(100% + 14px); left: -18px; min-width: 220px;
	margin: 0; padding: 10px; list-style: none;
	background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dv-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dv-nav > li:hover > .sub-menu,
.dv-nav > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.dv-nav .sub-menu a {
	display: block; padding: 10px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 500; color: var(--dv-ink); white-space: nowrap;
}
.dv-nav .sub-menu a:hover,
.dv-nav .sub-menu .current-menu-item > a { background: var(--dv-bg); color: var(--dv-red); }

.dv-header__right { display: flex; align-items: center; gap: 14px; }
.dv-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; line-height: normal; }
.dv-lang a { opacity: .6; font-weight: 400; }
.dv-lang a.is-current { opacity: 1; font-weight: 700; }
.dv-lang a:hover { opacity: 1; }
.dv-lang__sep { opacity: .6; margin-right: -3px; }
.dv-lang__sep + a { margin-left: 0; }
.dv-hotline {
	display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 16px;
	border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
	font-size: 14px; font-weight: 600; line-height: normal; color: #fff; white-space: nowrap;
	transition: background .2s ease, border-color .2s ease;
}
.dv-hotline:hover { background: var(--dv-red); border-color: var(--dv-red); }
.dv-header__mobile { display: none; }

/* ===================== Menu mobile (overlay 113:1190) ===================== */
.dv-mmenu {
	position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
	padding-bottom: 24px; background: var(--dv-ink); color: #fff; overflow-y: auto;
}
.dv-mmenu[hidden] { display: none; }
.dv-mmenu__top { display: flex; align-items: center; justify-content: space-between; height: 64px; flex: none; padding: 0 16px 0 20px; }
.dv-mmenu__logo { width: 117px; height: 30px; }
.dv-mmenu__items { padding: 16px 20px; }
.dv-mmenu__list { margin: 0; padding: 0; list-style: none; }
.dv-mmenu__list a {
	display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-family: var(--dv-font-heading); font-size: 22px; font-weight: 600; line-height: normal; color: #fff;
}
.dv-mmenu__list .current-menu-item > a,
.dv-mmenu__list .current-menu-ancestor > a,
.dv-mmenu__list .current-menu-parent > a { color: var(--dv-red); }
.dv-mmenu__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 20px; }
.dv-lang--mobile { font-size: 14px; gap: 8px; }
.dv-lang--mobile a,
.dv-lang--mobile a.is-current,
.dv-lang--mobile .dv-lang__sep { opacity: 1; font-weight: 600; margin: 0; }
.dv-mmenu__call {
	display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px;
	background: var(--dv-red); border-radius: 999px; font-size: 15px; font-weight: 600; line-height: normal;
}
body.dv-menu-open { overflow: hidden; }

/* ===================== Footer (5:569) ===================== */
.dv-footer { background: #0a0b0c; color: #fff; }
.dv-footer__inner {
	display: flex; flex-direction: column; gap: 64px;
	max-width: 1440px; margin: 0 auto; padding: 90px var(--dv-gutter) 32px;
}
.dv-footer__cta {
	display: flex; align-items: center; justify-content: space-between;
	padding: 48px 56px; background: var(--dv-dark); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
}
.dv-footer__cta-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dv-footer__cta h2 { font-size: 36px; font-weight: 600; line-height: normal; }
.dv-footer__cta p { margin: 0; font-size: 15px; line-height: 1.65; opacity: .7; }
.dv-cbtns { display: flex; flex-wrap: wrap; gap: 12px; width: 400px; flex: none; }
.dv-cbtn {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 194px; padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
	font-size: 14px; font-weight: 600; line-height: normal; color: #fff;
	transition: background .2s ease, border-color .2s ease;
}
.dv-cbtn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.dv-cbtn.is-primary { background: var(--dv-red); border-color: var(--dv-red); }
.dv-cbtn.is-primary:hover { background: #c9332a; border-color: #c9332a; }
.dv-cbtn .dv-wa { width: 20px; height: 20px; object-fit: contain; }

.dv-footer__cols { display: flex; align-items: flex-start; justify-content: space-between; }
.dv-footer__brand { width: 340px; display: flex; flex-direction: column; gap: 18px; }
.dv-footer__logo { width: 187px; height: 48px; }
.dv-footer__brand p { margin: 0; font-size: 14px; line-height: 1.65; opacity: .6; }
.dv-social { display: flex; gap: 10px; }
.dv-social a {
	display: flex; padding: 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
	transition: background .2s ease, border-color .2s ease;
}
.dv-social a:hover { background: var(--dv-red); border-color: var(--dv-red); }
.dv-footer__menus { display: contents; }
.dv-footer__col { display: flex; flex-direction: column; gap: 14px; line-height: normal; }
.dv-footer__head { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.56px; text-transform: uppercase; }
.dv-footer__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dv-footer__links a { font-size: 14px; opacity: .6; white-space: nowrap; transition: opacity .2s; }
.dv-footer__links a:hover { opacity: 1; }
.dv-footer__contact a,
.dv-footer__contact p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; white-space: nowrap; }
.dv-footer__contact a span,
.dv-footer__contact p span { opacity: .75; }
.dv-footer__contact a:hover span { opacity: 1; }
.dv-footer__contact .dv-footer__social-line { opacity: .6; }
.dv-footer__bottom {
	display: flex; justify-content: space-between; padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: normal;
}
.dv-footer__bottom p { margin: 0; opacity: .45; }

/* ===================== Liên hệ nổi (desktop 5:643) ===================== */
.dv-float {
	position: fixed; right: 32px; top: 479px; z-index: 40;
	display: flex; flex-direction: column; gap: 12px;
}
.dv-float__btn {
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 28px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18); overflow: hidden; transition: transform .2s ease;
}
.dv-float__btn:hover { transform: scale(1.06); }
.dv-float__btn--zalo { background: #0068ff; }
.dv-float__btn--wa { background: #25d366; }
.dv-float__btn--wa img { width: 36px; height: 36px; object-fit: contain; }
.dv-float__btn--call { background: var(--dv-red); }
@media (max-height: 760px) { .dv-float { top: auto; bottom: 32px; } }

/* ===================== Thanh liên hệ mobile (104:1621) ===================== */
.dv-mbar { display: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1280px) {
	:root { --dv-gutter: 40px; }
	.dv-nav { gap: 20px; }
}

@media (max-width: 1023px) {
	:root { --dv-gutter: 20px; }

	.dv-header,
	.dv-header--overlay { position: sticky; top: 0; background: var(--dv-ink); }
	.dv-header__bar { height: 64px; padding: 0 16px 0 20px; gap: 12px; border-bottom: 0; }
	.dv-header__logo { width: 117px; height: 30px; margin-right: auto; }
	.dv-header__nav,
	.dv-header__right { display: none; }
	.dv-header__mobile { display: flex; gap: 12px; }

	.dv-footer__inner { gap: 28px; padding: 48px 20px calc(32px + 85px); }
	.dv-footer__cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px 20px; border: 0; border-radius: 16px; background: #1b1c20; }
	.dv-footer__cta h2 { font-size: 24px; }
	.dv-footer__cta p { font-size: 14px; line-height: 1.6; opacity: 1; color: rgba(255, 255, 255, .7); }
	.dv-cbtns { width: 100%; gap: 8px; }
	.dv-cbtn { width: calc(50% - 4px); }
	.dv-cbtn .dv-wa { width: 18px; height: 18px; }

	.dv-footer__cols { flex-direction: column; gap: 28px; }
	.dv-footer__brand { width: 100%; gap: 28px; }
	.dv-footer__brand p { font-size: 13px; line-height: 1.6; opacity: 1; color: rgba(255, 255, 255, .65); }
	.dv-social { display: none; }
	.dv-footer__menus { display: flex; gap: 24px; width: 100%; }
	.dv-footer__menus .dv-footer__col { flex: 1 1 0; gap: 10px; }
	.dv-footer__head { font-size: 12px; letter-spacing: 1.44px; }
	.dv-footer__links { gap: 10px; }
	.dv-footer__links a { font-size: 13px; opacity: 1; color: rgba(255, 255, 255, .65); }
	.dv-footer__contact { width: 100%; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.dv-footer__contact .dv-footer__head,
	.dv-footer__contact .dv-icon { display: none; }
	.dv-footer__contact a,
	.dv-footer__contact p { font-size: 13px; }
	.dv-footer__contact a span,
	.dv-footer__contact p span,
	.dv-footer__contact .dv-footer__social-line { opacity: 1; color: rgba(255, 255, 255, .8); }
	.dv-footer__bottom { padding-top: 0; border-top: 0; font-size: 11px; }
	.dv-footer__bottom p:last-child { display: none; }

	.dv-float { display: none; }

	.dv-mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center;
		padding: 8px 8px max(20px, env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--dv-line); filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, .08));
	}
	.dv-mbar__item {
		flex: 1 1 0; min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		border-radius: 12px; font-size: 11px; font-weight: 600; line-height: normal; color: var(--dv-ink);
	}
	.dv-mbar__item img { width: 24px; height: 24px; object-fit: contain; }
	.dv-mbar__item.is-call { background: #fdecea; color: var(--dv-red); }
	.dv-mbar__zalo { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 12px; background: #0068ff; overflow: hidden; }
}

/* Thanh quản trị WordPress khi đăng nhập */
.admin-bar .dv-header--overlay { top: 32px; }
@media (max-width: 1023px) { .admin-bar .dv-header, .admin-bar .dv-header--overlay { top: 32px; } }
@media (max-width: 782px) { .admin-bar .dv-header, .admin-bar .dv-header--overlay { top: 46px; } }
@media (max-width: 600px) { .admin-bar .dv-header, .admin-bar .dv-header--overlay { top: 0; } }
