/* Header composition for _NPLayout. Loaded after app.css. */

.np-site-header {
  background: #fff;
}

.np-site-header .top-header .items a,
.np-site-header .top-header .items a.dropdown-toggle {
  gap: 0.35rem;
}

.np-site-header .top-header .favorite .count:empty {
  display: none;
}

.np-fav-label {
  display: none;
}

.np-site-header a.np-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  line-height: 1;
  text-decoration: none;
}

.np-site-header a.np-brand:hover,
.np-site-header a.np-brand:focus {
  text-decoration: none;
  color: #2a2936;
}

.np-site-header .np-brand__name {
  display: block;
  font-family: sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #2a2936;
}

.np-site-header .np-brand__name::first-letter {
  color: #B45309;
}

.np-site-header .np-brand__tag {
  display: block;
  margin-top: 5px;
  font-family: Shabnam, Tahoma, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.3;
  color: #8a8172;
}

.np-site-header .navbar.navbar-style {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #f0ebe3;
}

.np-site-header .navbar > .container {
  align-items: center;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.np-site-header .np-nav-actions {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.np-site-header .np-post-ad.btn-info {
  align-items: center;
  gap: 0.4rem;
  height: 42px;
  min-width: 0;
  padding: 0 14px !important;
  border: 0;
  border-radius: 12px;
  background: #C0560C;
  color: #fff;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(122, 48, 4, 0.18);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.np-site-header .np-post-ad.btn-info:hover,
.np-site-header .np-post-ad.btn-info:focus {
  background: #9A4209;
  color: #fff;
  box-shadow: 0 6px 16px rgba(154, 66, 9, 0.28);
}

.np-site-header .np-post-ad .icon-btn {
  position: static !important;
  order: 1;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  background: transparent;
  color: #fff;
}

.np-site-header .np-post-ad .icon-btn .fa {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.np-site-header .np-post-ad__label {
  order: 2;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.np-site-header .np-post-ad-compact {
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  background: #C0560C;
  color: #fff;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(122, 48, 4, 0.18);
}

.np-site-header .np-post-ad-compact:hover,
.np-site-header .np-post-ad-compact:focus {
  background: #9A4209;
  color: #fff;
}

.np-site-header .navbar-nav .nav-link:focus {
  outline: 2px solid #B45309;
  outline-offset: 2px;
}

.np-site-header .navbar-nav .nav-item.active > .nav-link {
  color: #B45309;
}

.np-site-header .np-field {
  position: relative;
}

.np-site-header .np-field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 2;
  color: #B45309;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.np-site-header .np-search-row .form-group {
  margin-bottom: 0.5rem;
}

.np-site-header .np-search-row .form-control,
.np-site-header .np-search-row .similar-control .title {
  font-size: 15px;
}

.np-site-header .np-search-row .form-control {
  padding-right: 40px;
}

.np-site-header .np-search-row .similar-control .title {
  padding-right: 40px;
  padding-left: 28px;
  color: #8d867a;
}

.np-site-header .np-search-row .similar-control .title.is-filled {
  color: #221e2a;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
}

.np-site-header #main-search-button.has-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  float: none;
  padding: 0 0.9rem !important;
  border-color: #1B3F6F;
  background: #1B3F6F;
  color: #fff;
  font-family: ShabnamBold, Shabnam, Tahoma, sans-serif;
  font-size: 15px;
  white-space: nowrap;
}

.np-site-header #main-search-button.has-icon:hover,
.np-site-header #main-search-button.has-icon:focus {
  background: #15345C;
  border-color: #15345C;
  color: #fff;
}

.np-site-header #main-search-button .icon-btn {
  position: static;
  display: inline-flex;
  width: auto;
  height: auto;
  background: transparent;
}

.np-site-header #main-search-button .icon-btn .fa {
  margin: 0;
  color: #fff;
}

@media (max-width: 767.98px) {
  .np-site-header .top-header {
    line-height: 1.2;
  }

  .np-site-header .top-header > .container > .row.align-items-center {
    min-height: 48px;
  }

  body {
    padding-top: 48px;
  }

  .np-site-header .np-brand__tag {
    display: none;
  }

  .np-site-header .np-brand__name {
    font-size: 1.35rem;
  }

  .np-site-header .navbar > .container {
    min-height: 58px;
  }

  .np-site-header .np-search-row .form-control,
  .np-site-header .np-search-row .similar-control .title {
    height: 46px !important;
    border: 1px solid #e4dccb !important;
    border-radius: 10px !important;
    background: #fff;
  }

  .np-site-header #main-search-button.has-icon {
    height: 46px !important;
    border-radius: 10px;
  }

  .np-site-header .np-search-row .form-control:focus,
  .np-site-header .np-search-row .similar-control .title:focus {
    outline: 2px solid #B45309;
    outline-offset: 1px;
  }
}

@media (min-width: 768px) {
  .np-site-header .np-post-ad.btn-info {
    display: inline-flex !important;
  }

  .np-fav-label {
    display: inline;
  }

  .np-site-header .top-header {
    background: #23222e;
    line-height: 1.2;
  }

  .np-site-header .top-header > .container > .row.align-items-center {
    min-height: 42px;
  }

  .np-site-header .top-header .items a,
  .np-site-header .top-header .items a.dropdown-toggle {
    color: #f6f1e6;
    font-size: 0.78rem;
    margin-left: 0.9rem;
  }

  .np-site-header .top-header .items a:hover,
  .np-site-header .top-header .items a:focus {
    color: #F8D48A;
  }

  .np-site-header .top-header .icon-wrpapper {
    width: 1.45rem;
    height: 1.45rem;
    border-color: rgba(224, 196, 120, 0.55);
  }

  .np-site-header .top-header .icon-wrpapper i.fa {
    color: #F6C15B;
  }

  .np-site-header .top-header .items a.favorite .count {
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #B45309;
    color: #fff;
    font-size: 0.68rem;
    line-height: 16px;
    text-align: center;
  }

  .np-site-header {
    box-shadow: 0 1px 0 rgba(39, 38, 52, 0.05), 0 12px 28px rgba(39, 38, 52, 0.05);
  }

  .np-site-header .middle-bar {
    padding: 0.9rem 0 1.15rem;
    background: #fff;
  }

  .np-site-header .np-search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    background: #fff;
    border: 1px solid #e6dfd0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(39, 38, 52, 0.06);
    overflow: hidden;
  }

  .np-site-header .np-search-row:focus-within {
    border-color: #B45309;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
  }

  .np-site-header .np-search-row > .np-search-col {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
  }

  .np-site-header .np-search-row > .np-search-col--query {
    flex: 1.4 1 0;
  }

  .np-site-header .np-search-row > .np-search-col--submit {
    flex: 0 0 132px;
    max-width: 132px;
  }

  .np-site-header .np-search-row .form-group {
    height: 100%;
    margin: 0;
  }

  .np-site-header .np-search-col--place .form-group,
  .np-site-header .np-search-col--group .form-group,
  .np-site-header .np-search-col--submit .form-group {
    border-right: 1px solid #efe6d6;
  }

  .np-site-header .np-search-row .form-control,
  .np-site-header .np-search-row .similar-control .title,
  .np-site-header #main-search-button.has-icon {
    height: 52px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
  }

  .np-site-header .np-search-row .similar-control .title {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.3;
  }

  .np-site-header .np-search-row .form-control:focus,
  .np-site-header .np-search-row .similar-control .title:focus {
    outline: none;
    background: #fffdf8;
  }

  .np-site-header #main-search-button.has-icon {
    background: #1B3F6F;
  }

  .np-site-header #main-search-button.has-icon:hover,
  .np-site-header #main-search-button.has-icon:focus {
    background: #15345C;
  }

  .np-site-header .np-search-row .form-control::placeholder {
    color: #8d867a;
    opacity: 1;
  }

  .np-site-header .np-search-row .similar-control:after {
    top: 0;
    left: 12px;
    height: 52px;
    margin-top: 0;
    line-height: 52px;
  }
}

@media (min-width: 992px) {
  .np-site-header .navbar > .container {
    justify-content: flex-start;
  }

  .np-site-header .np-brand {
    order: 1;
  }

  .np-site-header #niazpardazNavbar {
    order: 2;
    flex: 0 1 auto;
  }

  .np-site-header .np-nav-actions {
    order: 3;
  }

  .np-site-header .navbar-nav {
    align-items: center;
    flex-wrap: nowrap;
  }

  .np-site-header .navbar-nav .nav-item .nav-link {
    position: relative;
    margin: 0 0 0 2px !important;
    padding: 0.45rem 0.72rem !important;
    border: 0 !important;
    border-radius: 8px;
    color: #2f2e3a;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .np-site-header .navbar-nav .nav-item .nav-link:hover,
  .np-site-header .navbar-nav .nav-item .nav-link:focus {
    background: #fbf7ee;
    color: #B45309;
  }

  .np-site-header .navbar-nav .nav-item.active > .nav-link {
    background: #fbf7ee;
    color: #B45309;
  }

  .np-site-header .navbar-nav .nav-item.active > .nav-link::after {
    content: "";
    position: absolute;
    right: 0.72rem;
    bottom: 1px;
    left: 0.72rem;
    height: 2px;
    border-radius: 2px;
    background: #B45309;
  }
}

@media (max-width: 991.98px) {
  .np-site-header #niazpardazNavbar {
    flex-basis: 100%;
    border-top: 1px solid #f0ebe3;
  }

  .np-site-header #niazpardazNavbar .nav-link {
    padding: 0.8rem 0.15rem;
    border-bottom: 1px solid #f4f0e8 !important;
  }

  .np-site-header .navbar-toggler {
    margin-right: 0.35rem;
  }
}
