/* DubaiHome authoritative Global Header component.
 * This is the only live Header visual source. Route stylesheets must not copy
 * Header logo, navigation, hover, dropdown, mobile-panel, or responsive rules.
 */
:root {
  --dhhm-text: #102033;
  --dhhm-muted: rgba(16, 32, 51, .66);
  --dhhm-border: rgba(16, 32, 51, .13);
  --dhhm-bg: #fff;
  --dhhm-soft: #f7f9f8;
  --dhhm-active: #102033;
  --dhhm-teal: #00a6ae;
  --dhhm-gold: #c89b5e;
}

/* Legacy-theme safety net. Main-property output sanitation removes these
 * elements from the final document; these selectors protect other legacy
 * routes and fail closed if a third-party template changes unexpectedly.
 */
body.dhhfe-custom-header-enabled .header-main-wrap,
body.dhhfe-custom-header-enabled .header-desktop,
body.dhhfe-custom-header-enabled .header-mobile,
body.dhhfe-custom-header-enabled .nav-mobile,
body.dhhfe-custom-header-enabled .houzez-nav-menu-main-mobile-wrap,
body.dhhfe-custom-header-enabled .mobile-header-nav,
body.dhhfe-main-property-global-header .header-wrap,
body.dhhfe-main-property-global-header #header-section,
body.dhhfe-main-property-global-header .top-bar-wrap,
body.dhhfe-main-property-global-header .top-bar-wrap-mobile,
body.dhhfe-main-property-global-header .header-sticky,
body.dhhfe-main-property-global-header .header-sticky-wrap,
body.dhhfe-main-property-global-header .sticky-header-wrap {
  display: none !important;
}

.dhhm-header,
.dhhm-header * {
  box-sizing: border-box;
  box-shadow: none !important;
}

.dhhm-header {
  position: relative !important;
  z-index: 10050;
  width: 100%;
  background: var(--dhhm-bg) !important;
  border: 0 !important;
  color: var(--dhhm-text);
  font-family: inherit;
}

.dhhm-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  height: 1px;
  background: var(--dhhm-text);
  pointer-events: none;
}

.dhhm-inner {
  width: calc(100% - 128px);
  max-width: 1390px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.dhhm-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.dhhm-header .dhhm-logo img {
  display: block;
  width: auto !important;
  max-width: 260px !important;
  height: 36px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transform-origin: left center !important;
}

.dhhm-desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0 !important;
  min-height: 60px;
}

.dhhm-nav-item {
  position: relative;
  min-height: 60px;
  margin: 0 !important;
  display: flex;
  align-items: stretch;
}

.dhhm-nav-link {
  appearance: none;
  min-height: 60px !important;
  height: 60px !important;
  margin: 0;
  padding: 0 16px !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dhhm-text) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.dhhm-nav-item.is-active > .dhhm-nav-link,
.dhhm-nav-link.is-active,
.dhhm-nav-item.is-dropdown-open > .dhhm-nav-link,
.dhhm-nav-item:hover > .dhhm-nav-link,
.dhhm-desktop-nav > .dhhm-nav-link:hover {
  background: var(--dhhm-active) !important;
  background-color: var(--dhhm-active) !important;
  color: #fff !important;
}

.dhhm-nav-button {
  font-family: inherit;
}

.dhhm-nav-link:focus-visible,
.dhhm-nav-button:focus-visible {
  outline: 2px solid var(--dhhm-gold) !important;
  outline-offset: -3px !important;
}

.dhhm-dropdown {
  position: absolute;
  top: calc(100% - 1px) !important;
  left: 50%;
  z-index: 10020;
  width: 360px;
  max-width: calc(100vw - 32px);
  margin-top: 0 !important;
  padding: 22px 28px;
  border: 1px solid var(--dhhm-border);
  border-radius: 4px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0) !important;
  transition: opacity .12s ease, visibility .12s ease !important;
}

.dhhm-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
}

.dhhm-dropdown-heading {
  margin: 0 0 16px;
  color: var(--dhhm-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.dhhm-dropdown-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dhhm-dropdown-link {
  display: block;
  padding: 1px 0;
  color: var(--dhhm-text) !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.35;
  transition: color .14s ease;
}

.dhhm-dropdown-link:hover,
.dhhm-dropdown-link:focus-visible,
.dhhm-dropdown-link.is-active {
  color: var(--dhhm-gold) !important;
}

.dhhm-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--dhhm-border);
  border-radius: 4px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.dhhm-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dhhm-text);
}

.dhhm-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow: auto;
  background: #fff;
}

.dhhm-mobile-head {
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--dhhm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dhhm-mobile-logo .dhhm-logo img {
  height: 30px !important;
  max-width: 230px !important;
}

.dhhm-mobile-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--dhhm-border);
  border-radius: 4px;
  background: #fff;
  color: var(--dhhm-text);
  font-size: 28px;
  line-height: 1;
}

.dhhm-mobile-nav {
  padding: 12px 18px 34px;
}

.dhhm-mobile-link,
.dhhm-mobile-section-button {
  width: 100%;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--dhhm-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dhhm-text) !important;
  text-align: left;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 400;
}

.dhhm-mobile-link:hover,
.dhhm-mobile-section-button:hover {
  color: var(--dhhm-gold) !important;
}

.dhhm-mobile-link.is-active,
.dhhm-mobile-section.is-active > .dhhm-mobile-section-button {
  padding: 0 12px;
  background: var(--dhhm-active) !important;
  color: #fff !important;
}

.dhhm-mobile-submenu {
  padding: 14px 0 16px 14px;
  border-bottom: 1px solid var(--dhhm-border);
}

.dhhm-mobile-subheading {
  margin: 0 0 8px;
  color: var(--dhhm-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dhhm-mobile-sublink {
  display: block;
  padding: 9px 0;
  color: var(--dhhm-text) !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.25;
}

.dhhm-mobile-sublink:hover,
.dhhm-mobile-sublink:focus-visible,
.dhhm-mobile-sublink.is-active {
  color: var(--dhhm-gold) !important;
}

body.dhhm-mobile-open {
  overflow: hidden;
}

@media (min-width: 1200px) {
  .dhhm-nav-item.dhhm-has-dropdown::after {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    height: 18px;
    background: transparent;
    pointer-events: auto;
  }
}

@media (max-width: 1199px) {
  .dhhm-desktop-nav {
    display: none;
  }

  .dhhm-mobile-toggle {
    display: flex;
  }

  .dhhm-inner {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 56px;
    padding: 0;
  }

  .dhhm-header .dhhm-logo img,
  .dhhm-mobile-logo .dhhm-logo img {
    width: auto !important;
    max-width: 230px !important;
    height: 30px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
