/**
 * Site header: logo, main menu, search, register-interest button, language switcher.
 *
 * Images resolve to ../images in this theme, fonts come from theme.json.
 * Generated by tools/port-css/compose.sh — edit the hand-written additions
 * (end of file) in tools/port-css/*-additions.css.
 */

.main-menu ul ul,
.main-menu ul ul ul {
  box-shadow: 0 1px 1px rgba(151, 151, 151, 0.5);
}
.site-header {
  padding-top: 0;
  background-color: transparent;
  padding-bottom: 0;
  min-height: 75px;
  position: fixed;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #222;
  -webkit-transition: 0.4s ease-in-out;
  -moz-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}
.sticky-header .main-menu ul li:hover > ul,
.main-menu ul li:hover > ul {
  display: block;
}
.lang-item img {
  display: none;
}
.main-menu ul li:hover a {
  font-weight: 600;
}
.main-menu ul li:hover {
  color: #fff;
}
.site-header a {
  color: #fff;
  -webkit-transition: 0.4s ease-in-out;
  -moz-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}
.site-header a:hover {
  color: var(--wp--preset--color--main-gold);
  text-decoration: underline;
}
.site-header .wrapper {
  width: 94%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.site-header .site-logo {
  margin: 35px 5px;
  display: flex;
  text-indent: -9999px;
  float: left;
  height: 55px;
  width: 200px;
  padding: 0;
  background: url("../images/LOGO_WHITE_2.svg") 5px center/80% no-repeat;
}
.site-header .site-logo a {
  display: block;
  width: 100%;
}
.main-menu {
  text-align: center;
  max-height: 90px;
  display: flex;
  margin-left: auto;
  margin-right: 15px;
}
.main-menu ul.sub-menu {
  max-height: 70vh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}
.main-menu ul.sub-menu::-webkit-scrollbar {
  width: 8px;
}
.main-menu ul.sub-menu::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.main-menu ul.sub-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.main-menu ul.sub-menu::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.sticky-header .main-menu ul li.nekretnine:hover > ul,
.main-menu ul li.nekretnine:hover > ul {
  display: flex;
}
.main-menu ul {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}
.main-menu ul:after {
  content: "";
  clear: both;
  display: block;
  background-color: #fff;
}
.main-menu ul li {
  position: relative;
}
.main-menu ul li a {
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 2.4em 1.2rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  align-items: center;
  text-transform: uppercase;
  display: flex;
}
.main-menu ul li a:hover {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}
.sticky-header .main-menu ul li a:hover,
.main-menu ul li a:focus,
.solid-header .main-menu ul li a:hover {
  color: var(--wp--preset--color--main-gold);
}
.main-menu ul li.current-menu-item,
.main-menu ul li.current-menu-item a,
.main-menu ul li.current-menu-item a:after,
.main-menu ul li:hover ul li a:hover,
.main-menu ul ul li a:hover,
.main-menu ul ul li.current-menu-item {
  color: var(--wp--preset--color--main-gold);
  font-weight: 600;
}
.main-menu ul li a span {
  padding: 5px 0;
}
.main-menu ul li:hover ul li a,
.main-menu ul ul li a {
  border-right: 0;
  padding: 0.5em 1em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
}
.main-menu ul li.menu-item-has-children > a {
  padding: 2.4em 2em 2.4em 1em;
  background-image: url("../images/icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: 95% center;
  background-size: 12px;
}
.sticky-header .main-menu ul li.menu-item-has-children ul a,
.main-menu ul li.menu-item-has-children ul a,
.solid-header .main-menu ul li.menu-item-has-children ul a {
  background-image: none;
}
.main-menu ul ul {
  -webkit-transition: display 0.8s;
  transition: display 0.8s;
  -webkit-animation-name: fade-up;
  animation-name: fade-up;
  -webkit-animation-duration: 0.4s;
  animation-duration: 0.4s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  background: 0 0;
  display: none;
  flex-wrap: wrap;
  position: absolute;
  top: 100%;
  z-index: 99998;
  margin-left: 0;
  width: 19rem;
  padding: 0;
}
.main-menu ul ul li {
  color: #fff;
  min-height: 15px;
  text-align: left;
  flex: 1 0 50%;
  float: none;
  position: relative;
  z-index: 99999;
  width: 100%;
  border-left: 0 solid #fff;
  padding-bottom: 0;
}
.main-menu ul ul li a {
  font-style: normal;
  display: block;
  text-align: left;
  background-color: rgba(40, 40, 40, 0.9);
}
.main-menu ul ul li a span {
  padding: 0;
  width: 100%;
  display: block;
}
.main-menu ul ul li a:before {
  content: "";
}
.main-menu ul ul li.menu-item-has-children a {
  padding: 0.5em 2em 0.5em 1em;
}
.main-menu ul li.nekretnine ul {
  width: 40rem;
}
.main-menu ul ul li a:last-of-type {
  border-bottom: 0;
}
.main-menu ul ul ul {
  position: absolute;
  left: 100%;
  top: 0;
  width: 12em;
}
.main-menu .special a span {
  color: #fff;
  font-weight: 600;
  background-color: transparent;
  padding: 5px;
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--main-gold);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}
.main-menu > div > ul > li:nth-child(2) > a > span {
  color: #fff;
  font-weight: 600;
  background-color: #0467f5;
  padding: 5px;
  transition: background-color 0.2s ease;
}
.main-menu .special ul a span {
  color: #fff !important;
  font-weight: 500 !important;
  background-color: transparent;
}
.main-menu .special ul a:hover span {
  color: var(--wp--preset--color--main-gold) !important;
  font-weight: 600 !important;
  background-color: transparent;
}
.lang-item {
  list-style-type: none;
}
.lang-item a {
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.5;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-item a:hover {
  text-decoration: none;
}
.header-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.sticky-header,
.solid-header {
  background-color: rgba(255, 255, 255, 0.85);
}
.sticky-header a,
.solid-header a {
  color: #282827;
}
.sticky-header .wrapper,
.solid-header .wrapper {
  align-items: center;
}
.solid-header .site-logo {
  margin: 5px;
  background: url("../images/dark-logo-new.svg") 5px center/70% no-repeat;
}
.solid-header .main-menu ul li a {
  align-items: center;
  color: #282827;
}
.solid-header .main-menu ul li.menu-item-has-children a {
  background-image: url("../images/icons/arrow-down-black.svg");
  background-repeat: no-repeat;
  background-position: 95% center;
  background-size: 12px;
}
.sticky-header {
  min-height: 60px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.sticky-header .site-logo {
  margin: 5px;
  background: url("../images/dark-logo-new.svg") 5px center/70% no-repeat;
}
.sticky-header .main-menu {
  max-height: 66px;
}
.sticky-header .main-menu ul li {
  min-height: 66px;
}
.sticky-header .main-menu ul li a {
  align-items: center;
  color: #282827;
  padding: 0.5em 1.2rem;
}
.sticky-header .main-menu ul li.menu-item-has-children a {
  background-image: url("../images/icons/arrow-down-black.svg");
  background-position: 95% center;
  padding: 0.5em 2em 0.5em 1em;
}
.sticky-header .main-menu ul ul li {
  float: left;
  min-height: 1px;
}
.sticky-header .main-menu ul ul li a {
  float: left;
  min-height: 1px;
  background-color: rgba(40, 40, 40, 0.9);
  width: 100%;
}
@media screen and (max-width: 1275px) {
  .site-header .site-logo a {
    display: block;
  }
  .site-header {
    min-height: 60px;
  }
  .site-header .site-logo {
    display: block;
    float: left;
    height: 50px;
    width: 180px;
    padding: 0;
    margin: 5px;
    overflow: hidden;
    top: 0;
    background-size: 80%;
  }
  .main-menu {
    display: none;
  }
  .header-buttons {
    position: absolute;
    right: 0;
  }
}
@media screen and (max-width: 640px) {
  .site-header .wrapper {
    width: 100%;
    align-items: center;
  }
  .site-header .site-logo {
    display: block;
    float: left;
    height: 50px;
    width: 120px;
    padding: 0;
    margin: 5px;
    overflow: hidden;
    top: 0;
    background-size: 90%;
  }
}
@media screen and (max-width: 430px) {
  .site-header .site-logo {
    display: block;
    float: left;
    height: 50px;
    width: 80px;
    padding: 0;
    margin: 5px;
    overflow: hidden;
    top: 0;
    background-size: 90%;
  }
}
@media screen and (max-width: 340px) {
  .site-header .site-logo {
    display: block;
    float: left;
    height: 50px;
    width: 80px;
    padding: 0;
    margin: 5px;
    overflow: hidden;
    top: 0;
    background-size: 90%;
  }
}

/* --------------------------------------------------------------------------
 * FSE theme additions — fit the block markup into the rules above.
 * ----------------------------------------------------------------------- */

.site-header .bw-site-search {
  color: #fff;
}
.sticky-header .bw-site-search,
.solid-header .bw-site-search {
  color: #000;
}
@media screen and (max-width: 640px) {
  .site-header .bw-site-search {
    display: none;
  }
}

.site-header .bw-side-menu__toggle {
  color: #fff;
}
.sticky-header .bw-side-menu__toggle,
.solid-header .bw-side-menu__toggle {
  color: #1a1a1a;
}

.site-header .wp-block-polylang-language-switcher {
  width: 60px;
  height: 60px;
}

.site-header .header-buttons .wp-block-bw-button.bw-button {
  --bw-button-pad-y: 8px;
  --bw-button-pad-x: 13px;
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}
.sticky-header .header-buttons .wp-block-bw-button.bw-button,
.solid-header .header-buttons .wp-block-bw-button.bw-button {
  color: #282827;
}
.sticky-header .header-buttons .wp-block-bw-button.bw-button:hover,
.sticky-header .header-buttons .wp-block-bw-button.bw-button:focus,
.solid-header .header-buttons .wp-block-bw-button.bw-button:hover,
.solid-header .header-buttons .wp-block-bw-button.bw-button:focus {
  background-color: var(--wp--preset--color--main-gold);
  color: #fff;
}
@media screen and (max-width: 1275px) {
  .site-header .header-buttons .wp-block-bw-button.bw-button {
    margin-bottom: 0;
  }
}
@media screen and (max-width: 640px) {
  .site-header .header-buttons .wp-block-bw-button.bw-button {
    --bw-button-pad-x: 8px;
    font-size: 1.1rem;
  }
}
@media screen and (max-width: 430px) {
  .site-header .header-buttons .wp-block-bw-button.bw-button {
    --bw-button-pad-x: 3px;
    font-size: 1rem;
  }
}
@media screen and (max-width: 340px) {
  .site-header .header-buttons .wp-block-bw-button.bw-button {
    max-width: 120px;
  }
}

/* Menu buttons (site-wide Custom CSS): "Interaktivna mapa" fills gold on
   hover, with dark text once the header is solid; "BW Marina" turns white. */
.main-menu .special a:hover span {
  background-color: var(--wp--preset--color--main-gold);
  box-shadow: none;
  color: #fff;
}
.sticky-header .main-menu .special a span,
.solid-header .main-menu .special a span {
  color: #282827;
}
.sticky-header .main-menu .special a:hover span,
.solid-header .main-menu .special a:hover span {
  color: #fff;
}
.main-menu > div > ul > li:nth-child(2) > a:hover > span {
  background-color: #fff;
  color: #333;
}

/* Sticky header transition: the white band is a layer of its own that
   slides down and fades in as the page scrolls, and fades out sliding up
   on the way back to the top; the logo's margin eases, so the header
   doesn't jump. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
  pointer-events: none;
}
.site-header.sticky-header,
.site-header.solid-header {
  background-color: transparent;
  box-shadow: none;
}
.sticky-header::before,
.solid-header::before {
  opacity: 1;
  transform: none;
}
.sticky-header::before {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.site-header .site-logo,
.site-header.sticky-header .site-logo,
.site-header.solid-header .site-logo {
  position: relative;
  background-image: none;
  transition: margin 0.4s ease;
}

/* Logo (bw/logo: white, and dark for the white header): both images sit
   where the logo's background was — 5px from the left, centered, as wide
   as that background — and cross-fade with the header state. */
.site-header .site-logo .bw-logo__link {
  position: absolute;
  inset: 0;
}
.site-header .site-logo .bw-logo__image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: var(--bw-header-logo-size);
  max-width: none;
  margin: auto 0;
}
.site-header .site-logo {
  --bw-header-logo-size: 80%;
  --bw-logo-opacity: 1;
  --bw-logo-alt-opacity: 0;
}
.site-header.sticky-header .site-logo,
.site-header.solid-header .site-logo {
  --bw-header-logo-size: 70%;
  --bw-logo-opacity: 0;
  --bw-logo-alt-opacity: 1;
}
@media screen and (max-width: 1275px) {
  .site-header .site-logo,
  .site-header.sticky-header .site-logo,
  .site-header.solid-header .site-logo {
    --bw-header-logo-size: 80%;
  }
}
@media screen and (max-width: 640px) {
  .site-header .site-logo,
  .site-header.sticky-header .site-logo,
  .site-header.solid-header .site-logo {
    --bw-header-logo-size: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .site-header .site-logo {
    transition: none;
  }
}

/* The header's groups are flex layouts, so the editor lays them out in a
   row too: no gap between the items, and the menu keeps its margins over
   the layout's margin reset for flex items. */
.site-header .is-layout-flex {
  gap: 0;
}
.site-header .wrapper > .main-menu {
  margin-left: auto;
  margin-right: 15px;
}
