

/* Nomads: basic vertical spacing */

.nomads-navbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.nomads-navbar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding-top: 10px;
}

.nomads-navbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.nomads-navbar__brand-logo {
  width: clamp(150px, 40vw, 220px);
  height: auto;
  display: block;
  margin-left: 1vw;
}

.nomads-navbar__brand-wrap {
  position: relative;
  /* display: inline-flex;
  align-items: center;
  gap: 8px; */
}

.nomads-navbar__search {
  position: relative;
  flex: 1 1 400px;
  max-width: 420px;
}

.nomads-navbar__mobile-search-toggle {
  display: none;
}

.nomads-navbar__search-input {
  width: min(400px, 100%);
  height: 42px;
  padding: 0 18px;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  font-size: 18px;
  color: #333;
  outline: none;
}
.nomads-navbar__search-input::placeholder {
  color: #888;
}

.nomads-navbar__search-results {
  position: absolute;
  z-index: 1200;
  inset-block-start: calc(100% + 6px);
  inset-inline: 0;
  display: grid;
  padding: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.nomads-navbar__search-results[hidden] {
  display: none;
}

.nomads-navbar__search-result {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #222;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.nomads-navbar__search-result:hover,
.nomads-navbar__search-result:focus,
.nomads-navbar__search-result.is-active {
  background: #f0f6fb;
}

.nomads-navbar__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.nomads-navbar__group--views {
    position: relative;
}
  
@media (max-width: 980px) {
  .nomads-navbar {
    z-index: 20000;
  }

  .nomads-mobile-search-open .nomads-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 20000;
  }

  .nomads-navbar__inner {
    align-items: center;
  }

  .nomads-navbar__mobile-search-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1db1d6;
    cursor: pointer;
  }

  .nomads-navbar__mobile-search-icon {
    position: relative;
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
  }

  .nomads-navbar__mobile-search-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2px;
    right: -7px;
    bottom: -4px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
  }

  .nomads-mobile-search-open .nomads-navbar__mobile-search-toggle {
    color: #035c8f;
  }

  .nomads-navbar__search {
    display: block;
    position: fixed;
    z-index: 19980;
    top: 60px;
    left: 0;
    right: 0;
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    padding: 14px 16px 10px;
    background: rgba(255, 255, 255, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 180ms ease, opacity 140ms ease;
  }

  .nomads-mobile-search-open .nomads-navbar__search {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nomads-navbar__search-input {
    width: 100%;
    max-width: none;
  }

  .nomads-navbar__search-results {
    position: static;
    margin-top: 8px;
    max-height: min(36vh, 280px);
    overflow: auto;
  }

  body:not(.nomads-mobile-search-open) .region-navigation {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
  }

  section.region-navigation {
    position: fixed;
    z-index: 19970;
    top: 126px;
    left: 0;
    right: 0;
    bottom: 70px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, opacity 140ms ease;
  }

  .nomads-mobile-search-open .region-navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .region-navigation .nomads-inner,
  .region-navigation .nomads-inner--constrained {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    padding-inline: 16px !important;
  }

  .nomads-navbar__group--views {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background:#fff;
    z-index: 20010;
    display: inline-flex;
    justify-content: space-evenly;
    height: 70px;
  }

  .nomads-navbar .nomads-navbar__group--views .icon-wrapper {
    width: auto;
    min-width: 64px;
    height: 64px;
    overflow: visible;
    padding: 3px 0;
    
  display: flex;
  flex-direction: column;
  justify-content: space-around;

  align-items: center;
  }

  .nomads-navbar .nomads-navbar__group--views .icon-label {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1;
  }

  .logo-label {
    top: 42px;
    left: 1vw;
    width: 150px;
    height: auto;
    overflow: visible;
    font-size: 10px;
    line-height: 1;
    background: transparent;
  }

  .path-map .nomads-navbar__group--views {
    background: rgba(255, 255, 255, 0.5);
  }

  div .nomads-navbar__group--views img {
    height: 8vw;
    width: 8vw;
    max-height: 50px;
    max-width: 50px;
  }
}

.nomads-navbar .nav-widget-wrapper {
  text-align: center;
  background: #fff;
  padding-bottom: 4px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.nomads-navbar .icon-wrapper {
  width: 80px;
  height: 45px;
  overflow: hidden;
  background: #fff;
  
  transition: height 0.3s ease;
}
.logo-label {
  position: absolute;
  top: 50px;
  left: 70px;
  width: 150px;
  height: 0;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: #1db1d6;
  
  transition: height 0.3s ease;
}
.nomads-navbar:hover .logo-label {
  height: 20px;
}
.nomads-navbar:hover .icon-wrapper {
  height: 64px;
}
.nomads-navbar__icon {
  width: 55px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1em;
}

.icon-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  color: #1db1d6;
  margin-top: 5px;
}

.nomads-navbar__icon.search-icon,
.nomads-navbar__icon.create-listing {
  opacity: 0.5;
}
.nomads-navbar__icon:hover,
.nomads-navbar__icon.active,
.nomads-navbar__icon.create-listing:hover,
.nomads-navbar__icon.create-listing:active {
  opacity: 1;
}
.nomads-navbar__icon.create-listing {
  /* margin-right: 30px; */
}

.nomads-navbar__icon img {
  width: 38px;
  height: 38px;
  display: block;
}

@media (max-width: 980px) {
  .nomads-navbar__icon {
  width: 32px;
  height: 32px;
}
  .nomads-navbar__icon img {
  width: 28px;
  height: 28px;
  display: block;
}
  .nomads-navbar__search {
    justify-content: flex-start;
  }

  .nomads-navbar__search-input {
    width: 100%;
    max-width: none;
  }

  .nomads-navbar__actions {
    gap: 10px;
  }
}

.nomads-navbar__actions {
  gap: 0;
}

.nomads-navbar__group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.nomads-navbar__group--views {
  min-width: 20%;
  justify-content: space-evenly;
}

.nomads-navbar__group--user {
  
}

@media (max-width: 980px) {
  .nomads-navbar__group {
    gap: 10px;
  }

  .nomads-navbar__group--user {
    
  }
}

/* ========== Compentent Dropdown menus ========== */

.nomads-navbar__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px;
  min-width: 260px;
  margin-top: 8px;
}

.nomads-navbar__dropdownwrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nomads-navbar__dropdownwrap--account .nomads-navbar__dropdown {
  right: 0;
}

.nomads-navbar__dropdownwrap--main .nomads-navbar__dropdown {
  right: 0;
}

.nomads-navbar__dropdownwrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nomads-navbar__dropdown--domains {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  margin-top: 0;
}

/* Domains dropdown typography and container styling */

.nomads-navbar__dropdown--domains {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e6eef2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: Candara, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.nomads-navbar__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Domains dropdown list layout */
.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Domains dropdown layout overrides */

.nomads-navbar__dropdown--domains {
  width: fit-content;
  max-width: none;
  display: inline-block;
  text-align: right;
}

/* Respect hidden state for JS-controlled visibility */
.nomads-navbar__dropdown--domains[hidden] {
  display: none;
}

.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list {
  width: fit-content;
  max-width: none;
  align-items: flex-end;
  text-align: right;
}

.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list li {
  width: fit-content;
  max-width: none;
  white-space: nowrap;
}

.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list a {
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.nomads-navbar__dropdown-list a {
  display: block;
  padding: 10px 12px;
}

/* Domains dropdown link styling */
.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16pt; /* 18pt requested for visual size consistency */
  line-height: 1.15;
  text-decoration: none;
  background: transparent;
}

.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list a:hover {
  background: rgba(5, 117, 177, 0.08);
  text-decoration: none;
}

.nomads-navbar__dropdown--domains .nomads-navbar__dropdown-list a:focus-visible {
  outline: 2px solid #0575b1;
  outline-offset: 2px;
  background: rgba(5, 117, 177, 0.12);
}

/* Domains dropdown first word styling with gradient fallback */
.nomads-navbar__dropdown--domains .domain-first {
  font-weight: 700;
  text-transform: uppercase;
  color: #0575b1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nomads-navbar__dropdown--domains .domain-first {
    background-image: linear-gradient(135deg, #66C3D0 0%, #005F8A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* Domains dropdown remaining words styling */
.nomads-navbar__dropdown--domains .domain-rest {
  text-transform: lowercase;
  color: #888;
  font-weight: 400;
}

/* Domains dropdown first item override */
#nomads-domainsmenu .nomads-navbar__dropdown-list li:first-of-type .domain-rest {
  color: #000;
}

/* Main/account dropdown box styling (match domains feel with smaller typography) */
#nomads-mainmenu,
#nomads-accountmenu {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e6eef2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: Candara, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  width: fit-content;
  max-width: none;
  display: inline-block;
}

/* Respect hidden state for JS-controlled visibility */
#nomads-mainmenu[hidden],
#nomads-accountmenu[hidden] {
  display: none;
}

#nomads-mainmenu ul,
#nomads-accountmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#nomads-mainmenu li,
#nomads-accountmenu li {
  width: fit-content;
  max-width: none;
}

#nomads-mainmenu a,
#nomads-accountmenu a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 14pt;
  line-height: 1.35;
  color: #222;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}

#nomads-mainmenu a:hover,
#nomads-accountmenu a:hover {
  background: rgba(5, 117, 177, 0.08);
  text-decoration: none;
}

#nomads-mainmenu a:focus-visible,
#nomads-accountmenu a:focus-visible {
  outline: 2px solid #005F8A;
  outline-offset: 2px;
  background: rgba(5, 117, 177, 0.12);
  text-decoration: none;
}

/* Main/account dropdown headings (non-link spans) */
#nomads-mainmenu .menu .menu-item > span,
#nomads-accountmenu .menu .menu-item > span {
  display: block;
  text-align: center;
  padding: 8px 14px 8px 50px;
  font-size: 10pt;
  text-transform: uppercase;
  color: #0575b1;
  font-weight: 700;
  cursor: default;
  user-select: none;
}

/* Extra section spacing above non-link headers (except the first) */
#nomads-mainmenu .menu > .menu-item + .menu-item > span,
#nomads-accountmenu .menu > .menu-item + .menu-item > span {
  padding-top: 25px;
}

.nomads-navbar__dropdown a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
}

.nomads-navbar__dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
