.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  z-index: 1000;
  transition: 0.3s ease-in-out;
}

a {
  text-decoration: none;
  color: inherit;
}

.header-upper-wrapper {
  padding: 2rem 0rem 1.5rem 0rem;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: auto;
  color: white;
  transition: 0.3s ease-in-out;
  font-weight: 300;
}

.header-upper-wrapper.scrolled {
  border-bottom: 2px solid #d0d0d0;
  padding: 0.6rem 0rem;
  color: black;
}

.header-upper-left {
  display: flex;
  align-items: center;
}

.header-upper-left-logo {
  height: 3rem;
  transition: 0.4s linear;
}

.header-upper-left-title {
  font-size: 26px;
  font-weight: 700;
}

.header-upper-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.icon-text-wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 300;
  font-size: 17px;
}

.icon-text-wrapper > img {
  height: 1.4rem;
  transition: 0.3s linear;
  max-width: 0px;
}

.icon-text-wrapper-mobile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 300;
  font-size: 17px;
}

.icon-text-wrapper-mobile > img {
  height: 1.4rem;
  transition: 0.3s linear;
  max-width: 100px;
}

.icon-text-wrapper > img:first-of-type {
  max-width: 100px;
}

.icon-text-wrapper > img:last-of-type {
  max-width: 0px;
}

.icon-text-wrapper.scrolled > img:first-of-type {
  max-width: 0px;
}

.icon-text-wrapper.scrolled > img:last-of-type {
  max-width: 100px;
}

.header-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-language-switcher img {
  height: 1.7rem;
}

.header-language-switcher select {
  height: fit-content;
  border: none;
  color: #4e89a4;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.header-search {
  display: flex;
  align-items: center;
  height: 2.4rem;
  cursor: pointer;
}

#header-search-input {
  height: 100%;
  border: 1.5px solid #7aca7b;
  margin-right: -0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  display: none;
  transform: translateX(30%);
  transition: transform 0.5s;
}

.header-search-input-active {
  display: block !important;
  transform: translateX(0%) !important;
}

#header-search-input:active {
  outline: 2px solid #7bc97a;
}

.header-search-icon {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  height: 100%;
  z-index: 0;
}

.header-search-icon img {
  height: 100%;
  transition: 0.3s linear;
}

.header-search-icon > img:first-of-type {
  max-width: 100px;
}

.header-search-icon > img:last-of-type {
  max-width: 0px;
}

.header-search-icon.scrolled > img:first-of-type {
  max-width: 0px;
}

.header-search-icon.scrolled > img:last-of-type {
  max-width: 100px;
}

.header-search-input-active {
  width: auto;
}

.header-hamburger {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.header-hamburger img {
  height: 100%;
  transition: 0.3s linear;
}

.header-hamburger > img:first-of-type {
  max-width: 100px;
}

.header-hamburger > img:last-of-type {
  max-width: 0px;
}

.header-hamburger.scrolled > img:first-of-type {
  max-width: 0px;
}

.header-hamburger.scrolled > img:last-of-type {
  max-width: 100px;
}

/* HEADER MENU PART */

.header-lower-wrapper {
  background: transparent;
  color: white;
  padding: 0rem 0rem;
  display: flex;
  align-items: center;
  z-index: 300;
  justify-content: space-between;
  white-space: nowrap;
  width: 70%;
  margin: auto;
  border-bottom: 2px solid rgba(255, 255, 255, 0.34);
  /*margin-bottom: 1rem;*/
}

.header-lower-wrapper.scrolled {
  color: black;
  /*border-bottom: 2px solid #e0e0e0;*/
}

.header-menu-item-turizem {
  border-right: unset;
  background-color: #4caf50;
  border-radius: 10px;
  background-image: url("https://dev9.2digital.si/trebnje/media/img/icon-lev.webp");
  background-repeat: no-repeat;
  background-size: 14%;
  background-position: left bottom;
  margin-left: 2%;
  min-width: 180px;
}

.header-menu-item-turizem:hover {
  background-color: #3f9a43;
  transition: all 300ms;
}

.header-menu-item {
  position: relative;
  width: fit-content;
  display: inline-flex;
  padding: 0.8rem 1rem;
  transition: all 300ms;
  border-bottom: 2px solid rgba(255, 255, 255, 0);
  margin-bottom: -2px;
}

.header-menu-item:first-child {
  padding: 0.8rem 1rem 0.8rem 0rem;
}

.header-menu-item-title-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-menu-item-aktualno {
  background: #c90c0f;
  color: white;
}

.header-menu-item:hover {
  border-color: white;
  transition: all 300ms;
}

.header-menu-item.scrolled {
  /*border-bottom: 2px solid #e0e0e0;*/
}

.header-menu-item.scrolled:hover {
  /*border-bottom: 2px solid black;*/
}

.header-menu-item > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.header-menu-item .header-menu-item-title {
  font-size: 20px;
  font-weight: 500 !important;
}
.header-menu-item img {
  height: 0.8rem;
}

.header-submenu-wrapper {
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 100%;
  z-index: 3;
  color: black;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  padding: 1rem 0;
  display: none;
  max-height: 70vh;
  box-shadow: 3px 3px 15px 0px #0000002b;
  width: fit-content;
  min-width: 300px;
}

.header-menu-overlay .header-submenu-wrapper {
  overflow-y: scroll;
  max-height: 40vh;
  position: relative;
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  margin-top: 1rem;
}

.header-submenu-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
  border-bottom: 1.5px solid #f4f4f4;
  font-size: 12px;
  font-weight: 400;
  transition: 0.2s ease-in-out;
  line-height: 20px;
}

.header-submenu-item p {
  font-size: 1.11em;
  font-weight: bold;
}

.header-submenu-item img {
  filter: hue-rotate(-185deg) brightness(54%);
  transition: 0.2s ease-in-out;
}

.header-submenu-item:hover img {
  filter: unset;
  transition: 0.2s ease-in-out;
}

.header-submenu-item:hover {
  background-color: #cd1919;
}

.header-submenu-wrapper a:hover {
  color: white;
}

.header-menu-overlay {
  position: fixed;
  width: 100%;
  min-height: 100dvh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(0.3rem);
  backdrop-filter: blur(0.3rem);
  z-index: 15;
  transform: translateX(100%);
  transition: transform 0.3s linear;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  padding-top: 5rem;
  gap: 0.5rem;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.header-menu-overlay .header-menu-item .header-menu-item-title {
  color: white;
  font-size: 18px;
  text-align: center;
}

#closeMenuOverlay {
  position: fixed;
  top: 1.5rem;
  right: 4rem;
  border: none;
  background-color: white;
  color: black;
  border-radius: 0.5rem;
  height: 2.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

#header-phone-mobile {
  color: white;
}

#header-email-mobile {
  color: white;
}

.header-search-under-wrapper {
  width: 70%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  overflow: hidden;
  height: 3.6rem;
  max-height: 0;
  transition: 0.3s linear;
}

.header-search-under-wrapper input::placeholder {
  color: white;
}

.header-search-under-wrapper .header-search-icon {
  height: 100%;
}

.header-search-under-active {
  max-height: 3.6rem;
  padding: 0.5rem 1rem;
}

#headerSearch {
  border: none;
  height: 100%;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  flex-basis: 100%;
  padding: 0.3rem 0.6rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 5px;
}

#headerSearch:focus {
}

#headerSearchClose {
  border: none;
  background: transparent;
  color: #7bc97a;
  border-radius: 0.5rem;
  height: 100%;
  padding: 0.7rem 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100%;
  font-weight: 700;
  cursor: pointer;
}

#headerSearchClose > img {
  height: 100%;
  transition: 0.3s linear;
}

#headerSearchClose > img:first-of-type {
  max-width: 100px;
}

#headerSearchClose > img:last-of-type {
  max-width: 0px;
}

#headerSearchClose.scrolled > img:first-of-type {
  max-width: 0px;
}

#headerSearchClose.scrolled > img:last-of-type {
  max-width: 100px;
}

.header-scrolled {
  background-color: white;
  color: black;
  box-shadow: 0 -10px 10px 5px rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 1700px) {
  /* .header-menu-item h2 {
    font-size: 15px;
  }

  .header-submenu-item {
    font-size: 11px;
  } */

  .header-upper-wrapper {
    width: 80%;
  }

  .header-lower-wrapper {
    width: 80%;
  }

  .header-search-under-wrapper {
    width: 80%;
  }
}

@media screen and (max-width: 1400px) {
  #header-contact-desktop {
    display: none;
  }

  #header-location-desktop {
    display: none;
  }

  #header-phone-desktop {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .header-search-under-wrapper {
    width: 90%;
  }

  .header-upper-wrapper {
    width: 90%;
  }

  .header-lower-wrapper {
    width: 90%;
  }

  #header-phone-desktop {
    display: none;
  }

  #header-email-desktop {
    display: none;
  }

  #header-location-desktop {
    display: none;
  }

  #header-contact-desktop {
    display: none;
  }

  #header-language-switcher {
    display: none;
  }

  .header-upper-left-logo {
    height: 2.5rem;
  }

  .header-upper-left-title {
    font-size: 18px;
  }

  #closeMenuOverlay {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    border: none;
    background-color: black;
    color: white;
    border-radius: 0.5rem;
    height: 2.5rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
  }
  
  .header-upper-wrapper {
    width: 90%;
  }

  .header-lower-wrapper {
    width: 90%;
  }
}

@media screen and (max-width: 500px) {
  .header-menu-item {
    padding: 0.4rem 1rem;
  }
}
