/* Portfolio / Marketing / Residential map — black brand header (Gantt / Command Center parity) */

#hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #202020 !important;
  border-bottom: 0 !important;
  min-height: 64px;
  height: auto;
  padding: 0;
  display: block;
  box-sizing: border-box;
}

#hdr::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #E92A2C, #A71F23);
  pointer-events: none;
}

#hdr .hdr-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 8px 16px 10px;
  width: 100%;
  box-sizing: border-box;
}

#hdr .header-left,
#hdr .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

#hdr .header-right {
  margin-left: auto;
}

#hdr .logo-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

#hdr .logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

#hdr .logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(230, 230, 230, 0.22);
  flex-shrink: 0;
}

#hdr .header-title {
  font-family: "Arial Black", Arial, Helvetica, sans-serif !important;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #E6E6E6 !important;
  line-height: 1.1;
  text-transform: uppercase;
}

#hdr .header-sub {
  font-family: "DM Sans", Arial, Helvetica, sans-serif !important;
  font-size: 11px;
  color: #BFBFBF !important;
  letter-spacing: 0.5px;
  font-weight: 300;
  text-transform: uppercase;
  margin-top: 1px;
}

#hdr .btn-nav,
#hdr .hdr-btn {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent !important;
  border: 1px solid rgba(230, 230, 230, 0.24) !important;
  color: #E6E6E6 !important;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

#hdr .btn-nav:hover,
#hdr .hdr-btn:hover {
  color: #fff !important;
  border-color: #E92A2C !important;
  background: rgba(233, 42, 44, 0.1) !important;
}

#hdr .hdr-select,
#hdr #nav-select {
  background: transparent !important;
  border: 1px solid rgba(230, 230, 230, 0.24) !important;
  color: #E6E6E6 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 28px 5px 12px;
  border-radius: 0;
  cursor: pointer;
  color-scheme: light;
  outline: none;
  min-width: 130px;
}

#hdr .hdr-select option,
#hdr #nav-select option {
  background: #ffffff !important;
  color: #202020 !important;
}

#hdr .hdr-select:hover,
#hdr .hdr-select:focus,
#hdr #nav-select:hover,
#hdr #nav-select:focus {
  border-color: #E92A2C !important;
}

#hdr #theme-btn {
  background: transparent !important;
  border: 1px solid rgba(230, 230, 230, 0.24) !important;
  color: #E6E6E6 !important;
  font-size: 10px;
  padding: 5px 12px;
  cursor: pointer;
}

#hdr #mob-menu-btn {
  display: none;
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1;
}

#hdr #hdr-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: #BFBFBF;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
}

#hdr #hdr-user-badge[hidden] {
  display: none !important;
}

#hdr .hdr-user-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E92A2C;
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hdr .hdr-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hdr #gm-view-selector {
  display: none;
  gap: 2px;
  flex-shrink: 0;
}

#hdr .gm-view-btn {
  background: transparent !important;
  border: 1px solid rgba(230, 230, 230, 0.24) !important;
  border-radius: 0;
  color: #BFBFBF !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

#hdr .gm-view-btn:hover {
  border-color: #E92A2C !important;
  color: #fff !important;
}

#hdr .gm-view-btn.active {
  border-color: #E92A2C !important;
  color: #fff !important;
  background: rgba(233, 42, 44, 0.12) !important;
}

@media (max-width: 767px) {
  #hdr .hdr-inner {
    padding: 6px 8px 8px;
    gap: 6px;
  }

  #hdr .header-title {
    font-size: 16px;
  }

  #hdr .header-sub {
    font-size: 9px;
  }

  #hdr #nav-select {
    font-size: 10px;
    max-width: 110px;
    min-width: 0;
  }

  #hdr #mob-menu-btn {
    display: inline-flex;
    align-items: center;
  }
}
