/*
* ===================================================
*     CUSTOM CSS CODE BELOW
* ===================================================
*/

/* ===================================================
   Header – en tydlig, luftigare känsla
   =================================================== */
.header > .navbar.navbar-position {
  box-shadow: 0 2px 10px rgba(20, 50, 77, 0.07);
  position: relative;
  z-index: 20;
}

@media (min-width: 992px) {
  .header .navbar-brand {
    margin-right: 1.5rem;
  }
}

/* Sökfält: rundad, tydlig fokusring */
.header .search-wrapper {
  border: 1px solid rgba(20, 50, 77, 0.15);
  border-radius: 999px !important;
  overflow: hidden;
  background: #f5f7f9;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.header .search-wrapper:focus-within {
  border-color: #cc6a1e;
  box-shadow: 0 0 0 3px rgba(204, 106, 30, 0.15);
  background: #fff;
}

.header .search-wrapper .form-control {
  background: transparent;
  padding-left: 1.25rem;
}

.header .search-wrapper .btn {
  padding-right: 1.1rem;
  background: transparent !important;
}

.icon-count {
  box-shadow: 0 0 0 2px #fff;
  font-weight: 700;
}

/* Mobilmenyns knapp – tydlig klickyta med etikett */
.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 10px;
  background: rgba(20, 50, 77, 0.07);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background-color .2s ease;
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger:focus {
  background-color: rgba(20, 50, 77, 0.14);
  text-decoration: none;
}

.mobile-menu-trigger .navbar-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.mobile-menu-trigger-label {
  line-height: 1;
}

/* ===================================================
   Huvudmeny (desktop) – tydligare hierarki och state
   =================================================== */
.navbar-bg {
  position: relative;
  border-bottom: 3px solid #cc6a1e;
}

.navbar-bg .container-wide {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.navbar-bg .navbar-nav {
  row-gap: .25rem;
}

.navbar-bg .nav-item {
  position: relative;
}

.navbar-bg .nav-link {
  font-weight: 600;
  letter-spacing: .01em;
  padding: .65rem .85rem !important;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}

@media (min-width: 1200px) {
  .navbar-bg .nav-link {
    padding: .65rem 1.05rem !important;
  }
}

.navbar-bg .nav-link:hover,
.navbar-bg .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.navbar-bg .nav-item.active > .nav-link {
  position: relative;
}

.navbar-bg .nav-item.active > .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .2rem;
  height: 2px;
  background: currentColor;
  opacity: .85;
  border-radius: 2px;
}

.navbar-bg .dropdown-toggle::after {
  vertical-align: .15em;
  transition: transform .2s ease;
}

.navbar-bg .has-dropdown.on-hover:hover > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown-paneler: lätt upplyfta kort */
.navbar-bg .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 18px 38px -14px rgba(20, 50, 77, 0.35);
  padding: .6rem;
}

.navbar-bg .dropdown-menu .dropdown-item,
.navbar-bg .dropdown-menu .dropdown-toggle {
  border-radius: 8px;
  padding: .55rem .9rem;
  font-weight: 500;
  transition: background-color .15s ease, padding-left .15s ease;
}

.navbar-bg .dropdown-menu .dropdown-item:hover,
.navbar-bg .dropdown-menu .dropdown-item:focus,
.navbar-bg .dropdown-menu .dropdown-toggle:hover,
.navbar-bg .dropdown-menu .dropdown-toggle:focus {
  background-color: rgba(20, 50, 77, 0.06);
  padding-left: 1.1rem;
}

.navbar-bg .dropdown-menu .dropdown-item.active {
  color: #cc6a1e;
  font-weight: 700;
}

/* ===================================================
   Mobil utfällbar meny – tydligare lista
   =================================================== */
#sidebarLeft .modal-content {
  border: none;
  overflow: hidden;
}

#sidebarLeft .modal-header {
  background: #14324d;
  padding: 1.1rem 1.25rem !important;
}

#sidebarLeft .mobile-nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(20, 50, 77, 0.08);
  border-radius: 8px;
  padding: .9rem .6rem;
  transition: background-color .15s ease, padding-left .15s ease;
}

#sidebarLeft .mobile-nav-link:hover,
#sidebarLeft .mobile-nav-link:focus {
  background-color: rgba(20, 50, 77, 0.05);
  padding-left: 1rem;
  text-decoration: none;
}

#sidebarLeft .nav-item.active > .mobile-nav-link,
#sidebarLeft .mobile-nav-link.active {
  color: #cc6a1e;
}

#sidebarLeft .show-all {
  font-style: italic;
  opacity: .75;
  font-weight: 500 !important;
}

#sidebarLeft ul.nav.flex-column.ml-3 {
  border-left: 2px solid rgba(20, 50, 77, 0.08);
  margin-left: .6rem !important;
  padding-left: .6rem;
}

/* ===================================================
   Generella moderna detaljer
   =================================================== */
.btn {
  font-weight: 600;
  letter-spacing: .01em;
}

.card.card-scale:not(.shadow-none) {
  box-shadow: 0 14px 30px -18px rgba(20, 20, 20, 0.35);
}