/* offcanvas for Understrap Bootstrap 5 */
#navbarNavOffcanvas {
  width: 100%;
}
.app-offcanvas{
  --app-sep: rgba(0,0,0,.08);
  --app-bg: #fff;
  --app-text: #111;

  background: var(--app-bg);
  color: var(--app-text);
}

/* Remove the old primary background if any inherited styles remain */
.app-offcanvas.offcanvas{
  background: #fff !important;
}

.app-offcanvas-header{
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--app-sep);
}

.app-offcanvas-header .navbar-brand{
  margin: 0;
}

.app-offcanvas-topbar{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--app-sep);
}

.app-offcanvas-login{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--app-text);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
}

.app-login-ico{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.7);
}

.app-offcanvas-lang ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  gap: 8px;
}

.app-offcanvas-lang a{
  text-decoration: none;
  color: var(--app-text);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
}

.app-offcanvas-body{
  padding: 10px 12px 18px;
}

/* Menu base */
.app-mobile-menu{
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-mobile-menu > li{
  border-bottom: 1px solid var(--app-sep);
}

/* Top-level link row */
.app-mobile-menu > li > a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 10px;
  text-decoration: none;
  color: var(--app-text);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Submenu collapse */
.app-submenu{
  padding: 4px 0 10px;
}

/* Submenu list */
.app-mobile-menu .sub-menu{
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-mobile-menu .sub-menu a{
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--app-text);
  font-weight: 600;
}

/* Chevron toggle button */
.app-subtoggle{
  border: 0;
  background: transparent;
  padding: 14px 10px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
}

.app-subtoggle::before{
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,0,0,.55);
  border-bottom: 2px solid rgba(0,0,0,.55);
  transform: rotate(-45deg);
  display: block;
}

.app-subtoggle[aria-expanded="true"]::before{
  transform: rotate(45deg);
}

/* Make parent row nicer when it has children */
.app-has-children > a{
  padding-right: 0;
}
/* Polylang list reset (no bullets, no spacing) */
.app-offcanvas-lang ul,
.app-offcanvas-lang li{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Make languages inline, clean Apple-style pills */
.app-offcanvas-lang ul{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.app-offcanvas-lang li{
  display: inline-flex;
}

/* Links as pills */
.app-offcanvas-lang a{
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Current language (Polylang often uses .current-lang) */
.app-offcanvas-lang .current-lang a{
  background: rgba(0,0,0,.10);
}

